joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401f3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401f34
test esi, esi
je 0x401f34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f10
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402120
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402248
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4021ae
cmp eax, 4
jne 0x4021d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4021be
cmp edx, 4
je 0x4021be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402120
Function at 0x429c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0x429c6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429c60
mov eax, 1
add ebx, ebx
jne 0x429c83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429c78
jne 0x429c94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429c78
xor ecx, ecx
sub eax, 3
jb 0x429ca8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429d1a
mov ebp, eax
add ebx, ebx
jne 0x429cb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429cc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x429ce4
inc ecx
add ebx, ebx
jne 0x429cd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x429cc5
jne 0x429ce1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429cc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x429d04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x429cf5
jmp 0x429c66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x429d04
add edi, ecx
jmp 0x429c66
pop esi
mov edi, esi
mov ecx, 0x651
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x429d22
cmp byte [edi], 5
jne 0x429d22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x429d27
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429d9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f49c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f528]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x429d54
mov ecx, edi
jns 0x429d83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f52c]
or eax, eax
je 0x429d99
mov dword [ebx], eax
add ebx, 4
jmp 0x429d71
call dword [esi + 0x2f53c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x429dd0
cmp al, 0xef
ja 0x429dc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x429da5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x429db2
mov ebp, dword [esi + 0x2f530]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x429e04
sub esp, 0xffffff80
jmp 0x404f8f

Function at 0x438ca3
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
mov eax, 0x7fb00c4
call fcn.00438cf2
mov ebx, 0x272722b7
dec eax
sub ebx, 1
xor dword [ecx], edx
sub esp, 4
mov dword [esp], 0xee104e56
mov eax, dword [esp]
add esp, 4
sub eax, 0xe499f2ef
add ecx, 1
sub eax, ebx
inc ebx
sub ebx, 1
cmp ecx, edi
jne fcn.00438ca3
mov ebx, eax
ret
Function at 0x42a095
Capabilities:
Terminate process

Disassembly:
jmp 0x45b0c9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45b0da
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00429447
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x42a987
Capabilities:
Parse pe header

Disassembly:
jmp 0x4313ea
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43142a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43142a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43142a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43142a
cmp dword [ecx + 0x74], 0xe
jbe 0x43142a
cmp dword [ecx + 0xe8], 0
je 0x43142a
mov al, 1
ret
xor al, al
ret

Function at 0x42b13e
Capabilities:
Query environment variable

Disassembly:
jmp 0x45e505
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45e519
xor edi, edi
jmp 0x45e550
push ebx
push esi
call fcn.0045e40d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042a482
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45e540
push ebx
push esi
push edi
call fcn.0042b233
add esp, 0xc
push 0
call fcn.00429514
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x40aec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x415a38], 8
jne 0x40af00
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
setne al
lea esp, [ebp - 8]
pop ecx
movzx eax, al
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0_2
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MACRO_FileExist
mov dword [esp + 4], 0x415a38
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40aedd

