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

Disassembly:
push ebp
lea ebp, [esp - 0x1fac]
mov eax, 0x202c
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x1fa8], eax
push ebx
mov ebx, dword [ebp + 0x1fb4]
push esi
push edi
xor eax, eax
mov esi, 0xffe
push esi
mov word [ebp + 0xfa0], ax
xor edi, edi
lea eax, [ebp + 0xfa2]
push edi
push eax
call fcn.10039d40
xor eax, eax
push esi
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push edi
push eax
call fcn.10039d40
add esp, 0x18
lea eax, [ebp + 0xfa0]
push eax
push 0x800
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 3
lea eax, [ebp + 0xfa0]
push eax
lea eax, [ebp + 0x1fa0]
push 4
push eax
call fcn.1003b150
lea eax, [ebp + 0x1fa0]
push eax
call fcn.1003b150
add esp, 0x14
cmp eax, 0x64
jae 0x1000dddb
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x80], 0x1005e434
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x80]
call fcn.10012884
cmp dword [ebp - 0x6c], edi
je 0x1000ddd4
push dword [ebp - 0x6c]
call fcn.1003b150
mov eax, 0x80004005
jmp 0x1000de37
lea eax, [ebp - 0x60]
push eax
push edi
push 0x1005e230
lea eax, [ebp + 0xfa0]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x1000de4f
lea eax, [ebp - 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000ddfc
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x68], cx
lea eax, [ebp - 0x60]
push eax
push str._s.exe
push 0x1000
push ebx
call fcn.10004bac
push edi
push ebx
call fcn.1003b150
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1000dddb
xor eax, eax
mov ecx, dword [ebp + 0x1fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x1fac
leave
ret
call fcn.1003b150
jmp 0x1000ddd4
Function at 0x1000e231
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x42c]
sub esp, 0x4ac
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x428], eax
mov eax, dword [ebp + 0x434]
push ebx
mov ebx, dword [ebp + 0x438]
push esi
push edi
mov dword [ebp + 0x14], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x18], ax
xor esi, esi
lea eax, [ebp + 0x1a]
push esi
push eax
call fcn.10039d40
xor eax, eax
push edi
mov word [ebp + 0x220], ax
lea eax, [ebp + 0x222]
push esi
push eax
call fcn.10039d40
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.10039d40
push dword [ebp + 0x14]
mov dword [ebp - 0x80], edi
mov edi, 0x208
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.10004bac
push ebx
push dword [ebp + 0x14]
lea eax, [ebp + 0x220]
push str._s__s
push edi
push eax
call fcn.10004bac
add esp, 0x44
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x220]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.1003b150
add esp, 0x28
cmp eax, esi
jne 0x1000e359
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov ebx, 0x2e4
cmp edi, ebx
jne 0x1000e3af
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.10039d40
lea eax, [ebp + 0x220]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0x1005e22c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, esi
je 0x1000e377
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1000e377
mov dword [ebp], eax
push dword [ebp]
call fcn.10007f0c
lea eax, [ebp + 0x10]
push eax
push dword [ebp]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
je 0x1000e39c
mov edi, dword [ebp + 0x10]
jmp 0x1000e3a4
mov edi, ebx
push dword [ebp + 0x14]
call fcn.1003b150
pop ecx
mov ecx, dword [ebp + 0x428]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x42c
leave
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push dword [ebp]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1000e379
call fcn.1003b150
jmp 0x1000e379
Function at 0x1001046d
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x811c9dc5
jmp 0x10010486
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
add ecx, 2
cmp ecx, dword [esp + 8]
jne 0x10010478
ret

Function at 0x10012382
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x70], eax
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0x10083610]
push 0xf0
push eax
push esi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 1
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x10012506
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x10012506
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10012506
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x10012504
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0xa0], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x10012479
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.1003b150
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x9c]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x10012459
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x100124f1
push dword [ebp - 0x94]
call fcn.1003b150
pop ecx
jmp 0x100124f1
mov ecx, 0x1234
cmp cx, ax
jne 0x100124f1
or dword [ebp - 0xc0], 0xffffffff
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x94], eax
call fcn.1003b150
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xbc], eax
cmp eax, ecx
je 0x100124cb
push eax
call fcn.1003b150
pop ecx
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0x9c]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x100124f1
and dword [ebp - 0x98], 0
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x98], 0
jne 0x100123f0
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop esi
call fcn.10039bc2
add ebp, 0x74
leave
ret 4
Function at 0x10013021
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x10056c41
call fcn.10039c3a
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x10013118
cmp byte [esi + 0x4a], bl
je 0x10013118
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x1001305d
xor al, al
jmp 0x1001311a
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.100129a5
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100130bb
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x100130c0
dec eax
je 0x100130c4
dec eax
dec eax
je 0x10013114
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100115a7
mov al, bl
jmp 0x1001311a
mov edx, dword [ebp - 0x2c]
jmp 0x10013086
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100130d0
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x100130f6
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100130e3
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.1003c319
add esp, 0x10
cmp edi, eax
jne 0x100130a9
cmp byte [esi + 0x4a], 0
je 0x10013114
test edi, edi
jne 0x10013078
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.100128b7
jmp 0x10013078
mov bl, 1
jmp 0x100130ab
mov al, 1
call fcn.10039c84
ret
Function at 0x100132ef
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x10056c99
call fcn.10039c3a
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x10013311
xor eax, eax
jmp 0x10013484
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x1001333f
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x1001333f
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x10013484
cmp dword [esi + 0x54], ebx
je 0x1001347f
mov ecx, esi
call fcn.100110d1
cmp dword [esi + 0x44], ebx
jne 0x1001336f
push dword [esi + 0x54]
push edi
call fcn.10012078
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x10013484
jmp 0x1001347f
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.100129a5
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1001342c
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x10013474
cmp eax, ebx
jg 0x10013434
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100133de
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x10013403
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100133f1
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.1003c319
add esp, 0x10
cmp edi, eax
jne 0x10013474
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x10013463
test edi, edi
jne 0x10013390
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x10013479
push 8
call fcn.100128b7
jmp 0x10013390
mov edx, dword [ebp - 0x2c]
jmp 0x100133a2
cmp eax, 3
jne 0x10013474
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.10012078
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x10013453
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100115a7
mov ax, si
jmp 0x10013484
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100115a7
mov ax, word [ebp + 8]
jmp 0x10013484
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.100115a7
mov eax, 0xffff
call fcn.10039c84
ret 4
Function at 0x10016cb5
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 0x10017696
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 0x1001a125
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1003b150
mov ebx, eax
cmp ebx, esi
je 0x1001a198
lea ecx, [ebp - 0x74]
call fcn.10016b3c
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1001a1b0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.1001a125
cmp eax, esi
jne 0x1001a1e2
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x1001a1a0
lea ecx, [ebp - 0x74]
call fcn.10016b3c
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10016acd
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10016b3c
mov eax, esi
jmp 0x1001a17e
Function at 0x1001b97b
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa8
push ebx
or eax, 0xffffffff
xor ebx, ebx
mov dword [ebp + 0x6c], eax
cmp dword [ebp + 0x78], ebx
je 0x1001bad3
call fcn.1002eeb7
push 0x10
mov dword [ebp + 0x68], eax
pop ecx
lea eax, [ebp + 0x54]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001b9a6
push edi
mov dword [ebp + 0x64], ebx
call fcn.1002d15b
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x1001ba49
push 0x100616a0
call fcn.1003b150
mov dword [esp], str.AdvAPI32.dll
call fcn.1003b150
pop ecx
mov dword [ebp + 0x64], eax
cmp eax, ebx
jne 0x1001b9eb
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_load_advapi32.dll
jmp 0x1001ba97
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp + 0x50], eax
cmp eax, ebx
jne 0x1001ba08
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_GetProcAddress
jmp 0x1001ba97
push str.RunAsDesktopUser___calling__CreateProcessWithTokenW
call fcn.1003b150
pop ecx
push 0x44
pop ecx
lea eax, [ebp - 0x38]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001ba19
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
mov dword [ebp - 0x38], 0x44
push dword [ebp + 0x78]
push ebx
push dword [ebp + 0x68]
call dword [ebp + 0x50]
test eax, eax
jne 0x1001ba9f
push str.RunAsDesktopUser:_CreateProcessWithTokenW_failed.
jmp 0x1001ba97
push 0x10061908
call fcn.1003b150
push 0x44
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.10039d40
add esp, 0x10
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x30
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
mov dword [ebp + 0xc], 0x44
push dword [ebp + 0x78]
mov dword [ebp + 0x14], str.winsta0default
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1001ba9f
push str.RunAsDesktopUser:_CreateProcessAsUser_failed.
call fcn.1003b150
pop ecx
jmp 0x1001bac1
cmp dword [ebp + 0x54], ebx
je 0x1001bac1
push 0xffffffffffffffff
push dword [ebp + 0x54]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x54]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [ebp + 0x54]
call edi
push dword [ebp + 0x64]
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp + 0x68]
call edi
mov eax, dword [ebp + 0x6c]
pop edi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x1001bbe6
Capabilities:
Enumerate process modules
Get process image filename
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x108c]
mov eax, 0x110c
call fcn.10039d10
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x1088], eax
lea eax, [ebp - 0x80]
push eax
push 0x1000
lea eax, [ebp - 0x7c]
push eax
call sub.psapi.dll_EnumProcesses
test eax, eax
je 0x1001bc7c
shr dword [ebp - 0x80], 2
push esi
xor esi, esi
cmp dword [ebp - 0x80], esi
jbe 0x1001bc7b
push edi
push dword [ebp + esi*4 - 0x7c]
push 0
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov edi, eax
push 0x104
lea eax, [ebp + 0xf84]
push eax
push edi
call sub.psapi.dll_GetProcessImageFileNameA
lea eax, [ebp + 0xf84]
push 0x10064aec
push eax
call fcn.1003e120
pop ecx
pop ecx
test eax, eax
je 0x1001bc6d
push 0
push edi
call dword [sym.imp.kernel32.dll_TerminateProcess]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x80]
jb 0x1001bc28
pop edi
pop esi
mov ecx, dword [ebp + 0x1088]
xor ecx, ebp
call fcn.10039bc2
add ebp, 0x108c
leave
ret

Function at 0x1001bd54
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x790], eax
push ebx
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x7a0]
xor ebx, ebx
xor eax, eax
push 0x7fe
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.10039d40
mov eax, dword [esi]
add esp, 0xc
push 0x2001f
push edi
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], ebx
call fcn.1003b150
cmp eax, ebx
jne 0x1001bde4
push 0x400
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1001bdf0
lea ecx, [ebp - 0x80]
call fcn.10016b3c
push edi
mov ecx, esi
call fcn.10016acd
test eax, eax
jmp 0x1001bde7
cmp eax, 2
jne 0x1001bdf0
mov dword [ebp - 0x74], 1
lea ecx, [ebp - 0x80]
call fcn.10016b3c
mov ecx, dword [ebp + 0x790]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039bc2
add ebp, 0x794
leave
ret
Function at 0x1001c7fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.10039d10
push 0xffffffffffffffff
push 0x100576ac
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push 0x10060258
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001c8b8
push 0x10060290
lea ecx, [ebp - 0x10]
call fcn.1001060c
and dword [ebp - 4], 0
push 0x100602c8
lea ecx, [ebp - 0x14]
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001524
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1001c890
call fcn.10001441
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1001c89b
mov eax, dword [esi]
jmp 0x1001c89d
xor eax, eax
push eax
call fcn.1003b150
pop ecx
test esi, esi
je 0x1001c9b3
mov ecx, esi
call fcn.10001441
jmp 0x1001c9b3
xor eax, eax
push 0xffe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov dword [ebp - 0x18], 0x800
call fcn.10039d40
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x100602ac
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001c9a8
push str._WebJava_value:
lea ecx, [ebp - 0x14]
call fcn.1001060c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.10001309
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10001524
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1001c937
call fcn.10001441
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001c942
mov eax, dword [esi]
jmp 0x1001c944
xor eax, eax
push eax
call fcn.1003b150
pop ecx
lea eax, [ebp]
mov ecx, 0x10060334
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1001c979
test dx, dx
je 0x1001c975
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1001c979
add ecx, 4
add eax, 4
test dx, dx
jne 0x1001c953
xor eax, eax
jmp 0x1001c97e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001c99d
push str._System_WebJava_DISABLED
call fcn.1003b150
pop ecx
test esi, esi
je 0x1001c998
mov ecx, esi
call fcn.10001441
xor eax, eax
inc eax
jmp 0x1001c9b5
test esi, esi
je 0x1001c9a8
mov ecx, esi
call fcn.10001441
push str._System_WebJava_ENABLED
call fcn.1003b150
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.10039bc2
add ebp, 0x1004
leave
ret
Function at 0x1001c9d6
Capabilities:
Get file version info

Disassembly:
push 0x24
mov eax, 0x10057714
call fcn.10039bd1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sub.version.dll_GetFileVersionInfoSizeW
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x1001cb35
call dword [sym.imp.kernel32.dll_GetLastError]
push str.GetFileVersion_for__
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.1001060c
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001524
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x1001ca3c
call fcn.10001441
push str.__FAILED
lea ecx, [ebp - 0x14]
call fcn.1001060c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10001524
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x1001ca68
call fcn.10001441
lea ecx, [ebp - 0x14]
cmp esi, 2
jne 0x1001ca80
push str.__file_does_not_exist_
call fcn.1001060c
mov byte [ebp - 4], 3
jmp 0x1001cafa
push 0x10060978
call fcn.1001060c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.10001524
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x1001caa6
call fcn.10001441
push 0x13
pop eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.1000535c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.10001524
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x1001cadc
call fcn.10001441
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x10060988
lea ecx, [ebp - 0x14]
call fcn.1001060c
mov byte [ebp - 4], 7
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001524
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x1001cb12
call fcn.10001441
mov esi, dword [ebp - 0x10]
cmp esi, ebx
je 0x1001cb1d
mov eax, dword [esi]
jmp 0x1001cb1f
xor eax, eax
push eax
call fcn.1003b150
pop ecx
cmp esi, ebx
je 0x1001cb31
mov ecx, esi
call fcn.10001441
xor eax, eax
jmp 0x1001cb7d
push esi
call fcn.1003b150
pop ecx
mov edi, eax
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x1001cb7a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x1006098c
push edi
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
movzx edx, word [eax + 0xa]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
movzx edx, word [eax + 8]
mov dword [ecx + 4], edx
movzx eax, word [eax + 0xe]
mov dword [ecx + 8], eax
xor eax, eax
inc eax
call fcn.10039c70
ret