joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4f0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407b10
xor eax, eax
push ebp
push 0x40b5b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040860c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004087bc
mov eax, dword [ebx]
call fcn.0040b3a0
test al, al
jne 0x40b58d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040860c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004087bc
mov eax, dword [ebx]
call fcn.0040b3a0
test al, al
jne 0x40b58d
mov eax, ebx
call fcn.00407a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b5b7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407a8c
lea eax, [ebp - 4]
call fcn.00407a2c
ret

Function at 0x40cf18
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40e91c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040e908
add esp, 0x208
pop ebx
ret

Function at 0x41ae80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41aed9
test eax, edx
je 0x41aedc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41ae97
movzx eax, word [eax]
sub eax, ecx
jmp 0x41aebe
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41aebf
add ecx, 4
js 0x41aeaf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41aebc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41aebe
xor eax, eax
ret
test eax, eax
je 0x41aee8
test edx, edx
jne 0x41ae88
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c13c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41c169
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41c23c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00408568
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41c2a6
test ah, 4
je 0x41c29f
test bl, bl
jne 0x41c264
mov al, 1
jmp 0x41c2cd
test al, 0x10
je 0x41c26c
xor eax, eax
jmp 0x41c2cd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41c290
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x41c2cd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41c2cd
test al, 0x10
sete al
jmp 0x41c2cd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x41c2c7
cmp ebx, 3
je 0x41c2c7
cmp ebx, 0x7b
je 0x41c2c7
mov eax, esi
call fcn.0041c1fc
test al, al
jne 0x41c2cb
xor eax, eax
jmp 0x41c2cd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x420144
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42017d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407bb4
jmp 0x420186
mov eax, ebx
mov edx, esi
call fcn.00407e0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x420190
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4201b2
movzx eax, word [esp]
jmp 0x4201b4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x421204
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x421329
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042100c
mov esi, eax
mov eax, dword [0x4b1664]
cmp byte [eax], 0
je 0x4212d1
mov eax, dword [0x4b14c0]
call fcn.00405808
call fcn.0040554c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4211d4]
call fcn.0040a0ac
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x421344
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42130d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4b1490]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b5634]
call fcn.0040a49c
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421330
lea eax, [ebp - 4]
mov edx, dword [0x4211d4]
call fcn.0040a1d0
ret
Function at 0x421f6c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42206c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407e54
lea eax, [ebp - 4]
call fcn.00407fbc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408568
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x422056
mov eax, ebx
call fcn.004053f8
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42204f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408568
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x422039
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x422080
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x422039
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422056
mov eax, dword [ebp - 0x10]
call fcn.00405414
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422073
lea eax, [ebp - 4]
call fcn.00407a2c
ret
Function at 0x46427c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x464284
mov eax, edx
pop esi
pop ebx
ret

Function at 0x493bec
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x493c3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004936b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x493c53
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a31a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a3235
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4a31eb
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00407bb4
jmp 0x4a321f
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x4a3202
lea eax, [ebp - 4]
call fcn.00407a2c
jmp 0x4a3215
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004a30b0
mov ebx, eax
test esi, esi
je 0x4a3215
dec esi
jmp 0x4a31f2
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a323c
lea eax, [ebp - 4]
call fcn.00407a2c
ret

Function at 0x4a6944
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00408568
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004a64c8
test al, al
jne 0x4a69a5
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b1754]
mov dl, 1
mov eax, dword [0x4a4c4c]
call fcn.0042144c
call fcn.00407128
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a63f4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a703c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407b10
xor eax, eax
push ebp
push 0x4a7144
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040892c
mov eax, dword [ebp - 0x18]
mov edx, 0x4a715c
call fcn.004088f4
je 0x4a709b
lea eax, [ebp - 4]
mov edx, 0x4a716c
call fcn.00408764
cmp byte [ebp - 9], 0
je 0x4a70c7
lea eax, [ebp - 4]
call fcn.00407fac
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a70b7
sub eax, 4
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push edx
push ebx
call sub.kernel32.dll_WriteConsoleW
jmp 0x4a7126
xor eax, eax
mov dword [ebp - 8], eax
xor ecx, ecx
push ebp
push 0x4a711f
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040cc74
lea eax, [ebp - 8]
call fcn.00407fb4
mov edx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a70fb
sub eax, 4
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push edx
push ebx
call sub.kernel32.dll_WriteFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7126
lea eax, [ebp - 8]
call fcn.00407a50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a714b
lea eax, [ebp - 0x18]
call fcn.00407a2c
lea eax, [ebp - 4]
call fcn.00407a2c
ret

Function at 0x4a72d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebx
add esp, 0xffffffe4
mov ebx, eax
cmp byte [0x4b7df4], 0
je 0x4a7330
lea eax, [esp + 4]
push eax
mov eax, dword [0x4b7dec]
push eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
test eax, eax
je 0x4a7330
mov eax, dword [ebx]
test eax, eax
jl 0x4a7330
mov edx, dword [ebx + 4]
test edx, edx
jl 0x4a7330
movsx ecx, word [esp + 4]
cmp eax, ecx
jg 0x4a7330
movsx eax, word [esp + 6]
cmp edx, eax
jg 0x4a7330
movzx eax, word [ebx]
mov word [esp], ax
movzx eax, word [ebx + 4]
mov word [esp + 2], ax
push dword [esp]
mov eax, dword [0x4b7dec]
push eax
call sub.kernel32.dll_SetConsoleCursorPosition
add esp, 0x1c
pop ebx
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4014c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6052da
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.005663ad
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401580
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.005d0b45
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x6a4734
push eax
call fcn.005d2fbe
push edi
push esi
call fcn.0056670d
add esp, 8
mov eax, esi
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.005697c8
mov esp, ebp
pop ebp
ret 4
Function at 0x40aaf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605436
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6ab0d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00569a16
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0056660a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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 0x40ac50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605436
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6ab0d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00569a16
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0056660a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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 0x40e430
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6060c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6ab0d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x6b2490
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40e4d0
cmp byte [0x6b2b20], 0
je 0x40e510
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.004029b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40e495
mov eax, dword [eax]
push eax
push str.ASocket__wsa_startup_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp eax, 8
jb 0x40e510
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00408960
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
mov ax, word [0x6b2490]
cmp al, 2
jne 0x40e4ef
cmp ah, al
jne 0x40e4ef
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
cmp byte [0x6b2b20], 0
je 0x40e510
movzx eax, ax
push eax
push str.ASocket__could_not_find_a_usable_version_of_winsock.dll__x_
push 3
push 0x6b2b20
call fcn.00403570
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40e5b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6060fb
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x40e681
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x14], 0x30d40
push eax
push 0
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x40e684
cmp byte [0x6b2b20], 0
je 0x40e681
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x134]
call fcn.004029b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40e64d
mov eax, dword [eax]
push eax
push esi
push str.ASocket__select_failed__d___s_
push 3
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0x120]
add esp, 0x14
cmp eax, 8
jb 0x40e681
inc eax
lea ecx, [ebp - 0x134]
push eax
push dword [ebp - 0x134]
call fcn.00408960
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret 8
Function at 0x40fac0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
xorps xmm0, xmm0
push edi
mov eax, 2
mov edi, ecx
push 0
movups xmmword [esi], xmm0
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push esi
push edi
mov word [esi + 2], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40fb39
cmp byte [0x6b2b20], 0
je 0x40fb27
push str.lsp_accelerate__loopback_udp_socket__bind_failed
push 3
push 0x6b2b20
call fcn.00403570
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
push esi
xorps xmm0, xmm0
push edi
movups xmmword [esi], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x40fb67
cmp byte [0x6b2b20], 0
je 0x40fb27
push str.lsp_accelerate__loopback_udp_socket__get_sock_name_failed
jmp 0x40fb18
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005697c8
mov esp, ebp
pop ebp
ret
Function at 0x412a00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x6ab0d4]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, ecx
xorps xmm0, xmm0
cmp dword [eax + 0x50], 0x10
push esi
movaps xmmword [esp + 0xc], xmm0
lea esi, [eax + 0x3c]
push edi
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x14], 0x17
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 6
mov dword [esp + 0x10], 1
jb 0x412a52
mov ecx, dword [esi]
jmp 0x412a54
mov ecx, esi
add eax, 0x54
push eax
lea eax, [esp + 0x14]
push eax
push ecx
push str._::_
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test edi, edi
je 0x412acd
cmp byte [0x6b2b20], 0
je 0x412aba
cmp dword [esi + 0x14], 0x10
jb 0x412a80
mov esi, dword [esi]
push 0
push 0x400
push 0x6b26b8
push 0x400
push edi
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
push 0x6b26b8
push edi
push str.TCPServer__get_addr_info_failed__server_port__d:_s___::_:_s_
push 3
push 0x6b2b20
call fcn.004030c0
add esp, 0x18
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.005697c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.005697c8
mov esp, ebp
pop ebp
ret