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

Disassembly:
test eax, eax
je 0x401de0
push ebp
mov edx, 0x40b06e
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x260
call sym._path_combine.part.0
mov edi, eax
test eax, eax
je 0x401daf
lea eax, [ebp - 0x25c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], edi
mov dword [ebp - 0x260], eax
call eax
cmp esi, 0xffffffff
je 0x401da3
lea edi, [ebp - 0x230]
mov dword [esp + 4], 0x40b072
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x401d7d
mov dword [esp + 4], 0x40b076
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x401d7d
mov edx, edi
mov eax, ebx
call sym._path_combine.part.0
test eax, eax
je 0x401d7d
test byte [ebp - 0x25c], 0x10
je 0x401dc0
mov dword [ebp - 0x264], eax
call sym._delete_directory.isra.0
mov edx, dword [ebp - 0x264]
mov dword [esp], edx
mov eax, dword [ebp - 0x260]
call eax
lea eax, [ebp - 0x25c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401d21
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [ebp - 0x264], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x264]
sub esp, 4
jmp 0x401d72
ret
Function at 0x401fc0
Capabilities:
Extract cabinet on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x18]
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], sym._cabinet_seek
mov dword [esp + 0x14], sym._cabinet_close
mov dword [esp + 0x10], sym._cabinet_write
mov dword [esp + 0xc], sym._cabinet_read
mov dword [esp + 8], sym._cabinet_open
mov dword [esp + 4], sym._cabinet_free
mov dword [esp], sym._cabinet_alloc
call sym._FDICreate
test eax, eax
je 0x402120
mov ebx, eax
test esi, esi
je 0x402130
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x24], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov dword [ebp - 0x20], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x402130
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], sym._cabinet_notify
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._FDICopy
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call sym._FDIDestroy
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x402106
Function at 0x4029a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4029f8
cmp byte [esi + ebx - 1], 0xa
je 0x4029cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40a118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x406390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
call sym._expand_expression.isra.0
mov ecx, dword [edi + 0x10]
mov ebx, eax
test ecx, ecx
je 0x4063f8
test eax, eax
je 0x4064b0
cmp word [ebx], 0
mov eax, ebx
je 0x4064c0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4063c8
sub eax, ebx
add eax, 2
mov edx, dword [ebp + 8]
test edx, edx
je 0x406405
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
jne 0x4063b9
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
jne 0x4063dd
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
je 0x4063dd
xor esi, esi
test byte [0x40a030], 2
je 0x4063e2
mov esi, dword [edi + 8]
test esi, esi
je 0x4064df
mov eax, esi
shr eax, 0x10
je 0x4064ca
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40b015
test edx, edx
jne 0x40647b
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], str.Failed_to_set_registry_key__s_n
mov dword [esp + 8], str.install_registry_string
mov dword [esp + 4], 0x40a030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4063e2
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x4063d6
movzx esi, si
mov dword [esp], 0x40b008
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40647b
mov eax, 0x40b00e
jmp 0x40647b
Function at 0x4080b0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x254]
lea esi, [ebp - 0x258]
push ebx
mov edi, edx
lea ebx, [ebp - 0x214]
sub esp, 0x28c
mov dword [ebp - 0x270], 1
rep stosd dword es:[edi], eax
mov dword [esp], ebx
mov dword [ebp - 0x258], 0x44
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.wusa.exe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x268]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x408200
test byte [0x40a030], 8
jne 0x40824a
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0x270]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x268]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
push edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x264]
push ecx
mov dword [esp], eax
call ebx
push ebx
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov eax, dword [ebp - 0x270]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
test byte [0x40a030], 2
je 0x4081df
mov eax, dword fs:[0x18]
or edx, 0xffffffff
mov esi, dword [eax + 0x34]
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Failed_to_restart_64_bit__s__err__lu_n
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x40a030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4081df
or edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x40a030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40818d
Function at 0x409640
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x1000269d
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_RegSetValueExA]
ret 8

Function at 0x100026eb
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x100026fc
push 0xd
pop eax
jmp 0x10002726
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x100026ff
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10002cb1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
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.10010c6c
mov ebx, eax
cmp ebx, esi
je 0x10002d24
lea ecx, [ebp - 0x74]
call fcn.1000133f
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002d3c
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.10002cb1
cmp eax, esi
jne 0x10002d6e
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], 0x100
call ebx
test eax, eax
je 0x10002d2c
lea ecx, [ebp - 0x74]
call fcn.1000133f
push dword [ebp - 0x78]
mov ecx, edi
call fcn.100025c6
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.1000133f
mov eax, esi
jmp 0x10002d0a
Function at 0x10005086
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8f4]
sub esp, 0x974
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x8f0], eax
push ebx
mov ebx, dword [ebp + 0x914]
push esi
mov esi, dword [ebp + 0x8fc]
push edi
mov edi, 0x400
test ebx, ebx
jne 0x100050d8
push edi
lea eax, [ebp - 0x14]
push eax
push 1
push esi
call fcn.10010c6c
add esp, 0x10
test eax, eax
je 0x100050d8
lea eax, [ebp - 0x14]
push eax
push str._s_ssvagent.exe
jmp 0x100050ee
test esi, esi
jne 0x10005226
test ebx, ebx
je 0x10005226
push ebx
push str._s_bin_ssvagent.exe
lea eax, [ebp + 0x3ec]
push edi
push eax
call fcn.10010c6c
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x3ec]
push eax
call fcn.10010c6c
pop ecx
pop ecx
test eax, eax
jne 0x10005226
xor edi, edi
mov byte [ebp + 0x7ec], al
mov esi, 0x104
lea eax, [ebp + 0x7ec]
cmp dword [ebp + 0x900], edi
je 0x1000513a
push str.__new
jmp 0x1000513f
push str.__old
push esi
push eax
call fcn.10010c6c
add esp, 0xc
cmp dword [ebp + 0x904], edi
jne 0x10005159
cmp dword [ebp + 0x910], edi
je 0x1000516e
push str.__high
lea eax, [ebp + 0x7ec]
push esi
push eax
call fcn.10010c6c
add esp, 0xc
cmp dword [ebp + 0x90c], edi
je 0x1000518b
push str.__settreatas
lea eax, [ebp + 0x7ec]
push esi
push eax
call fcn.10010c6c
add esp, 0xc
cmp dword [ebp + 0x910], edi
je 0x100051a8
push str.__regdeploy
lea eax, [ebp + 0x7ec]
push esi
push eax
call fcn.10010c6c
add esp, 0xc
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.1000c3a0
add esp, 0xc
lea eax, [ebp + 0x7ec]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], eax
cmp dword [ebp + 0x904], edi
je 0x100051dd
call fcn.10010c6c
test eax, eax
je 0x100051dd
mov dword [ebp - 0x74], str.runas
cmp dword [ebp + 0x908], edi
je 0x100051ec
mov dword [ebp - 0x7c], 0x40
lea eax, [ebp + 0x3ec]
mov dword [ebp - 0x70], eax
xor esi, esi
lea eax, [ebp - 0x80]
inc esi
push eax
mov dword [ebp - 0x64], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10005226
cmp dword [ebp - 0x48], edi
je 0x10005222
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
jmp 0x10005228
xor eax, eax
mov ecx, dword [ebp + 0x8f0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x8f4
leave
ret
Function at 0x1000533d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8d0]
sub esp, 0x950
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x8cc], eax
mov eax, dword [ebp + 0x8d8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x4cd]
push ebx
push eax
mov byte [ebp + 0x4cc], bl
call fcn.1000c3a0
add esp, 0xc
mov dword [ebp - 0x78], ebx
mov edi, 0x1002b10c
mov esi, 0x400
cmp dword [ebp - 0x78], ebx
jne 0x1000545f
push dword [ebp - 0x80]
lea eax, [ebp + 0xcc]
push esi
push eax
mov byte [ebp + 0xcc], bl
call fcn.10010c6c
push 0x10024474
lea eax, [ebp + 0xcc]
push esi
push eax
call fcn.10010c6c
push dword [edi]
lea eax, [ebp + 0xcc]
push esi
push eax
call fcn.10010c6c
add esp, 0x24
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xcc]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x10005450
push dword [ebp - 0x80]
lea eax, [ebp + 0x4cc]
push esi
push eax
mov byte [ebp + 0x4cc], bl
call fcn.10010c6c
push 0x10024478
lea eax, [ebp + 0x4cc]
push esi
push eax
call fcn.10010c6c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x4cc]
push esi
push eax
call fcn.10010c6c
lea eax, [ebp + 0x4cc]
push eax
call fcn.100083c7
add esp, 0x28
test eax, eax
je 0x10005449
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x100053ea
jmp 0x10005450
mov dword [ebp - 0x78], 1
add edi, 4
cmp edi, 0x1002b118
jl 0x1000538e
push dword [ebp - 0x7c]
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [ebp + 0x8cc]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x8d0
leave
ret
Function at 0x10005483
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x944]
sub esp, 0x944
push 0xfffffffffffffffe
push 0x10028328
push 0x1000c6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1002b19c]
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 - 0x1c], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov byte [ebp + 0x540], 0
push 0x3ff
push edi
lea eax, [ebp + 0x541]
push eax
call fcn.1000c3a0
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov esi, 0x400
cmp dword [ebp - 0x24], 3
jge 0x10005633
mov byte [ebp + 0x140], 0
push dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x140]
push eax
call fcn.10010c6c
push 0x1002447c
push esi
lea eax, [ebp + 0x140]
push eax
call fcn.10010c6c
mov eax, dword [ebp - 0x24]
push dword [eax*4 + 0x1002b10c]
push esi
lea eax, [ebp + 0x140]
push eax
call fcn.10010c6c
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x1000560c
mov byte [ebp + 0x540], 0
push dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x540]
push eax
call fcn.10010c6c
push 0x10024480
push esi
lea eax, [ebp + 0x540]
push eax
call fcn.10010c6c
lea eax, [ebp + 0x2c]
push eax
push esi
lea eax, [ebp + 0x540]
push eax
call fcn.10010c6c
lea eax, [ebp + 0x540]
push eax
call fcn.100083c7
add esp, 0x28
test eax, eax
jne 0x100055f7
push 0x404
call fcn.10010c6c
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x100055d8
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1002b19c
call fcn.1000cdb0
add esp, 0xc
xor eax, eax
jmp 0x10005642
mov byte [ebx], 0
lea eax, [ebp + 0x540]
push eax
push esi
push ebx
call fcn.10010c6c
add esp, 0xc
mov dword [ebx + 0x400], edi
mov edi, ebx
mov dword [ebp - 0x20], edi
lea eax, [ebp]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x10005563
test edi, edi
je 0x1000562b
push edi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ebx, dword [edi + 0x400]
push edi
call fcn.10010c6c
pop ecx
mov edi, ebx
mov dword [ebp - 0x20], edi
jmp 0x1000560c
inc dword [ebp - 0x24]
jmp 0x100054f9
mov dword [ebp - 4], 0xfffffffe
call fcn.10005668
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.1000c2c7
add ebp, 0x944
leave
ret
Function at 0x1000589b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1002b19c]
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 fcn.1000c3a0
add esp, 0xc
push 0x20019
push 0x10024384
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.10010c6c
lea ecx, [ebp - 0x74]
test eax, eax
je 0x10005913
call fcn.1000133f
lea ecx, [ebp - 0x80]
call fcn.1000133f
jmp 0x1000599e
push 0x2001f
push str.Classes
push dword [ebp - 0x80]
call fcn.10010c6c
test eax, eax
je 0x1000592e
lea ecx, [ebp - 0x74]
jmp 0x10005901
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 0x10005983
push 0xa
lea eax, [ebp - 0x64]
push str.JavaPlugin
push eax
call fcn.10010c6c
add esp, 0xc
test eax, eax
jne 0x1000596a
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.10002cb1
test eax, eax
je 0x1000596d
inc dword [ebp - 0x68]
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.1000c3a0
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 0x10005943
lea ecx, [ebp - 0x74]
call fcn.1000133f
lea ecx, [ebp - 0x80]
call fcn.1000133f
pop edi
pop esi
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x3a0
leave
ret
Function at 0x10007107
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x390], eax
push esi
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10024484
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007207
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 0x100071e9
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x74], esi
jbe 0x100071d7
cmp byte [ebp + eax - 0x70], 0x2e
jne 0x10007179
inc ecx
cmp ecx, 1
jg 0x10007184
inc eax
cmp eax, dword [ebp - 0x74]
jb 0x1000716c
cmp ecx, 1
jle 0x100071d7
push 0x100244b0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x100071d7
lea eax, [ebp - 0x70]
push eax
call fcn.100086c1
pop ecx
test eax, eax
je 0x100071d7
mov eax, dword [ebp - 0x74]
inc eax
push eax
call fcn.10010c6c
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x74]
push 0x100244b8
inc ecx
push ecx
push eax
mov dword [ebp - 0x80], eax
call fcn.10010c6c
add esp, 0x14
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x1002c65c
call fcn.10007e7d
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 0x10007163
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.1000c2c7
add ebp, 0x394
leave
ret

Function at 0x100085b9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x100085c6
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 0x100086c1
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1794]
mov eax, 0x1814
call fcn.1000c370
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x1790], eax
push ebx
push esi
mov esi, dword [ebp + 0x179c]
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
lea eax, [ebp - 0x6f]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x70], bl
call fcn.1000c3a0
push esi
push 0x1002502c
push 0x10025058
lea esi, [edi + 1]
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.10010c6c
add esp, 0x20
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 0x1000881f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x790]
push eax
push ebx
push ebx
push 0x10025060
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 0x1000881f
push edi
lea eax, [ebp + 0xf91]
push ebx
push eax
mov byte [ebp + 0xf90], bl
call fcn.1000c3a0
push str.binjava.exe
lea eax, [ebp + 0x790]
push eax
push 0x1002507c
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.10010c6c
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x20
lea eax, [ebp + 0xf90]
push eax
call edi
test eax, eax
je 0x1000881f
push str.binclientjvm.dll
lea eax, [ebp + 0x790]
push eax
push 0x10025098
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.10010c6c
add esp, 0x14
lea eax, [ebp + 0xf90]
push eax
call edi
mov dword [ebp - 0x74], eax
push str.bin_serverjvm.dll
lea eax, [ebp + 0x790]
push eax
push 0x100250b4
lea eax, [ebp + 0xf90]
push esi
push eax
call fcn.10010c6c
add esp, 0x14
lea eax, [ebp + 0xf90]
push eax
call edi
cmp dword [ebp - 0x74], ebx
jne 0x10008818
cmp eax, ebx
je 0x1000881f
mov dword [ebp - 0x7c], 1
mov ecx, dword [ebp + 0x1790]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x1794
leave
ret