joyce8/EMBER2024-capa huggingface dataset:
Function at 0x535eae
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
or edi, 0xffffffff
cmp dword [ebx + 0x10], 0
jne 0x535ed0
mov ecx, dword [ebp + 0x10]
or eax, edi
mov dword [ecx], 1
jmp 0x535f72
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0xfa
push esi
mov dword [eax], 7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
div ecx
mov esi, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x535f0e
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x57244c]
mov ecx, dword [ebp + 0x14]
call esi
cmp eax, 6
je 0x535f64
mov esi, dword [ebp - 4]
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x535f18
mov eax, dword [ebx]
push 0
push 0x4110100
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x535f69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 2
je 0x535f4d
cmp eax, 0xe7
jne 0x535f76
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
dec esi
mov dword [ebp - 4], esi
test eax, eax
jne 0x535eed
jmp 0x535f6f
cmp edi, 0xffffffff
je 0x535f6f
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
call fcn.00535dd6
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x535f6f

Function at 0x535f87
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 8]
mov dword [esi], 7
cmp dword [edi + 0x10], eax
jne 0x535fb1
mov dword [esi], 1
jmp 0x536045
push eax
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 4]
inc ebx
push eax
push ebx
push str.S:_ML__NW___LW_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
mov eax, dword [ebp - 4]
and dword [ebp - 8], 0
cmp byte [0x5ceef4], 0
mov dword [ebp - 0xc], eax
mov eax, 0x80001
cmovne ebx, eax
mov dword [ebp - 0x10], 0xc
cmp dword [edi + 0x14], 7
jbe 0x535fef
mov edi, dword [edi]
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, 0x400
push eax
push eax
push 0xff
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, 0xffffffff
jne 0x536032
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00535dd6
pop ecx
mov dword [esi], eax
jmp 0x536045
cmp byte [0x5ceef4], 0
je 0x536042
mov byte [0x5ceef4], 0
and dword [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x53604c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, eax
mov dword [esi], 7
cmp dword [ebx], 0xffffffff
jne 0x536075
mov dword [esi], 1
jmp 0x536116
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5360a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp eax, 0xea
je 0x5360a7
lea eax, [ebp - 0xc]
jmp 0x53610d
cmp dword [ebp - 8], 0x1fffff
jbe 0x5360b8
mov dword [esi], 3
jmp 0x536116
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.004053b2
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
and dword [ebp - 0xc], 0
sub ecx, edi
push 0
push edx
mov eax, dword [eax]
push ecx
add eax, edi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5360fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xea
jne 0x53610a
add edi, dword [ebp - 0xc]
and dword [esi], 0
mov ecx, dword [ebp - 8]
cmp edi, ecx
jb 0x5360ca
jmp 0x536116
lea eax, [ebp - 0x14]
push eax
call fcn.00535dd6
mov dword [esi], eax
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x536169
Capabilities:
Create thread

Disassembly:
push 0x1c
mov eax, 0x56b33a
call fcn.005051f5
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.00504e46
pop ecx
test eax, eax
je 0x5361af
mov edi, eax
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
jmp 0x5361b1
mov eax, esi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
push ecx
push esi
push eax
push 0x535d40
push esi
push esi
call fcn.005169bc
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x53623a
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
push ebx
call fcn.0053611d
pop ecx
pop ecx
push dword [ebp - 0x10]
mov bl, al
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x18], 0
je 0x536241
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [ebp - 0x18], eax
jne 0x536204
push 5
jmp 0x536243
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004f11f8
add esp, 0xc
test eax, eax
je 0x53621b
push 2
jmp 0x536243
push dword [ebp - 0x10]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
jne 0x536248
mov al, bl
call fcn.005051c3
ret
mov dword [ebp - 0x18], esi
push 6
jmp 0x536243
push 1
call fcn.004f15bf
call fcn.00515fc8
int3
Function at 0x554ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57089d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5ce440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x554ef4
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x554f28
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00554d90
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.00554c60
add esp, 8
mov edx, eax
mov dword [ebp - 0x10], edx
test esi, 0x400
je 0x555000
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x554f4d
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x554f67
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0044ab22
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 0
cmova eax, dword [ebp - 0x30]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00453810
cmp esi, 0xffffffff
je 0x554f05
push edi
call fcn.00554b60
add esp, 4
push esi
test al, al
jne 0x554ff4
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edi], 9
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x555018
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0x580160
and esi, 0x10
je 0x555022
mov edi, dword [ebp - 0x18]
jmp 0x555027
mov edi, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
xor ecx, ecx
test esi, esi
setne cl
add ecx, 2
test esi, esi
mov dword [eax], ecx
cmove edx, edi
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x556000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55602d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55602d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5a5c90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x159000]
push edi
or ebp, 0xffffffff
jmp 0x5a5cb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5a5cb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a5ca8
mov eax, 1
add ebx, ebx
jne 0x5a5ccb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5a5cdc
jne 0x5a5cfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a5cfb
dec eax
add ebx, ebx
jne 0x5a5ce8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5a5cc0
add ebx, ebx
jne 0x5a5cf7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5a5d4d
xor ecx, ecx
sub eax, 3
jb 0x5a5d13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5a5d82
sar eax, 1
mov ebp, eax
jmp 0x5a5d1e
add ebx, ebx
jne 0x5a5d1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a5cec
inc ecx
add ebx, ebx
jne 0x5a5d2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a5cec
add ebx, ebx
jne 0x5a5d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5a5d2e
jne 0x5a5d4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5a5d2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5a5d6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5a5d5e
jmp 0x5a5cae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5a5d6c
add edi, ecx
jmp 0x5a5cae
pop esi
mov edi, esi
mov ecx, 0x160
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5a5d8a
cmp byte [edi], 5
jne 0x5a5d8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5a5d8f
lea edi, [esi + 0x1a3000]
mov eax, dword [edi]
or eax, eax
je 0x5a5dfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a5c90]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a5cf4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5a5dbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a5cf8]
or eax, eax
je 0x5a5df8
mov dword [ebx], eax
add ebx, 4
jmp 0x5a5dd9
call dword [esi + 0x1a5d00]
mov ebp, dword [esi + 0x1a5cfc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5a5e32
sub esp, 0xffffff80
jmp 0x402bae
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 0x410100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004099c0
add esp, 0xc
push eax
push str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402120
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 0x410100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004099c0
add esp, 0xc
push eax
push str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402120
mov edx, dword [esi + 0x14]
add esp, 0x1c
mov dword [esi + 0xc], 0xffffffff
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
pop edi
pop esi
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 0x410100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004099c0
add esp, 0xc
push eax
push str.WaitForMultipleObjects_error:__s
call fcn.00402120
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.WSOCK32.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.00403ff0
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 ebp, ebp
push 0x18
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.00404040
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x4011fb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [esp + 0x18]
lea ebx, [esi + 4]
push ebp
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esi], ebp
mov dword [ebx], ebp
push esi
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 1
call edi
cmp eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
jne 0x40125c
push 0
push 0
push 0
push 0
push 0xa
push 0x410100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004099c0
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 0x410100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004099c0
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.00402120
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 ebx, dword [ebx]
test ebx, ebx
je 0x4012fb
push ebx
call ebp
push esi
call fcn.00403ff0
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 [0x40fcc4]
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 0x410100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004099c0
add esp, 0xc
push eax
push str.Failed_to_execute_shell__error___s
call fcn.00402120
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 sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x401e5f
mov ax, word [esp]
cmp al, 1
jne 0x401e5a
xor ecx, ecx
mov cl, ah
cmp cl, al
je 0x401e5f
call sub.WSOCK32.dll_WSACleanup
add esp, 0x190
ret
Function at 0x402770
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [0x40fcd0], ebx
call sub.WSOCK32.dll_WSASetLastError
cmp word [0x40fcb4], bx
je 0x402793
push 0x11
push 2
jmp 0x402797
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, ebx
mov dword [0x4100f4], eax
jge 0x4027bb
push str.Cant_get_socket
call fcn.004021c0
mov eax, dword [0x4100f4]
add esp, 4
cmp eax, ebx
jne 0x4027cb
push ebx
call fcn.00409bb0
add esp, 4
mov dword [0x4100f4], eax
mov ecx, dword [0x4100e8]
push 4
push ecx
push 4
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4027f3
push str.nnetfd_reuseaddr_failed
call fcn.00402120
add esp, 4
mov edx, dword [0x40fc84]
mov esi, dword [ebp + 0x10]
cmp esi, ebx
mov word [edx], 2
mov eax, dword [0x40fc88]
mov word [eax], 2
je 0x40281a
mov edx, dword [0x40fc84]
mov ecx, dword [esi]
mov dword [edx + 4], ecx
mov edi, dword [ebp + 0x14]
cmp di, bx
je 0x402832
push edi
call sub.WSOCK32.dll_htons
mov ecx, dword [0x40fc84]
mov word [ecx + 2], ax
test esi, esi
jne 0x40283b
test di, di
je 0x4028a5
mov esi, 4
mov edx, dword [0x40fc84]
mov eax, dword [0x4100f4]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_bind
mov ebx, eax
test ebx, ebx
je 0x4028cd
cmp dword [0x40fcd0], 0x2740
jne 0x4028a5
mov edx, dword [0x40fc84]
mov ecx, edi
and ecx, 0xffff
mov eax, dword [edx + 4]
push ecx
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
push str.retrying_local__s:_d
call fcn.00402120
add esp, 0xc
push 1
call fcn.00404570
add esp, 4
dec esi
test esi, esi
mov dword [0x40fcd0], 0
jg 0x402840
test ebx, ebx
je 0x4028cd
mov ecx, dword [0x40fc84]
and edi, 0xffff
push edi
mov edx, dword [ecx + 4]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
push str.Cant_grab__s:_d_with_bind
call fcn.004021c0
add esp, 0xc
cmp word [0x40fca4], 0
je 0x4028e1
mov eax, dword [0x4100f4]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, dword [0x40fc88]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
push eax
mov dword [edx + 4], ecx
call sub.WSOCK32.dll_htons
mov ecx, dword [0x40fc88]
mov word [ecx + 2], ax
mov eax, dword [0x40fc6c]
test eax, eax
je 0x402918
push str.Warning:_source_routing_unavailable_on_this_machine__ignoring
call fcn.00402120
add esp, 4
mov edx, dword [0x40fcbc]
push edx
push 1
call fcn.00402220
add esp, 8
push 0
push 0x4100a0
call fcn.00404870
add esp, 8
test eax, eax
jne 0x402954
mov eax, dword [0x40fc88]
mov ecx, dword [0x4100f4]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_connect
mov esi, eax
jmp 0x402961
push 0x274c
or esi, 0xffffffff
call sub.WSOCK32.dll_WSASetLastError
push 0
push 0
call fcn.00402220
add esp, 8
test esi, esi
jne 0x40297b
mov eax, dword [0x4100f4]
pop edi
pop esi
pop ebx
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [0x4100f4]
mov dword [0x40fcd0], eax
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [0x40fcd0]
push eax
call sub.WSOCK32.dll_WSASetLastError
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x402d80
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x4100e4]
push esi
mov esi, dword [esp + 8]
push 0
push 1
push eax
push esi
call sub.WSOCK32.dll_send
cmp eax, 1
je 0x402dae
mov ecx, dword [0x40fcd0]
push ecx
push str.udptest_first_write_failed___errno__d
call fcn.00402120
add esp, 8
mov eax, dword [0x40fcbc]
test eax, eax
je 0x402dc2
push eax
call fcn.00404570
add esp, 4
jmp 0x402e06
mov edx, dword [esp + 0xc]
push 0
push 0
push 0x7a69
push edx
mov word [0x40fcb4], 0
mov dword [0x40fcbc], 5
call fcn.00402770
add esp, 0x10
test eax, eax
jle 0x402df5
push eax
call sub.WSOCK32.dll_closesocket
inc word [0x40fcb4]
mov dword [0x40fcbc], 0
mov eax, dword [0x4100e4]
push 0
push 1
push eax
push esi
mov dword [0x40fcd0], 0
call sub.WSOCK32.dll_send
cmp eax, 1
jne 0x402e29
mov eax, esi
pop esi
ret
push esi
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
pop esi
ret
Function at 0x4044a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40fd18]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4044bf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40fd14], 1
mov byte [0x40fd10], bl
jne 0x404519
mov ecx, dword [0x410230]
test ecx, ecx
je 0x404507
mov esi, dword [0x41022c]
sub esi, 4
cmp esi, ecx
jb 0x404507
mov eax, dword [esi]
test eax, eax
je 0x404500
call eax
mov ecx, dword [0x410230]
sub esi, 4
cmp esi, ecx
jae 0x4044f2
push 0x40c020
push 0x40c014
call fcn.00404550
add esp, 8
push 0x40c028
push 0x40c024
call fcn.00404550
add esp, 8
test ebx, ebx
jne 0x404540
push ebp
mov dword [0x40fd18], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret