joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431360
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x466f98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x431399
inc eax
mov dword [esi + 0x10], eax
jmp 0x4314ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4313ad
mov eax, 0xffffffc7
jmp 0x4314ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4313be
cmp dword [esi + 8], eax
jne 0x4313ad
cmp dword [esi + 8], eax
jne 0x4313d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4313d7
mov eax, 0xffffffc7
jmp 0x4314ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4313eb
push eax
mov ecx, ebx
call fcn.00430b90
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00404a80
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43141c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404aa0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430300
test eax, eax
mov dword [esp + 0x38], eax
je 0x43144f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x7963e0
call fcn.00404c80
mov eax, dword [esp + 0x38]
jmp 0x4314ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004311c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x431493
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004311e0
mov esi, eax
test esi, esi
jne 0x4314c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004311c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431465
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x7963e0
call fcn.00404c80
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x7963e0
call fcn.00404c80
mov eax, esi
jmp 0x4314ae

Function at 0x434570
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4345d0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4345d0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4345d0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4345d0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43a4e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4675c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004607e2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439e80
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00460710
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045cfd6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045cfd6
push 1
push 0
push 0
mov ecx, esi
call fcn.0045cf7e
push 1
push 0
push 1
mov ecx, esi
call fcn.0045cf7e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460854
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a660
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4675e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004607e2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439e80
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00460710
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43a724
cmp dword [esp + 0x40], 1
jne 0x43a722
cmp ecx, eax
jge 0x43a724
mov eax, ecx
cmp eax, 0xc8
jge 0x43a730
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043a4e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460854
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43aeb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467653
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045b3f1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00460a8a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00461fa6
test eax, eax
je 0x43afcc
mov ecx, dword [esp + 0x3c]
call fcn.00460ab7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43af90
push edi
mov ecx, esi
call fcn.0045e11d
mov ecx, esi
call fcn.0043b130
cmp dword [esp + 0x38], 1
jne 0x43afc5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045e258
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d9e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43da13
push esi
call fcn.00440af0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43da0c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43da99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43da82
mov eax, dword [esi + 8]
test eax, eax
je 0x43da37
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43da7e
cmp eax, 2
je 0x43da82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43da2a
cmp eax, 3
je 0x43da5d
cmp eax, 1
jne 0x43da2a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43da2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43da2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043dac0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43daa8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043dac0
add esp, 4
pop esi
ret

Function at 0x45c1e7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45c21f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045a29e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045a276
jmp 0x45c22b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45d8da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45d91c
call fcn.0046338c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45d91c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d913
xor eax, eax
jmp 0x45d924
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d92a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4638bc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4638ea
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x463908
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463822
jmp 0x463908
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463908
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463822
test edi, edi
mov eax, edi
jne 0x4638f2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000148b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0xc], 0xc
lea eax, [edi + 0x20]
mov dword [ebp - 8], esi
push eax
push esi
lea eax, [ebp - 0xc]
push 4
push eax
push 0xffffffffffffffff
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
je 0x100014e8
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x100014e8
mov esi, dword [ebp + 8]
mov ecx, edi
mov edi, eax
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]
pop edi
pop esi
leave
ret

Function at 0x100014ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
ja 0x10001524
cmp byte [ebp + 0x14], 0
je 0x10001524
test eax, eax
je 0x10001524
cmp dword [ebp + 0xc], 0
je 0x10001524
push esi
mov esi, dword [ebp + 0x10]
dec eax
mov cl, byte [eax + 1]
inc eax
xor cl, byte [ebp + 0x14]
inc byte [ebp + 0x14]
mov byte [esi], cl
inc esi
cmp eax, dword [ebp + 0xc]
jne 0x1000150c
mov eax, dword [ebp + 0x10]
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10002e35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100063d0
cmp edx, dword [eax]
je 0x10002e57
add eax, 8
inc ecx
cmp eax, 0x10006460
jl 0x10002e48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100063d0]
jne 0x10002f85
mov eax, dword [0x100071a8]
cmp eax, 1
je 0x10002f5f
test eax, eax
jne 0x10002e88
cmp dword [0x100071ac], 1
je 0x10002f5f
cmp edx, 0xfc
je 0x10002f85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002ebf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10003200
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100032f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10002f02
lea eax, [ebp - 0x1a4]
push eax
call fcn.100032f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10005394
push edi
call fcn.10004370
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10003200
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10003210
lea eax, [ebp - 0xa0]
push 0x10005374
push eax
call fcn.10003210
push dword [esi + 0x100063d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10003210
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100042de
add esp, 0x2c
pop edi
jmp 0x10002f85
lea eax, [ebp + 8]
lea esi, [esi + 0x100063d4]
push 0
push eax
push dword [esi]
call fcn.100032f0
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]
pop esi
leave
ret
Function at 0x5dfb9e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x24]
je fcn.005b2bab
sbb esi, 0xb021bcd2
shrd edx, edi, cl
ror esi, 0xc
jmp 0x5e78a9
pushal
clc
test eax, eax
pushfd
mov byte [esp], ah
mov byte [esp + 8], 0xb9
jmp 0x5b265a
dec dl
mov edx, dword [esi + 0x78]
test si, bp
stc
test edx, edx
jmp 0x5c825b
call 0x5dfbe0
sal al, cl
push ebx
aad 0x31
push edx
bsr ax, dx
ror al, 5
mov eax, dword [ebp + 8]
cmp ch, al
jmp 0x5be5c9
add esi, eax
lea edx, [edx + 0x2bcae5e6]
jmp 0x5c43c6
adc eax, 0x51e44b6
push ebp
bsf eax, ebp
lea eax, [eax + 0xce22ae9]
ror eax, 0x1a
mov ebp, esp
rol ah, cl
movzx ax, cl
and ax, si
sal eax, cl
sub esp, 0x18
shr al, 1
push esi
add ah, 0x52
push edi
shr ah, cl
jmp 0x5c88c5
mov esi, dword [eax + 0x3c]
sub dl, 0x32
neg dx
bt ax, 0xc
jmp 0x5dd790
Function at 0x401370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.00401100
mov ebp, dword [ebx]
mov dword [esp + 0x14], ebp
lea esi, [ebx + 4]
mov ecx, 0x23
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xac]
push edi
lea ecx, [esp + 0x18]
call fcn.00401190
test eax, eax
jg 0x401469
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0xa0], eax
jmp 0x4014cd
xor esi, esi
test ebp, ebp
jbe 0x4014af
mov edx, edi
sub edx, ebx
lea edi, [esp + 0x14]
lea ecx, [ebx + 4]
mov dword [esp + 0x10], edx
sub edi, ebx
jmp 0x401486
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [edx + ecx]
cmp eax, edx
ja 0x4014a0
jne 0x401495
test esi, esi
je 0x4014a0
sub eax, edx
sub eax, esi
mov esi, 1
jmp 0x4014a6
sub eax, edx
sub eax, esi
xor esi, esi
mov dword [edi + ecx], eax
add ecx, 4
dec ebp
jne 0x401482
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x14]
test ecx, ecx
jne 0x4014cd
jmp 0x4014c0
dec eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + eax*4 + 0x14]
test ecx, ecx
je 0x4014c0
mov eax, dword [esp + 0xa8]
lea esi, [esp + 0x14]
mov edi, eax
mov ecx, 0x24
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8
Function at 0x4016a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x124
push ebx
push esi
push edi
mov esi, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4016b2
xor ecx, ecx
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
lea edi, [esi + 4]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
sub eax, edx
mov dword [esi + 0x88], ecx
xor ebx, ebx
test eax, eax
mov dword [esp + 0xc], eax
mov dword [esi + 0x8c], ecx
jle 0x4017ee
push ebp
mov edi, edi
mov edx, dword [esp + 0x13c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004014f0
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, edi
sub eax, esi
mov edx, 0x23
mov ebp, dword [eax + ecx]
mov dword [ecx], ebp
add ecx, 4
dec edx
jne 0x401771
mov edx, dword [esp + 0x138]
mov al, byte [ebx + edx]
cmp al, 0x30
jl 0x401796
cmp al, 0x39
jg 0x401796
movsx eax, al
sub eax, 0x30
jmp 0x4017b8
cmp al, 0x41
jl 0x4017a6
cmp al, 0x46
jg 0x4017a6
movsx eax, al
sub eax, 0x37
jmp 0x4017b8
cmp al, 0x61
jl 0x4017b6
cmp al, 0x66
jg 0x4017b6
movsx eax, al
sub eax, 0x57
jmp 0x4017b8
xor eax, eax
push eax
lea eax, [esp + 0xa8]
push eax
mov ecx, esi
call fcn.004012d0
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, edi
sub eax, esi
mov edx, 0x23
mov ebp, dword [eax + ecx]
mov dword [ecx], ebp
add ecx, 4
dec edx
jne 0x4017d5
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x401750
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret 8

Function at 0x403000
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41cf58
push eax
mov dword fs:[0], esp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], 0
call fcn.00402f40
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
cmp dword [esp + 0x2c], 0x10
jb 0x403045
mov edx, dword [esp + 0x18]
push edx
call fcn.004105ec
add esp, 4
mov ecx, dword [esp]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x403d00
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ea60
push 0x4113dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
cmp eax, ebx
je 0x403d85
push 4
push 0x1000
mov eax, dword [ebp + 0x18]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x403dfb
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x403dfb
push 0x40
push 0x1000
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x403dfb
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x403dfb
lea edx, [ebp - 0x30]
push edx
push 0
push edi
push ebx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x403dfb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403df7
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00403e25
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret