joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438cdd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0x59feb8
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
call fcn.004274e5
test al, al
je 0x438d15
pop esp
push edi
pop eax
pop ebp
pop edi
pop ecx
pop edi
pop esp
pop ebp
push esi
push ecx
push edx
push ecx
push eax
push eax
pop esp
pop ebp
pop ecx
pop esp
push ebx
pop edx
push edx
call fcn.004274a0
test al, al
je 0x438d3c
pop ecx
pop ebp
pop edi
push esi
push esi
push ecx
pop eax
pop ebx
push ebp
pop ecx
pop ebx
pop esp
push ecx
pop esp
push esp
push ebp
pop ebx
push ecx
pop ecx
pop esp
push ebp
push edx
push esi
pop edx
pop edx
pop ebp
pop edi
pop esi
pop ebp
push edx
call fcn.004279bf
test al, al
je 0x438d55
push edi
pop eax
push esp
pop esp
pop esp
pop ebx
pop esp
pop edi
push ebp
push ebp
push ebx
pop esp
push ebx
push esp
pop edx
push ebp
call fcn.00427683
test al, al
je 0x438d73
pop ecx
pop esi
pop ecx
push esi
pop esp
pop ebx
push eax
push edi
pop ecx
push esp
push esi
push ecx
pop esp
pop esp
pop ebx
push esp
pop edx
pop edx
pop eax
push esi
push edi
call fcn.0042770d
test al, al
je 0x438d9a
push eax
push esi
push ebx
pop esi
push eax
pop edx
push edi
pop ebx
push eax
push ecx
push eax
push eax
push ecx
push esp
push ebp
push esp
pop esi
push ebp
pop eax
push eax
pop ecx
push edi
pop ebp
push esi
pop ebx
pop esi
pop ebp
push ecx
pop ebp
push ebp
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x438da9
xor eax, eax
jmp 0x438e74
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a0d64
push dword [ebx]
call esi
push str.IsWow64Process
push dword [ebx]
mov dword [ebx + 8], eax
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0xc], eax
call esi
push str.Wow64RevertWow64FsRedirection
push dword [ebx]
mov dword [ebx + 0x18], eax
call esi
push str.GetSystemWow64DirectoryW
push dword [ebx]
mov dword [ebx + 0x14], eax
call esi
push str.advapi32.dll
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
call fcn.004275b4
test al, al
je 0x438e22
pop esi
pop ebp
pop eax
pop edi
push ecx
push ebx
push ebp
pop edi
pop esp
push ecx
push edi
pop edx
push ebp
push esp
pop edx
pop ecx
pop edx
pop eax
pop edi
push edx
pop ecx
push esi
push ebp
push eax
pop eax
push esi
pop ebp
push esi
push esp
push edi
pop ebp
push edx
call fcn.00427866
test al, al
je 0x438e4a
pop edi
pop eax
pop ebx
pop edx
push esi
pop eax
push ecx
push edx
push edi
pop esi
push edi
push edx
push esp
push ecx
push ebx
pop edx
push ecx
pop edx
pop ebp
pop edi
push eax
push edx
pop ebp
push ebx
push edi
pop esp
pop eax
pop esi
mov ebx, dword [ebp - 4]
cmp dword [ebx + 4], 0
je 0x438da2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, str.Wow64RevertWow64FsRedirection
push edi
push dword [ebx + 4]
call esi
push edi
push dword [ebx + 4]
mov dword [ebx + 0x20], eax
call esi
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438e98
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24c
mov eax, 0x59e693
call fcn.00594fd1
mov eax, dword [ebp + 8]
and dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043ffd0
add esp, 0xc
call fcn.00427416
test al, al
je 0x438ef2
pop ebx
push ebx
pop edx
pop ebp
pop ebx
push ebx
pop edi
pop esp
pop edx
push ebp
pop esi
push edx
pop ecx
push esi
push esp
pop ecx
push ebp
pop esp
pop ebx
call fcn.004276c8
test al, al
je 0x438f17
push edi
push eax
pop esp
push esi
push eax
push ebx
pop ebx
pop eax
push edx
push ebp
push esi
push edx
push edi
pop ebp
pop edi
pop ebx
push edx
pop esp
push esp
pop esi
pop ebx
push eax
push esi
pop esi
push ecx
push ebx
pop esi
push ecx
call fcn.004277dc
test al, al
je 0x438f38
pop esp
push edx
push esp
pop edi
push esi
push ebx
pop ebp
pop ebp
push ebx
pop ebp
push esp
push edi
pop ecx
pop ecx
push esp
push esp
pop ecx
push edi
pop edx
pop ebp
push esp
pop eax
push edx
push ecx
mov ebx, dword [ebp - 0x24c]
lea eax, [ebp - 0x218]
push 0x104
xor esi, esi
push eax
push esi
jmp 0x43905e
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x439050
call fcn.004279bf
test al, al
je 0x438fa0
pop esi
pop ebx
pop ebp
pop esi
pop edx
pop esi
pop esi
pop esi
pop ecx
push edi
push esp
push edi
push ecx
pop eax
pop esi
pop eax
push ebp
pop edi
push edx
pop eax
push ebp
push edi
push ebp
pop ecx
push edi
pop esp
pop edi
pop edi
mov ebx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x254]
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x438fd0
lea eax, [ebp - 0x218]
push eax
call fcn.0044f873
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401820
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0042c61b
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00401760
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call fcn.0042e0bc
pop ecx
pop ecx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.00404850
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push ebx
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x438f52
call fcn.00594f8c
ret
Function at 0x439a48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0042797a
test al, al
je 0x439a7e
pop edx
pop ecx
push eax
pop ebp
pop esp
pop esi
push edx
pop ebp
pop eax
pop ecx
push eax
push ebp
push edx
pop esp
pop edi
pop esp
push ebp
pop edi
pop ebx
push ebp
pop ebx
push edi
pop eax
xor esi, esi
call fcn.004277dc
test al, al
je 0x439a9a
push ecx
push esp
push edi
push ecx
push esp
pop ebx
push ebx
push ebp
pop edx
push edx
push ebp
pop eax
push ebp
push edx
pop ebp
push edi
push eax
push edi
push esp
lea eax, [ebp - 0xc]
mov ebx, 0xf013f
push eax
push ebx
push esi
push str.SoftWare
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439ba4
call fcn.0042752a
test al, al
je 0x439ad9
push ebp
pop ecx
pop edx
pop esi
pop edi
pop esp
pop esi
push edi
pop esp
push esi
push ecx
push edi
push edx
pop edi
pop edi
push edx
push edi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x439b01
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x439ba4
call fcn.004274e5
test al, al
je 0x439b22
push ecx
pop esi
push ebx
pop ebx
push eax
pop ebx
pop esp
push edi
push ebp
pop ebp
pop eax
push edi
push eax
pop ebp
pop ebx
push esi
pop ebp
xor esi, esi
mov ebx, 0xf013f
push esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x439b4c
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x439ba2
call fcn.004276c8
test al, al
je 0x439b6c
push esp
pop edx
pop esi
pop ecx
push ecx
push esp
pop esi
pop eax
pop ebp
push ecx
push edx
push eax
push eax
push eax
push esi
pop ecx
pop edi
pop ebx
pop ecx
pop esp
push ecx
xor esi, esi
push dword [ebp + 0x14]
call fcn.0044f873
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439c5b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov byte [ebp - 1], 0
push ebx
push esi
push edi
lea ecx, [eax + 0x210]
mov dword [ebp - 0x14], eax
mov esi, dword [ecx]
mov dword [ebp - 0x18], ecx
cmp esi, dword [eax + 0x214]
je 0x439d12
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], edi
lea ecx, [eax + 0xa8]
add eax, 0x28
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push ecx
call ebx
push 0x59f7cc
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x59f7cc
call ebx
push dword [ebp - 0xc]
call ebx
push 0x59f7cc
call ebx
push dword [ebp - 8]
call ebx
push 0x59f7cc
call ebx
push edi
push dword [ebp - 0x10]
call fcn.0044fc80
mov edi, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x439cf2
push edi
push dword [ebp - 0xc]
call fcn.0044fc80
pop ecx
pop ecx
test eax, eax
je 0x439d0e
mov eax, 0x1b0
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x439d12
mov ecx, dword [ebp - 0x10]
jmp 0x439ca2
mov byte [ebp - 1], 1
call fcn.0042752a
test al, al
je 0x439d37
push esi
push ebx
pop edi
pop ebp
pop ecx
pop edx
push ecx
pop edx
pop ebx
push esi
pop ecx
pop ecx
pop edi
pop eax
push ecx
pop ebx
pop ecx
pop esi
pop edi
pop ebx
pop edx
pop esp
push edi
push ecx
pop esi
pop ecx
pop esi
push esi
call fcn.0042752a
test al, al
je 0x439d5c
pop esp
push esi
pop edx
pop esp
pop esi
push edx
push edi
push ecx
pop ecx
push esi
push ecx
push ecx
pop eax
pop esi
pop ecx
pop ecx
push eax
push edx
pop esi
push esi
pop edi
pop esp
push ebp
pop esi
pop edx
pop ebp
pop esi
pop ebp
call fcn.00427347
test al, al
je 0x439d79
pop eax
pop ecx
pop edi
pop edi
push ecx
push edi
pop ecx
pop ebp
pop ecx
pop ecx
pop esp
push edx
push ebx
push esi
pop eax
pop edi
push esi
push eax
pop ecx
push edi
cmp byte [ebp - 1], 0
jne 0x439da0
mov esi, dword [ebp + 8]
lea edx, [esi + 0xa8]
push edx
call fcn.0044fe60
pop ecx
test eax, eax
je 0x439da0
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0043ab1b
mov al, 1
jmp 0x439da2
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43aa3f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6240b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
call fcn.00427797
test al, al
je 0x43aa84
push edx
push ebx
pop edi
push esp
pop ecx
push ecx
push edi
pop ebx
pop ebp
pop ebx
pop ebx
push esp
pop edi
pop eax
pop eax
push ebx
push esi
push esp
push ebx
push eax
xor ebx, ebx
mov edi, 0x114
lea eax, [ebp - 0x118]
push edi
push ebx
push eax
call fcn.0043ffd0
add esp, 0xc
mov dword [ebp - 0x118], edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x43aabf
mov ecx, esi
call fcn.0043a238
jmp 0x43aad4
mov edi, ebx
test ebx, ebx
jne 0x43aad4
mov ecx, esi
call fcn.0043a0e8
inc edi
mov ebx, eax
cmp edi, 0xa
jl 0x43aac1
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041eca9
mov esp, ebp
pop ebp
ret

Function at 0x45542d
Capabilities:
Read file on windows

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

Function at 0x456b2c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004567ec
Function at 0x462850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x46287c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x46286d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4628b0
cmp dword [esi + 8], 0
jne 0x4628a0
push 0x59f7d8
push dword [eax + 8]
call fcn.0044b954
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4628a0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0044be06
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4628d2
mov eax, dword [esi + 8]
test eax, eax
je 0x4628cc
push eax
call fcn.0044b73b
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x462cf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6240b8]
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 0x462d40
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x462d3a
shr eax, 8
cmp al, 2
jne 0x462d3a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041eca9
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.0041eca9
mov esp, ebp
pop ebp
ret
Function at 0x463da0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474b90

Function at 0x464dc0
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 + 0x168]
call fcn.004650a0
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 0x464e44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x464e1c
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.00462e40
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00464a80
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85b8], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x248]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x465150
cmp dword [ecx + edx*4 + 0x17c], 0x464d10
jne 0x465150
cmp dword [esi], 0
je 0x4650e8
test edi, edi
je 0x465150
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00473170
add esp, 0x10
cmp eax, 0xffffffff
je 0x465150
test al, 1
je 0x465150
cmp dword [esi], 0
jne 0x465139
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x624a84]
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 0x465139
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 ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x465150
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x465160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x465189
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4651bf
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x5aa848
push 2
push eax
call fcn.00450563
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00450563
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x46b150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46b16e
cmp dword [esi + 0x48], 0
je 0x46b16e
push 2
push 3
push esi
call fcn.00478be0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004793c0
add esp, 4
test esi, esi
je 0x46b18e
cmp dword [esi + 0x48], 0
je 0x46b18e
push 3
push esi
call fcn.00478c20
add esp, 8
pop esi
pop ebp
ret
Function at 0x4736c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x578]
test esi, esi
je 0x473714
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x4736e1
cmp dword [edi + 0x40], eax
je 0x473714
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x4736ef
mov eax, dword [edi + 0x40]
push 0x474500
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.0047de10
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x47371d
mov dword [edi + 0x578], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x473726
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x47374b
push esi
call fcn.00463da0
add esp, 4
test eax, eax
jne 0x473763
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x473763
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x473714
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x473bb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62a6c0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x473c01
push 3
push 2
push eax
push 6
call fcn.004931f0
add esp, 0x10
test al, al
je 0x473bf5
mov dword [0x62a6c0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x62a6c0], 1
jmp 0x473c06
cmp eax, 2
je 0x473c46
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 0x473c2d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x473c46
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 0x473d10
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 0x473d58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00462e40
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00464b20
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00464b20
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x473e40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6240b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x47401a
cmp byte [edi + 0x21a], 0
push esi
jne 0x474010
cmp byte [edi + 0x234], 0
jne 0x474010
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 0x473ed8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00462e40
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00464a80
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041eca9
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.0043ffd0
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 0x473f41
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00462e40
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00464a80
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041eca9
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xfc]
push eax
lea esi, [edi + 0xcc]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00474520
add esp, 0xc
test al, al
jne 0x473f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00462e40
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00464a80
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041eca9
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00474520
add esp, 0xc
test al, al
jne 0x474010
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00462e40
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00464a80
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041eca9
mov esp, ebp
pop ebp
ret
push edi
call fcn.00473af0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041eca9
mov esp, ebp
pop ebp
ret
Function at 0x4748a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6240b8]
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 + 0x3ec], 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 0x4748fd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00464b20
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041eca9
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3f0]
mov dword [ebp - 0x10], 1
call fcn.00478ca0
push dword [esi + 0x3f4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00478ca0
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 0x47496d
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.00464b20
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041eca9
mov esp, ebp
pop ebp
ret

Function at 0x478c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00478cb0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00454de4