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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4bf070]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 1
cmp byte [eax], 0
je 0x412719
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push eax
push 0x412380
push 0
push 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.00420921
mov edi, eax
add esp, 0x18
test edi, edi
je 0x412706
cmp edi, 0xffffffff
je 0x412706
push 0x7530
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4126ea
mov esi, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041553e
mov esp, ebp
pop ebp
ret
cmp eax, 0x102
jne 0x4126ff
push 1
push edi
mov esi, 2
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041553e
mov esp, ebp
pop ebp
ret
call fcn.00412440
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.0041553e
mov esp, ebp
pop ebp
ret
Function at 0x412e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4905e2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], esi
mov dword [esi], 0
call fcn.0040c560
mov ecx, eax
test ecx, ecx
jne 0x412ec6
push 0x80004005
call fcn.0040c2a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412edb
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x412edd
call edx
add eax, 0x10
mov dword [esi], eax
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x220], 1
call fcn.004179d0
add esp, 0xc
mov dword [ebp - 0x214], 0x200
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412fea
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412fb3
lea eax, [ebp - 0x21c]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412fea
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412fea
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412fc0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00413de0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041553e
mov esp, ebp
pop ebp
ret
Function at 0x4130b0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490632
mov eax, dword fs:[0]
push eax
sub esp, 0xc9c
mov eax, dword [0x4bf070]
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 - 0xca0], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0xca4], 0
push 0x4b83b8
mov dword [ebp - 0xca8], edi
mov dword [edi], 0
call fcn.00413b60
mov dword [ebp - 4], 0
mov eax, 0x43
mov word [ebp - 0x5c], ax
mov edx, 0x72
mov eax, 0x52
mov dword [ebp - 0xca4], 1
mov word [ebp - 0x8c], ax
mov ebx, 0x6f
mov eax, 0x4d
mov dword [ebp - 0x5a], 0x720075
mov word [ebp - 0x86], ax
mov eax, 0x65
push 0x800
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0xc98]
push 0
push eax
mov dword [ebp - 0x72], 0x690057
mov dword [ebp - 0x84], 0x630069
mov dword [ebp - 0x90], 0x410057
mov dword [ebp - 0x8a], 0x5c0045
mov dword [ebp - 0x98], 0x4f0053
mov dword [ebp - 0x7e], 0x73006f
mov dword [ebp - 0x7a], 0x66006f
mov dword [ebp - 0x4a], 0x730072
mov dword [ebp - 0x94], 0x540046
mov dword [ebp - 0x64], 0x4e0020
mov dword [ebp - 0x54], 0x6e0065
mov dword [ebp - 0x46], 0x6f0069
mov dword [ebp - 0x76], 0x5c0074
mov dword [ebp - 0x60], 0x5c0054
mov dword [ebp - 0x50], 0x560074
mov dword [ebp - 0x68], 0x730077
mov dword [ebp - 0x6e], 0x64006e
mov word [ebp - 0x56], dx
mov word [ebp - 0x80], dx
mov dword [ebp - 0x42], 0x6e
mov word [ebp - 0x6a], bx
mov dword [ebp - 0x22], 0x64006f
mov dword [ebp - 0x1e], 0x630075
mov dword [ebp - 0x28], 0x50006c
mov dword [ebp - 0x2c], 0x610074
mov dword [ebp - 0x1a], 0x490074
mov dword [ebp - 0x30], 0x690067
mov dword [ebp - 0x16], 0x64
mov dword [ebp - 0x34], 0x690044
mov word [ebp - 0x24], dx
call fcn.004179d0
add esp, 0xc
mov dword [ebp - 0xc9c], 0x800
lea eax, [ebp - 0xca0]
push eax
push 0x101
push 0
lea eax, [ebp - 0x98]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41331f
lea eax, [ebp - 0xc9c]
push eax
lea eax, [ebp - 0xc98]
push eax
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xca0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413313
push 0x400
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.004179d0
add esp, 0xc
lea edx, [ebp - 0x498]
lea ecx, [ebp - 0xc98]
push dword [ebp - 0xc9c]
call fcn.00413040
lea eax, [ebp - 0x498]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4132d4
sub eax, edx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x4132ec
xor eax, eax
jmp 0x413304
lea eax, [esi + esi]
call fcn.00415f30
mov ecx, esp
lea edx, [ebp - 0x498]
push 3
push esi
call fcn.00414160
push eax
push 0x4b9490
push edi
call fcn.00414050
add esp, 0xc
push dword [ebp - 0xca0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea esp, [ebp - 0xcb8]
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.0041553e
mov esp, ebp
pop ebp
ret
Function at 0x413350
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49066b
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x4bf070]
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 - 0x668], edi
push 0x4b7de4
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x660], 0
call fcn.0040bf20
push 0x20a
lea eax, [ebp - 0x65c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004179d0
push 0x20a
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.004179d0
push 0x208
lea eax, [ebp - 0x244]
mov dword [ebp - 0x664], 0
push 0
push eax
mov dword [ebp - 0x668], 0
mov dword [ebp - 0x66c], 0
call fcn.004179d0
add esp, 0x24
lea eax, [ebp - 0x244]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x33], 0x6c6c64
mov word [ebp - 0x23e], ax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x39], 0x336c656e
mov word [ebp - 0x35], 0x2e32
mov word [ebp - 0x3c], 0x654b
mov byte [ebp - 0x3a], 0x72
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4134ef
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1d], 0x6f697461
push ecx
push eax
mov dword [ebp - 0x2c], 0x56746547
mov dword [ebp - 0x22], 0x726f666e
mov dword [ebp - 0x26], 0x49656d75
mov byte [ebp - 0x1e], 0x6d
mov word [ebp - 0x18], 0x57
mov word [ebp - 0x28], 0x6c6f
mov byte [ebp - 0x19], 0x6e
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cc7cc], eax
test eax, eax
je 0x4134ef
push 0x105
lea ecx, [ebp - 0x450]
push ecx
lea ecx, [ebp - 0x66c]
push ecx
lea ecx, [ebp - 0x668]
push ecx
lea ecx, [ebp - 0x664]
push ecx
push 0x105
lea ecx, [ebp - 0x65c]
push ecx
lea ecx, [ebp - 0x244]
push ecx
call eax
test eax, eax
je 0x4134ef
push dword [ebp - 0x664]
lea eax, [ebp - 0x660]
push 0x4b9518
push eax
call fcn.0040ae40
add esp, 0xc
mov esi, dword [ebp - 0x660]
test esi, esi
jne 0x4134fd
xor eax, eax
jmp 0x41352e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413502
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jle 0x41351a
xor eax, eax
jmp 0x41352e
lea eax, [ebx + ebx]
call fcn.00415f30
mov ecx, esp
mov edx, esi
push 3
push ebx
call fcn.00414160
push eax
mov ecx, edi
call fcn.00413b60
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x660]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413577
mov esi, dword [edx]
push edx
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x413573
mov ecx, dword [esi + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x413577
mov ecx, esi
call eax
mov eax, edi
lea esp, [ebp - 0x680]
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.0041553e
mov esp, ebp
pop ebp
ret

Function at 0x42e88f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e70e
Function at 0x436b59
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436819

Function at 0x43d17b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x1a0
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp + 0x11c], eax
mov eax, 0x202
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x43d1ba
push 2
pop eax
jmp 0x43d21a
movzx eax, word [ebp - 0x74]
and eax, 0xff
movzx eax, al
movzx ecx, word [ebp - 0x78]
and ecx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x43d1fa
movzx eax, word [ebp - 0x74]
shr eax, 8
and eax, 0xff
movzx eax, al
movzx ecx, word [ebp - 0x78]
shr ecx, 8
and ecx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x43d205
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
jmp 0x43d21a
call fcn.0044575b
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x43d218
mov eax, dword [ebp - 0x7c]
jmp 0x43d21a
xor eax, eax
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0041553e
add ebp, 0x120
mov esp, ebp
pop ebp
ret
Function at 0x4458f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1d0], 0
je 0x44592f
mov eax, dword [ebp + 8]
push dword [eax + 0x15c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp + 8]
call dword [eax + 0x1d0]
add esp, 0x14
mov dword [ebp - 8], eax
jmp 0x44597b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x44597b
cmp dword [ebp - 4], 2
jle 0x445943
jmp 0x44597b
mov eax, dword [ebp + 8]
push dword [eax + 0x158]
push 1
push 2
imul eax, dword [ebp + 0xc], 3
add eax, 0x4b69ec
push eax
call fcn.0041e061
add esp, 0x10
mov eax, dword [ebp + 8]
push dword [eax + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041e061
add esp, 0x10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4459d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
jne 0x4459bd
mov dword [ebp - 4], 1
jmp 0x4459c1
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4459d2
push 0x51
pop eax
jmp 0x4459e1
push 0x38
pop eax
jmp 0x4459e1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x1a8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00445f2d
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebp - 8], 0xffffffff
jne 0x445d7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2733
jne 0x445d48
and dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x51
jmp 0x445d7f
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004680bc
pop ecx
pop ecx
push eax
push str.Send_failure:__s
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.004465bf
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x48b4], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x445f2d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x1a8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x1cc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 4]
sub eax, dword [ecx + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2b8]
mov eax, dword [eax + 0x40]
and eax, 3
je 0x44605a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4 + 0x1bc], 0x445bd3
jne 0x44605a
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x445fa3
cmp dword [ebp - 8], 0
je 0x44605a
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x10]
call fcn.004485d6
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x44605a
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x44605a
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x446013
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x4b8]
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
push dword [eax + 4]
call dword [0x4bfa34]
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
mov eax, dword [ebp - 4]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x446053
xor eax, eax
jne 0x44601b
push 0
push dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x446051
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
jmp 0x44605a
mov eax, dword [ebp - 4]
and dword [eax + 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x446701
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00446740
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042d46b
add esp, 0xc
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x10
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x1ec]
test eax, eax
je 0x446b57
push dword [ebp + 8]
call fcn.0045563d
pop ecx
test eax, eax
jne 0x446b55
xor al, al
jmp 0x446b98
jmp 0x446b96
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax + 0x1a8], 0xffffffff
jne 0x446b70
xor al, al
jmp 0x446b98
push 2
push 1
lea eax, [ebp - 1]
push eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
push dword [ecx + eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x446b96
xor al, al
jmp 0x446b98
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4470be
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x4020
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
cmp dword [0x4cc7ec], 0
jne 0x44710c
push 3
push 2
push 0
push 6
call fcn.00465273
add esp, 0x10
movzx eax, al
test eax, eax
je 0x447102
mov dword [0x4cc7ec], 2
jmp 0x44710c
mov dword [0x4cc7ec], 1
cmp dword [0x4cc7ec], 2
jne 0x447117
jmp 0x447159
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x447140
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jle 0x447140
jmp 0x447159
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x44715d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 6
push 4
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4471b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 8]
call fcn.004680bc
pop ecx
pop ecx
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push dword [ebp - 4]
call fcn.004460bd
add esp, 0xc
jmp 0x4471c4
push str.TCP_NODELAY_set_n
push dword [ebp - 4]
call fcn.004460bd
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4471c8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x94], 2
jne 0x4471f7
jmp 0x4473c0
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x276]
test eax, eax
jne 0x4473b7
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x292]
test eax, eax
jne 0x4473b7
mov dword [ebp - 0x10c], 0x80
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x44727b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x110]
push dword [ebp + 8]
call fcn.004680bc
pop ecx
pop ecx
push eax
push dword [ebp - 0x110]
push str.getpeername___failed_with_errno__d:__s
push dword [ebp - 0x108]
call fcn.004465bf
add esp, 0x10
jmp 0x4473c0
mov dword [ebp - 0x10c], 0x80
push 0x80
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.004179d0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4472f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x114]
push dword [ebp + 8]
call fcn.004680bc
pop ecx
pop ecx
push eax
push dword [ebp - 0x114]
push str.getsockname___failed_with_errno__d:__s
push dword [ebp - 0x108]
call fcn.004465bf
add esp, 0x10
jmp 0x4473c0
mov eax, dword [ebp + 8]
add eax, 0x138
push eax
mov eax, dword [ebp + 8]
add eax, 0x10a
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004473ce
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x447347
call fcn.0041de16
push dword [eax]
push dword [ebp + 8]
call fcn.004680bc
pop ecx
pop ecx
push eax
call fcn.0041de16
push dword [eax]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x108]
call fcn.004465bf
add esp, 0x10
jmp 0x4473c0
push 0x2e
mov eax, dword [ebp + 8]
add eax, 0x10a
push eax
mov eax, dword [ebp + 8]
add eax, 0x60
push eax
call fcn.00417b30
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x16c
push eax
mov eax, dword [ebp + 8]
add eax, 0x13c
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004473ce
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x4473b7
call fcn.0041de16
push dword [eax]
push dword [ebp + 8]
call fcn.004680bc
pop ecx
pop ecx
push eax
call fcn.0041de16
push dword [eax]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x108]
call fcn.004465bf
add esp, 0x10
jmp 0x4473c0
push dword [ebp + 8]
call fcn.004474a4
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041553e
mov esp, ebp
pop ebp
ret
Function at 0x447cb1
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x648]
test eax, eax
je 0x447cd8
mov dword [ebp - 0x18], 1
jmp 0x447cdc
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x447d14
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push dword [ebp + 8]
call fcn.004460bd
add esp, 0xc
jmp 0x447d9d
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
push dword [eax + 0x64c]
call fcn.00446798
pop ecx
mov dword [ebp - 0x14], eax
imul eax, dword [ebp - 0x14], 0x3e8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x650]
call fcn.00446798
pop ecx
mov dword [ebp - 0x14], eax
imul eax, dword [ebp - 0x14], 0x3e8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x447d9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 0xc]
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push dword [ebp + 8]
call fcn.004460bd
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041553e
mov esp, ebp
pop ebp
ret
Function at 0x449d94
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x449db5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c], 0
je 0x449db5
push 2
push 3
push dword [ebp + 8]
call fcn.0045594b
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0045f241
pop ecx
cmp dword [ebp + 8], 0
je 0x449dd9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c], 0
je 0x449dd9
push 3
push dword [ebp + 8]
call fcn.00455999
pop ecx
pop ecx
pop ebp
ret

Function at 0x45577f
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x4c1308], 0xffffffff
jne 0x4557c2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4557ac
and dword [0x4c1308], 0
jmp 0x4557c2
mov dword [0x4c1308], 1
push dword [ebp - 4]
push 0
call fcn.00446a9c
pop ecx
pop ecx
cmp dword [0x4c1308], 0
jle 0x4557d4
mov dword [ebp - 8], 1
jmp 0x4557d8
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x4557e4
and dword [ebp - 0xc], 0
jmp 0x4557eb
mov dword [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret