joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100164c3
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x948
mov eax, dword [0x1006b1fc]
xor eax, esp
mov dword [esp + 0x944], eax
push ebx
push ebp
mov ebp, dword [esp + 0x954]
lea eax, [esp + 0x14c]
push esi
push edi
push 0x400
push 0
push eax
call fcn.10022670
mov ebx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
mov edi, 0x1006b1d8
test esi, esi
jne 0x100165e9
push ebp
mov ebx, 0x400
mov byte [esp + 0x558], 0
lea eax, [esp + 0x558]
push ebx
push eax
call fcn.10024492
push 0x10050b90
lea eax, [esp + 0x564]
push ebx
push eax
call fcn.10024492
push dword [edi]
lea eax, [esp + 0x570]
push ebx
push eax
call fcn.10024492
add esp, 0x24
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x558]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100165da
push ebp
lea eax, [esp + 0x158]
mov byte [esp + 0x158], 0
push 0x400
push eax
call fcn.10024492
push 0x10050b94
lea eax, [esp + 0x164]
push 0x400
push eax
call fcn.10024492
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x170]
push 0x400
push eax
call fcn.10024492
lea eax, [esp + 0x178]
push eax
call fcn.1001bc82
add esp, 0x28
test eax, eax
je 0x100165d7
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016568
jmp 0x100165da
xor esi, esi
inc esi
add edi, 4
cmp edi, 0x1006b1e4
jl 0x10016504
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x954]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001f12f
add esp, 0x948
ret
Function at 0x100179cc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x1006b1fc]
xor eax, ebp
mov dword [ebp + 0x398], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x68]
push 0x400
push esi
push eax
mov edi, esi
call fcn.10022670
add esp, 0xc
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
push 0x20019
push 0x10050aa0
push SysReAllocStringLen
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.10006b74
test eax, eax
jne 0x10017abb
push 0x2001f
push str.Classes
push dword [ebp - 0x80]
lea ecx, [ebp - 0x74]
call fcn.10006b74
test eax, eax
jne 0x10017aad
push 0x400
lea eax, [ebp - 0x68]
push eax
push esi
mov esi, dword [ebp - 0x74]
jmp 0x10017aa0
push 0xa
lea eax, [ebp - 0x68]
push str.JavaPlugin
push eax
call fcn.10024500
add esp, 0xc
test eax, eax
jne 0x10017a82
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x74]
call fcn.1000da42
mov esi, dword [ebp - 0x74]
test eax, eax
je 0x10017a83
inc edi
push 0x400
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10022670
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x400
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x10017a58
jmp 0x10017ab0
mov esi, dword [ebp - 0x74]
test esi, esi
je 0x10017abb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x80], 0
pop edi
pop esi
je 0x10017acc
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.1001f12f
add ebp, 0x39c
leave
ret
Function at 0x10017ae1
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0x960
push 0x10067c38
call fcn.1001f2e0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x964], esi
xor edi, edi
mov dword [ebp - 0x960], edi
push 0x400
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.10022670
add esp, 0xc
and dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x96c], ebx
cmp ebx, 3
jge 0x10017c96
mov byte [ebp - 0x81c], 0
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.10024492
push 0x10050b98
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.10024492
push dword [ebx*4 + 0x1006b1d8]
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.10024492
add esp, 0x24
lea eax, [ebp - 0x95c]
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x970], esi
cmp esi, 0xffffffff
je 0x10017c62
mov byte [ebp - 0x41c], 0
push dword [ebp - 0x964]
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.10024492
push 0x10050b9c
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.10024492
lea eax, [ebp - 0x930]
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.10024492
lea eax, [ebp - 0x41c]
push eax
call fcn.1001bc82
add esp, 0x28
test eax, eax
jne 0x10017c4c
push 0x404
call fcn.1001f3ab
pop ecx
mov dword [ebp - 0x968], eax
test eax, eax
jne 0x10017c20
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1006b1fc
call fcn.10022b70
add esp, 0xc
xor eax, eax
jmp 0x10017ca5
mov byte [eax], 0
lea ecx, [ebp - 0x41c]
push ecx
push 0x400
push eax
call fcn.10024492
add esp, 0xc
mov eax, dword [ebp - 0x968]
mov dword [eax + 0x400], edi
mov edi, eax
mov dword [ebp - 0x960], edi
lea eax, [ebp - 0x95c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10017b92
test edi, edi
je 0x10017c8a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [edi + 0x400]
push 0x404
push edi
call fcn.1001edf9
pop ecx
pop ecx
mov edi, esi
mov dword [ebp - 0x960], edi
jmp 0x10017c62
inc ebx
mov esi, dword [ebp - 0x964]
jmp 0x10017b1b
mov dword [ebp - 4], 0xfffffffe
call fcn.10017cbb
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10017d26
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x1006b1fc]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push ebx
lea eax, [ebp - 0x7c]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x10050ba0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017e1f
push esi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
mov esi, ebx
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
jmp 0x10017dfd
mov eax, ebx
mov ecx, ebx
cmp dword [ebp - 0x78], eax
jbe 0x10017def
cmp byte [ebp + ecx - 0x74], 0x2e
jne 0x10017d91
inc eax
cmp eax, 1
jg 0x10017d9c
inc ecx
cmp ecx, dword [ebp - 0x78]
jb 0x10017d84
cmp eax, 1
jle 0x10017def
push 0x10050bcc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
js 0x10017def
lea eax, [ebp - 0x74]
push eax
call fcn.1001bfb6
pop ecx
test eax, eax
je 0x10017def
mov eax, dword [ebp - 0x78]
inc eax
push eax
call fcn.1001f3db
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x80], eax
push ecx
mov ecx, dword [ebp - 0x78]
push 0x10050bd4
inc ecx
push ecx
push eax
call fcn.10008858
add esp, 0x14
lea eax, [ebp - 0x80]
mov ecx, 0x1006d1b8
push eax
call fcn.1001859d
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
inc esi
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10017d7b
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop ebx
call fcn.1001f12f
add ebp, 0x390
leave
ret

Function at 0x100180b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREJavaSoftJava_Runtime_EnvironmentSecurity_Baseline
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100180fd
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x1001a953
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd6
cmp word [ebp + 0xc], ax
jne 0x1001a979
xor edx, edx
lea eax, [ebp + 0xc]
push eax
push edx
push ecx
push 0x1001a97f
push edx
push edx
mov dword [ebp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
pop ebp
ret 0x10

Function at 0x1001aa3d
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x454
mov eax, dword [0x1006b1fc]
xor eax, esp
mov dword [esp + 0x450], eax
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [esp + 0x464]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0x58
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
push dword [esp + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
call esi
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10047d40]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x10047d58]
cvttss2si eax, xmm0
mov dword [esp + 0xc], eax
imul eax, dword [esp + 0x46c], 0xa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, dword [0x10047d58]
cvttss2si eax, xmm0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DPtoLP]
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
push 0x400
andps xmm0, xmmword [0x10047d60]
divsd xmm0, qword [0x10047d50]
addsd xmm0, qword [0x10047d48]
cvttsd2si eax, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x470], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
setne byte [esp + 0x35]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x474]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x5c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 5
lea eax, [esp + 0x5c]
push str.Japan
push eax
call fcn.10024500
test eax, eax
mov ecx, 0x10055634
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.10024438
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esp + 0x458]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1001f12f
add esp, 0x454
ret 0x14
Function at 0x1001af96
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1006b1fc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1006d1d8], 0
je 0x1001afb9
mov eax, dword [0x1006d1dc]
jmp 0x1001b00d
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.10022670
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
inc eax
cmp dword [ebp - 0x88], 2
jne 0x1001afff
cmp dword [ebp - 0x94], 6
jb 0x1001afff
mov esi, eax
mov dword [0x1006d1d8], eax
mov eax, esi
mov dword [0x1006d1dc], esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f12f
leave
ret

Function at 0x1001b44d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x100439cf
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1006b1fc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1001b53f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.100186d1
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1001b4cc
call fcn.1000d560
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0x218]
push edi
call fcn.10028591
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1001b515
call fcn.1000e53d
jmp 0x1001b515
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1001f12f
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.1001e6c0
pop ecx
pop ecx
push ebx
push esi
call fcn.100202c0
int3
Function at 0x1001b554
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10043a06
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1006b1fc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1001b646
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.100186d1
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1001b5d3
call fcn.1000d560
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0x218]
push edi
call fcn.10028591
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1001b61c
call fcn.1000e53d
jmp 0x1001b61c
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1001f12f
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.1001e6c0
pop ecx
pop ecx
push ebx
push esi
call fcn.100202c0
int3

Function at 0x1001bdf6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006b1fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
push edi
push 0
push eax
call fcn.10022670
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001be76
cmp eax, edi
ja 0x1001be76
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10022670
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x10058b34
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1001be78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001f12f
leave
ret

Function at 0x1001be98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1001bea5
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebp
ret
Function at 0x1001bf17
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.10022670
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x14]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
xor edi, edi
lea eax, [ebp - 4]
inc edi
push eax
push 0x2000000
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1001bfaf
cmp dword [ebp + 8], ebx
je 0x1001bfaf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000008
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1001bfaf
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
jmp 0x1001bfb1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001bfb6
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov eax, 0x180c
call fcn.1001f380
mov eax, dword [0x1006b1fc]
xor eax, esp
mov dword [esp + 0x1808], eax
push ebp
push esi
mov esi, dword [esp + 0x1818]
lea eax, [esp + 0x1010]
push edi
mov ebp, 0x800
xor edi, edi
push ebp
push edi
push eax
call fcn.10022670
push esi
push 0x10058bc8
push 0x10058bf4
lea eax, [esp + 0x102c]
push ebp
push eax
call fcn.10008858
add esp, 0x20
lea eax, [esp + 0xc]
push eax
push 0x20019
push edi
lea eax, [esp + 0x1020]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c100
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
push eax
lea eax, [esp + 0x818]
push eax
push edi
push edi
push 0x10058bfc
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001c100
push ebx
push ebp
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.10022670
push str.binjava.exe
lea eax, [esp + 0x828]
push eax
push 0x10058c18
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.10008858
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x38]
add esp, 0x20
push eax
call ebx
test eax, eax
je 0x1001c0ff
push str.binclientjvm.dll
lea eax, [esp + 0x81c]
push eax
push 0x10058c34
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.10008858
add esp, 0x14
lea eax, [esp + 0x18]
push eax
call ebx
mov esi, eax
lea eax, [esp + 0x818]
push str.bin_serverjvm.dll
push eax
push 0x10058c50
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.10008858
add esp, 0x14
lea eax, [esp + 0x18]
push eax
call ebx
test esi, esi
jne 0x1001c0fc
test eax, eax
je 0x1001c0ff
xor edi, edi
inc edi
pop ebx
mov ecx, dword [esp + 0x1814]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1001f12f
add esp, 0x180c
ret

Function at 0x1001c356
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x1001c37a
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x1001c5ec
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x1006b1fc]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x818]
lea eax, [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x81c]
mov ebp, 0x400
push edi
mov edi, dword [esp + 0x828]
push ebp
push 0
push eax
call fcn.10022670
push esi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.10008858
add esp, 0x1c
lea eax, [esp + 0x10]
neg edi
sbb edi, edi
push eax
push 0x20019
push 0
lea eax, [esp + 0x24]
add edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, eax
test ecx, ecx
je 0x1001c671
xor eax, eax
cmp ecx, 2
sete al
jmp 0x1001c6bf
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
lea eax, [esp + 0x41c]
push eax
push 0x1005836e
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [esp + 0x10]
test eax, eax
je 0x1001c6a3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1001c6bf
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x418]
push eax
push ebx
call fcn.100282dc
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001f12f
add esp, 0x80c
ret

Function at 0x1001d044
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x10043a99
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1006b1fc]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10058f00
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1002f4d2
add esp, 0xc
test eax, eax
jne 0x1001d15d
push dword [ebp - 0x18]
call fcn.10024031
cmp dword [0x1006d1c4], 0
pop ecx
je 0x1001d0b4
xor eax, eax
inc eax
jmp 0x1001d15f
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
ja 0x1001d15d
test eax, eax
je 0x1001d15d
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000c8f6
xor ebx, ebx
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
mov dword [ebp - 4], ebx
call fcn.1000c8f6
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.1001881a
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x1001d111
call fcn.1000e53d
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1001d121
mov ecx, esi
call fcn.1000d560
mov ebx, eax
push 0x10058f2c
push ebx
push 0x1006d1c4
call fcn.1002909f
add esp, 0xc
neg eax
sbb edi, edi
test esi, esi
je 0x1001d158
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1001d158
mov ecx, esi
call fcn.1000ec03
push 0xc
push esi
call fcn.1001edf9
pop ecx
pop ecx
lea eax, [edi + 1]
jmp 0x1001d15f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.1001f12f
add ebp, 0x108
leave
ret
Function at 0x1001d605
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.1001d90a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push dword [0x1006b1f0]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001d644
xor eax, eax
jmp 0x1001d669
push edi
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001d65e
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret