joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fd6f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4859a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov dword [ebp - 0x118], ecx
lea ecx, [ebp - 0x114]
call fcn.004032b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x118]
xor ecx, ecx
mov cl, byte [eax + 0x2024]
call fcn.00484002
nop
nop
nop
nop
call fcn.00484e27
mov byte [ebp - 0x10], al
mov edx, dword [ebp - 0x10]
and edx, 0xff
cmp edx, 0xff
jne 0x46fdd9
mov byte [ebp - 0x10], 1
push str.EFFAREA.E5
lea ecx, [ebp - 0x114]
call fcn.0041fb35
mov eax, dword [ebp - 0x118]
add eax, 0x1024
push eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
push ecx
lea ecx, [ebp - 0x114]
call fcn.0041fc89
lea ecx, [ebp - 0x114]
call fcn.004192c5
push 0
mov edx, dword [0x4b5ffc]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc
call fcn.0047cae3
add esp, 4
push 7
call fcn.0047d1ca
add esp, 4
push 0
push 0
push 0
call fcn.0047d1f1
add esp, 0xc
mov eax, dword [ebp - 0x118]
add eax, 0x1024
push eax
mov ecx, dword [0x4868ac]
push ecx
mov edx, dword [0x4868a8]
push edx
push 0
push 0
call fcn.0047e09b
nop
nop
nop
push 0
call fcn.0047cae3
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.004192c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4714e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 0x18], 0
jne 0x471503
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x47151d
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 8], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 4], ecx
push 0x100
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x471559
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x20], 1
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00471411
add esp, 0x20
mov esp, ebp
pop ebp
ret

Function at 0x474e0c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
call fcn.00426b52
add esp, 4
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
push 1
call fcn.0041de7e
push 0x3fe
push 0x500c7e
call fcn.0042de26
cmp al, 2
je 0x474e50
inc al
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
call fcn.0052dbfd
mov ecx, dword [ebp + 8]
mov byte [ecx], 2
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
call fcn.00426ba3
mov esp, ebp
pop ebp
ret 8
Function at 0x4790da
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x48e9a8], 0xffffffff
je 0x47912a
mov eax, dword [ebp + 8]
cmp eax, dword [0x48e9a8]
je 0x479115
mov ecx, dword [0x48e9a8]
mov edx, dword [ecx*4 + 0x4b6ba8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x479115
push 0
mov ecx, 0x4b69b0
call fcn.004746ad
push 0
mov eax, dword [0x48e9a8]
mov ecx, dword [eax*4 + 0x4b6ba8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0xffffffff
jne 0x479137
mov dword [ebp + 8], 0
push 5
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x4b6ba8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
mov dword [0x48e9a8], ecx
pop ebp
ret

Function at 0x479728
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x400
jb 0x479736
jmp 0x479793
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x479754
push 1
push 0
mov ecx, 0x4b69b0
call fcn.0047467a
mov ecx, dword [0x4b7508]
push ecx
push dword [ebp + 8]
call fcn.004061e4
nop
nop
nop
nop
call fcn.00478664
mov edx, dword [0x4b7508]
push edx
call fcn.00479647
add esp, 4
push 9
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.0047cae3
add esp, 4
pop ebp
ret

Function at 0x479b59
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4b7504], 0
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x479ba8
push 0
push 0x479164
mov ecx, dword [0x4b6a68]
push ecx
push 0xa6
mov edx, dword [0x4b6a60]
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x4b7508], eax
cmp dword [0x4b7508], 0
jne 0x479ba8
xor eax, eax
jmp 0x479bbb
push 0
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop ebp
ret

Function at 0x479bd9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0047645e
pop ebp
ret

Function at 0x479bf1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [0x4b5fd8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4b5fdc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 0x48bae0
xor ecx, ecx
dec cx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push 0
push dword [0x4ffa70]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
call fcn.00426c32
pop ebp
ret
Function at 0x47ae51
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ecx + 0x58]
cmp ecx, dword [ebp + 8]
je 0x47aea0
push 0
mov ecx, 0x4b69b0
call fcn.004746ad
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 0x58], eax
push 0
push 0
push 0x1009
mov ecx, dword [ebp - 4]
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
call fcn.00479d12
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 4

Function at 0x47c0e9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b5fdc]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47c10b
push 0
mov ecx, dword [0x4b5fdc]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4b5fd8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47c134
push 0
push 0x9cbd
push 0x111
mov eax, dword [0x4b5fd8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x4b7508]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47c154
push 0
mov edx, dword [0x4b7508]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret

Function at 0x47c2aa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x47c2e3
push 1
call fcn.0042b5e1
nop
nop
nop
jmp 0x47c2f9
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0047c2ff
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov esp, ebp
pop ebp
ret 8

Function at 0x47c39a
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x47c3c8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x47c3c8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 1
mov esp, ebp
pop ebp
ret

Function at 0x47c434
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x47c464
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov esp, ebp
pop ebp
ret
Function at 0x481670
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4bcc94]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x48168f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4bcc90], 1
mov byte [0x4bcc8c], bl
jne 0x4816e9
mov ecx, dword [0x4bd890]
test ecx, ecx
je 0x4816d7
mov esi, dword [0x4bd88c]
sub esi, 4
cmp esi, ecx
jb 0x4816d7
mov eax, dword [esi]
test eax, eax
je 0x4816d0
call eax
mov ecx, dword [0x4bd890]
sub esi, 4
cmp esi, ecx
jae 0x4816c2
push 0x48b134
push 0x48b130
call fcn.00481720
add esp, 8
push 0x48b140
push 0x48b138
call fcn.00481720
add esp, 8
test ebx, ebx
jne 0x481710
push ebp
mov dword [0x4bcc94], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4817e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4877a8
push 0x482c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4bcc64], edx
movzx ecx, al
mov dword [0x4bcc60], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4bcc5c], ecx
shr eax, 0x10
mov dword [0x4bcc58], eax
call fcn.00483bb8
test eax, eax
jne 0x481845
push 0x1c
call fcn.0048199f
add esp, 4
mov dword [ebp - 4], 0
call fcn.004069b2
call fcn.004839c0
call fcn.004839b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4bd888], eax
call fcn.00483370
mov dword [0x4bcc98], eax
test eax, eax
je 0x48187d
mov eax, dword [0x4bd888]
test eax, eax
jne 0x481887
push 0xffffffffffffffff
call fcn.00481630
add esp, 4
call fcn.004830c0
call fcn.00482fd0
call fcn.004815fa
mov esi, dword [0x4bd888]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
je 0x4818af
cmp byte [esi], 0x20
jbe 0x4818de
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4818a4
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4818d5
test al, al
je 0x4818d5
and eax, 0xff
push eax
call fcn.00482f70
add esp, 4
test eax, eax
je 0x4818af
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4818af
cmp byte [esi], 0x22
jne 0x4818de
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4818ee
cmp al, 0x20
ja 0x4818ee
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4818de
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x48190f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x481914
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00481630
jmp 0x481952
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48199f
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4bcca0], 1
jne 0x4819ad
call fcn.00483c03
mov eax, dword [esp + 4]
push eax
call fcn.00483c40
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x483370
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4bcde0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4833b2
call edi
mov esi, eax
test esi, esi
je 0x48339c
mov eax, 1
jmp 0x4833ad
call ebp
mov ebx, eax
test ebx, ebx
je 0x4834bf
mov eax, 2
mov dword [0x4bcde0], eax
cmp eax, 1
jne 0x483452
test esi, esi
jne 0x4833cb
call edi
mov esi, eax
test esi, esi
je 0x4834bf
cmp word [esi], 0
mov eax, esi
je 0x4833e5
add eax, 2
cmp word [eax], 0
jne 0x4833d3
add eax, 2
cmp word [eax], 0
jne 0x4833d3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x483444
push edi
call fcn.00482890
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x483444
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x483436
push ebx
call fcn.00482940
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4834bf
test ebx, ebx
jne 0x483463
call ebp
mov ebx, eax
test ebx, ebx
je 0x4834bf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x48347b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x48346b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x48346b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00482890
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x48349d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x98d370
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 0x98d38e
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 0x9b6074
push ecx
mov edi, eax
call fcn.009a1198
mov esi, eax
add esp, 8
test esi, esi
jne 0x98d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009a102e
push esi
call fcn.009a0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x990850
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 0x9908ae
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 0x9bb720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9908ba
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.009a11e1
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 0x9908ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9bb720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x99092a
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.009a2082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x990957
mov word [eax], si
add eax, 2
push eax
call fcn.009a2030
add esp, 4
jmp 0x990959
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 0x9908ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9908b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9910c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x9b6458
push ecx
call fcn.009a11e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009a11e1
add esp, 0x10
jmp 0x9910d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009a120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009a0dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00991050
mov eax, dword [0x9bb728]
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 0x99113b
push esi
call fcn.00990fb0
add esp, 4
mov dword [0x9bb728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x99114c
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.00990ff0
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 0x994440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9944b7
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 0x99448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x994471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x99447e
add edx, ecx
cmp ebx, edx
jb 0x99448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x994467
xor ecx, ecx
jmp 0x9944a2
test eax, eax
jne 0x994492
xor ecx, ecx
jmp 0x9944a2
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.009943c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9948f0
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 0x994921
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 0x994946
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 0x99496e
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 0x994993
push ecx
push esi
call fcn.009944c0
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 0x995c00
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 0x995c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x995c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x995c38
add edx, eax
cmp ebx, edx
jb 0x995c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x995c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x995c50
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 0x995c70
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 0x995cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x995c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x995ca8
add edx, ecx
cmp ebx, edx
jb 0x995cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x995c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x995f60
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.009a2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x995ffb
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 0x995fdd
lea eax, [esp + 0x18]
push eax
jmp 0x995fe2
push 0x9bb720
call fcn.009a1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x995fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x995f40
push 4
push ecx
push eax
call fcn.009a243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x996310
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.009a2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9963ab
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 0x99638d
lea eax, [esp + 0x18]
push eax
jmp 0x996392
push 0x9bb720
call fcn.009a1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x996360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x995f40
push 4
push ecx
push eax
call fcn.009a243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret