joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424b30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5edc68], 0
jne 0x424bbc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x424b82
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424b68
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
mov ecx, 0x5edc58
call fcn.00408af0
jmp 0x424ba2
cmp dword [0x5edc6c], 0x10
mov eax, 0x5edc58
mov dword [0x5edc68], 0
cmovae eax, dword [0x5edc58]
mov byte [eax], 0
cmp dword [0x5edc68], 0
jne 0x424bbc
push 9
push str._unknown_
mov ecx, 0x5edc58
call fcn.00408af0
mov ecx, dword [ebp - 4]
mov eax, 0x5edc58
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret

Function at 0x424cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5edc55], 0
push esi
push edi
mov edi, edx
je 0x424dde
cmp byte [0x5f9a26], 0
je 0x424dde
xor esi, esi
cmp ecx, 3
ja case.default.0x424d25
jmp dword [ecx*4 + 0x424e04]
xor esi, esi
jmp case.default.0x424d25
mov esi, 3
jmp case.default.0x424d25
mov esi, 1
test esi, esi
je 0x424dde
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
push 2
mov dword [ebp - 0x20], eax
call fcn.0054b5f7
push eax
call fcn.0054a9a4
add esp, 8
sub esi, 1
je 0x424d95
sub esi, 1
je 0x424d8e
sub esi, 1
je 0x424d87
mov eax, 8
jmp 0x424d9a
mov eax, 0xe
jmp 0x424d9a
mov eax, 0xa
jmp 0x424d9a
mov eax, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push eax
push ebx
call esi
push 2
call fcn.0054b5f7
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.0054b005
push 2
call fcn.0054b5f7
push eax
call fcn.0054a9a4
add esp, 0x1c
push dword [ebp - 0x20]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
push 2
call fcn.0054b5f7
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.0054b005
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
Function at 0x424d2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5edc55], 0
push esi
push edi
mov edi, edx
je 0x424dde
cmp byte [0x5f9a26], 0
je 0x424dde
xor esi, esi
cmp ecx, 3
ja case.default.0x424d25
jmp dword [ecx*4 + 0x424e04]
xor esi, esi
jmp case.default.0x424d25
mov esi, 3
jmp case.default.0x424d25
mov esi, 1
test esi, esi
je 0x424dde
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
push 2
mov dword [ebp - 0x20], eax
call fcn.0054b5f7
push eax
call fcn.0054a9a4
add esp, 8
sub esi, 1
je 0x424d95
sub esi, 1
je 0x424d8e
sub esi, 1
je 0x424d87
mov eax, 8
jmp 0x424d9a
mov eax, 0xe
jmp 0x424d9a
mov eax, 0xa
jmp 0x424d9a
mov eax, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push eax
push ebx
call esi
push 2
call fcn.0054b5f7
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.0054b005
push 2
call fcn.0054b5f7
push eax
call fcn.0054a9a4
add esp, 0x1c
push dword [ebp - 0x20]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
push 2
call fcn.0054b5f7
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.0054b005
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret

Function at 0x424d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5edc55], 0
push esi
push edi
mov edi, edx
je 0x424dde
cmp byte [0x5f9a26], 0
je 0x424dde
xor esi, esi
cmp ecx, 3
ja case.default.0x424d25
jmp dword [ecx*4 + 0x424e04]
xor esi, esi
jmp case.default.0x424d25
mov esi, 3
jmp case.default.0x424d25
mov esi, 1
test esi, esi
je 0x424dde
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
push 2
mov dword [ebp - 0x20], eax
call fcn.0054b5f7
push eax
call fcn.0054a9a4
add esp, 8
sub esi, 1
je 0x424d95
sub esi, 1
je 0x424d8e
sub esi, 1
je 0x424d87
mov eax, 8
jmp 0x424d9a
mov eax, 0xe
jmp 0x424d9a
mov eax, 0xa
jmp 0x424d9a
mov eax, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push eax
push ebx
call esi
push 2
call fcn.0054b5f7
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.0054b005
push 2
call fcn.0054b5f7
push eax
call fcn.0054a9a4
add esp, 0x1c
push dword [ebp - 0x20]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
push 2
call fcn.0054b5f7
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.0054b005
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
Function at 0x424d37
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5edc55], 0
push esi
push edi
mov edi, edx
je 0x424dde
cmp byte [0x5f9a26], 0
je 0x424dde
xor esi, esi
cmp ecx, 3
ja case.default.0x424d25
jmp dword [ecx*4 + 0x424e04]
xor esi, esi
jmp case.default.0x424d25
mov esi, 3
jmp case.default.0x424d25
mov esi, 1
test esi, esi
je 0x424dde
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
push 2
mov dword [ebp - 0x20], eax
call fcn.0054b5f7
push eax
call fcn.0054a9a4
add esp, 8
sub esi, 1
je 0x424d95
sub esi, 1
je 0x424d8e
sub esi, 1
je 0x424d87
mov eax, 8
jmp 0x424d9a
mov eax, 0xe
jmp 0x424d9a
mov eax, 0xa
jmp 0x424d9a
mov eax, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push eax
push ebx
call esi
push 2
call fcn.0054b5f7
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.0054b005
push 2
call fcn.0054b5f7
push eax
call fcn.0054a9a4
add esp, 0x1c
push dword [ebp - 0x20]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
push 2
call fcn.0054b5f7
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.0054b005
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
Function at 0x4298c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570f06
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x601260]
test eax, eax
jne 0x429b53
push 0xc
call fcn.0053efac
add esp, 4
mov dword [0x601260], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
cmp dword [0x5f22c8], 0
je 0x4299e0
cmp dword [0x5f22cc], 0x10
mov edx, 0x5f22b8
mov dword [ebp - 0x12c], 0
cmovae edx, dword [0x5f22b8]
mov ecx, edx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429966
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x12c]
call fcn.00408af0
mov dword [ebp - 4], 0
mov eax, dword [0x601260]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x429b27
lea edx, [ebp - 0x12c]
push edx
push ecx
mov ecx, eax
call fcn.0042b050
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x429b4e
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x429b44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429b6d
jmp 0x429b44
call fcn.00429600
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x429ad8
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x11c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429a30
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00408af0
mov dword [ebp - 4], 1
mov ecx, dword [0x601260]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x429a8a
movups xmm0, xmmword [ebp - 0x12c]
mov edx, 0xf
mov byte [ebp - 0x12c], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x11c]
movq qword [eax + 0x10], xmm0
add dword [ecx + 4], 0x18
jmp 0x429a9d
lea edx, [ebp - 0x12c]
push edx
push eax
call fcn.0042b050
mov edx, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x429ad8
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x429ace
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429b6d
push edx
push ecx
call fcn.0053efdc
add esp, 8
push 2
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x12c]
push 0x5d4034
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00408af0
mov dword [ebp - 4], 2
mov eax, dword [0x601260]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x429994
movups xmm0, xmmword [ebp - 0x12c]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x11c]
movq qword [ecx + 0x10], xmm0
add dword [eax + 4], 0x18
jmp 0x429b53
push edx
push ecx
call fcn.0053efdc
add esp, 8
mov eax, dword [0x601260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
call fcn.00549186
int3
Function at 0x434490
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5e8464]
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 0x4344e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4344da
shr eax, 8
cmp al, 2
jne 0x4344da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
Function at 0x43bbe0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x43bc29
mov al, byte [esi]
push eax
call fcn.0044a770
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x43bc07
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x43cfb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43cfce
cmp dword [esi + 0x6c], 0
je 0x43cfce
push 2
push 3
push esi
call fcn.0044ad10
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0044b180
add esp, 4
test esi, esi
je 0x43cfee
cmp dword [esi + 0x6c], 0
je 0x43cfee
push 3
push esi
call fcn.0044ad50
add esp, 8
pop esi
pop ebp
ret

Function at 0x43db90
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2d0], 2
jne 0x43dba5
pop ebp
jmp fcn.0043db40
mov al, 1
pop ebp
ret
Function at 0x4469c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x446a04
push esi
push 1
push edi
call fcn.00438490
push dword [edi + 0x594]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00438490
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x446a3a
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x575a38
push 2
push eax
call fcn.0054b005
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0054b005
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.00447350
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x446ea4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x446e7c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004345e0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00446a40
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0xd34], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2c8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x447418
cmp dword [ebx + ecx*4 + 0x1bc], 0x446d70
jne 0x447418
cmp dword [esi], 0
je 0x447399
test edi, edi
je 0x447418
mov eax, dword [ebx + ecx*4 + 0x1a8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.00446570
add esp, 0x14
cmp eax, 0xffffffff
je 0x447418
test al, 1
je 0x447418
mov ecx, dword [esi]
test ecx, ecx
jne 0x4473f3
mov eax, dword [ebx]
mov eax, dword [eax + 0x900]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x447411
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x447418
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x447500
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x447520
push eax
call fcn.00440040
add esp, 4
test eax, eax
jne 0x44753e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x44751c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x44751c
mov al, 1
pop ebp
ret

Function at 0x447d00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5ee7c0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x447d51
push 3
push 2
push eax
push 6
call fcn.0046f870
add esp, 0x10
test al, al
je 0x447d45
mov dword [0x5ee7c0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5ee7c0], 1
jmp 0x447d56
cmp eax, 2
je 0x447d96
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 0x447d7d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x447d96
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 0x447eb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x447ef8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004345e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00446b20
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00446b20
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x448030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x448228
cmp byte [ebx + 0x282], 0
push esi
jne 0x44821e
cmp byte [ebx + 0x29e], 0
jne 0x44821e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4480ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004345e0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00446a40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00542b10
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x448137
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004345e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00446a40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00447700
add esp, 0xc
test al, al
jne 0x448194
call fcn.0054f7f4
mov esi, dword [eax]
call fcn.0054f7f4
push esi
push ebx
mov edi, eax
call fcn.004345e0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.00446a40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x5c], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x6c], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x7c], xmm0
mov dword [ebx + 0x84], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x88], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00447700
add esp, 0xc
test al, al
jne 0x44821e
call fcn.0054f7f4
mov esi, dword [eax]
call fcn.0054f7f4
push esi
push ebx
mov edi, eax
call fcn.004345e0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.00446a40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00447c20
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
Function at 0x448b50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0xaa4], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x448bad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00446b20
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
push dword [esi + 0xaa8]
mov dword [ebp - 0x10], 1
call fcn.00448d90
push dword [esi + 0xaac]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00448d90
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x448c1d
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.00446b20
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret

Function at 0x448d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00448da0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0055b1d7
Function at 0x4554d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x455664
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x455650
push esi
nop dword [eax]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x45551f
mov eax, 0x10
jmp 0x45552d
cmp eax, 0x17
jne 0x4555e1
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 4], eax
je 0x4555e1
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4555e1
cmp ecx, eax
jb 0x4555e1
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x455645
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]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov dword [esi + 0x10], eax
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 0x455634
push dword [ebp - 4]
push dword [edi + 0x18]
push eax
call fcn.00542c70
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4555cf
push eax
call dword [0x5e300c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x45561a
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4555de
mov dword [eax + 0x1c], esi
mov dword [ebp - 8], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x455510
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop esi
test eax, eax
je 0x4555fe
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x45564c
push ebx
call fcn.00455490
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x5e3004]
push esi
call dword [0x5e3004]
add esp, 8
jmp 0x4555ef
push esi
mov edi, 8
call dword [0x5e3004]
add esp, 4
jmp 0x4555ef
mov edi, 8
jmp 0x4555ef
test ebx, ebx
jne 0x45565c
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0054c1c0
add esp, 0x18
test eax, eax
je 0x455a22
cmp eax, 0xffffffff
jne 0x455a24
xor eax, eax
pop ebp
ret