joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448d50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491c68
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.0048a580
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004486b0
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.0048a4ae
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.00486d72
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.00486d72
push 1
push 0
push 0
mov ecx, esi
call fcn.00486d1a
push 1
push 0
push 1
mov ecx, esi
call fcn.00486d1a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048a5f2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x448ed0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491c88
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.0048a580
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004486b0
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.0048a4ae
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 0x448f94
cmp dword [esp + 0x40], 1
jne 0x448f92
cmp ecx, eax
jge 0x448f94
mov eax, ecx
cmp eax, 0xc8
jge 0x448fa0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00448d50
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.0048a5f2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x449790
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491d33
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.0048518f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.0048a828
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048bd44
test eax, eax
je 0x4498ac
mov ecx, dword [esp + 0x3c]
call fcn.0048a855
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 0x449870
push edi
mov ecx, esi
call fcn.00487ebe
mov ecx, esi
call fcn.00449a50
cmp dword [esp + 0x38], 1
jne 0x4498a5
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.00487ff9
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 0x44ba90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44bac3
push esi
call fcn.00459e30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44babc
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 0x44bb49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44bb32
mov eax, dword [esi + 8]
test eax, eax
je 0x44bae7
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 0x44bb2e
cmp eax, 2
je 0x44bb32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44bada
cmp eax, 3
je 0x44bb0d
cmp eax, 1
jne 0x44bada
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 0x44bada
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44bada
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044bb70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44bb58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044bb70
add esp, 4
pop esi
ret

Function at 0x44c3e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44c401
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44c401
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44c401
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x485f85
Capabilities:
Get graphical window text

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

Function at 0x487676
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 0x4876b8
call fcn.0048d711
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4876b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4876af
xor eax, eax
jmp 0x4876c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004876c6
pop edi
pop esi
pop ebx
ret 4
Function at 0x48cdfb
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 0x48ce29
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ce47
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048cd61
jmp 0x48ce47
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ce47
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048cd61
test edi, edi
mov eax, edi
jne 0x48ce31
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x885a87
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp]
lea ebp, [eax - 0x27216117]
xchg dword [esp + 3], edi
push edx
mov cl, ch
pop si
jmp 0x885a97
mov dword [esp], eax
lea ecx, [eax - 0x19]
lea esi, [ebx*4]
cmc
jmp 0x885a6a
sub esp, 0x18
mov si, 0x15a3
pop edi
lea eax, [ebx*4]
jmp 0x885ae1
btr esi, esp
pop dword [esp + 0xd]
push esp
xchg byte [esp + 0x18], al
inc cl
setg dh
jmp 0x885ab9

Function at 0x8862dd
Capabilities:
Execute anti-debugging instructions

Disassembly:
ror ebx, 0x11
xchg ah, bl
mov bh, byte [esp + 2]
bswap ecx
mov al, 0x7e
pop ecx
jmp 0x886227
inc edi
mov eax, dword [esp + 0xc]
mov dword [esp + 7], ebp
and ebx, ecx
lea edi, [eax - 0x71c5d57]
mov ebx, dword [esp + 8]
jmp 0x88623e
lea esp, [esp + 2]
sub esp, 8
push dword [esp + 1]
jmp 0x8862a6

Function at 0x8866ea
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, 0x5e45
bswap ecx
bsr dx, cx
add esp, 6
pop word [esp + 4]
jmp 0x886713
xchg bh, cl
mov word [esp + 0x10], di
sub esp, 2
rdtsc
xchg byte [esp + 0x14], dl
xchg ah, bl
jmp 0x8866b0
mov si, 0xe993
jmp 0x8866c8
lea edi, [ebp*4]
lea ecx, [edx + ebp]
setg bh
jmp 0x88673e
mov word [esp + 6], sp
push dword [esp + 0xc]
lea edi, [ecx - 0xcb]
lea esp, [esp + 7]
pop edx
mov bl, bh
jmp 0x88677c
push dword [esp + 4]
neg ecx
mov dl, 0xc4
xchg dx, bp
mov dword [esp + 0xd], ecx
xchg byte [esp + 0x11], dl
jmp 0x886765

Function at 0x886897
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dx, si
mov bh, byte [esp + 3]
jmp 0x8868a4
bswap ecx
mov cl, 0x32
mov cx, 0x7f15
mov cx, word [esp + 2]
pop word [esp]
inc bp
jmp 0x88690a
btc edx, ebx
xchg dx, ax
cpuid
inc ebp
bswap edx
xchg edi, esi
jmp 0x886932
mov dl, 0x14
xchg word [esp], dx
mov ch, byte [esp + 1]
bswap esi
bswap edi
inc cl
jmp 0x8868eb
mov cl, 0xa2
lea edx, [eax*4]
stc
lea ebx, [eax + edx]
mov dl, 0xbc
jmp 0x886964
mov word [esp], dx
stc
not bh
pop si
lea edx, [eax + 0xe1]
btr ebx, esp
jmp 0x88691c
mov bl, byte [esp]
lea ebx, [ecx - 0xab]
xchg ah, bl
not eax
mov bp, bx
cld
jmp 0x8869cb
xchg ah, bl
cpuid
rdtsc
pop word [esp + 1]
mov cl, ch
cmc
jmp 0x8869a6
mov esi, 0xa0a90210
add esp, 9
xchg word [esp + 4], di
pop edi
call fcn.00886a09
add edx, dword [esi + 0x379e6304]
lahf
or ebx, dword [ebx + 0x2eb40dfe]
cmp dword [eax], ebx
jnp 0x886a1c
int 0x66
mov ebp, dword [esp]
mov bp, word [esp]
bswap ecx
xchg dh, al
rdtsc
sub esp, 0x14
pop dx
jmp 0x886977
xchg ebx, eax
rdtsc
pop dword [esp + 0xf]
sub esp, 2
mov dx, sp
jmp 0x886a8c
in al, dx
add ah, byte [esi - 0x75]
aam 0xeb
imul ecx, esi, 0x5daecb5b
btr ebp, edx
push dword [esp]
mov bl, bh
pop bp
lea eax, [ebx + esi]
push dword [esp + 0xa]
jmp 0x886a14
btc ebp, ebx
xchg ah, bl
call 0x886a5b
fld qword [edx + ebx*8 - 0x43]
dec esp
retf
mov bx, 0x1411
add esp, 8
bsr bp, bp
and ecx, ecx
mov bp, bx
inc si
jmp 0x886a74
Function at 0x886ccf
Capabilities:
Parse pe header

Disassembly:
mov dword [esp], ecx
push dword [esp + 4]
pop word [esp + 4]
lea esp, [esp + 1]
jmp 0x886d8a
push word [esp + 3]
push word [esp + 3]
pop dword [esp]
mov byte [esp + 3], ch
lea esp, [esp + 1]
mov dword [esp], eax
jmp 0x886c99
mov dword [esp + 0x58], ebx
push edx
push dword [esp]
mov byte [esp + 3], dh
jmp 0x886cb1
mov dword [esp], ecx
push dword [esp]
pop dword [esp]
mov dword [esp + 0x5c], esp
push edx
mov word [esp], sp
mov byte [esp + 2], dh
mov byte [esp], ah
mov byte [esp + 2], dh
jmp 0x886d4f

Function at 0x886d39
Capabilities:
Parse pe header

Disassembly:
jmp 0x886d64
mov byte [esp + 1], ah
push dword [esp + 2]
mov dword [esp + 3], esi
mov word [esp], di
mov word [esp], bx
mov dword [esp + 0x80], edi
jmp 0x886da0
lea esp, [esp + 0x80]
mov eax, dword fs:[0x30]
jmp 0x886de1
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x886ed3
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x886dc7
push eax
jmp 0x8850e6

Function at 0x886dbe
Capabilities:
Parse pe header

Disassembly:
push dword [esp + 0xa]
call fcn.00886ccf
Function at 0x401000
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004011d0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0xc]
xor ebx, ebx
mov esi, eax
mov eax, dword [esp + 0x2c]
push ecx
push ebx
push esi
push 0x401400
lea edx, [esp + 0x20]
push ebx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push edx
mov dword [esi + 0xc], eax
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x401080
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x40ffe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a4f6
add esp, 0xc
push eax
push str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402150
add esp, 0x1c
mov dword [esi + 0xc], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ebx
push esi
push 0x401520
push ebx
push ecx
call edi
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x4010df
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x40ffe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a4f6
add esp, 0xc
push eax
push str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402150
mov edx, dword [esi + 0x14]
add esp, 0x1c
mov dword [esi + 0xc], 0xffffffff
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ecx
mov edx, dword [esi + 8]
push ebx
push eax
push 3
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x401161
dec eax
je 0x40114e
dec eax
push ebx
je 0x401139
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x40ffe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a4f6
add esp, 0xc
push eax
push str.WaitForMultipleObjects_error:__s
call fcn.00402150
add esp, 0x1c
jmp 0x401178
mov ecx, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push ecx
call edi
mov edx, dword [esi + 0x10]
push ebx
push edx
call edi
jmp 0x401178
mov eax, dword [esi + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push 1
push ecx
jmp 0x401172
mov edx, dword [esi + 0x14]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edx
call ebx
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call ebx
mov edx, dword [esi + 4]
push edx
call edi
mov eax, dword [esi + 0x10]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call edi
mov edx, dword [esi + 8]
push edx
call edi
push esi
call fcn.004040c6
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4011d0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x18
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.0040412f
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x4011fb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
lea ebx, [esi + 4]
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x18]
mov dword [esi], edi
mov dword [ebx], edi
push eax
mov dword [esp + 0x24], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ecx
push esi
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
test eax, eax
jne 0x40125c
push 0
push 0
push 0
push 0
push 0xa
push 0x40ffe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a4f6
add esp, 0xc
push eax
push str.Failed_to_create_shell_stdout_pipe__error___s
jmp 0x4012cb
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
call edi
test eax, eax
jne 0x401290
push eax
push eax
push eax
push eax
push eax
push 0xa
push 0x40ffe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a4f6
add esp, 0xc
push eax
push str.Failed_to_create_shell_stdin_pipe__error___s
jmp 0x4012cb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00401320
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov eax, dword [esi + 8]
test eax, eax
jne 0x40130e
push 0
push 0
push 0
push 0
push 0
push 0
push str.Failed_to_execute_shell
call fcn.00402150
mov eax, dword [esp + 0x2c]
add esp, 0x1c
test eax, eax
je 0x4012de
push eax
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4012e9
push eax
call ebp
mov eax, dword [esi]
test eax, eax
je 0x4012f2
push eax
call ebp
mov eax, dword [ebx]
test eax, eax
je 0x4012fb
push eax
call ebp
push esi
call fcn.004040c6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x401320
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x68]
push esi
push 1
lea ecx, [esp + 0x64]
push 2
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov word [esp + 0x5c], si
mov dword [esp + 0x60], esi
mov word [esp + 0x5e], si
mov dword [esp + 0x58], 0x101
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
call ebx
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea edx, [esp + 0xc]
mov ecx, dword [0x40fcc8]
lea eax, [esp + 0x1c]
push edx
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 0x4013ca
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x54
ret
push esi
push esi
push esi
push esi
push esi
push 0xa
push 0x40ffe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a4f6
add esp, 0xc
push eax
push str.Failed_to_execute_shell__error___s
call fcn.00402150
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x54
ret

Function at 0x401e30
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401e61
mov ax, word [esp]
cmp al, 1
jne 0x401e5b
xor ecx, ecx
mov cl, ah
cmp cl, al
je 0x401e61
call dword [sym.imp.WS2_32.dll_WSACleanup]
add esp, 0x190
ret

Function at 0x4021f0
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 [0x40fcbe], 1
call fcn.00402150
mov ecx, dword [0x40c2c4]
add esp, 0x1c
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
call fcn.00404594
add esp, 4
push 1
call fcn.004044bf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x402ed0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x40ffc4]
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 1
push eax
push esi
call edi
cmp eax, 1
je 0x402f03
mov ecx, dword [0x40fcd4]
push ecx
push str.udptest_first_write_failed___errno__d
call fcn.00402150
add esp, 8
mov eax, dword [0x40fcc0]
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x402f24
cmp eax, 0x3e8
jae 0x402f65
push eax
call fcn.00404594
add esp, 4
jmp 0x402f65
mov edx, dword [esp + 0x14]
push 0
push 0
push 0x7a69
push edx
mov word [0x40fcbc], 0
mov dword [0x40fcc0], 5
call fcn.004027a0
add esp, 0x10
test eax, eax
jle 0x402f54
push eax
call ebp
inc word [0x40fcbc]
mov dword [0x40fcc0], 0
mov eax, dword [0x40ffc4]
push 0
push 1
push eax
push esi
mov dword [0x40fcd4], 0
call edi
cmp eax, 1
jne 0x402f87
mov eax, esi
pop edi
pop esi
pop ebp
ret
push esi
call ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret
Function at 0x407ab5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f4c8
cmp edx, dword [eax]
je 0x407ad7
add eax, 8
inc ecx
cmp eax, 0x40f558
jl 0x407ac8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f4c8]
jne 0x407c05
mov eax, dword [0x40fd40]
cmp eax, 1
je 0x407bdf
test eax, eax
jne 0x407b08
cmp dword [0x40d1c4], 1
je 0x407bdf
cmp edx, 0xfc
je 0x407c05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407b3f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406c40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407b82
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406c40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40ca60
push edi
call fcn.00404630
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409880
lea eax, [ebp - 0xa0]
push 0x40b4f8
push eax
call fcn.00409880
push dword [esi + 0x40f4cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409c95
add esp, 0x2c
pop edi
jmp 0x407c05
lea eax, [ebp + 8]
lea esi, [esi + 0x40f4cc]
push 0
push eax
push dword [esi]
call fcn.00406c40
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 0x401e6d
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret

Function at 0x402194
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x402245
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]