joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4781ac
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4781da
mov eax, ebx
call fcn.00478c64
cmp dword [ebx + 0x3c], 0
je 0x4781d3
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47824b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x47823d
cmp dword [ebx + 8], 0
je 0x4781fc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x47820e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47823d
cmp dword [ebx + 8], 0
je 0x4781ef
cmp eax, 3
je 0x478221
dec eax
jne 0x4781ef
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4781ef
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4781ef
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x478269
cmp dword [ebx + 0x10], 0xcc
je 0x478269
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00478274
pop ebx
ret

Function at 0x488614
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4139f0]
call fcn.00405200
xor eax, eax
push ebp
push 0x488758
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f5a28], 0
jne 0x488667
mov ecx, dword [0x530114]
mov dl, 1
mov eax, dword [0x408090]
call fcn.0040c4cc
call fcn.00403f1c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040303c
mov eax, ebx
call fcn.00404e28
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x488768
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040667c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e38
test eax, eax
jle 0x4886ff
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4886f8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004047dc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004047c4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408f3c
test eax, eax
jne 0x4886f8
mov ebx, 0x15
jmp 0x488704
mov ebx, 0x10
jmp 0x488704
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4f5a28]
call fcn.0048856c
mov eax, dword [ebp - 8]
call fcn.0048856c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48875f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404580
lea eax, [ebp - 0x10]
mov edx, dword [0x4139f0]
call fcn.004052d0
ret
Function at 0x489700
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x48970f
or edx, 0x200
test eax, 0x20000000
je 0x489743
test eax, 0x40000000
je 0x48972e
test eax, 0x80000000
je 0x489729
or edx, 0x40
jmp 0x48976a
or edx, 0x20
jmp 0x48976a
test eax, 0x80000000
je 0x48973d
or edx, 0x80
jmp 0x48976a
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x48975b
test eax, 0x80000000
je 0x489756
or edx, 4
jmp 0x48976a
or edx, 2
jmp 0x48976a
test eax, 0x80000000
je 0x489767
or edx, 8
jmp 0x48976a
or edx, 1
mov eax, edx
ret
Function at 0x48b9e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x48ba39
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x48ba20
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x48ba10
jmp 0x48ba39
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x48ba21
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x498ef8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.0041712c
mov esi, eax
xor eax, eax
push ebp
push 0x498f72
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x498f56
mov edx, ebx
mov eax, esi
call fcn.00416cc0
test byte [eax + 0x48], 1
je 0x498f50
push 0
mov edx, ebx
mov eax, esi
call fcn.00416cc0
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov edx, ebx
mov eax, esi
call fcn.00416bb0
dec ebx
cmp ebx, 0xffffffff
jne 0x498f24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498f79
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00417190
ret

Function at 0x49a2b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x49a33d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x531d4c
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x49a327
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bbb0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x49a354
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x530820]
mov dl, 1
mov eax, dword [0x499334]
call fcn.0040c508
call fcn.00403f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a344
lea eax, [ebp - 0x1c]
call fcn.0040455c
ret

Function at 0x49aa20
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0049a944
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040394c
cmp byte [ebx + 4], 0
jne 0x49aa48
mov word [ebx + 0x1c], 2
jmp 0x49aa4e
mov word [ebx + 0x1c], 0x17
push 0x1c
lea eax, [ebx + 0x1c]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_connect
mov edx, 0x49aa98
call fcn.0049a1fc
mov byte [ebx + 0x39], 0
test byte [ebx + 0x38], 0x10
jne 0x49aa8a
cmp dword [ebx + 8], 0xffffffff
setne al
mov byte [ebx + 0xc], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040394c
pop esi
pop ebx
ret
Function at 0x49aabc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049a7c4
xor eax, eax
push ebp
push 0x49ab5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040455c
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x49aaf5
call fcn.00403fc8
jmp 0x49ab65
mov dword [ebp - 8], 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x49ab48
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x49ab2c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.Ntdll.dll_RtlIpv4AddressToStringA
jmp 0x49ab39
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.Ntdll.dll_RtlIpv6AddressToStringA
mov eax, ebx
lea edx, [ebp - 0x54]
mov ecx, 0x30
call fcn.004047c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ab65
mov eax, dword [ebp - 4]
call fcn.0049a7d0
ret
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x49ad34
mov ecx, dword [0x530a04]
mov dl, 1
mov eax, dword [0x499334]
call fcn.0040c4cc
call fcn.00403f1c
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x49ad50
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x49ad61
push 0
push 1
push 0x17
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x49ad81
mov ecx, dword [0x5305ac]
mov dl, 1
mov eax, dword [0x499334]
call fcn.0040c4cc
call fcn.00403f1c
xor eax, eax
push ebp
push 0x49ae03
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040394c
cmp byte [ebp + 8], 0
je 0x49adde
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049ac34
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x20]
lea edi, [eax + 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0049a9a0
jmp 0x49adf9
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049a4f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ae20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49ae2c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x49ae5c
mov ecx, dword [0x530664]
mov dl, 1
mov eax, dword [0x499334]
call fcn.0040c4cc
call fcn.00403f1c
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x49ae78
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x49ae89
push 0
push 1
push 0x17
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x49aea9
mov ecx, dword [0x5305ac]
mov dl, 1
mov eax, dword [0x499334]
call fcn.0040c4cc
call fcn.00403f1c
xor eax, eax
push ebp
push 0x49af26
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040394c
cmp byte [ebp + 8], 0
je 0x49af03
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049ac34
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x20]
lea edi, [eax + 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0049aa20
jmp 0x49af1c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049a4f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49af43
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49b108
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049a7c4
xor eax, eax
push ebp
push 0x49b27a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x49b264
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
je 0x49b153
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x49b15d
call fcn.00403fc8
jmp 0x49b281
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004194f8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x49b259
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x49b20b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x49b1f8
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040394c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0049b0c0
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x49b28c]
cmp dl, byte [eax + 0x38]
je 0x49b260
call fcn.0040c3a8
jmp 0x49b260
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00419518
jmp 0x49b260
cmp ecx, ebx
jge 0x49b227
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00419518
jmp 0x49b15d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004194f8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0041952c
cmp edx, dword [esp + 4]
jne 0x49b248
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49b15d
push ebp
call fcn.0049b0c0
pop ecx
jmp 0x49b260
push ebp
call fcn.0049b0c0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b281
mov eax, dword [ebp - 4]
call fcn.0049a7d0
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b290
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b3b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049a7c4
xor eax, eax
push ebp
push 0x49b395
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x49b2e0
call fcn.00403fc8
jmp 0x49b39c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49b37f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49b37f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040394c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49b37f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bbb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49b3cc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x530820]
mov dl, 1
mov eax, dword [0x499334]
call fcn.0040c508
call fcn.00403f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b39c
mov eax, dword [ebp - 4]
call fcn.0049a7d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b3b9
lea eax, [ebp - 0x28]
call fcn.0040455c
ret
Function at 0x49b418
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b562
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049a7c4
xor eax, eax
push ebp
push 0x49b545
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49b47d
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x49b47d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x49b52f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x49b490
call fcn.00403fc8
jmp 0x49b54c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49b52f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49b52f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040394c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49b52f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bbb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49b57c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x530820]
mov dl, 1
mov eax, dword [0x499334]
call fcn.0040c508
call fcn.00403f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b54c
mov eax, dword [ebp - 4]
call fcn.0049a7d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b569
lea eax, [ebp - 0x28]
call fcn.0040455c
ret
Function at 0x49cfc0
Capabilities:
Create pipe

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov eax, ebx
call fcn.0049d164
mov dword [esp + 0xc], 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xffffffff
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x40]
push eax
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x49d001
call fcn.0040d9f8
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x49d01f
call fcn.0040d9f8
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x44]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x49d03d
call fcn.0040d9f8
push 2
push 0
push 0
lea eax, [ebx + 0x34]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x49d066
call fcn.0040d9f8
push 2
push 0
push 0
lea eax, [ebx + 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x49d08f
call fcn.0040d9f8
push 2
push 0
push 0
lea eax, [ebx + 0x38]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x49d0b8
call fcn.0040d9f8
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dl, 1
mov eax, dword [0x414cf8]
call fcn.00403720
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x414cf8]
call fcn.00403720
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x78], eax
xor eax, eax
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x68]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x64]
mov edx, dword [eax]
call dword [edx + 0x44]
add esp, 0x18
pop ebx
ret
Function at 0x49d664
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49d74d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x49d72f
inc esi
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x49d768
call fcn.00404b50
mov edi, eax
test edi, edi
jle 0x49d6dc
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404a6c
mov bl, 1
jmp 0x49d6e9
lea eax, [ebp - 0x10]
mov edx, 0x49d774
call fcn.0040481c
cmp dword [ebp - 0x10], 0
je 0x49d725
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404814
push eax
lea eax, [ebp - 0x10]
call fcn.00404a64
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x49d725
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xe8
je 0x49d725
call fcn.0040d9f8
inc dword [ebp - 0xc]
dec esi
jne 0x49d6a3
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d754
lea eax, [ebp - 0x10]
call fcn.0040455c
ret

Function at 0x49d91c
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, 0x531f0c
xor eax, eax
push ebp
push 0x49da4f
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
mov eax, esi
mov ecx, 1
mov edx, dword [0x489454]
call fcn.00405ea4
add esp, 4
mov eax, dword [esi]
mov edx, 0x49da68
call fcn.004045b0
mov eax, dword [esi]
mov dword [eax + 4], 0x531ee4
mov eax, dword [esi]
add eax, 8
mov edx, 0x49da84
call fcn.004045b0
mov eax, dword [esi]
mov dword [eax + 0xc], 0x531ee8
mov eax, dword [esi]
add eax, 0x10
mov edx, 0x49daa0
call fcn.004045b0
mov eax, dword [esi]
mov dword [eax + 0x14], 0x531eec
mov eax, dword [esi]
add eax, 0x18
mov edx, 0x49dab8
call fcn.004045b0
mov eax, dword [esi]
mov dword [eax + 0x1c], 0x531ef0
mov eax, dword [esi]
add eax, 0x20
mov edx, 0x49dad0
call fcn.004045b0
mov eax, dword [esi]
mov dword [eax + 0x24], 0x531ef4
mov eax, dword [esi]
add eax, 0x28
mov edx, 0x49dae4
call fcn.004045b0
mov eax, dword [esi]
mov dword [eax + 0x2c], 0x531ef8
mov eax, dword [esi]
add eax, 0x30
mov edx, 0x49daf8
call fcn.004045b0
mov eax, dword [esi]
mov dword [eax + 0x34], 0x531efc
mov eax, dword [esi]
add eax, 0x38
mov edx, 0x49db08
call fcn.004045b0
mov eax, dword [esi]
mov dword [eax + 0x3c], 0x531f00
lea ecx, [ebp - 0xc]
mov eax, dword [0x531f08]
mov eax, dword [eax + 4]
mov edx, dword [esi]
call fcn.00489b74
lea edx, [ebp - 0xc]
mov eax, 0x531f10
mov ecx, dword [0x489434]
call fcn.004054ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49da56
lea eax, [ebp - 0xc]
mov edx, dword [0x489434]
call fcn.004052d0
ret