joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41102d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41be20
call fcn.0040ec44
push 8
call fcn.0040e0f0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x420664], esi
jne 0x411061
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x420660], esi
mov al, byte [ebp + 0x10]
mov byte [0x42065c], al
cmp dword [ebp + 0xc], edi
jne 0x4110ab
cmp dword [0x420bb4], edi
je 0x41109b
mov eax, dword [0x420bb0]
sub eax, 4
mov dword [0x420bb0], eax
cmp eax, dword [0x420bb4]
jb 0x41109b
mov eax, dword [eax]
cmp eax, edi
je 0x41107c
call eax
jmp 0x41107c
push 0x41e028
mov eax, 0x41e020
call fcn.00410fab
pop ecx
push 0x41e030
mov eax, 0x41e02c
call fcn.00410fab
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4110dc
cmp dword [ebp + 0x10], edi
jne 0x4110ea
mov dword [0x420664], esi
push dword [ebp + 8]
call fcn.00410f69
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4110e9
push 8
call fcn.0040e03b
pop ecx
ret
call fcn.0040ec7f
ret

Function at 0x412d79
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040d080
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412e14
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x420624]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x412e14
cmp eax, 1
je 0x412e35
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412e14
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412de1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x412e10
xor eax, eax
inc eax
jmp 0x412e54
cmp edi, eax
jae 0x412e18
xor eax, eax
jmp 0x412e54
cmp eax, esi
jae 0x412e1f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x420624]
jmp 0x412e38
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412fd8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41f200]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41f150]
je 0x41300d
inc eax
cmp eax, 0x13
jb 0x412ffe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41f150]
jne 0x413133
mov eax, dword [0x4204a4]
cmp eax, 1
je 0x41310b
cmp eax, edx
jne 0x41303d
cmp dword [0x41eaa4], 1
je 0x41310b
cmp ecx, 0xfc
je 0x413133
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413073
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00412610
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00412030
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4130a7
mov eax, edi
push eax
call fcn.00412030
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c2c0
push edi
call fcn.0040c810
add esp, 0x10
push edi
call fcn.00412030
push dword [esi + 0x41f154]
mov ebx, eax
call fcn.00412030
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040d080
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00412610
push edi
push ebx
call fcn.00412620
push 0x41c2a0
push ebx
call fcn.00412620
push dword [esi + 0x41f154]
push ebx
call fcn.00412620
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00415909
add esp, 0x2c
jmp 0x413133
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41f154]
push dword [esi]
call fcn.00412030
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00413e78
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x413b2d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x413b5b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x413b62
cmp ebx, dword [eax + 4]
jae 0x413b62
xor eax, eax
jmp 0x413d52
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x413b73
xor eax, eax
inc eax
jmp 0x413d51
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x413b89
cmp ecx, edx
jae 0x413cce
cmp dword [eax + 4], 0
je 0x413b92
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x413b7a
cmp dword [ebp + 8], 0
je 0x413bb4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x413cce
cmp eax, esi
jae 0x413cce
mov eax, dword [0x420868]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x413bd9
cmp dword [esi*4 + 0x420870], edi
je 0x413cd2
inc esi
cmp esi, eax
jl 0x413bc7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413d4e
cmp dword [ebp - 8], 0x1000000
jne 0x413d4e
test byte [ebp - 0xc], 0xcc
je 0x413c57
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x413d4e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x413d4e
cmp word [eax + 0x18], 0x10b
jne 0x413d4e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x413d4e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x413c57
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x413c57
test byte [ecx + 0x27], 0x80
jne 0x413cce
push 1
push 0x4208b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x413b6b
mov ecx, dword [0x420868]
test ecx, ecx
mov edx, ecx
jle 0x413c8b
lea eax, [ecx*4 + 0x42086c]
cmp dword [eax], edi
je 0x413c8b
dec edx
sub eax, 4
test edx, edx
jg 0x413c7f
test edx, edx
jne 0x413cbc
push 0xf
pop ebx
cmp ecx, ebx
jg 0x413c98
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x413cb0
lea eax, [edx*4 + 0x420870]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x413c9e
cmp ecx, 0x10
jge 0x413cbc
inc ecx
mov dword [0x420868], ecx
push 0
push 0x4208b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x413b6b
xor eax, eax
jmp 0x413d51
test esi, esi
jle 0x413b6b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4208b0
call ebx
test eax, eax
jne 0x413b6b
cmp dword [esi*4 + 0x420870], edi
je 0x413d28
mov eax, dword [0x420868]
lea esi, [eax - 1]
test esi, esi
jl 0x413d16
cmp dword [esi*4 + 0x420870], edi
je 0x413d12
dec esi
jns 0x413d06
test esi, esi
jge 0x413d26
cmp eax, 0x10
jge 0x413d21
inc eax
mov dword [0x420868], eax
lea esi, [eax - 1]
jmp 0x413d28
je 0x413d40
xor ecx, ecx
test esi, esi
jl 0x413d40
lea eax, [ecx*4 + 0x420870]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x413d2e
push 0
push 0x4208b0
call ebx
jmp 0x413b6b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415909
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x420934], ebx
push esi
push edi
jne 0x415989
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4159c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41c94c
push edi
call esi
test eax, eax
mov dword [0x420934], eax
je 0x4159c4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x420938], eax
call esi
cmp dword [0x420624], 2
mov dword [0x42093c], eax
jne 0x415989
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x420944], eax
je 0x415989
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x420940], eax
mov eax, dword [0x420940]
test eax, eax
je 0x4159ce
call eax
test eax, eax
je 0x4159b5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x420944]
test eax, eax
je 0x4159b5
test byte [ebp - 8], 1
jne 0x4159ce
cmp dword [0x420630], 4
jb 0x4159c8
or byte [ebp + 0x12], 0x20
jmp 0x4159ed
xor eax, eax
jmp 0x4159fd
or byte [ebp + 0x12], 4
jmp 0x4159ed
mov eax, dword [0x420938]
test eax, eax
je 0x4159ed
call eax
mov ebx, eax
test ebx, ebx
je 0x4159ed
mov eax, dword [0x42093c]
test eax, eax
je 0x4159ed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x420934]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415bf4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040d080
mov eax, dword [0x41f200]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040fe07
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x415d27
push 2
push esi
push dword [ebp + 8]
call fcn.0040fe07
add esp, 0xc
cmp eax, ebx
je 0x415d27
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x415cc7
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004124f0
push 0x8000
push dword [ebp + 8]
call fcn.00415f11
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x415c7d
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040eeb2
add esp, 0xc
cmp eax, 0xffffffff
je 0x415c9d
sub edi, eax
test edi, edi
jg 0x415c75
jmp 0x415cb5
call fcn.0040c976
cmp dword [eax], 5
jne 0x415cb2
call fcn.0040c96d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00415f11
pop ecx
pop ecx
jmp 0x415d0f
jge 0x415d0f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fe07
push dword [ebp + 8]
call fcn.00413f81
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x415d0f
call fcn.0040c96d
mov dword [eax], 0xd
call fcn.0040c976
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040fe07
add esp, 0xc
mov eax, esi
pop edi
jmp 0x415d29
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00413e78
leave
ret
Function at 0x41642f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x416448
or eax, 0xffffffff
jmp 0x4164a9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4164a5
push 0x3d
push esi
call fcn.0041662f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4164a5
cmp esi, eax
je 0x4164a5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x420644]
sete cl
cmp eax, dword [0x420648]
mov dword [ebp - 8], ecx
jne 0x41648b
mov edi, eax
call fcn.004163ce
mov dword [0x420644], eax
cmp eax, ebx
jne 0x4164e4
cmp dword [ebp + 0xc], ebx
je 0x4164ad
cmp dword [0x42064c], ebx
je 0x4164ad
call fcn.00415e81
test eax, eax
je 0x4164e4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4164b6
xor eax, eax
jmp 0x4164a8
push 4
call fcn.0040c2e2
cmp eax, ebx
pop ecx
mov dword [0x420644], eax
je 0x4164a5
mov dword [eax], ebx
cmp dword [0x42064c], ebx
jne 0x4164e4
push 4
call fcn.0040c2e2
cmp eax, ebx
pop ecx
mov dword [0x42064c], eax
je 0x4164a5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x420644]
call fcn.00416381
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x416545
cmp dword [esi], ebx
je 0x416545
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040bf42
cmp dword [ebp - 8], ebx
pop ecx
jne 0x416528
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x416586
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41651f
mov eax, edi
shl eax, 2
push eax
push dword [0x420644]
call fcn.0040cca3
cmp eax, ebx
pop ecx
pop ecx
je 0x416586
jmp 0x416581
cmp dword [ebp - 8], ebx
jne 0x4165f1
cmp edi, ebx
jge 0x416554
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x420644]
call fcn.0040cca3
cmp eax, ebx
pop ecx
pop ecx
je 0x4164a5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x420644], eax
cmp dword [ebp + 0xc], ebx
je 0x4165db
push dword [ebp - 4]
call fcn.00412030
inc eax
inc eax
push eax
call fcn.0040c2e2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4165db
push dword [ebp - 4]
push esi
call fcn.00412610
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4165d4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040bf42
pop ecx
cmp dword [ebp - 8], ebx
je 0x4165e9
push dword [ebp - 4]
call fcn.0040bf42
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4164a8
push dword [ebp - 4]
call fcn.0040bf42
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4164b2
Function at 0x5c1370
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 0x5c138e
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 0x5ea074
push ecx
mov edi, eax
call fcn.005d5198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5c13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005d502e
push esi
call fcn.005d4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5c4850
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 0x5c48ae
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 0x5ef720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5c48ba
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.005d51e1
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 0x5c48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5ef720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5c492a
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.005d6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5c4957
mov word [eax], si
add eax, 2
push eax
call fcn.005d6030
add esp, 4
jmp 0x5c4959
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 0x5c48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5c48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5c4ff0
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 0x5c5080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5c50c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5ea458
push ecx
call fcn.005d51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005d51e1
add esp, 0x10
jmp 0x5c50d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005d520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005d4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005c5050
mov eax, dword [0x5ef728]
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 0x5c513b
push esi
call fcn.005c4fb0
add esp, 4
mov dword [0x5ef728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5c514c
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.005c4ff0
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 0x5c8440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5c84b7
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 0x5c848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5c8471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5c847e
add edx, ecx
cmp ebx, edx
jb 0x5c848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5c8467
xor ecx, ecx
jmp 0x5c84a2
test eax, eax
jne 0x5c8492
xor ecx, ecx
jmp 0x5c84a2
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.005c83c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5c88f0
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 0x5c8921
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 0x5c8946
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 0x5c896e
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 0x5c8993
push ecx
push esi
call fcn.005c84c0
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 0x5c9c00
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 0x5c9c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x5c9c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x5c9c38
add edx, eax
cmp ebx, edx
jb 0x5c9c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x5c9c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x5c9c50
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 0x5c9c70
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 0x5c9cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5c9c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5c9ca8
add edx, ecx
cmp ebx, edx
jb 0x5c9cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5c9c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x5c9f60
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.005d6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5c9ffb
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 0x5c9fdd
lea eax, [esp + 0x18]
push eax
jmp 0x5c9fe2
push 0x5ef720
call fcn.005d5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5c9fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5c9f40
push 4
push ecx
push eax
call fcn.005d643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x5ca310
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.005d6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5ca3ab
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 0x5ca38d
lea eax, [esp + 0x18]
push eax
jmp 0x5ca392
push 0x5ef720
call fcn.005d5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5ca360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5c9f40
push 4
push ecx
push eax
call fcn.005d643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret