joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc9a000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xc9a131
push esi
call fcn.00c9d145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00c8c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xc9a131
push 0
push ebp
call fcn.00c8c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00c8c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xc9a08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00c8c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xc9a121
push 0xcb2918
push edi
call fcn.00c9b3f0
push eax
push ebx
push esi
call fcn.00c99f60
push 0xcb28f8
push edi
call fcn.00c9b3f0
push eax
push ebx
push esi
call fcn.00c99f60
push 0xcb28d8
push edi
call fcn.00c9b3f0
push eax
push ebx
push esi
call fcn.00c99f60
push 0xcb28c0
push edi
call fcn.00c9b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00c99f60
push 0xcb28a0
push edi
call fcn.00c9b3f0
push eax
push ebx
push esi
call fcn.00c99f60
push 0xcb2888
push edi
call fcn.00c9b3f0
push eax
push ebx
push esi
call fcn.00c99f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xc9b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00c9b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c9b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c9b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c9b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xc9bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xc9bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcad87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc9bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc9bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7015591a
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1ed53a9b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x42ed5a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0042ef0a
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x42ee58
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x42edfb
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x42ee3e
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x42ee12
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42ee2d
test al, 0x40
je 0x42ee24
mov ecx, dword [edi + 0x20]
jmp 0x42ee2b
test al, 0x80
je 0x42ee3e
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x42ee3e
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x42edca
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x401775
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41f37c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x42ad20]
xor eax, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x214], eax
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea edi, [esi + 0x38]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x224], ebx
mov byte [edi + 4], bl
push 0x104
lea eax, [esp + 0x118]
push eax
push ebx
mov byte [esp + 0x230], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4017f4
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00401400
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
call fcn.004131be
add esp, 0x21c
ret

Function at 0x401c10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x42ad20]
mov edx, dword [0x42ca00]
mov ecx, dword [esp + 0x134]
xor eax, esp
cmp edx, 3
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x138]
push esi
mov esi, dword [esp + 0x130]
jb 0x401c95
test eax, eax
jne 0x401c4e
mov eax, 0x424439
push eax
push ecx
mov ecx, dword [esp + 0x13c]
push ecx
push str._d___s____s_
lea edx, [esp + 0x18]
push 0x11f
push edx
call fcn.00413942
mov ecx, dword [0x42dda0]
mov edx, dword [ecx]
add esp, 0x18
push 1
push 0
lea eax, [esp + 0x10]
push eax
push edx
push str.runas
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
jne 0x401d2e
mov eax, dword [0x42bd84]
test eax, eax
mov dword [esp + 4], 0
je 0x401cd0
mov ecx, dword [0x42bd4c]
push 0x30
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004131be
add esp, 0x128
ret
movzx eax, word [0x42ca04]
push 0
push 0
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [0x42bd4c]
mov edx, dword [esp + 4]
push 0x30
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004131be
add esp, 0x128
ret
mov ecx, dword [esp + 0x128]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004131be
add esp, 0x128
ret
Function at 0x401e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x42ad20]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xa4], eax
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401ea3
mov eax, dword [esp + 0x18]
dec eax
je 0x401ec7
dec eax
je 0x401eb9
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, ebp
call fcn.004131be
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 5
sbb ecx, ecx
add ecx, 3
mov dword [esi], ecx
jmp 0x401ecd
mov dword [esi], 1
mov ecx, dword [esp + 0xa4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004131be
mov esp, ebp
pop ebp
ret
Function at 0x402900
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x54
test eax, eax
je 0x40291c
mov eax, dword [esp + 0x58]
push eax
call fcn.00402670
add esp, 4
add esp, 0x54
ret
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push eax
push 0x10
mov edi, 1
push edi
push eax
push eax
mov word [esp + 0x64], ax
mov eax, dword [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402967
pop edi
add esp, 0x54
ret
cmp dword [0x42ca00], edi
jne 0x40297a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop esi
mov eax, edi
pop edi
add esp, 0x54
ret
Function at 0x4030a0
Capabilities:
Query service status

Disassembly:
mov eax, dword [0x42ca00]
sub esp, 0x20
cmp eax, 1
jne 0x4030e9
mov eax, dword [esp + 0x24]
push eax
push str.UmsWin95ServiceMonitor
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4030e3
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4030e3
mov edx, dword [esp + 0x2c]
mov dword [edx], 1
mov eax, 1
add esp, 0x20
ret
xor eax, eax
add esp, 0x20
ret
mov eax, dword [esp + 0x28]
push esi
push 1
push 0
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40310c
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 0x28]
push edi
push 4
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x403165
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403147
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x403147
mov dword [eax], 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov ecx, dword [esp + 8]
xor eax, eax
cmp ecx, 4
pop edi
sete al
pop esi
add esp, 0x20
ret
push esi
mov dword [0x42bda4], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
Function at 0x4048b0
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4048da
mov eax, 2
pop edi
pop ecx
ret
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push ecx
push 0
push 0x100000
call ebx
push 0
push 0x69
push 0x111
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40492d
test eax, eax
je 0x40492a
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40492a
push esi
call edi
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
push esi
call edi
mov edx, dword [esp + 0xc]
push edx
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x404957
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
je 0x404955
call edi
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
call edi
pop esi
pop ebx
mov eax, 2
pop edi
pop ecx
ret

Function at 0x404970
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov eax, dword [0x42bc30]
mov ecx, dword [0x42bdb0]
sub esp, 8
push ebp
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404994
call fcn.004048b0
mov ebp, eax
cmp dword [0x42ca00], 3
jb 0x404a19
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [esp + 0xc]
push edx
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x404a18
mov eax, dword [esp + 0xc]
push edi
xor edi, edi
test eax, eax
jbe 0x404a0d
push esi
xor esi, esi
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + ecx + 8]
push str.UmsMonitor.exe
push eax
call fcn.004135dd
add esp, 8
test eax, eax
jne 0x404a00
mov edx, dword [esp + 0x10]
mov eax, dword [esi + edx + 4]
cmp eax, ebx
je 0x404a00
push 1
push eax
push 0
call sub.WTSAPI32.dll_WTSTerminateProcess
mov eax, dword [esp + 0x14]
inc edi
add esi, 0x10
cmp edi, eax
jb 0x4049d0
pop esi
mov eax, dword [esp + 0xc]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x404d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f3ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi], 0x424574
mov dword [esp + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
call fcn.00406f80
lea ecx, [esi + 0x6c]
mov byte [esp + 0x10], 2
call fcn.004071d0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f429
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi], 0x4245b0
mov dword [esp + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
call fcn.00406f80
lea ecx, [esi + 0x6c]
mov byte [esp + 0x10], 2
call fcn.004071d0
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 3
call fcn.004071d0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f485
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], 0x4245ec
mov dword [esp + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], 0x4243f0
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 2
call fcn.0040a080
lea ecx, [esi + 0x2c4]
mov byte [esp + 0x14], 3
call fcn.00404d50
lea ecx, [esi + 0x35c]
mov byte [esp + 0x14], 4
call fcn.00404e50
lea ecx, [esi + 0x420]
mov byte [esp + 0x14], 5
call fcn.0040b150
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x698], ebx
mov dword [esi + 0x69c], 0xf
mov byte [esi + 0x688], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x409fe0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41f668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x10]
mov dword [esi], 0x424ae8
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x424439
mov dword [esp + 0x1c], ebx
mov byte [ecx + 4], bl
call fcn.00401400
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40c900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
push ebx
push ebp
push esi
push edi
push 5
mov edi, ecx
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [edi + 4]
mov ebx, eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [edi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x18]
mov dword [edx], eax
mov edi, eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx]
cmp word [eax + 2], 0xffff
jne 0x40c984
mov ecx, dword [eax + 8]
pop edi
or ecx, 0x400000
pop esi
mov dword [eax + 8], ecx
mov eax, ebp
pop ebp
pop ebx
ret 8
mov ecx, dword [eax + 4]
pop edi
or ecx, 0x400000
pop esi
mov dword [eax + 4], ecx
mov eax, ebp
pop ebp
pop ebx
ret 8

Function at 0x41383f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x425760
call fcn.00416e08
push 8
call fcn.004162a8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42ddc8], esi
jne 0x413873
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42ddc4], esi
mov al, byte [ebp + 0x10]
mov byte [0x42ddc0], al
cmp dword [ebp + 0xc], edi
jne 0x4138bd
cmp dword [0x42f61c], edi
je 0x4138ad
mov eax, dword [0x42f618]
sub eax, 4
mov dword [0x42f618], eax
cmp eax, dword [0x42f61c]
jb 0x4138ad
mov eax, dword [eax]
cmp eax, edi
je 0x41388e
call eax
jmp 0x41388e
push 0x42a054
mov eax, 0x42a04c
call fcn.004137bd
pop ecx
push 0x42a060
mov eax, 0x42a058
call fcn.004137bd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4138ee
cmp dword [ebp + 0x10], edi
jne 0x4138fc
mov dword [0x42ddc8], esi
push dword [ebp + 8]
call fcn.0041377b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4138fb
push 8
call fcn.004161f3
pop ecx
ret
call fcn.00416e43
ret
Function at 0x414c17
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x425838
call fcn.00416e08
mov edi, 0x94
mov eax, edi
call fcn.0041afa0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42dd88], ecx
mov eax, dword [esi + 4]
mov dword [0x42dd94], eax
mov edx, dword [esi + 8]
mov dword [0x42dd98], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42dd8c], esi
cmp ecx, 2
je 0x414c77
or esi, 0x8000
mov dword [0x42dd8c], esi
shl eax, 8
add eax, edx
mov dword [0x42dd90], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x414cb2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414cb2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414cca
cmp eax, 0x20b
je 0x414cb7
mov dword [ebp - 0x1c], esi
jmp 0x414cde
cmp dword [ecx + 0x84], 0xe
jbe 0x414cb2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x414cd8
cmp dword [ecx + 0x74], 0xe
jbe 0x414cb2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00417d60
pop ecx
test eax, eax
jne 0x414cf2
push 0x1c
call fcn.00414bf3
pop ecx
call fcn.0041720e
test eax, eax
jne 0x414d03
push 0x10
call fcn.00414bf3
pop ecx
call fcn.004188d4
mov dword [ebp - 4], esi
call fcn.0041a669
test eax, eax
jge 0x414d1c
push 0x1b
call fcn.00414bce
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42f610], eax
call fcn.0041ae71
mov dword [0x42dee0], eax
call fcn.00413bbd
test eax, eax
jge 0x414d42
push 8
call fcn.00414bce
pop ecx
call fcn.0041adaa
test eax, eax
jge 0x414d53
push 9
call fcn.00414bce
pop ecx
push 1
call fcn.004137d5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x414d69
push eax
call fcn.00414bce
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041ad4d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x414d8a
movzx eax, word [ebp - 0x40]
jmp 0x414d8d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004050c0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x414dab
push edi
call fcn.00413902
call fcn.00413924
jmp 0x414ddd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00416e43
ret