joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41af10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e65ab
mov eax, dword fs:[0]
push eax
mov eax, 0x13ac
call fcn.004ba890
mov eax, dword [0x66ee94]
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 eax, ecx
mov dword [ebp - 0x13a8], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x13b8], edi
mov ecx, dword [eax + 0x34]
mov ebx, dword [eax + 0x30]
sub ecx, ebx
mov eax, 0x2aaaaaab
mov dword [ebp - 0x13a4], edi
imul ecx
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x41afa0
push 0x30
push esi
push edi
call fcn.004bd150
mov dword [edi + 0x10], esi
add esp, 0xc
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
jmp 0x41b0b6
cmp esi, 1
jne 0x41afac
xor ecx, ecx
jmp 0x41b093
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], 0xffffffff
mov edx, 1
mov dword [ebp - 0x1394], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x1394], eax
inc edx
cmp edx, 0x270
jl 0x41afc4
dec esi
mov dword [ebp - 0x1398], 0x270
mov dword [ebp - 0x13b0], 0x20
lea eax, [ebp - 0x1398]
mov dword [ebp - 0x13b4], eax
mov dword [ebp - 0x13ac], 0xffffffff
cmp esi, 0xffffffff
jne 0x41b022
lea ecx, [ebp - 0x13b4]
call fcn.0041ad30
mov edx, eax
jmp 0x41b076
lea eax, [esi + 1]
mov dword [ebp - 0x13a0], eax
lea edi, [esi + 1]
nop
xor ebx, ebx
xor eax, eax
test esi, esi
je 0x41b048
lea ecx, [ebp - 0x1398]
call fcn.0041a330
mov ebx, eax
or eax, 0xffffffff
xor edx, edx
div edi
mov ecx, eax
mov dword [ebp - 0x139c], edx
xor edx, edx
mov eax, ebx
div edi
cmp eax, ecx
jb 0x41b066
cmp dword [ebp - 0x139c], esi
jne 0x41b030
mov edi, dword [ebp - 0x13a4]
mov eax, ebx
xor edx, edx
div dword [ebp - 0x13a0]
mov ebx, dword [ebp - 0x13a8]
lea eax, [edx - 0x80000000]
cmp eax, 0x80000000
lea ecx, [eax - 0x80000000]
cmovae ecx, edx
mov ebx, dword [ebx + 0x30]
lea esi, [ecx + ecx*2]
mov ecx, edi
shl esi, 4
add esi, ebx
push esi
call fcn.004036a0
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.004036a0
mov eax, edi
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.004ba87e
mov esp, ebp
pop ebp
ret 4
Function at 0x41cd30
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x66ee94]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x41ced1
cmp eax, 2
jne 0x41cee5
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004bd150
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41ce16
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x210], eax
test eax, eax
je 0x41ce16
push ebx
push eax
call fcn.004ba5bf
add esp, 4
mov dword [ebp - 0x218], esi
mov ebx, eax
mov dword [ebp - 0x214], esi
lea eax, [ebp - 0x20c]
push ebx
push dword [ebp - 0x210]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41ce0c
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x51040c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41ce0c
mov eax, dword [ebp - 0x214]
mov esi, dword [eax + 8]
push ebx
call fcn.004ba5c8
add esp, 4
pop ebx
shr esi, 0x10
cmp esi, 6
pop esi
jb 0x41cea3
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41cea3
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 4
lea eax, [ebp - 0x220]
push eax
push 0x12
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x210]
test eax, eax
jne 0x41ce84
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41cea3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x220], 3
sete al
test al, al
je 0x41cea3
mov ecx, edi
call fcn.0041f1d0
test al, al
jne 0x41cee5
call fcn.0041ac60
mov ecx, eax
call fcn.0041aec0
test eax, eax
je 0x41cecf
dec eax
cmp eax, 1
ja 0x41cee5
mov ecx, edi
call fcn.0041e0c0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0041f490
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop edi
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
Function at 0x4208f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor bl, bl
mov edx, dword [esi]
mov dword [ebp - 4], edx
cmp edx, reloc.WS2_32.dll_accept
jne 0x42092d
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x24]
or eax, 0x20019
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x42092a
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
cmp dword [esi + 0x18], 0x10
lea ecx, [esi + 4]
jb 0x420938
mov ecx, dword [ecx]
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x24]
or eax, 0x20019
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42097e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x42095e
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x420a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x66ee94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], esi
call fcn.00420b40
test al, al
je 0x420b0e
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x420a35
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420b0e
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x420a69
cmp eax, 2
je 0x420a69
cmp eax, 6
jne 0x420b0e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x420b0e
inc eax
push eax
call fcn.004ba5bf
inc dword [ebp - 0x20]
add esp, 4
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x24], eax
jb 0x420a8c
mov edi, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x24]
mov ecx, edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
lea edi, [ecx + 1]
mov byte [edx + eax], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420ac0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.004033e0
movups xmm0, xmmword [ebp - 0x1c]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x1c], 0
movq xmm0, qword [ebp - 0xc]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.00401f10
jmp 0x420b1f
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba87e
mov esp, ebp
pop ebp
ret 8
Function at 0x420bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.00420b40
test al, al
je 0x420c2f
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
sub ecx, edx
cmp dword [eax + 0x14], 0x10
jb 0x420c14
mov eax, dword [eax]
push ecx
push edx
push 3
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x420c2f
mov al, 1
pop esi
pop ebp
ret 8
xor al, al
pop esi
pop ebp
ret 8

Function at 0x4210b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x66ee94]
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 0x421100
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4210fa
shr eax, 8
cmp al, 2
jne 0x4210fa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
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.004ba87e
mov esp, ebp
pop ebp
ret

Function at 0x4265e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4265fe
cmp dword [esi + 0x48], 0
je 0x4265fe
push 2
push 3
push esi
call fcn.0043b4a0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00432c60
add esp, 4
test esi, esi
je 0x42661e
cmp dword [esi + 0x48], 0
je 0x42661e
push 3
push esi
call fcn.0043b4e0
add esp, 8
pop esi
pop ebp
ret
Function at 0x42f740
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 + 0x190]
call fcn.0042fab0
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 0x42f7c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x42f79c
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.00421200
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0042f3b0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4684], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x42fab0
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 esi
shl eax, 4
lea esi, [ecx + 0x1b4]
add esi, eax
mov eax, dword [ecx + 0x288]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x42fb72
cmp dword [ecx + edx*4 + 0x1a4], 0x42f690
jne 0x42fb72
cmp dword [esi], 0
je 0x42faf8
test edi, edi
je 0x42fb72
push ebx
mov ebx, dword [ecx + edx*4 + 0x190]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0042ed30
add esp, 0x14
cmp eax, 0xffffffff
je 0x42fb71
test al, 1
je 0x42fb71
mov ecx, dword [esi]
test ecx, ecx
jne 0x42fb4e
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x66eaa8]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x42fb6a
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x42fb71
add dword [esi + 8], eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], 0
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x42fb80
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 0x42fba9
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 0x42fbdf
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x4ef688
push 2
push eax
call fcn.004c9cc4
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004c9cc4
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
jne 0x42fcd1
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x42fcd1
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x42fcd1
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x430390
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6719b8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4303e1
push 3
push 2
push eax
push 6
call fcn.0044e130
add esp, 0x10
test al, al
je 0x4303d5
mov dword [0x6719b8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6719b8], 1
jmp 0x4303e6
cmp eax, 2
je 0x430426
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 0x43040d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x430426
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 0x430500
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 0x430548
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00421200
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042f460
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0042f460
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x430650
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x66ee94]
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 0x43082a
cmp byte [edi + 0x24e], 0
push esi
jne 0x430820
cmp byte [edi + 0x26a], 0
jne 0x430820
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 0x4306e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00421200
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0042f3b0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.004bd150
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 0x430751
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00421200
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0042f3b0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00430d30
add esp, 0xc
test al, al
jne 0x4307a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00421200
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0042f3b0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
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 + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00430d30
add esp, 0xc
test al, al
jne 0x430820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00421200
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0042f3b0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
push edi
call fcn.004302b0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
Function at 0x4310b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x66ee94]
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 + 0x48c], 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 0x43110d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0042f460
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
push dword [esi + 0x490]
mov dword [ebp - 0x10], 1
call fcn.0043a400
push dword [esi + 0x494]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0043a400
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 0x43117d
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.0042f460
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
Function at 0x43a3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0043a410
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004d5b05

Function at 0x43b670
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x43b7eb
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x43b7d7
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x43b768
cmp dword [edi + 0x18], 0
je 0x43b768
mov eax, dword [edi + 0x10]
test eax, eax
je 0x43b768
cmp eax, 0x10
jb 0x43b768
push 0x20
call dword [0x66eaa8]
mov esi, eax
add esp, 4
test esi, esi
je 0x43b7cc
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x66eaa8]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x43b7bb
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x43b756
push eax
call dword [0x66eab4]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x43b7a1
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x43b765
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x43b6b0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x43b785
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x43b7d3
push ebx
call fcn.0043b630
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x66eaac]
push esi
call dword [0x66eaac]
add esp, 8
jmp 0x43b776
push esi
mov edi, 8
call dword [0x66eaac]
add esp, 4
jmp 0x43b776
mov edi, 8
jmp 0x43b776
test ebx, ebx
jne 0x43b7e3
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ba20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004ce2b5
add esp, 0x18
test eax, eax
je 0x43ba42
cmp eax, 0xffffffff
jne 0x43ba44
xor eax, eax
pop ebp
ret
Function at 0x440a30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x66ee94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
mov eax, dword [esi + 0x194]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x440a88
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.0042fbf0
add esp, 8
cmp edi, 0xffffffff
jne 0x440abd
push str.Error_accept__ing_server_connect
push ebx
call fcn.0042f3b0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.0042f460
push 1
mov byte [esi + 0x258], 0
push edi
mov dword [esi + 0x194], edi
call fcn.0044df90
mov byte [esi + 0x1a1], 1
add esp, 0x10
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x440b22
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x440b22
push esi
call fcn.00440fa0
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba87e
mov esp, ebp
pop ebp
ret

Function at 0x442f90
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x442fbf
push str.Couldnt_set_desired_mode
push edx
call fcn.0042f3b0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x442fd6
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.0042f460
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x442fed
push edi
call fcn.00442d20
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x443001
push edi
call fcn.00441dd0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x443015
push edi
call fcn.00442d00
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x443025
push edi
call fcn.00442e70
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret