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

Disassembly:
push ebp
lea ebp, [esp - 0x944]
sub esp, 0x944
push 0xfffffffffffffffe
push 0x6d46adc8
push 0x6d4673b7
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6d46c188]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x940], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x94c]
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp + 0x540], bl
push 0x3ff
push ebx
lea eax, [ebp + 0x541]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov edi, 0x400
mov esi, dword [sym.imp.MSVCR100.dll_strcat_s]
cmp dword [ebp - 0x20], 3
jge 0x6d464596
mov byte [ebp + 0x140], 0
push dword [ebp - 0x28]
push edi
lea eax, [ebp + 0x140]
push eax
call esi
push 0x6d469c38
push edi
lea eax, [ebp + 0x140]
push eax
call esi
mov eax, dword [ebp - 0x20]
push dword [eax*4 + 0x6d46c10c]
push edi
lea eax, [ebp + 0x140]
push eax
call esi
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x6d46456b
mov byte [ebp + 0x540], 0
push dword [ebp - 0x28]
push edi
lea eax, [ebp + 0x540]
push eax
call esi
push 0x6d469c3c
push edi
lea eax, [ebp + 0x540]
push eax
call esi
lea eax, [ebp + 0x2c]
push eax
push edi
lea eax, [ebp + 0x540]
push eax
call esi
lea eax, [ebp + 0x540]
push eax
call fcn.6d4663b8
add esp, 0x28
test eax, eax
jne 0x6d464556
push 0x404
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x6d464537
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6d46c188
call sub.MSVCR100.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x6d4645a5
mov byte [eax], 0
lea ecx, [ebp + 0x540]
push ecx
push edi
push eax
call esi
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x400], ebx
mov ebx, eax
mov dword [ebp - 0x24], ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x6d4644ca
test ebx, ebx
je 0x6d46458e
push ebx
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [ebx + 0x400]
mov dword [ebp - 0x1c], eax
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
jmp 0x6d46456b
inc dword [ebp - 0x20]
jmp 0x6d464469
mov dword [ebp - 4], 0xfffffffe
call fcn.6d4645cb
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x940]
xor ecx, ebp
call fcn.6d46731e
add ebp, 0x944
leave
ret
Function at 0x6d46461e
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb94]
sub esp, 0xc14
mov eax, dword [0x6d46c188]
xor eax, ebp
mov dword [ebp + 0xb90], eax
mov eax, dword [ebp + 0xb9c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_sprintf_s]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push 0x6d469ca4
mov esi, 0x400
lea eax, [ebp - 0x70]
push esi
xor ebx, ebx
push eax
mov dword [ebp - 0x7c], ebx
call edi
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x70]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d46474e
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x390]
push eax
push ebx
push ebx
push 0x6d469cac
push dword [ebp - 0x78]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], ebx
jne 0x6d46474e
push str.binjava.exe
lea eax, [ebp + 0x390]
push eax
push 0x6d469cc8
lea eax, [ebp + 0x790]
push esi
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x14
lea eax, [ebp + 0x790]
push eax
call ebx
test eax, eax
je 0x6d46474e
push str.binclientjvm.dll
lea eax, [ebp + 0x390]
push eax
push 0x6d469ce4
lea eax, [ebp + 0x790]
push esi
push eax
call edi
add esp, 0x14
lea eax, [ebp + 0x790]
push eax
call ebx
mov dword [ebp - 0x74], eax
push str.bin_serverjvm.dll
lea eax, [ebp + 0x390]
push eax
push 0x6d469d00
lea eax, [ebp + 0x790]
push esi
push eax
call edi
add esp, 0x14
lea eax, [ebp + 0x790]
push eax
call ebx
cmp dword [ebp - 0x74], 0
jne 0x6d464747
test eax, eax
je 0x6d46474e
mov dword [ebp - 0x7c], 1
mov ecx, dword [ebp + 0xb90]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d46731e
add ebp, 0xb94
leave
ret
Function at 0x6d4649f5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x6d46c188]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x63]
push ebx
push eax
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x64], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x20019
push 0x6d469aec
push SysReAllocString
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.6d467610
lea ecx, [ebp - 0x74]
test eax, eax
je 0x6d464a6d
call fcn.6d4616c7
lea ecx, [ebp - 0x80]
call fcn.6d4616c7
jmp 0x6d464af9
push 0x2001f
push str.Classes
push dword [ebp - 0x80]
call fcn.6d467610
test eax, eax
je 0x6d464a88
lea ecx, [ebp - 0x74]
jmp 0x6d464a5b
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, 0x400
push esi
lea eax, [ebp - 0x64]
push eax
push ebx
jmp 0x6d464ade
push 0xa
lea eax, [ebp - 0x64]
push str.JavaPlugin
push eax
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x6d464ac5
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d461db8
test eax, eax
je 0x6d464ac8
inc dword [ebp - 0x68]
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x74]
call edi
test eax, eax
je 0x6d464a9d
lea ecx, [ebp - 0x74]
call fcn.6d4616c7
lea ecx, [ebp - 0x80]
call fcn.6d4616c7
pop edi
pop esi
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
pop ebx
call fcn.6d46731e
add ebp, 0x3a0
leave
ret
Function at 0x6d46561c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x6d46c188]
xor eax, ebp
mov dword [ebp + 0x390], eax
push esi
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor esi, esi
push esi
push 0x6d469c40
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d46571d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x7c], esi
push esi
jmp 0x6d4656ff
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x74], esi
jbe 0x6d4656ed
cmp byte [ebp + eax - 0x70], 0x2e
jne 0x6d46568e
inc ecx
cmp ecx, 1
jg 0x6d465699
inc eax
cmp eax, dword [ebp - 0x74]
jb 0x6d465681
cmp ecx, 1
jle 0x6d4656ed
push str.1.3.1
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x6d4656ed
lea eax, [ebp - 0x70]
push eax
call fcn.6d46461e
pop ecx
test eax, eax
je 0x6d4656ed
mov eax, dword [ebp - 0x74]
inc eax
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x74]
push 0x6d469c74
inc ecx
push ecx
push eax
mov dword [ebp - 0x80], eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x6d46c2dc
call fcn.6d465e62
inc dword [ebp - 0x7c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x400
call edi
test eax, eax
je 0x6d465678
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x390]
xor ecx, ebp
pop esi
call fcn.6d46731e
add ebp, 0x394
leave
ret
Function at 0x6d466733
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x6d46c188]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
push ebx
xor ebx, ebx
push esi
mov esi, 0x20019
push esi
push 0x6d46a408
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x50], ebx
call fcn.6d467610
test eax, eax
je 0x6d4667ce
lea ecx, [ebp - 0x74]
call fcn.6d4616c7
lea ecx, [ebp - 0x5c]
call fcn.6d4616c7
lea ecx, [ebp - 0x68]
call fcn.6d4616c7
lea ecx, [ebp - 0x80]
call fcn.6d4616c7
xor eax, eax
mov ecx, dword [ebp + 0x3b4]
pop esi
xor ecx, ebp
pop ebx
call fcn.6d46731e
add ebp, 0x3b8
leave
ret
push esi
push 0x6d46a414
push dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
call fcn.6d467610
test eax, eax
jne 0x6d466795
push esi
push 0x6d46a420
push dword [ebp - 0x68]
lea ecx, [ebp - 0x5c]
call fcn.6d467610
test eax, eax
je 0x6d46681c
lea ecx, [ebp - 0x74]
call fcn.6d4616c7
lea ecx, [ebp - 0x5c]
call fcn.6d4616c7
lea ecx, [ebp - 0x68]
call fcn.6d4616c7
lea ecx, [ebp - 0x80]
call fcn.6d4616c7
mov eax, ebx
jmp 0x6d4667b7
mov esi, 0x400
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x6d4667f8
push edi
inc dword [ebp - 0x50]
mov edi, dword [ebp + 0x3c0]
lea eax, [ebp - 0x4c]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x6d46686f
cmp cl, bl
je 0x6d46686b
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x6d46686f
add eax, 2
add edi, 2
cmp cl, bl
jne 0x6d46684f
xor eax, eax
jmp 0x6d466874
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea eax, [ebp - 0x4c]
je 0x6d46689d
push esi
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x6d466843
jmp 0x6d4668d3
push 0x20019
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.6d467610
test eax, eax
jne 0x6d4668d3
push str.UseNewJavaPlugin
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x50], ebx
call fcn.6d467610
test eax, eax
jne 0x6d4668d3
xor ebx, ebx
cmp dword [ebp - 0x50], 1
sete bl
pop edi
jmp 0x6d4667f8

Function at 0x6d46731e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d46c188]
jne 0x6d467328
repz ret
jmp fcn.6d4679b9
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x430a67ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430aa9f0]
jne 0x430a67c4
repz ret
jmp fcn.430a7df9
Function at 0x4012f6
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x406d78
call fcn.00401450
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x4083b0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4010b7
cmp eax, esi
jne 0x4010aa
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4010ba
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401091
xor esi, esi
inc esi
mov eax, dword [0x4083ac]
cmp eax, esi
jne 0x4010cd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4010fc
mov eax, dword [0x4083ac]
test eax, eax
jne 0x4010f6
mov dword [0x4083ac], esi
push 0x4051b8
push 0x4051ac
call section..text
pop ecx
pop ecx
test eax, eax
je 0x4010fc
jmp 0x401224
mov dword [0x40803c], esi
mov eax, dword [0x4083ac]
cmp eax, esi
jne 0x401120
push 0x4051a8
push 0x4051a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4083ac], 2
test ebx, ebx
jne 0x40112c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4083b4], 0
je 0x401150
push 0x4083b4
call fcn.004013e4
pop ecx
test eax, eax
je 0x401150
push 0
push 2
push 0
call dword [0x4083b4]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4011ac
test al, al
je 0x40116a
cmp dword [ebp - 0x1c], 0
jne 0x4011ac
mov al, byte [esi]
test al, al
je 0x40117a
cmp al, 0x20
ja 0x40117a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40116a
test byte [ebp - 0x3c], 1
je 0x401186
movzx eax, word [ebp - 0x38]
jmp 0x401189
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x408038], eax
cmp dword [0x40802c], 0
jne 0x401200
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x4011bb
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x4011ce
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401157
cmp dword [0x40803c], 0
jne 0x40120f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x408038]
jmp 0x401230
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401495
ret
call fcn.0040157f
jmp 0x401057
Function at 0x401b33
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ebp
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp]
mov esi, eax
lea edx, [edx*4 + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ecx
cmp dword [ebp], ecx
jle 0x401c04
sub esi, ebx
mov dword [esp + 0xc], esi
push edi
mov eax, dword [esi + ebx]
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push eax
push ecx
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x401ba1
xor ecx, ecx
mov edi, ecx
jmp 0x401bec
lea esi, [eax + 1]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor eax, eax
push eax
push eax
push esi
push edi
push 0xffffffffffffffff
push dword [esp + 0x2c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401be3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov edi, ecx
jmp 0x401be8
xor ecx, ecx
mov byte [edi + eax], cl
mov esi, dword [esp + 0x10]
mov dword [ebx], edi
add ebx, 4
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [ebp]
jl 0x401b81
mov ebx, dword [esp + 0x1c]
pop edi
mov eax, dword [ebp]
pop esi
pop ebp
mov dword [ebx + eax*4], ecx
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x40286a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, edx
push edi
push ebx
push eax
call esi
cmp dword [esp + 0x21c], 0
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x402929
push str._bin_server
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call esi
mov ebp, str.jvm.dll
lea eax, [esp + 0x114]
push ebp
push eax
call edi
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4029b1
push ebx
lea eax, [esp + 0x14]
push eax
call esi
push str._binclient
lea eax, [esp + 0x14]
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call esi
push ebp
lea eax, [esp + 0x118]
push eax
call edi
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4029b1
xor cl, cl
mov byte [esp + 0x10], cl
jmp 0x4029b5
push str._binclient
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call esi
mov ebp, str.jvm.dll
lea eax, [esp + 0x114]
push ebp
push eax
call edi
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4029b1
push ebx
lea eax, [esp + 0x14]
push eax
call esi
push str._bin_server
lea eax, [esp + 0x14]
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call esi
push ebp
lea eax, [esp + 0x118]
push eax
call edi
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx ecx, byte [esp + 0x10]
xor edx, edx
cmp eax, 0xffffffff
cmove ecx, edx
jmp 0x402920
mov cl, byte [esp + 0x10]
test cl, cl
je 0x4029ca
lea eax, [esp + 0x10]
push eax
push 0x408a00
call esi
xor eax, eax
inc eax
jmp 0x4029dd
push ebx
mov ebx, 0x408a00
push ebx
call esi
push str._binclient
push ebx
call edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4029e8
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x104
push 0
mov dword [esp + 0x20], edx
mov edi, ecx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
push 0
call ebp
push eax
call esi
mov edi, eax
xor esi, esi
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402ae9
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
push edi
push esi
push esi
push str.CurrentVersion
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ae9
push dword [esp + 0x10]
call ebp
push 0x405418
mov dword [esp + 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call esi
push edi
push ebx
call esi
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ae9
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
push edi
push esi
push esi
push str.JavaHome
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ae9
push dword [esp + 0x10]
call ebp
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
jmp 0x402b13
cmp dword [esp + 0x10], 0
je 0x402af6
push dword [esp + 0x10]
call ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
push ebx
push 0
call edi
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x402bc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402be3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x402be3
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x402be7
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4055c8
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402d13
mov ebx, dword [ebp + 8]
test byte [ebp - 0x254], 0x10
je 0x402cf6
push 0x405570
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402cf6
push 0x4055cc
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402cf6
push dword [ebp - 8]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x405418
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test ebx, ebx
je 0x402cc3
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add dword [ebx], eax
test esi, esi
je 0x402ce5
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
push ebx
lea edx, [ebp - 0x114]
mov ecx, esi
call fcn.00402be7
pop ecx
mov esi, eax
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c3c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d1c
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, edx
push edi
test ecx, ecx
je 0x402dc3
cmp byte [ecx], 0
je 0x402dc3
call fcn.00402ec4
mov edi, eax
test edi, edi
jne 0x402d48
xor eax, eax
jmp 0x402dd7
push esi
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebp, eax
xor ebx, ebx
mov dword [esp + 0x20], ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x402d41
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
cmp dword [esi], ebx
jle 0x402db3
mov ebx, edi
sub ebp, edi
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + ebp]
call fcn.00402f2d
mov dword [ebx], eax
inc edi
lea ebx, [ebx + 4]
cmp edi, dword [esi]
jl 0x402d97
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ebp
mov dword [edi + eax*4], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x402dd7
push 1
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [esi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret