joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b8d70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b2a58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x759990]
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 dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00460580
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.005809a0
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
add esp, 4
cmp dword [ebp - 0x14], 0x10
cmovae edx, dword [ebp - 0x28]
xor eax, eax
add ecx, edx
xor esi, esi
mov edi, ecx
sub edi, edx
cmp edx, ecx
cmova edi, eax
test edi, edi
je 0x5b8e13
lea ecx, [ecx]
movzx ecx, byte [edx]
lea edx, [edx + 1]
imul eax, eax, 0x1000193
inc esi
xor eax, ecx
cmp esi, edi
jb 0x5b8e00
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
add ecx, 0x18
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.005b9620
mov eax, dword [eax]
test eax, eax
je 0x5b8e44
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x30]
sub ecx, dword [eax + 0x1c]
mov dword [edx], ecx
test ecx, ecx
jg 0x5b8e77
mov dword [ebx], 0
xor bl, bl
cmp dword [ebp - 0x14], 0x10
jb 0x5b8e57
push dword [ebp - 0x28]
call fcn.00460bc0
add esp, 4
mov al, bl
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.00622d3e
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [eax + 0x1c]
mov dword [ebx], eax
mov bl, 1
jmp 0x5b8e46
Function at 0x5c6090
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b63e6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x759990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.UI::CWindow.0
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], 0
mov byte [edi + 4], 0
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x64]
push 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi + 0x55], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
call fcn.005b1bb0
mov dword [edi + 0x64], eax
push 0
mov dword [edi + 0x6c], 0
lea ecx, [edi + 0x70]
push 0
mov byte [ebp - 4], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
call fcn.005b1bb0
mov dword [edi + 0x70], eax
mov eax, edi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5db5b0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5db5c0
mov edi, 0x1505
mov esi, 0
sub ecx, edx
je 0x5db5e7
movsx edx, byte [esi + ebx]
mov eax, edi
shl eax, 5
inc esi
add edi, eax
add edi, edx
cmp esi, ecx
jb 0x5db5d5
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5ec6f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b808e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x759990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x770208], edi
mov dword [edi], vtable.CRaceManager.0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.005d10f0
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.004fc440
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.005134a0
mov dword [edi + 0x14], eax
mov ecx, edi
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0
mov byte [edi + 0x1c], 0
call fcn.005ed7d0
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 0x5fb810
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9297
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x759990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CArea.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 7
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
call fcn.005d10f0
mov dword [edi + 0x64], eax
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
lea ecx, [edi + 0x8c]
mov byte [ebp - 4], 0xa
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
call fcn.005d10f0
mov dword [edi + 0x8c], eax
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 0xb
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
call fcn.004b0d40
mov dword [edi + 0x98], eax
mov eax, edi
mov dword [edi + 0x84], 0xff00ff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x60b000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b678b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x759990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
sub edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
inc edi
sub esi, ebx
inc esi
je 0x60b0cd
test edi, edi
je 0x60b0cd
push 0x40
call fcn.00620b22
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x60b06a
mov ecx, eax
call fcn.00610f30
mov ecx, eax
jmp 0x60b06c
xor ecx, ecx
mov eax, dword [ebp + 0x10]
cmp edi, esi
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
cmovg esi, edi
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov dword [ecx + 0x24], esi
movzx eax, word [eax + 0x8c]
imul eax, edx
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
add eax, ebx
mov dword [ecx + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x613090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b9fb8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x759990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x7702c8], edi
mov dword [edi], vtable.CSoundManager.0
lea ecx, [edi + 0x6c]
mov dword [ebp - 4], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
call fcn.005e3880
mov dword [edi + 0x6c], eax
mov eax, edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x43480000
mov dword [edi + 0x1c], 0x447a0000
mov dword [edi + 0x20], 0x3f800000
mov dword [edi + 0x24], 0x3f800000
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x64904b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x759990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0062df79
mov dword [ebp - 0x14], eax
cmp dword [0x7b10dc], esi
jne 0x64913e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x6490cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x64921e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x64921e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x64921e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x7b10dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x7b10e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x7b10e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7b10ec], eax
test eax, eax
je 0x64913b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7b10e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x649163
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x649156
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x649178
push 4
pop eax
jmp 0x649220
cmp dword [ebp - 0x14], esi
je 0x649178
push dword [0x7b10dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x64915d
mov eax, dword [0x7b10e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x6491d6
cmp dword [0x7b10ec], edi
je 0x6491d6
push eax
call ebx
push dword [0x7b10ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x6491d6
test eax, eax
je 0x6491d6
call ecx
test eax, eax
je 0x6491cb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x6491cb
test byte [ebp - 8], 1
jne 0x6491d6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x649206
mov eax, dword [0x7b10e0]
cmp eax, edi
je 0x649203
push eax
call ebx
test eax, eax
je 0x649203
call eax
mov esi, eax
test esi, esi
je 0x649203
mov eax, dword [0x7b10e4]
cmp eax, edi
je 0x649203
push eax
call ebx
test eax, eax
je 0x649203
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x7b10dc]
call ebx
test eax, eax
je 0x64921e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x649220
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622d3e
mov esp, ebp
pop ebp
ret
Function at 0x65f7f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6e5], 0
je 0x65f870
cmp dword [esi + 0x1a8], 0
je 0x65f837
push 1
push esi
call fcn.00650a70
push dword [esi + 0x14c]
mov eax, dword [esi + 0x1a8]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call eax
push 0
push esi
call fcn.00650a70
add esp, 0x24
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x65f870
push dword [esi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x6fec0c
push 2
push eax
call fcn.00626b52
push dword [esi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00626b52
add esp, 0x20
pop esi
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x759990]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x120]
push ecx
push eax
mov ebx, dword [eax + ecx*4 + 0x130]
push ebp
call fcn.006600d0
add esp, 0xc
test eax, eax
je 0x65fc28
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x65fc8d
push 0
push dword [esp + 0x128]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x65fc8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x65fc60
xor edi, edi
mov dword [esi], 0x51
jmp 0x65fc8b
push 0x100
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00672470
push eax
push str.Send_failure:__s
push ebp
call fcn.0065f880
mov dword [ebp + 0x938], ebx
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00622d3e
add esp, 0x104
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x158]
mov ebx, dword [ecx + edx*4 + 0x130]
add esi, eax
mov eax, dword [ecx + 0x288]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x66018a
cmp dword [ecx + edx*4 + 0x148], 0x65faf0
jne 0x66018a
cmp dword [esi], 0
je 0x66011b
test edi, edi
je 0x66018a
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0066f4a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x66018a
test al, 1
je 0x66018a
cmp dword [esi], 0
jne 0x660173
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x4bc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x75ae1c]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x660162
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x66018a
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x660330
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x184], 0
je 0x66034d
push eax
call fcn.00659c80
add esp, 4
test eax, eax
jne 0x66036f
xor al, al
ret
mov eax, dword [eax + 0x130]
cmp eax, 0xffffffff
je 0x66034a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x66036f
xor al, al
ret
mov al, 1
ret

Function at 0x6605f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x759990]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.00620a70
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x660677
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00672470
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x6606b8
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00660190
add esp, 0x10
test al, al
jne 0x6606c1
call fcn.0062ddb7
mov esi, eax
call fcn.0062ddb7
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.00672470
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0065f880
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00622d3e
add esp, 0x188
ret

Function at 0x660e60
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x7b11d4]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x660eb1
push 3
push 2
push eax
push eax
push 6
call fcn.0068dbd0
add esp, 0x14
test al, al
je 0x660ea5
mov dword [0x7b11d4], 2
add esp, 0xc
ret
mov dword [0x7b11d4], 1
jmp 0x660eb6
cmp eax, 2
je 0x660efc
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x660ee1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x660efc
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x661c20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x759990]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x6f2], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x661c80
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0065f950
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00622d3e
add esp, 0x18
ret
push dword [esi + 0x690]
mov dword [esp + 0x14], 1
call fcn.00661eb0
push dword [esi + 0x694]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.00661eb0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x661cf7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.0065f950
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00622d3e
add esp, 0x18
ret

Function at 0x661d10
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x759990]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x661d75
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00672470
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0065f950
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00622d3e
add esp, 0x108
ret
Function at 0x662110
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x66212a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x6ff090
push esi
call fcn.006a7910
add esp, 8
test eax, eax
je 0x662172
test ebp, ebp
je 0x662163
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x662198
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x662198
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x66224f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6621b5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x75ae1c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x662245
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x662245
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6621e7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x662200
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x662210
test ebp, ebp
je 0x66223c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x75ae20]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x75ae20]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x667d80
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x667d9c
cmp dword [esi + 0x78], 0
je 0x667d9c
push 2
push 3
push esi
call fcn.00664290
add esp, 0xc
push dword [esp + 0xc]
call fcn.00667820
add esp, 4
test esi, esi
je 0x667dbd
cmp dword [esi + 0x78], 0
je 0x667dbd
push 3
push esi
call fcn.006642d0
add esp, 8
pop esi
ret

Function at 0x667e70
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x667e82
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x667e9f
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setg al
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
pop esi
setg al
ret
Function at 0x668660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
cmp byte [eax + 0x25d], 0
je 0x668679
mov dword [esp + 4], ecx
jmp fcn.0068f380
mov dword [esp + 4], ecx
jmp fcn.00655db0
Function at 0x6737e0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.006673d0
push dword [esp + 0x38]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp + 0x18], xmm0
call fcn.0062c687
push dword [esp + 0x40]
mov edi, eax
call fcn.0062c687
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x673879
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
lea eax, [esp + 0x20]
push eax
call fcn.006673d0
movdqu xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.00667470
add esp, 0x20
test edx, edx
ja 0x67389d
jb 0x67386b
cmp eax, 0x3e8
ja 0x67389d
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x673830
test edi, edi
je 0x673886
push edi
call fcn.00626c65
add esp, 4
test esi, esi
je 0x673893
push esi
call fcn.00626c65
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x6738aa
push edi
call fcn.00626c65
add esp, 4
test esi, esi
je 0x6738b7
push esi
call fcn.00626c65
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret