joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c9c0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474ad1
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x4931e0]
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 edi, ecx
mov dword [ebp - 0x2b4], edi
lea eax, [ebp - 0x2a8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40cb98
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40cb98
mov ecx, dword [ebx + 0xc]
xor esi, esi
mov ecx, dword [ecx]
test ecx, ecx
je 0x40ca8e
lea eax, [edi + 0x44]
mov edi, eax
lea esp, [esp]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x2b0], eax
mov ecx, edi
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2ac], 0
push eax
call fcn.0040d5c0
mov eax, dword [ebx + 0xc]
inc esi
mov ecx, dword [eax + esi*4]
test ecx, ecx
jne 0x40ca50
mov edi, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2b8]
mov dword [edi + 8], esi
push eax
mov ecx, edi
call fcn.00407b70
xor esi, esi
mov dword [ebp - 4], 0
cmp dword [edi + 8], esi
jle 0x40cb0c
lea ecx, [ecx]
lea eax, [ebp - 0x2b8]
mov edx, 0x40cbc0
push eax
lea ecx, [ebp - 0x2b0]
call fcn.0040dc20
add esp, 4
push 1
push eax
mov byte [ebp - 4], 1
call fcn.00447930
push eax
push 0x44
push str.bandwidth_concession_sniffer.cpp
push str.Sniffer::Start
lea ecx, [ebp - 0x2c8]
call fcn.00447910
push eax
call fcn.00451810
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b0]
call fcn.00447d40
inc esi
cmp esi, dword [edi + 8]
jl 0x40cab0
lea eax, [ebp - 0x2b8]
mov edx, 0x40cc70
push eax
lea ecx, [ebp - 0x2c0]
call fcn.0040dc20
add esp, 4
push 1
push eax
mov byte [ebp - 4], 2
call fcn.00447930
push eax
push 0x49
push str.bandwidth_concession_sniffer.cpp
push str.Sniffer::Start
lea ecx, [ebp - 0x2d8]
call fcn.00447910
push eax
call fcn.00451810
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c0]
call fcn.00447d40
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2b4]
test esi, esi
je 0x40cb98
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x40cb98
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x40cb98
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x40cd20
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xa02c
call fcn.00472c30
mov eax, dword [0x4931e0]
xor eax, esp
mov dword [esp + 0xa028], eax
push ebx
push esi
push edi
push 0
push 3
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x1c], 1
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x18], esi
push eax
push 2
push 0
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebx + 0xc]
push 0x271d
lea eax, [ecx + 1]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x28], eax
mov eax, 2
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40ce93
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 0x98000001
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [ebx + 0x28]
call fcn.00450f40
test al, al
jne 0x40ce8c
lea esp, [esp]
push 0
push 0xa000
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40ce8c
mov eax, dword [ebx + 0x44]
mov esi, dword [ebx + 0x48]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x10], 0
cmp eax, esi
je 0x40ce78
mov edx, dword [eax]
mov ecx, dword [eax + 4]
cmp dword [esp + 0x3c], edx
jne 0x40ce22
cmp dword [esp + 0x10], ecx
je 0x40ce35
cmp edi, edx
jne 0x40ce2c
xor edx, edx
cmp edx, ecx
je 0x40ce3c
add eax, 8
cmp eax, esi
jne 0x40ce11
jmp 0x40ce78
mov eax, 1
jmp 0x40ce3e
xor eax, eax
mov cl, byte [esp + 0x39]
cmp cl, 6
jne 0x40ce5e
test eax, eax
mov ecx, ebx
setne al
movzx eax, al
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040ceb0
jmp 0x40ce78
cmp cl, 0x11
jne 0x40ce78
test eax, eax
mov ecx, ebx
setne al
movzx eax, al
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040d0c0
lea ecx, [ebx + 0x28]
call fcn.00450f40
mov esi, dword [esp + 0x14]
test al, al
je 0x40cde0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xa034]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x40e450
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x40e45e
mov ecx, dword [ecx]
push ebx
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e486
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
xor edi, edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40e510
push esi
push eax
call fcn.004724fc
add esp, 4
mov dword [ebp - 4], edi
mov esi, eax
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e505
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x40e4e9
cmp byte [esi], 0xff
jne 0x40e4e9
cmp byte [esi + 1], 0xfe
jne 0x40e4e9
mov edi, 1
jmp 0x40e505
cmp eax, 3
jb 0x40e505
cmp byte [esi], 0xef
jne 0x40e505
cmp byte [esi + 1], 0xbb
jne 0x40e505
cmp byte [esi + 2], 0xbf
mov eax, 2
cmove edi, eax
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410eb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4750fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4931e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
fldz
fstp qword [esi + 8]
fld qword [0x48bbe8]
fstp qword [esi + 0x18]
fld1
fstp qword [esi + 0x28]
fld qword [0x48bbf0]
fstp qword [esi + 0x38]
mov dword [esi], 0x2ee
mov dword [esi + 4], 0
mov dword [esi + 0x10], 0x32
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x30], 0x64
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00415200
mov dword [esi + 0x40], eax
mov dword [ebp - 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
call fcn.00415200
mov dword [esi + 0x48], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411a10
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4752d2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4931e0]
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 esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x38
lea edi, [esi + 8]
mov dword [ebp - 4], 0
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00415200
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
call fcn.00415200
mov dword [esi + 0x48], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
call fcn.00415200
mov dword [esi + 0x50], eax
lea eax, [esi + 0x58]
mov byte [ebp - 4], 3
push eax
call fcn.0044a420
mov ecx, eax
call fcn.00401370
mov byte [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
push 0x10
push str.WhitelistManager
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401dc0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x6c]
call fcn.0044c450
mov byte [ebp - 4], 8
cmp dword [ebp - 0x14], 0x10
jb 0x411b26
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
fld qword [0x48bbf0]
lea ecx, [esi + 0x6c]
fstp qword [esi + 0x20]
fld1
fstp qword [esi + 0x28]
fldz
fstp qword [esi + 0x30]
fld qword [0x48bbe8]
fstp qword [esi + 0x38]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [edi], 0x2ee
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x32
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0x64
call fcn.0044c5e0
mov eax, esi
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.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x411e70
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475390
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4931e0]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov eax, dword [0x4931e0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov dword [esp + 0x28], 0x412260
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esp
mov ecx, esp
mov dword [esp + 0x30], esi
push eax
call fcn.00415fc0
sub esp, 0x18
mov dword [esp + 0xb0], 0
mov eax, esp
mov dword [eax], 0x483098
lea ecx, [esp + 0x64]
mov dword [eax + 4], fcn.00411fc0
mov dword [eax + 8], esi
mov dword [eax + 0x10], eax
mov byte [esp + 0xb0], 0
mov dword [esp + 0xb0], 0xffffffff
call fcn.0040fdb0
lea ecx, [esp + 0x34]
mov dword [esp + 0x80], 2
call fcn.0040ff30
test al, al
je 0x411f2a
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x411f2a
mov eax, dword [ecx]
call dword [eax + 8]
mov al, byte [esp + 0x64]
mov byte [esi + 0x5c], al
test al, al
jne 0x411f93
cmp dword [esi + 0x58], 0
je 0x411f93
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
lea ecx, [esp + 0x20]
call fcn.00416050
add esp, 4
mov byte [esp + 0x80], 3
mov esi, dword [esi + 0x58]
push eax
call fcn.00447930
push eax
push 0x1b7
push str.bandwidth_concession_bandwidth_configuration.cpp
push str.BandwidthConfiguration::Load
lea ecx, [esp + 0x38]
call fcn.00447910
push eax
mov ecx, esi
call fcn.00447c80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 2
call fcn.00447d40
lea ecx, [esp + 0x34]
call fcn.0040feb0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x414720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475608
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4931e0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4931e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x41486e
cmp byte [edi + 0x45], 0
je 0x41486e
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x414780
xor al, al
jmp 0x414870
xor ecx, ecx
mov byte [esp + 0x18], 0
mov edx, 0xf
mov dword [esp + 0x18], ecx
cmp edx, 0x10
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
cmovae eax, ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], cl
mov dword [esp + 0x40], ecx
lea esi, [edi + 0x48]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x4147f5
dec eax
je 0x4147f9
sub eax, 2
je 0x414854
xor bl, bl
jmp 0x414856
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub esi, eax
je 0x414831
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4147f1
cmp byte [edi + 0x45], 0
je 0x414854
test esi, esi
lea esi, [edi + 0x48]
jne 0x4147b4
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.00414040
jmp 0x4147b1
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x41486a
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x414870
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x41e400
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x41e433
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047259d
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41e495
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ebx, dword [sym.imp.MSVCR120.dll__wcslwr_s]
lea ecx, [ecx]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call ebx
lea eax, [ebp - 0x20c]
push str.taskmgr.exe
push eax
call dword [sym.imp.MSVCR120.dll_wcsstr]
add esp, 0x10
test eax, eax
jne 0x41e4af
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x41e460
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047259d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x41e870
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0xcf0000
push str.Deamon
push 0x47b3d0
push 0
mov dword [0x494f70], ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x41e8a5
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret

Function at 0x41e8c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47617b
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4], ecx
push str.status___d_n
lea ecx, [ebp - 0xc0]
call fcn.00415c70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xd0], ecx
lea edx, [ebp - 0xd0]
mov ecx, eax
mov dword [ebp - 0xcc], fcn.00401090
mov dword [ebp - 0xc8], 0x41ee10
call fcn.00419bc0
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0041edf0
cmp dword [eax + 0x14], 8
jb 0x41e947
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], 8
jb 0x41e960
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00410dd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047259d
mov esp, ebp
pop ebp
ret

Function at 0x41e9a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x41e9cb
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047259d
mov esp, ebp
pop ebp
ret
push edi
push 0
push 2
mov byte [ebp - 0x231], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov edi, eax
lea eax, [ebp - 0x22c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41ea38
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x228], esi
je 0x41ea30
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x41ea18
jmp 0x41ea37
mov byte [ebp - 0x231], 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x231]
xor ecx, ebp
pop edi
pop esi
call fcn.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x41fea8
Capabilities:
Read file via mapping

Disassembly:
push 0xb8
mov eax, 0x4764ad
call fcn.0047362c
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc4], esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
push ecx
push 0x80
push 4
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
push 3
cmovae eax, dword [ebp + 0xc]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41ff40
cmp dword [edi + 0x10], 0
je 0x41ff40
cmp dword [edi + 0x14], 8
jb 0x41ff0a
mov edi, dword [edi]
push edi
push 0xb0
xor edi, edi
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x41ff37
mov ecx, 0xb0
push ecx
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ff42
xor edi, edi
cmp dword [esi], edi
je 0x41ffe9
push 0xb0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x41ff74
mov dword [eax + 0x98], edi
mov dword [eax + 0x9c], edi
mov dword [eax + 0xa8], edi
mov dword [eax + 0xac], edi
jmp 0x41ff76
mov eax, edi
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
test ecx, ecx
je 0x41ff88
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
pop ecx
mov ecx, 0xb0
push ecx
push dword [esi]
push ecx
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll_memcpy_s]
mov ebx, dword [esi]
add esp, 0x10
push 9
pop eax
cmp word [ebx], ax
je 0x41ffe9
push 0xa0
lea eax, [ebp - 0xc0]
push edi
push eax
call sub.MSVCR120.dll_memset
mov dword [ebp - 0x28], edi
xor eax, eax
mov dword [ebp - 0x24], edi
add esp, 0xc
lea edi, [ebp - 0x20]
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc0]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push eax
call fcn.0041ffff
mov ecx, dword [esi]
push 9
pop eax
mov word [ecx], ax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0044f620
mov eax, esi
call fcn.004735ea
ret 0x1c
Function at 0x42106e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4950b8]
mov ecx, eax
inc eax
mov dword [0x4950b8], eax
test ecx, ecx
je 0x421099
xor eax, eax
jmp 0x421150
cmp dword [0x494fa4], 0
mov eax, dword [sym.imp.MSVCR120.dll_malloc]
mov dword [0x493208], eax
mov eax, dword [sym.imp.MSVCR120.dll_free]
mov dword [0x493210], eax
mov eax, dword [sym.imp.MSVCR120.dll_realloc]
mov dword [0x49320c], eax
mov eax, dword [sym.imp.MSVCR120.dll__strdup]
mov dword [0x493214], eax
mov eax, dword [sym.imp.MSVCR120.dll_calloc]
mov dword [0x493218], eax
jne 0x4210f4
mov dword [0x494fa4], 1
call dword [sym.imp.SSLEAY32.dll_Ordinal_74]
call dword [sym.imp.SSLEAY32.dll_Ordinal_183]
test eax, eax
je 0x42114d
call dword [sym.imp.LIBEAY32.dll_Ordinal_3212]
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42114d
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x421147
shr eax, 8
cmp al, 2
jne 0x421147
push 0
mov dword [0x4950b4], 3
call dword [sym.imp.MSVCR120.dll__time64]
pop ecx
mov dword [0x4950d8], eax
call fcn.0042870d
call fcn.0042870d
call fcn.0042870d
jmp 0x421092
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x42721c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x1c8], 0
mov ebx, dword [edi]
jne 0x42733f
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42728e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00440317
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00428799
add esp, 0x10
jmp 0x427346
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4272cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00440317
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x427280
lea eax, [edi + 0xcc]
push eax
lea edx, [edi + 0x9e]
lea ecx, [ebp - 0x88]
call fcn.004271cf
pop ecx
test eax, eax
jne 0x427305
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00440317
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x427280
lea eax, [edi + 0x100]
push eax
lea edx, [edi + 0xd0]
lea ecx, [ebp - 0x108]
call fcn.004271cf
pop ecx
test eax, eax
jne 0x42733f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00440317
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x427280
mov ecx, edi
call fcn.00427182
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047259d
mov esp, ebp
pop ebp
ret

Function at 0x42751b
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x427564
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.00440317
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00428725
add esp, 0xc
jmp 0x427571
push str.TCP_NODELAY_set_n
push esi
call fcn.00428725
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret