joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485e81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4b1a30
cmp edx, dword [eax]
je 0x485ea3
add eax, 8
inc ecx
cmp eax, 0x4b1ac0
jl 0x485e94
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4b1a30]
jne 0x485fd1
mov eax, dword [0x4b4c9c]
cmp eax, 1
je 0x485fab
test eax, eax
jne 0x485ed4
cmp dword [0x4aef14], 1
je 0x485fab
cmp edx, 0xfc
je 0x485fd1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x485f0b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004867f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00481090
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x485f4e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00481090
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a00c4
push edi
call fcn.004866b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004867f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00486800
lea eax, [ebp - 0xa0]
push 0x49f304
push eax
call fcn.00486800
push dword [esi + 0x4b1a34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00486800
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00487b0c
add esp, 0x2c
pop edi
jmp 0x485fd1
lea eax, [ebp + 8]
lea esi, [esi + 0x4b1a34]
push 0
push eax
push dword [esi]
call fcn.00481090
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 0x489015
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48906d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4b32f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x489060
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x48906f
xor eax, eax
pop esi
leave
ret 4
Function at 0x40a7c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a7d9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a816
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a812
nop word [eax + eax]
cmp esi, edx
jae 0x40a816
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40a800
cmp esi, edx
jb 0x40a81d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40cfd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492b68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4eb0e4]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40d0fe
cmp byte [ebx + 0x3d], 0
je 0x40d0fe
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x40d029
xor al, al
jmp 0x40d100
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040cab0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40d08f
sub eax, 1
je 0x40d093
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x40d0e6
xor bl, bl
jmp 0x40d0e8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x40d0c8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00472c07
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x40d08b
cmp byte [ebx + 0x3d], 0
je 0x40d0e6
test esi, esi
jne 0x40d051
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040cb80
jmp 0x40d04e
mov bl, 1
cmp ecx, 0x10
jb 0x40d0fa
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408060
mov al, bl
jmp 0x40d100
mov al, 1
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.00455dc1
mov esp, ebp
pop ebp
ret

Function at 0x40d6e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492906
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4eb0e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045600e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0045425f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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
Function at 0x413250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493195
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4eb0e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push 0x38
push 0
push eax
call fcn.0046f150
xor eax, eax
mov word [ebp - 0x3a], ax
mov dword [ebp - 4], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x400
mov byte [ebp - 4], 1
push 0x14
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0045600e
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [eax], 0
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.0040fe40
cmp dword [eax + 0x30], 0
je 0x41332a
xor eax, eax
mov dword [ebp - 0x68], 0x3f45
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x68]
push 0x4e999c
push eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
call fcn.0046f3db
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
call dword [eax]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x41334d
mov ecx, esi
call fcn.0040f800
push 0x14
push esi
call fcn.004562a9
add esp, 8
push dword [ebp - 0x28]
call fcn.00471e92
push 1
push dword [ebp - 0x2c]
call fcn.004562a9
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455dc1
mov esp, ebp
pop ebp
ret 8
Function at 0x4138d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4931c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4eb0e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
xor eax, eax
mov dword [esi + 0x18], 0x10000
push 0xffffffffffffffff
push eax
mov word [ebp - 0x24], ax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
call fcn.00409750
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov edi, dword [esi + 0x18]
cmovae eax, dword [ebp - 0x24]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 0x1c], eax
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x413967
cmp eax, 8
jb 0x413960
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00408000
xor bl, bl
jmp 0x413a1b
mov dword [esi + 0x2c], edi
cmp eax, 8
jb 0x41397c
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00408000
push dword [esi + 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 0x14], eax
push dword [esi + 0x2c]
mov ebx, dword [esi + 0x18]
push 0
push 0
push 4
push dword [esi + 0x1c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x2c]
mov edi, eax
cmp ecx, ebx
cmovb ebx, ecx
test edi, edi
jne 0x4139d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x28]
push 0x4e999c
push eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], edi
call fcn.0046f3db
push ebx
push edi
push dword [ebp - 0x2c]
call fcn.0046ebd0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4139f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x413a07
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
mov dword [esi + 0x1c], 0
mov ecx, esi
push dword [esi + 0x14]
call fcn.00413250
mov bl, 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x413a30
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00408000
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x418770
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4187c5
mov eax, dword [esp]
cmp al, 2
jne 0x4187bf
shr eax, 8
cmp al, 2
jne 0x4187bf
call fcn.00435760
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00455dc1
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
mov eax, 2
xor ecx, esp
call fcn.00455dc1
add esp, 0x194
ret
Function at 0x420ce0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x420cfc
cmp dword [esi + 0x6c], 0
je 0x420cfc
push 2
push 3
push esi
call fcn.004181f0
add esp, 0xc
push dword [esp + 0xc]
call fcn.0041ffe0
add esp, 4
test esi, esi
je 0x420d1d
cmp dword [esi + 0x6c], 0
je 0x420d1d
push 3
push esi
call fcn.00418230
add esp, 8
pop esi
ret
Function at 0x42b570
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x42b58d
push eax
call fcn.0042ff20
add esp, 4
test eax, eax
jne 0x42b5af
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x42b58a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x42b5af
xor al, al
ret
mov al, 1
ret
Function at 0x42bf40
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42bf88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00418f70
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042e280
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0042e280
add esp, 8
pop edi
pop esi
ret

Function at 0x42c0c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
cmp dword [ebx + 0x94], 2
mov ebp, dword [ebx]
je 0x42c279
cmp byte [ebx + 0x27a], 0
push esi
push edi
jne 0x42c26e
cmp byte [ebx + 0x296], 0
jne 0x42c26e
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42c153
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00418f70
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0042e150
add esp, 0x18
jmp 0x42c277
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.0046f150
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42c1a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00418f70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0042e150
add esp, 0x18
jmp 0x42c277
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.0042c780
add esp, 0xc
test al, al
jne 0x42c1f6
call fcn.00472cd8
mov esi, eax
call fcn.00472cd8
push dword [esi]
mov edi, eax
push ebx
call fcn.00418f70
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0042e150
add esp, 0x18
jmp 0x42c277
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0042c780
add esp, 0xc
test al, al
jne 0x42c26e
call fcn.00472cd8
mov esi, eax
call fcn.00472cd8
push dword [esi]
mov edi, eax
push ebx
call fcn.00418f70
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0042e150
add esp, 0x18
jmp 0x42c277
push ebx
call fcn.0042bcd0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00455dc1
add esp, 0x108
ret
Function at 0x42cad0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x648], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42cb30
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0042e280
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00455dc1
add esp, 0x18
ret
push dword [esi + 0x64c]
mov dword [esp + 0x14], 1
call fcn.0042f300
push dword [esi + 0x650]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.0042f300
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x42cba7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0042e280
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00455dc1
add esp, 0x18
ret

Function at 0x42e150
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x110]
cmp byte [edi + 0x4f8], 0
jne 0x42e182
cmp dword [edi + 0x160], 0
je 0x42e220
push esi
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.00430bd0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x42e1b0
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x42e1e5
cmp byte [edi + 0x48b0], al
jne 0x42e1e5
lea edx, [esp + 8]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x42e1d0
mov byte [edi + 0x48b0], 1
cmp byte [edi + 0x4f8], 0
je 0x42e21f
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x42e277
mov eax, dword [edi + 0x1d0]
mov byte [esp + esi + 8], 0
test eax, eax
je 0x42e236
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00455dc1
add esp, 0x108
ret
push dword [edi + 0x158]
push 1
push 2
push 0x49bd80
call fcn.00472c07
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00472c07
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop esi
pop edi
xor ecx, esp
call fcn.00455dc1
add esp, 0x108
ret
call fcn.00456639
int3
Function at 0x42e280
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x42e349
cmp byte [edi + 0x4f8], 0
je 0x42e349
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00430bd0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x42e2e0
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x42e31e
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00455dc1
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x49bd80
call fcn.00472c07
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00472c07
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.00455dc1
add esp, 0x808
ret

Function at 0x42e5a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.0042e9f0
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x42e626
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x42e5fe
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.00418f70
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0042e150
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48b4], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42e9f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x42eaa8
cmp dword [ebx + ecx*4 + 0x1bc], 0x42e500
jne 0x42eaa8
cmp dword [esi], 0
je 0x42ea3c
test edi, edi
je 0x42eaa8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0042eec0
add esp, 0x14
cmp eax, 0xffffffff
je 0x42eaa8
test al, 1
je 0x42eaa8
cmp dword [esi], 0
jne 0x42ea91
mov eax, dword [ebx]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x42ea91
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x42eaa8
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42eab0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x42ead9
push dword [esi + 0x15c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x42eb12
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x49bd80
push 2
push eax
call fcn.00472c07
push dword [esi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00472c07
add esp, 0x20
xor eax, eax
pop esi
ret
Function at 0x433970
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c8], 2
je fcn.00433920
mov al, 1
ret

Function at 0x4394b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x439642
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x43962c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4394ff
lea ebp, [eax + 0xe]
jmp 0x43950b
cmp eax, 0x17
jne 0x4395b9
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4395b9
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4395b9
cmp eax, ebp
jb 0x4395b9
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x439621
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x439610
push ebp
push dword [edi + 0x18]
push eax
call fcn.0046ebd0
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4395a5
push eax
call dword [0x4eb00c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4395f6
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4395b5
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4394f2
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4395d8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x439628
push ebx
call fcn.00439470
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x4eb004]
push esi
call dword [0x4eb004]
add esp, 8
jmp 0x4395c8
push esi
mov ebp, 8
call dword [0x4eb004]
add esp, 4
jmp 0x4395c8
mov ebp, 8
jmp 0x4395c8
test ebx, ebx
jne 0x439638
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret