joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4283e0
Capabilities:
Resume thread

Disassembly:
mov ecx, dword [ecx + 0x10]
jmp 0x429d40
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
push esi
xor esi, esi
test eax, eax
jbe 0x429d6a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
lea edi, [ebx + 0x10]
mov eax, dword [edi]
push eax
call ebp
mov eax, dword [ebx + 0xc]
inc esi
add edi, 4
cmp esi, eax
jb 0x429d58
pop edi
pop ebp
pop esi
pop ebx
ret

Function at 0x428440
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x44d998]
xor eax, esp
push esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push edi
mov edi, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 8], eax
je 0x42847a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0042cc6e
add esp, 0x18
ret 0xc
push ebx
push ebp
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push esi
mov ebx, eax
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebp, eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 0xc]
mov word [esp + 0x16], ax
call fcn.00429980
mov esi, eax
test esi, esi
je 0x4284c7
mov ecx, esi
call fcn.004270c0
jmp 0x4284c9
xor esi, esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0xa8]
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], edx
push eax
mov ecx, esi
mov dword [esi + 0x18], ebx
call fcn.00427210
mov ecx, dword [edi + 0x14]
push esi
call fcn.0042a0a0
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0042cc6e
add esp, 0x18
ret 0xc
Function at 0x429170
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x44d998]
xor eax, esp
push esi
mov esi, dword [esp + 0x1c]
push 0x4a75a8
mov dword [esp + 0x18], eax
sub esp, 0x10
mov eax, 0xb5367df1
mov ecx, esp
mov dword [ecx], eax
mov word [esp + 0x1c], 0xcbac
mov word [esp + 0x1e], 0x11cf
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
mov byte [esp + 0x20], 0x95
mov byte [esp + 0x21], 0xca
mov byte [esp + 0x22], 0
mov byte [esp + 0x23], 0x80
mov eax, dword [esp + 0x20]
mov byte [esp + 0x24], 0x5f
mov byte [esp + 0x25], 0x48
mov byte [esp + 0x26], 0xa1
mov byte [esp + 0x27], 0x92
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], eax
push esi
mov dword [ecx + 0xc], edx
call fcn.004290f0
add esp, 0x18
push 0x4a75ac
sub esp, 0x10
mov eax, 0xb5367df0
mov ecx, esp
mov dword [ecx], eax
mov word [esp + 0x1c], 0xcbac
mov word [esp + 0x1e], 0x11cf
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
mov byte [esp + 0x20], 0x95
mov byte [esp + 0x21], 0xca
mov byte [esp + 0x22], 0
mov byte [esp + 0x23], 0x80
mov eax, dword [esp + 0x20]
mov byte [esp + 0x24], 0x5f
mov byte [esp + 0x25], 0x48
mov byte [esp + 0x26], 0xa1
mov byte [esp + 0x27], 0x92
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], eax
push esi
mov dword [ecx + 0xc], edx
call fcn.004290f0
add esp, 0x18
push 0x4a75b0
sub esp, 0x10
mov eax, 0xb5367df2
mov ecx, esp
mov dword [ecx], eax
mov word [esp + 0x1c], 0xcbac
mov word [esp + 0x1e], 0x11cf
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
mov byte [esp + 0x20], 0x95
mov byte [esp + 0x21], 0xca
mov byte [esp + 0x22], 0
mov byte [esp + 0x23], 0x80
mov eax, dword [esp + 0x20]
mov byte [esp + 0x24], 0x5f
mov byte [esp + 0x25], 0x48
mov byte [esp + 0x26], 0xa1
mov byte [esp + 0x27], 0x92
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], eax
push esi
mov dword [ecx + 0xc], edx
call fcn.004290f0
add esp, 0x18
mov eax, 0x7fda2e11
mov word [esp + 8], 0x8630
mov word [esp + 0xa], 0x436f
mov byte [esp + 0xc], 0xa0
mov edx, dword [esp + 8]
push 0x4a75b4
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov byte [esp + 0x21], 0x31
mov byte [esp + 0x22], 0xf5
mov byte [esp + 0x23], 0x36
mov eax, dword [esp + 0x20]
mov byte [esp + 0x24], 0xa6
mov byte [esp + 0x25], 0xee
mov byte [esp + 0x26], 0xc1
mov byte [esp + 0x27], 0x57
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], eax
push esi
mov dword [ecx + 0xc], edx
call fcn.004290f0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
pop esi
xor ecx, esp
add esp, 0x14
jmp fcn.0042cc6e
Function at 0x429c30
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x429cf5
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x429cf5
mov edx, dword [esp + 8]
push edi
lea edi, [esi + 0x50]
xor eax, eax
test edx, edx
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov word [edi], 2
je 0x429c9a
mov eax, edx
push ebx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429c81
sub eax, ebx
mov dword [esp + 0x10], eax
pop ebx
je 0x429c9a
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x429ca2
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x10]
push edx
mov dword [esi + 0x54], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [esi + 0x52], ax
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x429cd7
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
ret 8
mov edx, dword [esi + 8]
push closesocket
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x429cfb
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
ret 8
mov eax, 1
pop esi
ret 8

Function at 0x429d70
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
test eax, eax
jbe 0x429d99
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
push eax
call ebp
mov eax, dword [esi + 0xc]
inc edi
add ebx, 4
cmp edi, eax
jb 0x429d88
pop ebp
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x429daf
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jbe 0x429dd4
mov ebx, dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov edi, edi
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push ecx
call ebx
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jb 0x429dc0
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push 1
lea edx, [esi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
pop edi
pop esi
pop ebx
ret

Function at 0x429e40
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
test eax, eax
jbe 0x429e6a
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
push eax
call ebp
mov eax, dword [esi + 0xc]
inc edi
add ebx, 4
cmp edi, eax
jb 0x429e58
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.00429c30
test eax, eax
jne 0x429e84
pop edi
pop esi
ret 8
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov edx, dword [esi + 8]
push edx
call fcn.00429170
add esp, 4
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x42e27a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42e29a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00434141
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42e2bd
test byte [esp + 8], 2
je 0x42e2bd
call fcn.0043412f
mov dword [eax], 0xd
call fcn.00434138
mov dword [eax], 5
jmp 0x42e296
xor eax, eax
ret

Function at 0x43018d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4301aa
call fcn.0043412f
mov dword [eax], 0x16
xor eax, eax
jmp 0x430214
push esi
push 0x8c
push 1
call fcn.0043000c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4301ff
push esi
call fcn.0043078f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4301dd
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4300f8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x430213
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0042d20d
test ebx, ebx
pop ecx
je 0x430211
push ebx
call fcn.00434141
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43345f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x447598
call fcn.00431de4
push 8
call fcn.004320eb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4af7c0], esi
jne 0x433493
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4af7bc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4af7b8], al
cmp dword [ebp + 0xc], edi
jne 0x4334dd
cmp dword [0x4afbe8], edi
je 0x4334cd
mov eax, dword [0x4afbe4]
sub eax, 4
mov dword [0x4afbe4], eax
cmp eax, dword [0x4afbe8]
jb 0x4334cd
mov eax, dword [eax]
cmp eax, edi
je 0x4334ae
call eax
jmp 0x4334ae
push 0x44c068
mov eax, 0x44c058
call fcn.004333dd
pop ecx
push 0x44c074
mov eax, 0x44c06c
call fcn.004333dd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x43350e
cmp dword [ebp + 0x10], edi
jne 0x43351c
mov dword [0x4af7c0], esi
push dword [ebp + 8]
call fcn.0043339b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x43351b
push 8
call fcn.00432036
pop ecx
ret
call fcn.00431e1f
ret
Function at 0x4335d8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44d998]
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 + 0x44e060]
je 0x43360d
inc eax
cmp eax, 0x13
jb 0x4335fe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44e060]
jne 0x433733
mov eax, dword [0x4af5d0]
cmp eax, 1
je 0x43370b
cmp eax, edx
jne 0x43363d
cmp dword [0x44d9d4], 1
je 0x43370b
cmp ecx, 0xfc
je 0x433733
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 0x433673
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00431ea0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042f980
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4336a7
mov eax, edi
push eax
call fcn.0042f980
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44704c
push edi
call fcn.0042d3e0
add esp, 0x10
push edi
call fcn.0042f980
push dword [esi + 0x44e064]
mov ebx, eax
call fcn.0042f980
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042d360
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00431ea0
push edi
push ebx
call fcn.00431eb0
push 0x447048
push ebx
call fcn.00431eb0
push dword [esi + 0x44e064]
push ebx
call fcn.00431eb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00435c9e
add esp, 0x2c
jmp 0x433733
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44e064]
push dword [esi]
call fcn.0042f980
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.0042cc6e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x434a48
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.0042d360
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x434ae3
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 [0x4af780]
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 0x434ae3
cmp eax, 1
je 0x434b04
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 0x434ae3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x434ab0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x434adf
xor eax, eax
inc eax
jmp 0x434b23
cmp edi, eax
jae 0x434ae7
xor eax, eax
jmp 0x434b23
cmp eax, esi
jae 0x434aee
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 [0x4af780]
jmp 0x434b07
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 0x434b2b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44d998]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x434b5c
xor eax, eax
jmp 0x434ce5
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4afae0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x434b98
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004377a5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x434c73
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x434cb1
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x434bfc
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x434bed
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x434bcd
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434c3c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x434c45
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x434bbe
jmp 0x434c47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x434ce0
cmp dword [ebp - 0x6c], edi
je 0x434cb1
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x434ca6
call fcn.0043412f
mov dword [eax], 9
call fcn.00434138
mov dword [eax], esi
jmp 0x434cdb
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434c9b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x434c47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x434c47
push dword [ebp - 0x6c]
call fcn.00434141
pop ecx
jmp 0x434cdb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x434cc9
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x434cc9
xor eax, eax
jmp 0x434ce3
call fcn.0043412f
mov dword [eax], 0x1c
call fcn.00434138
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x434ce3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042cc6e
add ebp, 0x3a0
leave
ret
Function at 0x435a75
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 0x435aa3
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 0x435aaa
cmp ebx, dword [eax + 4]
jae 0x435aaa
xor eax, eax
jmp 0x435c9a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x435abb
xor eax, eax
inc eax
jmp 0x435c99
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x435ad1
cmp ecx, edx
jae 0x435c16
cmp dword [eax + 4], 0
je 0x435ada
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x435ac2
cmp dword [ebp + 8], 0
je 0x435afc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x435c16
cmp eax, esi
jae 0x435c16
mov eax, dword [0x4af9c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x435b21
cmp dword [esi*4 + 0x4af9d0], edi
je 0x435c1a
inc esi
cmp esi, eax
jl 0x435b0f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435c96
cmp dword [ebp - 8], 0x1000000
jne 0x435c96
test byte [ebp - 0xc], 0xcc
je 0x435b9f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x435c96
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x435c96
cmp word [eax + 0x18], 0x10b
jne 0x435c96
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x435c96
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x435b9f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x435b9f
test byte [ecx + 0x27], 0x80
jne 0x435c16
push 1
push 0x4afa10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x435ab3
mov ecx, dword [0x4af9c8]
test ecx, ecx
mov edx, ecx
jle 0x435bd3
lea eax, [ecx*4 + 0x4af9cc]
cmp dword [eax], edi
je 0x435bd3
dec edx
sub eax, 4
test edx, edx
jg 0x435bc7
test edx, edx
jne 0x435c04
push 0xf
pop ebx
cmp ecx, ebx
jg 0x435be0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x435bf8
lea eax, [edx*4 + 0x4af9d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x435be6
cmp ecx, 0x10
jge 0x435c04
inc ecx
mov dword [0x4af9c8], ecx
push 0
push 0x4afa10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x435ab3
xor eax, eax
jmp 0x435c99
test esi, esi
jle 0x435ab3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4afa10
call ebx
test eax, eax
jne 0x435ab3
cmp dword [esi*4 + 0x4af9d0], edi
je 0x435c70
mov eax, dword [0x4af9c8]
lea esi, [eax - 1]
test esi, esi
jl 0x435c5e
cmp dword [esi*4 + 0x4af9d0], edi
je 0x435c5a
dec esi
jns 0x435c4e
test esi, esi
jge 0x435c6e
cmp eax, 0x10
jge 0x435c69
inc eax
mov dword [0x4af9c8], eax
lea esi, [eax - 1]
jmp 0x435c70
je 0x435c88
xor ecx, ecx
test esi, esi
jl 0x435c88
lea eax, [ecx*4 + 0x4af9d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x435c76
push 0
push 0x4afa10
call ebx
jmp 0x435ab3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435c9e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4afa14], ebx
push esi
push edi
jne 0x435d1e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x435d59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4afa14], eax
je 0x435d59
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4afa18], eax
call esi
cmp dword [0x4af780], 2
mov dword [0x4afa1c], eax
jne 0x435d1e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4afa24], eax
je 0x435d1e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4afa20], eax
mov eax, dword [0x4afa20]
test eax, eax
je 0x435d63
call eax
test eax, eax
je 0x435d4a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4afa24]
test eax, eax
je 0x435d4a
test byte [ebp - 8], 1
jne 0x435d63
cmp dword [0x4af78c], 4
jb 0x435d5d
or byte [ebp + 0x12], 0x20
jmp 0x435d82
xor eax, eax
jmp 0x435d92
or byte [ebp + 0x12], 4
jmp 0x435d82
mov eax, dword [0x4afa18]
test eax, eax
je 0x435d82
call eax
mov ebx, eax
test ebx, ebx
je 0x435d82
mov eax, dword [0x4afa1c]
test eax, eax
je 0x435d82
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4afa14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4370e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x437111
cmp eax, 1
je 0x437111
jle 0x437119
cmp eax, 3
jle 0x437111
cmp eax, 4
jne 0x437119
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x437144
call fcn.0043412f
mov dword [eax], 0x16
call fcn.00434138
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x4372bd
inc eax
cmp byte [eax], bl
jne 0x437133
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x437144
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x437133
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00436190
mov dword [ebp - 0x68], esi
mov esi, dword [0x4afad4]
add esp, 0xc
cmp esi, ebx
je 0x43718a
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x4afae0]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x43718a
dec esi
dec ecx
cmp esi, ebx
jne 0x43716a
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.0043000c
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x4371f1
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x4afae0]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x4371dd
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x4371e2
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x4371b6
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x437222
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x437208
mov edi, esi
jmp 0x43720b
push 3
pop edi
cmp edx, edi
jge 0x43721b
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x4371ff
mov dword [ebp - 0xc], 8
call fcn.0043412f
mov dword [eax], ebx
call fcn.00434138
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0042d20d
cmp esi, ebx
pop ecx
jne 0x437272
push edi
call fcn.00434141
pop ecx
or eax, 0xffffffff
jmp 0x4372bb
cmp dword [ebp + 8], 2
jne 0x43727e
push ebx
call fcn.00433533
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4372ab
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x4372b4
cmp dword [ebp + 8], 4
je 0x4372a4
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret