joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42be50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cc6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x14]
push edx
xor ebx, ebx
xor edi, edi
call eax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x42bf47
lea esp, [esp]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x42beaf
cmp eax, ecx
je 0x42bf47
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x1c]
push eax
inc edi
call edx
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp esi, ebx
je 0x42bf05
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42bf05
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42bf05
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [esp + 0x30], bl
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x42bf3b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42bf3b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42bf3b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jne 0x42bea0
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x42bf81
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42bf81
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42bf81
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0210
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ebx, ebx
je 0x42e484
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e484
test al, 0x10
jne 0x42e484
call fcn.0042d410
mov edi, eax
test edi, edi
je 0x42e484
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edi
call fcn.00432900
push edi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040e870
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
test eax, eax
je 0x42e3fb
cmp byte [eax], 0
je 0x42e3fb
push eax
lea ecx, [edi + 0x14]
call fcn.0042a2c0
push 1
xor ecx, ecx
mov eax, ebx
call fcn.004397a5
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je 0x42e475
mov ecx, dword [edi + 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, eax
call fcn.0042d450
add esp, 8
mov byte [ebp - 4], 1
call fcn.00430370
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.0041ba20
cmp dword [edi], 0
je 0x42e475
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], ecx
mov edx, dword [esi + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
call fcn.0041ba20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0041ba20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x430fd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd643
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x43100c
mov eax, dword [esi]
jmp 0x43100e
mov eax, esi
test eax, eax
je 0x43108f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43108f
test al, 0x10
je 0x43108f
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x431042
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
test al, al
jne 0x43108f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
cmp eax, edi
jne 0x43108f
push 0x54
call fcn.0047f786
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x431089
mov edx, dword [ebp + 8]
push edi
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], esp
test ecx, ecx
je 0x43107e
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
push esi
push eax
call fcn.0042dbc0
mov edi, eax
jmp 0x431091
xor eax, eax
mov edi, eax
jmp 0x431091
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4310c9
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4310c9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4310c9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437770
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf41b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x50222c]
xor ebx, ebx
cmp eax, ebx
jne 0x4377a7
xor al, al
jmp 0x4377c1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x4377bf
cmp eax, 0x80
je 0x4377bf
xor al, al
jmp 0x4377c1
mov al, 1
mov byte [ebp - 0xd], al
mov dword [ebp - 4], ebx
cmp al, bl
je 0x43795b
call fcn.00437260
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x43794b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [0x4ffd00]
mov edx, dword [eax + 4]
mov ecx, 0x4ffd00
mov dword [ebp - 0x20], edi
call edx
cmp eax, 0xffffffff
je 0x43794b
mov eax, dword [0x4ffd00]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ffd00
call edx
cmp edi, eax
je 0x43794b
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x437853
push 0x10
call fcn.0047f786
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x437849
mov esi, eax
call fcn.00437b40
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [esi + 4], eax
jmp 0x43786e
xor eax, eax
mov byte [ebp - 4], bl
mov dword [esi + 4], eax
jmp 0x43786e
mov esi, dword [ecx + 4]
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], edi
call fcn.00437c00
cmp dword [eax], esi
jne 0x437914
xor ebx, ebx
push 0xc
call fcn.0047f786
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x437895
push edi
push ebx
push 0x100000
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esi + 8], eax
jmp 0x437897
xor esi, esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x437943
cmp dword [esi + 8], ebx
je 0x437943
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov esi, dword [eax + 4]
lea edi, [ebp - 0x28]
call fcn.00429fa0
push eax
push esi
lea esi, [ebp - 0x28]
call fcn.004299e0
cmp byte [ebp - 0x24], bl
je 0x437943
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push 4
push edi
push 0x437600
push ebx
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x437930
push 1
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
call fcn.00437c60
lea eax, [ebp - 0xd]
call fcn.00437020
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
call fcn.00437bb0
xor ebx, ebx
lea eax, [ebp - 0x18]
call fcn.00437c60
mov eax, dword [0x50222c]
cmp eax, ebx
je 0x43795b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
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 0x438510
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x58
lea esi, [edi + 8]
push 0
push esi
mov dword [edi], vtable.hash::hash_CTX_MD5_impl.0
call fcn.00483200
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [edi + 4], 1
mov eax, edi
pop esi
ret

Function at 0x4386b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbd28
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x60
call fcn.0047f786
mov edi, eax
add esp, 4
test edi, edi
je 0x43872d
push 0x58
lea esi, [edi + 8]
push 0
push esi
mov dword [edi], vtable.hash::hash_CTX_MD5_impl.0
call fcn.00483200
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
add esp, 0xc
mov dword [edi + 4], 1
jmp 0x43872f
xor edi, edi
test edi, edi
je 0x43874b
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x438f3b
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [ebp + 8]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x43c970
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4fbf60]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x43c9c5
mov eax, dword [esp]
cmp al, 2
jne 0x43c9bf
shr eax, 8
cmp al, 2
jne 0x43c9bf
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.0047f164
mov esp, ebp
pop ebp
ret
Function at 0x43e670
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x43e692
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x43e686
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x43e6c2
cmp dword [esi + 8], 0
jne 0x43e6b5
mov ecx, dword [eax + 8]
push 0x4dfdc0
push ecx
call fcn.00487837
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x43e6b5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004c0959
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x43e6e4
mov eax, dword [esi + 8]
test eax, eax
je 0x43e6de
push eax
call fcn.0048115e
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret

Function at 0x446b00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x454], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x446b53
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00449240
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x458]
mov dword [ebp - 0x10], 1
call fcn.00453650
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x45c]
call fcn.00453650
imul eax, eax, 0x3e8
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x446bbd
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.00449240
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
Function at 0x4471e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
cmp dword [esi + 0x1bc], 0
mov ebx, dword [esi]
push edi
mov edi, ecx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], ebx
jne 0x44738e
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x88]
push ecx
push edi
mov dword [ebp - 0x110], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x44726a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
call fcn.00468450
add esp, 4
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004492c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push edi
mov dword [ebp - 0x110], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4472bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
call fcn.00468450
add esp, 4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004492c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xa6]
lea ebx, [esi + 0xd4]
lea edi, [ebp - 0x88]
mov dword [ebp - 0x118], eax
call fcn.00447190
test eax, eax
jne 0x447318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.00468450
mov ecx, dword [ebp - 0x114]
add esp, 4
push eax
push edi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004492c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10c]
lea edi, [esi + 0x48]
mov esi, dword [ebp - 0x118]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x108]
add eax, 0xd8
lea edi, [ebp - 0x108]
call fcn.00447190
test eax, eax
jne 0x447388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10c]
mov edi, eax
push edx
call fcn.00468450
add esp, 4
push eax
mov eax, dword [ebp - 0x114]
push edi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004492c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10c]
mov eax, esi
call fcn.00447140
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f164
mov esp, ebp
pop ebp
ret
Function at 0x447700
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 4
lea ecx, [ebp - 4]
push ecx
mov edi, eax
mov esi, dword [edi]
mov eax, dword [esi + 0x354]
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x447750
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, eax
call fcn.00468450
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00449240
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00449240
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x447770
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5021b0], 0
mov dword [ebp - 0x9c], 0x4020
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 4
jne 0x447806
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00483200
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
mov dword [0x5021b0], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x447806
cmp dword [ebp - 0x94], 6
jb 0x447806
mov dword [0x5021b0], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
cmp dword [0x5021b0], 2
je 0x44785a
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x447840
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jg 0x44785a
push 4
lea edx, [ebp - 0x9c]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
Function at 0x447c50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebx + 0x5a0]
test edi, edi
je 0x447c8e
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x447c8e
mov ecx, dword [eax + 0x30]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0
call fcn.0044fa40
cmp dword [ebp - 0xc], 0
jne 0x447c97
mov dword [ebx + 0x5a0], 0
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x447ca0
mov dword [eax], edi
cmp dword [edi + 0x168], 0
mov esi, dword [edi + 0x140]
jne 0x447c8e
push 2
push 1
lea eax, [ebp - 5]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x447c8e
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x449490
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x140]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x44950f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4494e4
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ecx], 0x51
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.00468450
mov edx, dword [esi]
add esp, 4
push eax
push str.Send_failure:__s
push edx
call fcn.004492c0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x85dc], edi
add esp, 0xc
mov dword [ecx], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4497da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x449910
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x44992b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x44995f
cmp eax, 2
jg 0x44995f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4dbcc4]
push 2
push edx
call fcn.00481077
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.00481077
add esp, 0x20
xor eax, eax
ret
Function at 0x44f3e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
cmp eax, 0xffffffff
jne 0x44f3f4
or eax, eax
jmp 0x44f3fb
mov eax, dword [edi + eax*4 + 0x140]
mov dword [edi + 0x238], eax
cmp ecx, 0xffffffff
jne 0x44f40a
or eax, ecx
jmp 0x44f411
mov eax, dword [edi + ecx*4 + 0x140]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x23c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x58], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esi + 0x120], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x68], ebx
test edx, edx
jne 0x44f455
mov dword [esi + 0x98], edx
test eax, eax
jl 0x44f455
jg 0x44f449
test ecx, ecx
je 0x44f455
push eax
push ecx
mov eax, esi
call fcn.00453c00
add esp, 8
cmp dword [esi + 0x120], 0
jne 0x44f467
cmp dword [esi + 0x314], 0
jne 0x44f4e1
or eax, 0xffffffff
mov edx, 1
cmp dword [edi + 0x238], eax
je 0x44f47d
or dword [esi + 0xf8], edx
cmp dword [edi + 0x23c], eax
je 0x44f4e1
mov eax, dword [esi + 0x8694]
mov ecx, 2
test eax, eax
je 0x44f4db
mov edi, dword [edi + 0x22c]
test byte [edi + 0x3c], dl
je 0x44f4d1
mov edi, dword [esi + 0x128]
cmp dword [edi + 0x58], ecx
jne 0x44f4d1
mov dword [esi + 0xd4], edx
call fcn.00449b70
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], edx
mov eax, 0x410
mov ecx, esi
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.00440b10
test eax, eax
je 0x44f4db
mov dword [esi + 0xd4], ecx
or dword [esi + 0xf8], ecx
pop edi
pop esi
pop ebx
pop ebp
ret