Function at 0x40b440
Capabilities:
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
test byte [0x415a38], 8
jne 0x40b478
mov eax, dword [0x41508c]
test eax, eax
je 0x40b46a
mov edx, dword [eax + 0x10]
test edx, edx
je 0x40b4a0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x417297
mov dword [esp + 8], str.MACRO_History
mov dword [esp + 4], 0x415a38
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b45a
mov dword [esp + 0x2c], eax
mov eax, dword [0x415084]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0x41733c
mov dword [esp + 4], str.WHHistory
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExA]
sub esp, 0x30
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
sub esp, 8
leave
lea esp, [ecx - 4]
ret
Function at 0x40eef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3ec
test byte [0x415a48], 8
jne 0x40f090
mov ecx, dword [sym.imp.user32.dll_LoadStringA]
mov eax, dword [0x415084]
lea esi, [ebp - 0x27a]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [ebp - 0x3dc], ecx
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call ecx
mov edi, dword [sym.imp.ucrtbase.dll_strlen]
sub esp, 0x10
mov dword [esp], esi
call edi
mov ecx, dword [ebp - 0x3dc]
lea ebx, [esi + eax + 1]
mov eax, 0x70
mov word [ebx + 4], ax
mov eax, dword [0x415084]
add ebx, 6
mov dword [ebx - 6], 0x6c682e2a
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x12b
mov dword [esp], eax
call ecx
sub esp, 0x10
mov dword [esp], ebx
call edi
lea eax, [ebx + eax + 1]
lea ebx, [ebp - 0x37e]
mov dword [eax], 0x2a2e2a
mov byte [eax + 4], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3d6], 0x58
sub esp, 8
mov byte [eax], 0
mov eax, dword [0x41508c]
test eax, eax
je 0x40efce
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3d2], eax
mov eax, dword [0x415084]
mov dword [ebp - 0x3ca], esi
mov dword [ebp - 0x3ce], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3aa], ebx
mov dword [ebp - 0x3ba], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c6], 0
mov dword [ebp - 0x3b6], eax
lea eax, [ebp - 0x3d6]
mov dword [ebp - 0x3c2], 0
mov dword [ebp - 0x3be], 1
mov dword [ebp - 0x3b2], 0
mov dword [ebp - 0x3ae], 0
mov dword [ebp - 0x3a6], 0
mov dword [ebp - 0x3a2], 0x800005
mov dword [ebp - 0x39e], 0
mov dword [ebp - 0x39a], 0
mov dword [ebp - 0x396], 0
mov dword [ebp - 0x392], 0
mov dword [ebp - 0x38e], 0
mov dword [esp], eax
call dword [0x41d2f0]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x417ac1
mov dword [esp + 8], str.WINHELP_GetOpenFileName
mov dword [esp + 4], 0x415a48
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x40ef09
Function at 0x4123c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
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 0x41241b
cmp byte [esi + ebx - 1], 0xa
je 0x4123ef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x415bdc], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x412520
Capabilities:
Access peb ldr_data
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_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._main
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x413670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x417e8f
mov dword [esp], eax
call sym._fprintf.constprop.0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4146e0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x41476d
cmp al, 9
je 0x414760
cmp al, 0x20
je 0x414760
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp al, 0x5c
je 0x4147c8
cmp al, 0x22
je 0x4147d0
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x41476d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x414720
test edi, 1
jne 0x414720
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x414760
cmp al, 0x20
je 0x414760
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x414788
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x414737
and dword [ebp - 0x6c], 1
jne 0x414730
xor edi, 1
jmp 0x414737
Function at 0x855370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x85538e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x87e074
push ecx
mov edi, eax
call fcn.00869198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8553cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0086902e
push esi
call fcn.00868fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x858850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8588ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x883720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8588ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008691e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8588ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x883720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x85892a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0086a082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x858957
mov word [eax], si
add eax, 2
push eax
call fcn.0086a030
add esp, 4
jmp 0x858959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8588ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8588b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x858ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x859080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8590c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x87e458
push ecx
call fcn.008691e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008691e1
add esp, 0x10
jmp 0x8590d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0086920b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00868dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00859050
mov eax, dword [0x883728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x85913b
push esi
call fcn.00858fb0
add esp, 4
mov dword [0x883728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x85914c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00858ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x85c440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x85c4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x85c48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x85c471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x85c47e
add edx, ecx
cmp ebx, edx
jb 0x85c48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x85c467
xor ecx, ecx
jmp 0x85c4a2
test eax, eax
jne 0x85c492
xor ecx, ecx
jmp 0x85c4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.0085c3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x85c8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x85c921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x85c946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x85c96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x85c993
push ecx
push esi
call fcn.0085c4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x85dc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x85dc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x85dc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x85dc38
add edx, eax
cmp ebx, edx
jb 0x85dc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x85dc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x85dc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x85dc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x85dcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x85dc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x85dca8
add edx, ecx
cmp ebx, edx
jb 0x85dcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x85dc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x85df60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0086a145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x85dffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x85dfdd
lea eax, [esp + 0x18]
push eax
jmp 0x85dfe2
push 0x883720
call fcn.00869fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x85dfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x85df40
push 4
push ecx
push eax
call fcn.0086a43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x85e310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0086a145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x85e3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x85e38d
lea eax, [esp + 0x18]
push eax
jmp 0x85e392
push 0x883720
call fcn.00869fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x85e360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x85df40
push 4
push ecx
push eax
call fcn.0086a43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret