joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100160c4
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x974
mov eax, dword [0x1006d1fc]
xor eax, esp
mov dword [esp + 0x970], eax
push ebx
push ebp
xor ebp, ebp
mov ebx, 0x400
push esi
mov esi, dword [esp + 0x99c]
inc ebp
push edi
mov edi, dword [esp + 0x988]
test esi, esi
jne 0x1001611b
push ebx
lea eax, [esp + 0x584]
push eax
push ebp
push edi
call fcn.1001b92e
add esp, 0x10
test eax, eax
je 0x1001611b
mov eax, str._s_ssvagent.exe
lea esi, [esp + 0x580]
jmp 0x10016130
test edi, edi
jne 0x10016280
test esi, esi
je 0x10016280
mov eax, str._s_bin_ssvagent.exe
push esi
push eax
lea eax, [esp + 0x188]
push ebx
push eax
call fcn.10008840
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x194]
push eax
call fcn.1002a782
add esp, 0x18
test eax, eax
jne 0x10016280
cmp dword [esp + 0x98c], 0
mov ecx, str.__new
mov byte [esp + 0x7c], al
mov ebx, 0x104
mov eax, str.__old
cmovne eax, ecx
push eax
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.100244bc
mov edi, dword [esp + 0x99c]
add esp, 0xc
mov esi, dword [esp + 0x99c]
test edi, edi
jne 0x100161a3
test esi, esi
je 0x100161b9
push str.__high
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.100244bc
add esp, 0xc
cmp dword [esp + 0x998], 0
je 0x100161d9
push str.__settreatas
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.100244bc
add esp, 0xc
test esi, esi
je 0x100161f3
push str.__regdeploy
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.100244bc
add esp, 0xc
push 0x3c
pop esi
push esi
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10022500
add esp, 0xc
mov dword [esp + 0x10], esi
lea eax, [esp + 0x7c]
mov dword [esp + 0x24], eax
test edi, edi
je 0x1001622b
call fcn.1001ae83
test eax, eax
mov ecx, str.runas
cmove ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x994], 0
push 0x40
pop ecx
cmovne eax, ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x180]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10016280
cmp dword [esp + 0x48], 0
je 0x1001627c
push 0xffffffffffffffff
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x10016282
xor eax, eax
mov ecx, dword [esp + 0x980]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001efb2
add esp, 0x974
ret
Function at 0x10016481
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x948
mov eax, dword [0x1006d1fc]
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.10022500
mov ebx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
mov edi, 0x1006d1d8
test esi, esi
jne 0x100165a7
push ebp
mov ebx, 0x400
mov byte [esp + 0x558], 0
lea eax, [esp + 0x558]
push ebx
push eax
call fcn.100244bc
push 0x10053fa0
lea eax, [esp + 0x564]
push ebx
push eax
call fcn.100244bc
push dword [edi]
lea eax, [esp + 0x570]
push ebx
push eax
call fcn.100244bc
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 0x10016598
push ebp
lea eax, [esp + 0x158]
mov byte [esp + 0x158], 0
push 0x400
push eax
call fcn.100244bc
push 0x10053fa4
lea eax, [esp + 0x164]
push 0x400
push eax
call fcn.100244bc
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x170]
push 0x400
push eax
call fcn.100244bc
lea eax, [esp + 0x178]
push eax
call fcn.1001bb9d
add esp, 0x28
test eax, eax
je 0x10016595
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016526
jmp 0x10016598
xor esi, esi
inc esi
add edi, 4
cmp edi, 0x1006d1e4
jl 0x100164c2
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.1001efb2
add esp, 0x948
ret
Function at 0x10017747
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x7c0]
sub esp, 0x840
mov eax, dword [0x1006d1fc]
xor eax, ebp
mov dword [ebp + 0x7bc], eax
push ebx
push esi
push edi
call fcn.10017968
xor esi, esi
lea ecx, [ebp - 0x80]
mov edi, 0x20019
mov dword [ebp - 0x80], esi
push edi
push 0x10053ed0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
call fcn.10006af6
test eax, eax
jne 0x10017932
push edi
push 0x10053edc
push dword [ebp - 0x80]
lea ecx, [ebp - 0x74]
call fcn.10006af6
test eax, eax
jne 0x10017932
push edi
push 0x10053ee8
push dword [ebp - 0x74]
lea ecx, [ebp - 0x68]
call fcn.10006af6
test eax, eax
jne 0x10017932
mov ebx, 0x400
lea eax, [ebp + 0x3bc]
push ebx
push esi
push eax
mov edi, esi
call fcn.10022500
push ebx
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.10022500
add esp, 0x18
lea eax, [ebp + 0x3bc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push eax
push esi
jmp 0x10017925
lea ecx, [ebp + 0x3bc]
mov edx, esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001781b
sub ecx, esi
lea esi, [ebp - 0x44]
mov al, byte [ebp + edx + 0x3bc]
cmp al, 0x2e
je 0x10017835
mov byte [esi], al
inc esi
inc edx
cmp edx, ecx
jbe 0x10017827
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x5c], str.NODOTVERSION
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001784f
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x10017869
xor esi, esi
mov eax, esi
jmp 0x10017882
lea eax, [esi + esi]
call fcn.1001f1e0
mov eax, esp
lea ecx, [ebp - 0x44]
push 3
push esi
push ecx
push eax
call fcn.10003a37
xor esi, esi
push 0x50
mov dword [ebp - 0x58], eax
pop eax
mov dword [ebp - 0x54], str.CLSID_STRING
call fcn.1001f1e0
mov eax, esp
push 3
push 0x27
push 0x10053914
push eax
call fcn.10003a37
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call fcn.1001ad82
test eax, eax
je 0x100178c9
lea eax, [ebp - 0x5c]
push eax
push 1
push 0x67
push 0x1006f188
call fcn.1000e83a
call fcn.1001ae83
test eax, eax
je 0x100178db
cmp dword [ebp + 0x7cc], 0
je 0x100178ed
lea eax, [ebp - 0x5c]
push eax
push 1
push 0x68
push 0x1006f188
call fcn.1000e83a
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x400
lea eax, [ebp + 0x3bc]
push esi
push eax
call fcn.10022500
push 0x400
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.10022500
add esp, 0x18
lea eax, [ebp + 0x3bc]
inc edi
push 0x400
push eax
push edi
push dword [ebp - 0x68]
call ebx
test eax, eax
je 0x10017810
lea ecx, [ebp - 0x68]
call fcn.10004053
lea ecx, [ebp - 0x74]
call fcn.10004053
lea ecx, [ebp - 0x80]
call fcn.10004053
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7bc]
xor ecx, ebp
call fcn.1001efb2
add ebp, 0x7c0
leave
ret
Function at 0x10017968
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x1006d1fc]
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.10022500
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 0x10053eb0
push SysReAllocString
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.10006af6
test eax, eax
jne 0x10017a57
push 0x2001f
push str.Classes
push dword [ebp - 0x80]
lea ecx, [ebp - 0x74]
call fcn.10006af6
test eax, eax
jne 0x10017a49
push 0x400
lea eax, [ebp - 0x68]
push eax
push esi
mov esi, dword [ebp - 0x74]
jmp 0x10017a3c
push 0xa
lea eax, [ebp - 0x68]
push str.JavaPlugin
push eax
call fcn.10024520
add esp, 0xc
test eax, eax
jne 0x10017a1e
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x74]
call fcn.1000da07
mov esi, dword [ebp - 0x74]
test eax, eax
je 0x10017a1f
inc edi
push 0x400
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10022500
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 0x100179f4
jmp 0x10017a4c
mov esi, dword [ebp - 0x74]
test esi, esi
je 0x10017a57
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x80], 0
pop edi
pop esi
je 0x10017a68
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.1001efb2
add ebp, 0x39c
leave
ret
Function at 0x10017a7d
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0x960
push 0x10069948
call fcn.1001f190
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.10022500
add esp, 0xc
and dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x96c], ebx
cmp ebx, 3
jge 0x10017c32
mov byte [ebp - 0x81c], 0
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.100244bc
push 0x10053fa8
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.100244bc
push dword [ebx*4 + 0x1006d1d8]
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.100244bc
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 0x10017bfe
mov byte [ebp - 0x41c], 0
push dword [ebp - 0x964]
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.100244bc
push 0x10053fac
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.100244bc
lea eax, [ebp - 0x930]
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.100244bc
lea eax, [ebp - 0x41c]
push eax
call fcn.1001bb9d
add esp, 0x28
test eax, eax
jne 0x10017be8
push 0x404
call fcn.1001f23b
pop ecx
mov dword [ebp - 0x968], eax
test eax, eax
jne 0x10017bbc
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1006d1fc
call fcn.10022a00
add esp, 0xc
xor eax, eax
jmp 0x10017c41
mov byte [eax], 0
lea ecx, [ebp - 0x41c]
push ecx
push 0x400
push eax
call fcn.100244bc
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 0x10017b2e
test edi, edi
je 0x10017c26
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [edi + 0x400]
push 0x404
push edi
call fcn.1001ec7c
pop ecx
pop ecx
mov edi, esi
mov dword [ebp - 0x960], edi
jmp 0x10017bfe
inc ebx
mov esi, dword [ebp - 0x964]
jmp 0x10017ab7
mov dword [ebp - 4], 0xfffffffe
call fcn.10017c57
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 0x10017cc2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x1006d1fc]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push ebx
lea eax, [ebp - 0x7c]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x10053fb0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017dbb
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 0x10017d99
mov eax, ebx
mov ecx, ebx
cmp dword [ebp - 0x78], eax
jbe 0x10017d8b
cmp byte [ebp + ecx - 0x74], 0x2e
jne 0x10017d2d
inc eax
cmp eax, 1
jg 0x10017d38
inc ecx
cmp ecx, dword [ebp - 0x78]
jb 0x10017d20
cmp eax, 1
jle 0x10017d8b
push 0x10053fdc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
js 0x10017d8b
lea eax, [ebp - 0x74]
push eax
call fcn.1001bebc
pop ecx
test eax, eax
je 0x10017d8b
mov eax, dword [ebp - 0x78]
inc eax
push eax
call fcn.1001f26b
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x80], eax
push ecx
mov ecx, dword [ebp - 0x78]
push 0x10053fe4
inc ecx
push ecx
push eax
call fcn.10008840
add esp, 0x14
lea eax, [ebp - 0x80]
mov ecx, 0x1006f1b8
push eax
call fcn.1001847e
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 0x10017d17
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.1001efb2
add ebp, 0x390
leave
ret

Function at 0x10018050
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10018099
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 0x1001a840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd6
cmp word [ebp + 0xc], ax
jne 0x1001a866
xor edx, edx
lea eax, [ebp + 0xc]
push eax
push edx
push ecx
push 0x1001a86c
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 0x1001a92a
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x454
mov eax, dword [0x1006d1fc]
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 [0x10049d40]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x10049d58]
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 [0x10049d58]
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 [0x10049d60]
divsd xmm0, qword [0x10049d50]
addsd xmm0, qword [0x10049d48]
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.10024520
test eax, eax
mov ecx, 0x10058ae8
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.10024462
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.1001efb2
add esp, 0x454
ret 0x14
Function at 0x1001ae83
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1006d1fc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1006f1d8], 0
je 0x1001aea6
mov eax, dword [0x1006f1dc]
jmp 0x1001aefa
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.10022500
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 0x1001aeec
cmp dword [ebp - 0x94], 6
jb 0x1001aeec
mov esi, eax
mov dword [0x1006f1d8], eax
mov eax, esi
mov dword [0x1006f1dc], esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001efb2
leave
ret

Function at 0x1001b368
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10045b6f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1006d1fc]
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 0x1001b45a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10018676
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1001b3e7
call fcn.1000d527
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0x218]
push edi
call fcn.10029d23
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1001b430
call fcn.1000e502
jmp 0x1001b430
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.1001efb2
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.1001e545
pop ecx
pop ecx
push ebx
push esi
call fcn.10020150
int3
Function at 0x1001b46f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10045ba6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1006d1fc]
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 0x1001b561
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10018676
mov ecx, dword [eax]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1001b4ee
call fcn.1000d527
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0x218]
push edi
call fcn.10029d23
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1001b537
call fcn.1000e502
jmp 0x1001b537
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.1001efb2
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.1001e545
pop ecx
pop ecx
push ebx
push esi
call fcn.10020150
int3

Function at 0x1001bcfc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006d1fc]
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.10022500
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001bd7c
cmp eax, edi
ja 0x1001bd7c
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10022500
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x1005c08c
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 0x1001bd7e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001efb2
leave
ret

Function at 0x1001bd9e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1001bdab
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 0x1001be1d
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.10022500
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 0x1001beb5
cmp dword [ebp + 8], ebx
je 0x1001beb5
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 0x1001beb5
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 0x1001beb7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001bebc
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov eax, 0x180c
call fcn.1001f210
mov eax, dword [0x1006d1fc]
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.10022500
push esi
push 0x1005c124
push 0x1005c150
lea eax, [esp + 0x102c]
push ebp
push eax
call fcn.10008840
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 0x1001c006
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
push eax
lea eax, [esp + 0x818]
push eax
push edi
push edi
push 0x1005c158
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 0x1001c006
push ebx
push ebp
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.10022500
push str.binjava.exe
lea eax, [esp + 0x828]
push eax
push 0x1005c174
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.10008840
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x38]
add esp, 0x20
push eax
call ebx
test eax, eax
je 0x1001c005
push str.binclientjvm.dll
lea eax, [esp + 0x81c]
push eax
push 0x1005c190
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.10008840
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 0x1005c1ac
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.10008840
add esp, 0x14
lea eax, [esp + 0x18]
push eax
call ebx
test esi, esi
jne 0x1001c002
test eax, eax
je 0x1001c005
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.1001efb2
add esp, 0x180c
ret

Function at 0x1001c232
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x1001c256
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