joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410730
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 0x417588
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 1
call fcn.0040f7a0
add esp, 4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
je 0x4107c0
push 0
push 1
push 5
call fcn.0040f6e0
add esp, 0xc
test al, al
je 0x4107c0
push 0
push 0
push 6
call fcn.0040f6e0
add esp, 0xc
test al, al
jne 0x4107c0
mov dword [ebp - 4], 2
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__get_heap_handle]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
test edi, edi
je 0x4107ad
push 4
lea eax, [ebp - 4]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test esi, esi
je 0x4107c0
push 4
lea eax, [ebp - 4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40f940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 2
test esi, esi
jne 0x4107e5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x40f6c0
push 0x64
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x41d4f8], 0x258
mov edi, eax
jae 0x41085c
nop dword [eax]
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x410838
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x41d484], 0
je 0x410850
mov dword [0x41d4f8], 0
call fcn.0040cb20
cmp dword [0x41d4f8], 0x258
jb 0x410810
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00407fc0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b7000
Capabilities:
Encode data using xor

Disassembly:
push eax
push ecx
push edx
push ebx
push ebp
push esi
push edi
call 0x4b700c
pop eax
sub eax, 0x8ca0c
push 0
pop edi
push eax
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4017c7
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x405120], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40508e], ecx
mov dword [0x405124], 0x30
mov dword [0x405128], 3
mov dword [0x405130], 0
mov dword [0x405134], 0
mov dword [0x40512c], 0x4030d6
mov eax, 0xffff0000
mov ebx, section..text
and ebx, eax
mov dword [0x405086], ebx
mov dword [0x405138], ebx
mov dword [0x405144], 0xf
mov dword [0x40514c], 0x405067
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x40513c], eax
mov dword [0x405150], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x405140], eax
push 0x405124
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x405086]
push 0
push 0
push 0x2bc
push 0x1f4
push 0xa0
push 0x12c
push 0x40000
push str.Hello_word
push str.2class
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x405118], eax
push 0
push dword [0x405118]
call sub.user32.dll_ShowWindow
push dword [0x405118]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x405154
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4018eb
push 0x405154
call sub.user32.dll_TranslateMessage
push 0x405154
call sub.user32.dll_DispatchMessageA
jmp 0x4018c1
mov eax, dword [0x40515c]
mov esi, dword [0x4051b4]
lea ecx, [0x405086]
add esi, eax
call esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40ea40
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb15
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40eb30
push ebx
push 0x40eb40
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40eac0
mov al, 0x6a
call fcn.0040e660
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ea14
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40eac9
call fcn.0040ea14
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb1c
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ec30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecfb
jmp 0x40ecef
cmp dword [esi + 0x10], 0x1000
jne 0x40ecdb
test byte [esi + 0x15], 1
jne 0x40ecdb
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec8c
cmp ebp, 2
je 0x40ec8c
cmp ebp, 0x10
je 0x40ec8c
cmp ebp, 0x20
jne 0x40eca8
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca8
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb9
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec28
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40ecac
cmp byte [esp + 4], 0
je 0x40ecdb
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecfb
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec61
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4022b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c66b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4abd08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0046b14c
push 4
mov dword [ebp - 4], 0
call fcn.0046c68a
mov edi, eax
add esp, 4
test edi, edi
je 0x402330
call fcn.0046ad2d
mov dword [edi], eax
call fcn.0046aaec
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0046aa21
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402326
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0046aa49
jmp 0x402332
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4094c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ce38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4abd08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0046c68a
add esp, 4
cmp eax, ebx
je 0x4095ba
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.0046c68a
add esp, 4
cmp eax, ebx
je 0x409596
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x40], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov dword [esi + 0x7c], 1
mov byte [esi + 0x80], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0046b8f8
push 0x4a4a10
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0046c70a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.0046b8f8
push 0x4a4a10
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0046c70a
int3
Function at 0x4113d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4abd08]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x198], 0
push esi
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x110], edi
jne 0x41156d
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41145a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00431260
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0042d360
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c641
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push esi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4114ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00431260
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0042d360
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c641
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x108]
add ebx, 0xc8
add edi, 0x9a
lea esi, [ebp - 0x104]
call fcn.00411390
test eax, eax
jne 0x41150a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.00431260
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0042d360
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c641
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0xfc]
lea edi, [eax + 0xcc]
lea esi, [ebp - 0x84]
call fcn.00411390
test eax, eax
jne 0x411567
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.00431260
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0042d360
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c641
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x108]
mov edi, dword [ebx]
add edi, 0x86a4
lea esi, [ebx + 0x9a]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
add edi, 0x86d8
lea esi, [ebx + 0xcc]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc8]
mov dword [edx + 0x86d4], eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0xfc]
mov dword [ecx + 0x8708], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c641
mov esp, ebp
pop ebp
ret
Function at 0x4115d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x411616
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00431260
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042d2e0
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0042d2e0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411bb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
je 0x411c0b
mov ecx, dword [ecx + 0x514]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x411c0b
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x411bdd
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
push esi
mov esi, dword [eax + 0x12c]
jne 0x411c00
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x411c06
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x412100
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov edx, dword [ebx + ecx*4 + 0x12c]
xor ecx, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x1b8], ecx
je 0x41213b
mov dword [eax], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebx]
mov eax, dword [esi + 0x194]
push edi
mov edi, 0x493e0
cmp eax, ecx
jle 0x412153
mov ecx, 1
mov edx, dword [esi + 0x198]
test edx, edx
jle 0x412160
or ecx, 2
dec ecx
je 0x412171
dec ecx
je 0x41216d
dec ecx
jne 0x412173
cmp eax, edx
jl 0x412171
mov edi, edx
jmp 0x412173
mov edi, eax
call fcn.004346d0
mov ecx, dword [esi + 0x4a4]
push ecx
mov ecx, dword [esi + 0x4a0]
push ecx
push edx
push eax
call fcn.00434700
add esp, 0x10
sub edi, eax
je 0x412198
test edi, edi
jns 0x4121b5
mov edx, dword [ebp + 8]
push str.Connection_time_out
push edx
call fcn.0042d360
add esp, 8
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
push ebx
xor eax, eax
call fcn.00410ee0
add esp, 4
cmp eax, 1
je 0x41220c
test eax, eax
jne 0x412215
push edi
lea esi, [ebp - 4]
call fcn.004112c0
add esp, 4
test eax, eax
je 0x412254
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push 2
mov dword [ebx + 0x1b8], 1
push ecx
mov dword [eax], 1
call fcn.0042ad70
push ebx
call fcn.004374f0
mov edx, edi
push edx
push ebx
call fcn.004113d0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x412241
push edi
lea esi, [ebp - 4]
call fcn.004112c0
mov esi, dword [ebp - 4]
push esi
push ebx
call fcn.00431260
push eax
mov eax, dword [ebp + 8]
push 0x49355c
push eax
call fcn.0042d2e0
add esp, 0x18
jmp 0x412257
mov ecx, dword [ebp + 8]
push str.Connection_failed_n
push ecx
call fcn.0042d2e0
add esp, 8
jmp 0x41226b
mov esi, dword [ebp - 4]
test esi, esi
je 0x41226b
mov edx, dword [ebp + 8]
push esi
mov dword [edx + 0x855c], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411c10
mov esi, eax
add esp, 4
test esi, esi
je 0x4122b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 8]
push eax
push ebx
mov dword [edi + 0x855c], eax
call fcn.00431260
mov ecx, dword [ebx + 0x94]
mov edx, dword [ebx + 0x7c]
push eax
push ecx
push edx
push str.Failed_connect_to__s:_ld___s
push edi
call fcn.0042d360
add esp, 0x1c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413880
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x413a16
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x4139f8
push esi
cmp dword [edi + 4], 2
jne 0x41397c
cmp dword [edi + 0x18], ebx
je 0x41397c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x41397c
cmp eax, 0x10
jb 0x41397c
push 0x20
call dword [0x4ab4a4]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x413989
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4ab4a4]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x413992
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x413967
push eax
call dword [0x4ab4b0]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4139a5
cmp dword [ebp - 4], ebx
jne 0x41396f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x413979
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4138c2
jmp 0x4139c0
mov dword [ebp - 8], 8
jmp 0x4139c0
push esi
mov dword [ebp - 8], 8
call dword [0x4ab4a8]
add esp, 4
jmp 0x4139c0
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x4ab4a8]
push esi
call dword [0x4ab4a8]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x4139cf
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x4139f3
mov eax, dword [ebp - 4]
push eax
call fcn.00413830
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x413a0a
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0046ecf0
add esp, 0x18
test eax, eax
je 0x414734
cmp eax, 0xffffffff
jne 0x414736
xor eax, eax
pop ebp
ret
Function at 0x414b00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4abd08]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x414b50
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x414b4a
shr eax, 8
cmp al, 2
jne 0x414b4a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c641
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0046c641
mov esp, ebp
pop ebp
ret
Function at 0x416ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor ecx, ecx
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete cl
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x416b08
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call ecx
jmp 0x416b3b
cmp dword [esi + 8], 0
jne 0x416b2e
mov edx, dword [eax + 8]
push 0x493c08
push edx
call fcn.0046e354
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x416b2e
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
push eax
push ebx
push 1
push edi
call fcn.0046ff25
mov edi, eax
add esp, 0x10
test edi, edi
je 0x416b48
cmp edi, ebx
jbe 0x416b67
cmp dword [ebp - 4], 0
jne 0x416b61
mov ecx, dword [esi + 8]
push ecx
call fcn.0046e0ec
add esp, 4
mov dword [esi + 8], 0
mov edx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret