joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435f20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a402b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x616dec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6249b0]
cmp eax, dword [ecx + 4]
jle 0x435f9b
push 0x6249b0
call fcn.00554216
add esp, 4
cmp dword [0x6249b0], 0xffffffff
jne 0x435f9b
call fcn.0042f8b0
push 0x5a92d0
call fcn.005545bd
push 0x6249b0
call fcn.005541d7
add esp, 8
lea eax, [ebp - 0x98]
mov ecx, 0x624878
push eax
call fcn.00430630
push str.RapixSystemInfo.exe
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00425640
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x84]
cmp eax, 8
jb 0x435fe4
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.00424d00
xor eax, eax
mov dword [ebp - 0x84], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x98], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp + 8]
mov dword [ebp - 0x88], 0
push eax
call fcn.004252d0
push 0x44
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00556fd0
add esp, 0xc
mov dword [ebp - 0x70], 0x44
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x80], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
push dword [ebp - 0x80]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
test esi, esi
je 0x436090
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7c]
call esi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4360a5
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00424d00
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x4360ce
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00424d00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
ret
Function at 0x43aad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3788
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x616dec]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x43abfe
cmp byte [ebx + 0x3d], 0
je 0x43abfe
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x43ab29
xor al, al
jmp 0x43ac00
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0042e6e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43ab8f
sub eax, 1
je 0x43ab93
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x43abe6
xor bl, bl
jmp 0x43abe8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x43abc8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0056cb90
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x43ab8b
cmp byte [ebx + 0x3d], 0
je 0x43abe6
test esi, esi
jne 0x43ab51
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004293f0
jmp 0x43ab4e
mov bl, 1
cmp ecx, 0x10
jb 0x43abfa
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00424d60
mov al, bl
jmp 0x43ac00
mov al, 1
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.005540cc
mov esp, ebp
pop ebp
ret
Function at 0x449df0
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
push esi
call fcn.005768ef
test eax, eax
je 0x449e31
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x449e3c
mov ecx, esi
call fcn.00449bb0
push 0x418
push esi
call fcn.005545d2
add esp, 8
push 0
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
push str.log4cplus:_CRT_heap_is_already_gone_in_threadCleanup___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x44dca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6242
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x44dd0c
push esi
push 0x418
call fcn.0055431a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00449990
mov esi, eax
push esi
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x15c]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
add eax, 0x15c
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x44df10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a6242
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x44df67
push 0x418
call fcn.0055431a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00449990
mov esi, eax
push esi
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi + 0x158], 0
lea ecx, [esi + 0x148]
je 0x44dfb4
push ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044e010
mov ecx, eax
call fcn.0044dfd0
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x44df95
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
add eax, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, 0x6241c0
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x456300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a6843
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push esi
push edi
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x456362
push 0x418
call fcn.0055431a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00449990
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push esi
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0x164
cmp dword [esi + 0x10], 0
jne 0x456405
sub esp, 8
lea ecx, [ebp - 0xc0]
call fcn.0044a0f0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00456550
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044aa70
mov edi, eax
cmp edi, esi
je 0x4563ce
push esi
mov ecx, edi
call fcn.0044cf30
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + 0x10]
mov dword [edi + 0x10], ecx
mov dword [esi + 0x10], edx
mov ecx, dword [edi + 0x14]
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4563e3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00424d00
lea ecx, [ebp - 0x70]
call fcn.0044a040
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
call fcn.004960f1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x456440
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a6843
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push esi
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4564a1
push 0x418
call fcn.0055431a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00449990
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push esi
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0x17c
cmp dword [esi + 0x10], 0
jne 0x45653f
push edi
sub esp, 8
lea ecx, [ebp - 0xc0]
call fcn.0044a0f0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 1
call fcn.00456420
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0044aa70
mov edi, eax
cmp edi, esi
je 0x456507
push esi
mov ecx, edi
call fcn.0044cf30
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + 0x10]
mov dword [edi + 0x10], ecx
mov dword [esi + 0x10], edx
mov ecx, dword [edi + 0x14]
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], ecx
mov eax, dword [ebp - 0x14]
pop edi
cmp eax, 8
jb 0x45651d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00424d00
lea ecx, [ebp - 0x70]
call fcn.0044a040
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
call fcn.004960f1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4566e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a68bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push esi
mov dword [ebp - 0x10], 0
je 0x45674f
push edi
lea edi, [ebx + 0x40]
mov dword [ebx + 0x14], 0x6023bc
push 0x30
mov dword [ebp + 0x10], edi
mov dword [edi], vtable.log4cplus::helpers::SharedObject.0
call fcn.0055431a
mov esi, eax
push 0x102
push esi
mov dword [ebp + 0x10], esi
call fcn.00588055
mov dword [edi + 4], esi
add esp, 0xc
mov dword [edi + 8], 0
mov dword [ebp - 0x10], 1
pop edi
mov dword [ebp - 4], 1
push 0x30
mov dword [ebx], vtable.log4cplus::helpers::AppenderAttachableImpl.0
call fcn.0055431a
mov esi, eax
push 0x102
push esi
mov dword [ebp + 0x10], esi
call fcn.00588055
mov dword [ebx + 4], esi
add esp, 0xc
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebp - 4], 2
lea ecx, [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov dword [ebx], vtable.log4cplus::spi::LoggerImpl.1.0
push 0xffffffffffffffff
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x14], vtable.log4cplus::spi::LoggerImpl.0
xor eax, eax
push eax
push dword [ebp + 8]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.00424810
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov byte [ebx + 0x38], 1
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x456c40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6242
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push dword [0x623e74]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x456c9f
push 0x418
call fcn.0055431a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00449990
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push esi
push dword [0x623e74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp + 0x18]
lea eax, [edi + 0x18]
add esi, 0x330
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.004518a0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x458430
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x616dec]
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 0x458480
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x45847a
shr eax, 8
cmp al, 2
jne 0x45847a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005540cc
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.005540cc
mov esp, ebp
pop ebp
ret
Function at 0x45fc70
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 0x45fcb9
mov al, byte [esi]
push eax
call fcn.0046e990
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 0x45fc97
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x460ff0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46100e
cmp dword [esi + 0x6c], 0
je 0x46100e
push 2
push 3
push esi
call fcn.0046ef50
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0046f280
add esp, 4
test esi, esi
je 0x46102e
cmp dword [esi + 0x6c], 0
je 0x46102e
push 3
push esi
call fcn.0046ef90
add esp, 8
pop esi
pop ebp
ret
Function at 0x46b1f0
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.0046b700
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 0x46b274
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46b24c
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.00458910
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0046ae40
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48c4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x46b700
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
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2c0]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x46b7bd
cmp dword [ebx + ecx*4 + 0x1bc], 0x46b140
jne 0x46b7bd
cmp dword [esi], 0
je 0x46b74f
test edi, edi
je 0x46b7bd
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0046a910
add esp, 0x14
cmp eax, 0xffffffff
je 0x46b7bd
test al, 1
je 0x46b7bd
cmp dword [esi], 0
jne 0x46b7a4
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x46b7a4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x46b7bd
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x46b7d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1d0], 0
je 0x46b814
push esi
push 1
push edi
call fcn.0045c250
push dword [edi + 0x15c]
mov eax, dword [edi + 0x1d0]
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.0045c250
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x46b84a
push dword [edi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x5acdb0
push 2
push eax
call fcn.0056cb90
push dword [edi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0056cb90
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x46b930
Capabilities:
Receive data
Receive data on socket

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

Function at 0x46c0e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x61f930]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x46c131
push 3
push 2
push eax
push 6
call fcn.0048fdd0
add esp, 0x10
test al, al
je 0x46c125
mov dword [0x61f930], 2
mov esp, ebp
pop ebp
ret
mov dword [0x61f930], 1
jmp 0x46c136
cmp eax, 2
je 0x46c176
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 0x46c15d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x46c176
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 0x46c250
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 0x46c298
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00458910
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046af20
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0046af20
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x46c3d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x616dec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x46c5cd
cmp byte [ebx + 0x27a], 0
push esi
jne 0x46c5c3
cmp byte [ebx + 0x296], 0
jne 0x46c5c3
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 0x46c46e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00458910
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0046ae40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00556fd0
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 0x46c4d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00458910
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0046ae40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005540cc
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.0046bb30
add esp, 0xc
test al, al
jne 0x46c535
call fcn.0056c398
mov esi, eax
call fcn.0056c398
push dword [esi]
mov edi, eax
push ebx
call fcn.00458910
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0046ae40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0046bb30
add esp, 0xc
test al, al
jne 0x46c5c3
call fcn.0056c398
mov esi, eax
call fcn.0056c398
push dword [esi]
mov edi, eax
push ebx
call fcn.00458910
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0046ae40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0046c000
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005540cc
mov esp, ebp
pop ebp
ret
Function at 0x46ce40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x616dec]
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 + 0x64c], 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 0x46ce9d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0046af20
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
ret
push dword [esi + 0x650]
mov dword [ebp - 0x10], 1
call fcn.0046d0b0
push dword [esi + 0x654]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0046d0b0
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 0x46cf0d
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.0046af20
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005540cc
mov esp, ebp
pop ebp
ret

Function at 0x46d060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0046d080
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0057a2b7