joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011d83
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1fac]
mov eax, 0x202c
call fcn.1005e2a0
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x1fa8], eax
push ebx
push esi
mov esi, dword [ebp + 0x1fb4]
lea eax, [ebp - 0x60]
push edi
mov ebx, 0x1000
xor edi, edi
push ebx
push edi
push eax
call fcn.100621d0
push ebx
lea eax, [ebp + 0xfa0]
push edi
push eax
call fcn.100621d0
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 3
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x1fa0]
push 4
push eax
call fcn.1008ab60
lea eax, [ebp + 0x1fa0]
push eax
call fcn.10010de2
add esp, 0x14
cmp eax, 0x64
jae 0x10011e36
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x80], vtable.ATL::CSimpleDialog_110__1_.0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x80]
call fcn.1001018d
cmp dword [ebp - 0x6c], edi
je 0x10011ea9
push dword [ebp - 0x6c]
call fcn.10060875
jmp 0x10011ea9
lea eax, [ebp + 0xfa0]
push eax
push edi
push 0x100dafc0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10011ea4
lea ecx, [ebp + 0xfa0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10011e5a
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 8]
cmp ecx, ebx
jae 0x10011ec6
xor eax, eax
mov word [ebp + ecx + 0xfa0], ax
lea eax, [ebp + 0xfa0]
push eax
push str._s.exe
push ebx
push esi
call fcn.10011ecc
push edi
push esi
call fcn.1008ab6b
add esp, 0x18
cmp eax, 0xffffffff
jne 0x10011e36
xor eax, eax
jmp 0x10011eae
call fcn.100101c0
mov eax, 0x80004005
mov ecx, dword [ebp + 0x1fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e187
add ebp, 0x1fac
leave
ret
call fcn.1005ea97
int3

Function at 0x10013c6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x790], eax
push esi
lea eax, [ebp - 0x74]
xor esi, esi
push eax
push 0x20019
push esi
push 0x100dae98
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10013ce0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x800
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push str.Allow_Unsigned_Installers
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10013ce0
xor eax, eax
inc eax
jmp 0x10013d0b
push str.TOOLKIT_ALLOW_UNSIGNED
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1008a969
add esp, 0xc
test eax, eax
jne 0x10013d09
cmp dword [ebp - 0x78], eax
je 0x10013d09
push dword [ebp - 0x78]
call fcn.1006f635
pop ecx
jmp 0x10013cdb
xor eax, eax
mov ecx, dword [ebp + 0x790]
xor ecx, ebp
pop esi
call fcn.1005e187
add ebp, 0x794
leave
ret
Function at 0x10014a63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push 0x100dab20
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10014ac5
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.NoDownloadWarning
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10014ac5
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
jmp 0x10014ac7
xor eax, eax
pop esi
leave
ret

Function at 0x10015186
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.1005e2a0
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, 0x1000
lea eax, [ebp - 0x2004]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.100621d0
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.100621d0
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.10011ecc
add esp, 0x24
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100151eb
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 8]
cmp ecx, edi
jae 0x10015246
xor eax, eax
mov word [ebp + ecx - 0x1004], ax
lea eax, [ebp - 0x1004]
push eax
push str._s.tmp
lea eax, [ebp - 0x2004]
push edi
push eax
call fcn.10011ecc
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1005e187
leave
ret
call fcn.1005ea97
int3
Function at 0x10015b38
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x3844
call fcn.1005e2a0
mov eax, dword [0x10130aa4]
xor eax, esp
mov dword [esp + 0x3840], eax
cmp dword [0x1013346c], 0
je 0x10015d21
push ebx
push ebp
push edi
mov ebx, 0x1000
lea eax, [esp + 0x184c]
push ebx
xor ebp, ebp
push ebp
push eax
call fcn.100621d0
push ebx
lea eax, [esp + 0x285c]
push ebp
push eax
call fcn.100621d0
mov ebx, 0x800
lea eax, [esp + 0x64]
push ebx
push ebp
push eax
call fcn.100621d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x38]
add esp, 0x24
mov dword [esp + 0xc], ebx
push eax
push 0x20019
push ebp
push 0x100da9f8
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x10015d1e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push esi
push eax
lea eax, [esp + 0x1854]
push eax
push ebp
push ebp
push 0x100daa50
push dword [esp + 0x2c]
call ebx
mov esi, eax
lea eax, [esp + 0x1850]
push eax
push 0x100daa70
push 0x100da9ec
lea eax, [esp + 0x285c]
push 0x1000
push eax
call fcn.10011ecc
add esp, 0x14
test esi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10015d17
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebp
lea eax, [esp + 0x285c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x10015d17
lea eax, [esp + 0x10]
mov edi, 0x800
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x14], edi
push eax
push ebp
push ebp
push 0x100daac8
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x10015d17
mov ebx, 0x1000
lea eax, [esp + 0x850]
push ebx
push ebp
push eax
call fcn.100621d0
lea eax, [esp + 0x5c]
push eax
push str._slib_bundles
lea eax, [esp + 0x864]
push ebx
push eax
call fcn.10011ecc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x870]
push eax
call fcn.1008d780
add esp, 0x24
test eax, eax
jne 0x10015d11
push str._requested.list
lea eax, [esp + 0x854]
mov dword [esp + 0x18], ebp
push edi
push eax
call fcn.1008aa23
push 0x100dab1c
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1008b681
add esp, 0x18
test eax, eax
jne 0x10015d11
mov edx, dword [0x1013346c]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x10015ce9
push dword [esp + 0x14]
sub ecx, edi
sar ecx, 1
push ecx
push 2
push edx
call fcn.1008ec17
push dword [esp + 0x24]
call fcn.1008d8ec
add esp, 0x14
push dword [esp + 0x18]
call esi
push dword [esp + 0x18]
call esi
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3840]
xor ecx, esp
call fcn.1005e187
add esp, 0x3844
ret
Function at 0x10017e54
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x10130aa4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x228]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.10017b89
mov esi, eax
test esi, esi
jne 0x10017f33
lea eax, [esp + 0x20]
mov dword [esp + 0x18], pe_nt_image_headers32
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x10017f0b
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.10017e54
mov esi, eax
test esi, esi
jne 0x10017f33
lea eax, [esp + 0x20]
mov dword [esp + 0x18], pe_nt_image_headers32
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x10017ed0
jmp 0x10017f0d
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x10017f22
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.100176df
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x10017f44
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005e187
add esp, 0x220
ret 4
Function at 0x10018198
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x100cc73f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
xor ebx, ebx
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x10018233
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x10018233
call fcn.10004bd9
mov esi, eax
jmp 0x100182ff
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10018250
call fcn.10004bd9
jmp 0x100182f2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10018246
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001827a
mov esi, 0x8007000e
jmp 0x100182f4
push 2
push eax
mov byte [ebp - 4], 2
call fcn.100167b4
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x1001829a
push eax
lea ecx, [ebp]
call fcn.100173ba
jmp 0x100182b0
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x100182b0
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x10018273
push esi
push dword [ebp]
push esi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10018246
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x41c]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x24]
push dword [ebp]
call fcn.10018069
mov esi, eax
test edi, edi
je 0x100182ff
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1001830f
lea ecx, [ebp]
call fcn.1001784e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1005e187
add ebp, 0x408
leave
ret 0x10
Function at 0x100189eb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10018a05
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10018a15
push 0xd
pop eax
jmp 0x10018a5a
push esi
push edi
xor eax, eax
mov edi, edx
mov dword [esp + 0x14], eax
mov esi, eax
push ebp
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x10018a27
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10018a22
pop ebp
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10018a5e
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x10018a6e
push 0xd
pop eax
jmp 0x10018aa2
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10018a77
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [esp + 0x20]
push ebx
push dword [esp + 0x20]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
ret 0xc

Function at 0x1001986a
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push edi
mov edi, dword [ebp + 8]
push 0x105
push eax
push esi
call fcn.1001a11f
add esp, 0xc
test eax, eax
je 0x100198e2
lea eax, [ebp - 0x210]
push eax
push 0
push 0x100e2418
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100198e2
push 0
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100198e2
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1001af5d
pop ecx
pop ecx
jmp 0x100198e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005e187
leave
ret

Function at 0x1001ac28
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and eax, 1
ret
Function at 0x1001ad07
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101265d0
push fcn.10062700
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x1264
call fcn.1005e2a0
mov eax, dword [0x10130aa4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov word [ebp - 0x101c], dx
push eax
push ecx
push 0x100e22e4
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x126c]
push eax
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1001ae5e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
push esi
lea eax, [ebp - 0x101c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x1001ae5e
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005e96c
pop ecx
mov edi, eax
mov dword [ebp - 0x1278], edi
test edi, edi
je 0x1001ae5e
mov dword [ebp - 4], esi
push edi
push ebx
push esi
lea eax, [ebp - 0x101c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1001ae52
mov dword [ebp - 0x1270], esi
lea eax, [ebp - 0x1270]
push eax
lea eax, [ebp - 0x1274]
push eax
push str.StringFileInfo040904e4ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001ae52
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1274]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001ae31
test dx, dx
je 0x1001ae36
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001ae31
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001ae0d
jmp 0x1001ae36
sbb esi, esi
or esi, 1
test esi, esi
jne 0x1001ae52
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x10130aa4
call fcn.100662f0
add esp, 0xc
xor eax, eax
inc eax
jmp 0x1001ae60
mov dword [ebp - 4], 0xfffffffe
call fcn.1001ae80
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005e187
leave
ret
Function at 0x1001c975
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001c9cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001c9cf
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1001c9bf
cmp esi, ecx
jae 0x1001c9cf
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1001c9ad
cmp esi, ecx
jae 0x1001c9cf
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x1001c9d1
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1001daf9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push dword [ebp + 0x18]
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001db4f
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp - 4]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x1001db4e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1001dc20
Capabilities:
Delete directory

Disassembly:
push 0x10
mov eax, 0x100ccef3
call fcn.1005e1c7
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.SunJavaDeployment
call fcn.10001719
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.1000182d
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1001dc65
call fcn.10001b13
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001dc70
mov eax, dword [eax]
jmp 0x1001dc72
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1001dd94
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001dc8c
mov eax, dword [eax]
jmp 0x1001dc8e
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call ebx
push str.SunJava
lea ecx, [ebp - 0x18]
call fcn.10001719
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001dcb6
lock inc dword [eax + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001787
mov esi, dword [ebp - 0x14]
or edi, 0xffffffff
test esi, esi
je 0x1001dcfa
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x1001dcfa
mov ecx, esi
call fcn.10001b86
push 0xc
push esi
call fcn.1005e174
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1001dd0a
call fcn.10001b13
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001dd15
mov eax, dword [eax]
jmp 0x1001dd17
xor eax, eax
push eax
call ebx
push str.Sun
lea ecx, [ebp - 0x18]
call fcn.10001719
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001dd39
lock inc dword [eax + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001787
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001dd78
lock xadd dword [esi + 8], edi
dec edi
jne 0x1001dd78
mov ecx, esi
call fcn.10001b86
push 0xc
push esi
call fcn.1005e174
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1001dd84
call fcn.10001b13
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001dd8f
mov eax, dword [eax]
jmp 0x1001dd91
xor eax, eax
push eax
call ebx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1001dda4
call fcn.10001b13
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1001ddb0
call fcn.10001b13
call fcn.1005e195
ret
Function at 0x1001ddb6
Capabilities:
Delete registry value

Disassembly:
push 0x28
mov eax, 0x100ccf2d
call fcn.1005e1c7
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov edi, 0x20019
mov byte [ebp - 4], 1
push edi
push 0x100ebd94
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.10017b89
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1001decb
push edi
push 0x100ebe48
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
call fcn.10017b89
test eax, eax
jne 0x1001deb0
lea eax, [ebp - 0x1c]
push 0x100ebe5c
push eax
call fcn.1001df93
pop ecx
pop ecx
test eax, eax
je 0x1001de91
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
push 0x20006
push 0x100ebe78
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.10017b89
mov edi, dword [ebp - 0x34]
test eax, eax
je 0x1001de67
push str.DeleteEmptyDeploymentKeysInHLKM:_failed_to_open_JRE_key
call fcn.100333b3
jmp 0x1001de89
push 0x100ebf40
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
mov ecx, esp
mov esi, eax
push str.DeleteEmptyDeploymentKeysInHLKM:_Remove_BrowserJavaVersion_value
call fcn.10001719
push esi
call fcn.1001cae2
pop ecx
pop ecx
test edi, edi
je 0x1001de91
push edi
call ebx
lea eax, [ebp - 0x1c]
push str.Java_Web_Start
push eax
call fcn.1001df93
lea eax, [ebp - 0x1c]
push str.Java_Web_Start_Caps
push eax
call fcn.1001df93
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x100ec034
push eax
call fcn.1001df93
cmp dword [ebp - 0x1c], 0
pop ecx
pop ecx
je 0x1001decb
push dword [ebp - 0x1c]
call ebx
cmp dword [ebp - 0x28], 0
je 0x1001ded6
push dword [ebp - 0x28]
call ebx
call fcn.1005e195
ret

Function at 0x1001dedc
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x804
mov eax, dword [0x10130aa4]
xor eax, esp
mov dword [esp + 0x800], eax
push ebp
push esi
mov ebp, 0x800
lea eax, [esp + 8]
push ebp
push 0
push eax
call fcn.100621d0
add esp, 0xc
lea eax, [esp + 8]
xor esi, esi
push 0x400
push eax
push esi
jmp 0x1001df5f
push 0xa
lea eax, [esp + 0xc]
push str.JavaPlugin
push eax
call fcn.10089830
add esp, 0xc
test eax, eax
jne 0x1001df43
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x814]
call fcn.10017e54
test eax, eax
je 0x1001df44
inc esi
push ebp
lea eax, [esp + 0xc]
push 0
push eax
call fcn.100621d0
add esp, 0xc
lea eax, [esp + 8]
push 0x400
push eax
push esi
push dword [esp + 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1001df16
lea ecx, [esp + 0x810]
call fcn.10017647
mov ecx, dword [esp + 0x808]
pop esi
pop ebp
xor ecx, esp
call fcn.1005e187
add esp, 0x804
ret