joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423b50
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447328
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x34], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi + 0x74], 1
je 0x423bc9
lea eax, [edi + 0x4c]
mov dword [edi + 0x54], 0
push eax
push dword [edi + 0x44]
mov dword [edi + 0x58], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call ebx
test esi, esi
jne 0x423bc9
cmp eax, 0x217
je 0x423bc9
cmp eax, 0x3e5
jne 0x423bc9
push 0xffffffffffffffff
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x14], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push 0x401
mov dword [ebp - 4], 0
call fcn.00426a40
add esp, 4
mov esi, eax
nop
push 0
lea eax, [ebp - 0x14]
push eax
push 0x400
push esi
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call ebx
cmp eax, 6
je 0x423c6f
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x423c76
cmp byte [esi + eax - 1], 0
mov byte [esi + 0x400], 0
sete bl
cmp byte [esi], 0
jne 0x423c4b
xor eax, eax
jmp 0x423c59
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423c50
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00409e60
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x423c76
jmp 0x423c10
mov dword [ebp - 0x14], 0
push esi
call fcn.004265a8
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x423cb2
push dword [edi + 0x3c]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi + 0x38]
call eax
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0x10
jb 0x423bd2
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404e80
jmp 0x423bd2
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x423cc7
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404e80
mov byte [edi + 0x74], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426210
mov esp, ebp
pop ebp
ret
Function at 0x423cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x423d20
mov ecx, dword [ecx]
lea edi, [esi + 0x60]
inc eax
push edi
lea edx, [ebp - 8]
push edx
push eax
push ecx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x423d60
push 0xffffffffffffffff
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x423d60
push 1
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00426210
mov esp, ebp
pop ebp
ret 4
Function at 0x424360
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x40
jb 0x424377
mov eax, 0x10
pop esi
pop ebp
ret
lea eax, [ecx*8]
add dword [esi], eax
adc dword [esi + 4], 0
mov byte [ecx + esi + 0x20], 0x80
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x38
jbe 0x4243c1
cmp eax, 0x40
jae 0x4243b0
lea esp, [esp]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x40
jb 0x4243a0
lea edx, [esi + 0x20]
mov ecx, esi
call fcn.00423ec0
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x1c], 0x38
jae 0x4243e1
jmp 0x4243d0
mov eax, dword [esi + 0x1c]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0x38
jb 0x4243d0
movzx eax, byte [esi + 7]
lea edx, [esi + 0x20]
mov byte [esi + 0x58], al
mov ecx, esi
movzx eax, byte [esi + 6]
mov byte [esi + 0x59], al
movzx eax, byte [esi + 5]
mov byte [esi + 0x5a], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x5b], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x5c], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x5d], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x5e], al
movzx eax, byte [esi]
mov byte [esi + 0x5f], al
call fcn.00423ec0
mov ecx, dword [ebp + 0xc]
movzx eax, byte [esi + 0xb]
mov byte [ecx], al
movzx eax, byte [esi + 0xa]
mov byte [ecx + 1], al
movzx eax, byte [esi + 9]
mov byte [ecx + 2], al
movzx eax, byte [esi + 8]
mov byte [ecx + 3], al
movzx eax, byte [esi + 0xf]
mov byte [ecx + 4], al
movzx eax, byte [esi + 0xe]
mov byte [ecx + 5], al
movzx eax, byte [esi + 0xd]
mov byte [ecx + 6], al
movzx eax, byte [esi + 0xc]
mov byte [ecx + 7], al
movzx eax, byte [esi + 0x13]
mov byte [ecx + 8], al
movzx eax, byte [esi + 0x12]
mov byte [ecx + 9], al
movzx eax, byte [esi + 0x11]
mov byte [ecx + 0xa], al
movzx eax, byte [esi + 0x10]
mov byte [ecx + 0xb], al
movzx eax, byte [esi + 0x17]
mov byte [ecx + 0xc], al
movzx eax, byte [esi + 0x16]
mov byte [ecx + 0xd], al
movzx eax, byte [esi + 0x15]
mov byte [ecx + 0xe], al
movzx eax, byte [esi + 0x14]
mov byte [ecx + 0xf], al
movzx eax, byte [esi + 0x1b]
mov byte [ecx + 0x10], al
movzx eax, byte [esi + 0x1a]
mov byte [ecx + 0x11], al
movzx eax, byte [esi + 0x19]
mov byte [ecx + 0x12], al
movzx eax, byte [esi + 0x18]
mov byte [ecx + 0x13], al
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401e30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401e7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e74
test esi, esi
je 0x401e74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e50
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402060
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402184
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x4020ee
cmp eax, 4
jne 0x402110
test esi, esi
je 0x402102
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x4020f4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40214f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402141
cmp ecx, 0x40
je 0x402102
cmp ecx, 4
je 0x402102
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402060
lea esi, [esi]
Function at 0x4042b0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x4042eb
jmp 0x40433e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4042e8
cmp al, 9
je 0x4042e8
cmp al, 0x22
jne 0x404327
lea esi, [esi]
mov edx, ebx
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 0x22
je 0x404315
test al, al
jne 0x404300
cmp al, 0x22
jne 0x404333
lea ebx, [edx + 2]
jmp 0x404333
cmp al, 9
je 0x404333
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x404320
jmp 0x404333
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404330
cmp al, 9
je 0x404330
mov esi, 0xa
test byte [ebp - 0x30], 1
je 0x40434d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402cd4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410050]
jne 0x402cde
repz ret
jmp 0x4046c0
nop
nop
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x411220], eax
mov dword [0x41121c], ecx
mov dword [0x411218], edx
mov dword [0x411214], ebx
mov dword [0x411210], esi
mov dword [0x41120c], edi
mov word [0x411238], ss
mov word [0x41122c], cs
mov word [0x411208], ds
mov word [0x411204], es
mov word [0x411200], fs
mov word [0x4111fc], gs
pushfd
pop dword [0x411230]
mov eax, dword [ebp]
mov dword [0x411224], eax
mov eax, dword [ebp + 4]
mov dword [0x411228], eax
lea eax, [ebp + 8]
mov dword [0x411234], eax
mov eax, dword [ebp - 0x320]
mov dword [0x411170], 0x10001
mov eax, dword [0x411228]
mov dword [0x411124], eax
mov dword [0x411118], 0xc0000409
mov dword [0x41111c], 1
mov eax, dword [0x410050]
mov dword [ebp - 0x328], eax
mov eax, dword [0x410054]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x411168], eax
push 1
call fcn.00407f18
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x40c778
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x411168], 0
jne 0x4047b2
push 1
call fcn.00407f18
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x403600
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x58
push 0x40e578
call fcn.00407130
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esi, esi
cmp dword [0x412efc], esi
jne 0x4034be
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4034d1
mov dword [ebp - 0x1c], esi
jmp 0x403507
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4034cc
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4034cc
cmp dword [eax + 0x400074], 0xe
jbe 0x4034cc
sub ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.004047c6
or eax, eax
jne 0x403518
push 0x1c
call 0x40346a
pop ecx
call 0x404320
or eax, eax
jne 0x403529
push 0x10
call 0x40346a
pop ecx
call 0x4070e2
mov dword [ebp - 4], esi
call 0x406e9d
or eax, eax
jns 0x403542
push 0x1b
call fcn.00404ab1
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ef8], eax
call 0x406e06
mov dword [0x4110d8], eax
call 0x406d4b
or eax, eax
jns 0x403568
push 8
call fcn.00404ab1
pop ecx
call fcn.00406ad5
or eax, eax
jns 0x403579
push 9
call fcn.00404ab1
pop ecx
push 1
call 0x404890
pop ecx
cmp eax, esi
je 0x40358c
push eax
call fcn.00404ab1
pop ecx
call 0x406a76
test byte [ebp - 0x3c], 1
je 0x40359d
movzx ecx, word [ebp - 0x38]
jmp 0x4035a0
push 0xa
pop ecx
push ecx
push eax
push esi
push 0x400000
call main
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x4035bb
push eax
call 0x404a67
call fcn.00404a93
jmp 0x4035f0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00407175
ret
call 0x40731f
jmp 0x403493
Function at 0x4046c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410050]
jne 0x402cde
repz ret
jmp 0x4046c0
nop
nop
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x411220], eax
mov dword [0x41121c], ecx
mov dword [0x411218], edx
mov dword [0x411214], ebx
mov dword [0x411210], esi
mov dword [0x41120c], edi
mov word [0x411238], ss
mov word [0x41122c], cs
mov word [0x411208], ds
mov word [0x411204], es
mov word [0x411200], fs
mov word [0x4111fc], gs
pushfd
pop dword [0x411230]
mov eax, dword [ebp]
mov dword [0x411224], eax
mov eax, dword [ebp + 4]
mov dword [0x411228], eax
lea eax, [ebp + 8]
mov dword [0x411234], eax
mov eax, dword [ebp - 0x320]
mov dword [0x411170], 0x10001
mov eax, dword [0x411228]
mov dword [0x411124], eax
mov dword [0x411118], 0xc0000409
mov dword [0x41111c], 1
mov eax, dword [0x410050]
mov dword [ebp - 0x328], eax
mov eax, dword [0x410054]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x411168], eax
push 1
call fcn.00407f18
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x40c778
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x411168], 0
jne 0x4047b2
push 1
call fcn.00407f18
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
xor esi, esi
push esi
push 1
push 2
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov word [esp + 0x58], si
mov dword [esp + 0x5c], esi
mov word [esp + 0x5a], si
mov dword [esp + 0x54], 0x101
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
call ebx
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [0x40e7c0]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4010a0
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
add esp, 0x54
ret
push esi
push esi
push esi
push esi
push esi
push 0xa
push 0x40ea60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409fe6
add esp, 0xc
push eax
push str.Failed_to_execute_shell__error___s
call fcn.00402060
add esp, 0x1c
mov eax, esi
pop esi
pop ebx
add esp, 0x54
ret
Function at 0x4012d0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x14
push esi
push edi
xor edi, edi
push 0x18
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call fcn.00404125
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x4012f7
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push ebx
push ebp
push edi
lea eax, [esp + 0x1c]
mov dword [esi], edi
mov dword [esi + 4], edi
push eax
lea ecx, [esp + 0x1c]
lea ebx, [esi + 4]
push ecx
mov dword [esp + 0x28], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
jne 0x40135b
push 0
push 0
push 0
push 0
push 0xa
push 0x40ea60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409fe6
add esp, 0xc
push eax
push str.Failed_to_create_shell_stdout_pipe__error___s
jmp 0x4013c5
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x40138f
push eax
push eax
push eax
push eax
push eax
push 0xa
push 0x40ea60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409fe6
add esp, 0xc
push eax
push str.Failed_to_create_shell_stdin_pipe__error___s
jmp 0x4013c5
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
call fcn.00401000
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esi + 8]
test eax, eax
jne 0x401408
push 0
push 0
push 0
push 0
push 0
push 0
push str.Failed_to_execute_shell
call fcn.00402060
mov eax, dword [esp + 0x2c]
add esp, 0x1c
test eax, eax
je 0x4013d8
push eax
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4013e3
push eax
call ebp
mov eax, dword [esi]
test eax, eax
je 0x4013ec
push eax
call ebp
mov eax, dword [ebx]
test eax, eax
je 0x4013f5
push eax
call ebp
push esi
call fcn.0040407b
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
pop ebp
pop ebx
pop edi
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x4020f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
mov word [0x40e7b4], 1
call fcn.00402060
mov ecx, dword [0x40e048]
add esp, 0x1c
push 2
push ecx
call sub.WS2_32.dll_shutdown
mov edx, dword [0x40e048]
push edx
call sub.WS2_32.dll_closesocket
push 1
call fcn.00404592
add esp, 4
push 1
call fcn.00404552
int3
Function at 0x4025d0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [0x40e7cc], edi
call sub.WS2_32.dll_WSASetLastError
cmp word [0x40e7b0], di
je 0x4025f3
push 0x11
push 2
jmp 0x4025f7
push 6
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, edi
mov dword [0x40e9f0], eax
jge 0x402611
push str.Cant_get_socket
call fcn.004020f0
jne 0x402621
push edi
call fcn.0040a065
add esp, 4
mov dword [0x40e9f0], eax
mov ecx, dword [0x40ea48]
push 4
push ecx
push 4
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x402649
push str.nnetfd_reuseaddr_failed
call fcn.00402060
add esp, 4
mov edx, dword [0x40e780]
mov esi, dword [ebp + 0x10]
cmp esi, edi
mov word [edx], 2
mov eax, dword [0x40e784]
mov word [eax], 2
je 0x402670
mov ecx, dword [esi]
mov edx, dword [0x40e780]
mov dword [edx + 4], ecx
mov ebx, dword [ebp + 0x14]
cmp bx, di
je 0x402688
push ebx
call sub.WS2_32.dll_htons
mov ecx, dword [0x40e780]
mov word [ecx + 2], ax
test esi, esi
jne 0x402691
test bx, bx
je 0x4026fd
mov esi, 4
jmp 0x4026a0
mov edx, dword [0x40e780]
mov eax, dword [0x40e9f0]
push 0x10
push edx
push eax
call sub.WS2_32.dll_bind
mov edi, eax
test edi, edi
je 0x40271f
cmp dword [0x40e7cc], 0x2740
jne 0x4026fd
mov edx, dword [0x40e780]
mov eax, dword [edx + 4]
movzx ecx, bx
push ecx
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push str.retrying_local__s:_d
call fcn.00402060
push 1
call fcn.00404592
add esp, 0x10
dec esi
test esi, esi
mov dword [0x40e7cc], 0
jg 0x4026a0
test edi, edi
je 0x40271f
mov edx, dword [0x40e780]
mov eax, dword [edx + 4]
movzx ecx, bx
push ecx
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push str.Cant_grab__s:_d_with_bind
call fcn.004020f0
cmp word [0x40e7a0], 0
jne 0x4027ad
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x40e784]
push ecx
mov dword [eax + 4], edx
call sub.WS2_32.dll_htons
mov edx, dword [0x40e784]
mov word [edx + 2], ax
mov eax, dword [0x40e768]
test eax, eax
je 0x402763
push str.Warning:_source_routing_unavailable_on_this_machine__ignoring
call fcn.00402060
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call edi
push 0
push 0x40ea00
call fcn.00404828
add esp, 8
test eax, eax
jne 0x402798
mov eax, dword [0x40e784]
mov ecx, dword [0x40e9f0]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
mov esi, eax
jmp 0x4027a5
push 0x274c
or esi, 0xffffffff
call sub.WS2_32.dll_WSASetLastError
push 0xfffffffffffffff5
call edi
test esi, esi
jne 0x4027b7
mov eax, dword [0x40e9f0]
pop edi
pop esi
pop ebx
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [0x40e9f0]
push 2
push edx
mov dword [0x40e7cc], eax
call sub.WS2_32.dll_shutdown
mov eax, dword [0x40e9f0]
push eax
call sub.WS2_32.dll_closesocket
mov ecx, dword [0x40e7cc]
push ecx
call sub.WS2_32.dll_WSASetLastError
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x402b80
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x40e9ec]
push esi
mov esi, dword [esp + 8]
push 0
push 1
push eax
push esi
call sub.WS2_32.dll_send
cmp eax, 1
je 0x402bae
mov ecx, dword [0x40e7cc]
push ecx
push str.udptest_first_write_failed___errno__d
call fcn.00402060
add esp, 8
mov eax, dword [0x40e7b8]
test eax, eax
je 0x402bc2
push eax
call fcn.00404592
add esp, 4
jmp 0x402c12
mov edx, dword [esp + 0xc]
push edi
push 0
push 0
push 0x7a69
push edx
mov word [0x40e7b0], 0
mov dword [0x40e7b8], 5
call fcn.004025d0
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x402bfa
push 2
push esi
call sub.WS2_32.dll_shutdown
push edi
call sub.WS2_32.dll_closesocket
inc word [0x40e7b0]
mov dword [0x40e7b8], 0
pop edi
mov eax, dword [0x40e9ec]
push 0
push 1
push eax
push esi
mov dword [0x40e7cc], 0
call sub.WS2_32.dll_send
cmp eax, 1
jne 0x402c35
mov eax, esi
pop esi
ret
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
ret