joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5acf60
Capabilities:
Get common file path
Initialize winsock library
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
test byte [ebp + 8], 2
je 0x5acfa5
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x5acf9c
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x5acf96
shr eax, 8
cmp al, 2
je 0x5acfa5
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x755cb0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 8], eax
test eax, eax
jne 0x5acfcc
mov dword [0x154e9dc], esi
jmp 0x5ad0f9
push ebx
push str.LoadLibraryExA
push eax
call edi
push 0x78e2a8
push str.iphlpapi.dll
mov ebx, eax
call fcn.00711440
add esp, 8
test eax, eax
je 0x5ad015
test ebx, ebx
je 0x5ad003
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x5ad0d5
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x5ad0d5
test ebx, ebx
je 0x5ad03c
push str.AddDllDirectory
push dword [ebp + 8]
call edi
test eax, eax
je 0x5ad03c
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x5ad0d5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp + 8], eax
test eax, eax
je 0x5ad0d5
lea ecx, [eax + 0xd]
push ecx
call dword [0x8e2608]
mov edi, eax
add esp, 4
test edi, edi
je 0x5ad0c5
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5ad0c5
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ad077
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x5ad090
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x5ad0a2
test ebx, ebx
je 0x5ad0bc
push 8
push 0
push edi
call ebx
jmp 0x5ad0c3
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x8e260c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x154e9dc], esi
pop ebx
test esi, esi
je 0x5ad0f9
push str.if_nametoindex
push esi
call edi
mov ecx, dword [0x154e9cc]
test eax, eax
cmovne ecx, eax
mov dword [0x154e9cc], ecx
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x5ad131
push str.FreeAddrInfoExW
push esi
call edi
push str.GetAddrInfoExCancel
push esi
mov dword [0x154e9d0], eax
call edi
push str.GetAddrInfoExW
push esi
mov dword [0x154e9d4], eax
call edi
mov dword [0x154e9d8], eax
push 3
push 2
push 0
push 0
push 6
call fcn.005ca940
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x1552bc1]
call fcn.005ca940
add esp, 0x28
test al, al
setne byte [0x1552bc0]
push 0x1552bc8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5af0f0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x5af122
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x5af122
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x5af270
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5af2b1
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x5af2a4
push 0
call fcn.005af270
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 2
pop esi
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x5af2c7
xor al, al
pop esi
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
pop ebp
ret
Function at 0x5affe0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x64
push edi
xor edi, edi
cmp byte [eax + 0x673], 0
je 0x5b019f
push ebx
mov ebx, dword [ebp + 0xc]
add ebx, 0x18
cmp byte [ebx], 0
je 0x5b019e
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push ebx
push 2
call esi
test eax, eax
jg 0x5b019d
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call esi
test eax, eax
jg 0x5b019d
mov ecx, dword [ebp + 0xc]
mov eax, str._none_
cmp byte [ebx], 0
cmovne eax, ebx
mov ebx, dword [ebp + 8]
push dword [ecx + 0x14]
mov esi, dword [ecx]
push eax
push str.Host__s:_d_was_resolved.
push ebx
call fcn.005aa810
lea eax, [ebp - 0x34]
push 0x400
push eax
call fcn.0059e910
lea eax, [ebp - 0x24]
push 0x400
push eax
call fcn.0059e910
add esp, 0x20
test esi, esi
je 0x5b0114
lea edx, [edi + 0x10]
nop
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x5b008d
cmp ecx, 2
jne 0x5b0106
xor eax, eax
mov byte [ebp - 0x64], 0
cmp ecx, 2
lea ebx, [ebp - 0x34]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x5b00b9
sub ecx, 0x15
jne 0x5b00cd
push 0x2e
lea eax, [ebp - 0x64]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x5b00c8
push 0x2e
lea eax, [ebp - 0x64]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call sub.WS2_32.dll_inet_ntop
push ebx
call fcn.0059e940
add esp, 4
test eax, eax
je 0x5b00ec
push 2
push 0x753968
push ebx
call fcn.0059e8d0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x5b0132
lea eax, [ebp - 0x64]
push eax
push ebx
call fcn.0059e870
mov edi, eax
add esp, 8
test edi, edi
jne 0x5b0132
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x5b0080
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0059e940
add esp, 4
test eax, eax
je 0x5b0145
lea eax, [ebp - 0x24]
push eax
call fcn.00560ca0
add esp, 4
jmp 0x5b014a
mov eax, dword [ebp + 8]
push str.too_many_IP__cant_show
push eax
call fcn.005aa810
add esp, 8
jmp 0x5b0188
mov eax, str._none_
push eax
push str.IPv6:__s
push ebx
call fcn.005aa810
lea eax, [ebp - 0x34]
push eax
call fcn.0059e940
add esp, 0x10
test eax, eax
je 0x5b0174
lea eax, [ebp - 0x34]
push eax
call fcn.00560ca0
add esp, 4
jmp 0x5b0179
mov eax, str._none_
push eax
push str.IPv4:__s
push ebx
call fcn.005aa810
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
call fcn.0059e8e0
lea eax, [ebp - 0x24]
push eax
call fcn.0059e8e0
add esp, 8
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5bbd80
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0059e630
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.00714daf
push dword [ebp + 0xc]
mov edi, eax
call fcn.00714daf
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 0x5bbe07
lea eax, [ebp - 0x20]
push eax
call fcn.0059e630
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0059e6e0
add esp, 0x20
test edx, edx
ja 0x5bbe2a
jb 0x5bbdf5
cmp eax, 0x3e8
ja 0x5bbe2a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x5bbdc0
test edi, edi
je 0x5bbe14
push edi
call fcn.00703abc
add esp, 4
test esi, esi
je 0x5bbe21
push esi
call fcn.00703abc
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x5bbe37
push edi
call fcn.00703abc
add esp, 4
test esi, esi
je 0x5bbe44
push esi
call fcn.00703abc
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bc2b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
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 - 8], eax
test eax, eax
jne 0x5bc447
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5bc433
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5bc30e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bc300
sub eax, edx
lea ecx, [eax + 1]
jmp 0x5bc310
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x5bc322
mov eax, 0x10
jmp 0x5bc330
cmp eax, 0x17
jne 0x5bc3d5
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x5bc3d5
mov edx, dword [esi + 0x10]
test edx, edx
je 0x5bc3d5
cmp edx, eax
jb 0x5bc3d5
add ecx, 0x20
add eax, ecx
push eax
call dword [0x8e2608]
mov edi, eax
add esp, 4
test edi, edi
je 0x5bc425
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.006f45d0
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x5bc3c3
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.006f45d0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x5bc3d2
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x5bc2f0
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x5bc3f2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x5bc42f
test ebx, ebx
je 0x5bc416
nop word [eax + eax]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x8e260c]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x5bc400
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x5bc3e3
test ebx, ebx
jne 0x5bc43f
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bc640
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x5bc672
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push eax
push 2
call fcn.005bc450
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x5bc69a
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.005bc450
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5bc810
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.00704e7b
add esp, 0x18
test eax, eax
je 0x5bc832
cmp eax, 0xffffffff
jne 0x5bc834
xor eax, eax
pop ebp
ret

Function at 0x5bc880
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x5bc927
mov esi, dword [ebp + 0xc]
nop dword [eax]
push 4
lea eax, [ebp + 0x10]
mov ebx, 4
push eax
push dword [ebp + 8]
cmp edi, ebx
cmovb ebx, edi
call fcn.005a4460
add esp, 0xc
cmp eax, 4
jne 0x5bc8e5
cmp byte [0x154e9e4], 0
jne 0x5bc8f0
push 2
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x5bc929
mov eax, dword [ebp + 0x10]
jmp 0x5bc90c
imul eax, dword [0x154e9e0], 0x41c64e6d
add eax, 0x3039
mov dword [0x154e9e0], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x5bc91f
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x5bc910
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x5bc8a0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5bc930
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
sub ebx, 1
je 0x5bc9c8
mov esi, dword [ebp + 8]
push 4
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.005a4460
add esp, 0xc
cmp eax, 4
je 0x5bc962
test eax, eax
jne 0x5bc9cd
jmp 0x5bc9a9
cmp byte [0x154e9e4], 0
jne 0x5bc98f
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x5bc9a9
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret
imul eax, dword [0x154e9e0], 0x41c64e6d
add eax, 0x3039
mov dword [0x154e9e0], eax
rol eax, 0x10
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0xfffffffc
jae 0x5bc948
xor edx, edx
mov ecx, 0x3e
div ecx
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x5bc948
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5bc9e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x88
mov eax, edx
and eax, 0xfffffffe
cmp eax, 0x100
jae 0x5bcad3
test dl, 1
je 0x5bcad3
push ebx
push esi
push edi
lea edi, [edx - 1]
mov ecx, 0x2b
shr edi, 1
lea esi, [ebp - 0x88]
mov dword [ebp - 8], edi
mov ebx, edi
je 0x5bcab0
push 4
lea eax, [ebp - 4]
mov edi, 4
push eax
push dword [ebp + 8]
cmp ebx, edi
cmovb edi, ebx
call fcn.005a4460
add esp, 0xc
cmp eax, 4
jne 0x5bca68
cmp byte [0x154e9e4], 0
jne 0x5bca73
push 2
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x5bcacc
mov eax, dword [ebp - 4]
jmp 0x5bca8f
imul eax, dword [0x154e9e0], 0x41c64e6d
add eax, 0x3039
mov dword [0x154e9e0], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp - 4], eax
test edi, edi
je 0x5bcaa2
mov byte [esi], al
dec ebx
inc esi
shr eax, 8
sub edi, 1
jne 0x5bca93
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x5bca23
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
mov eax, ecx
test eax, eax
jne 0x5bcacc
push edx
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.005c4530
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2b
mov esp, ebp
pop ebp
ret
Function at 0x5c18c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x8e2610]
mov edi, eax
add esp, 8
test edi, edi
je 0x5c191a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x5c1936
cmp esi, ebx
je 0x5c1936
cmp esi, 0x8000
ja 0x5c1936
cmp esi, ebx
jb 0x5c192d
push esi
push edi
call dword [0x8e2610]
mov edi, eax
add esp, 8
test edi, edi
jne 0x5c18e0
mov ebx, dword [ebp - 4]
push ebx
call dword [0x8e260c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x8e260c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5c3360
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, 4
jb 0x5c34a5
mov ebx, dword [ebp + 0xc]
sub esi, 2
inc ebx
push str.0123456789abcdefABCDEF:.
push ebx
call fcn.00711480
add esp, 8
cmp esi, eax
je 0x5c3439
mov dword [ebp + 0x10], eax
add eax, ebx
mov dword [ebp - 4], eax
cmp byte [eax], 0x25
jne 0x5c34a5
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x791d6c
push esi
call fcn.00709b00
add esp, 0xc
test eax, eax
jne 0x5c33cc
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x5c33cc
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x5c34a5
lea ecx, [ebp - 0x14]
sub ecx, esi
nop dword [eax + eax]
cmp al, 0x5d
je 0x5c33f5
cmp edi, 0xf
jge 0x5c33f5
mov byte [ecx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5c33e0
test edi, edi
je 0x5c34a5
cmp byte [esi], 0x5d
jne 0x5c34a5
lea eax, [ebp - 0x14]
mov byte [ebp + edi - 0x14], 0
push eax
call dword [0x8e2614]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x5c342e
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov word [eax], 0x5d
lea eax, [ebp - 0x14]
mov byte [ebx + esi], 0
push eax
push ebx
lea edi, [ebx + esi]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5c34a5
push 0x2e
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x5c3499
lea edx, [ebp - 0x44]
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x5c3470
sub edx, ecx
cmp edx, esi
jae 0x5c3499
lea ecx, [ebp - 0x44]
mov esi, ebx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x5c3486
lea edi, [ebx + edx]
mov byte [edi + 1], al
mov byte [edi], 0x5d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x16
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c67b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push dword [ebp + 0xc]
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5c6835
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x5c6800
mov dword [edi], 0x51
jmp 0x5c6832
push 0x100
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.005956b0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.005aa770
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8e4], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x10]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.005aa870
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x180
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1c4]
test dword [eax + 0x44], 0x800
jne 0x5c6950
push 0x80
lea eax, [ebp - 0x80]
mov dword [ebp + 8], 0x80
push 0
push eax
call fcn.006f4b50
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5c68f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x180]
push 0x100
push eax
push esi
call fcn.005956b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.005aa770
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
call fcn.005abaa0
add esp, 0x10
test al, al
jne 0x5c6950
push edi
call fcn.006fef52
mov esi, dword [eax]
call fcn.006fef52
mov edi, eax
lea eax, [ebp - 0x180]
push 0x100
push eax
push esi
call fcn.005956b0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.005aa770
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5cf4e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.005293c0
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x8e2608]
mov edi, eax
add esp, 8
test edi, edi
je 0x5cf640
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x5cf55e
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp + 0xc], eax
push eax
mov eax, dword [esi + 8]
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp - 4]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x5cf5bb
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
nop dword [eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp - 4], 1
jne 0x5cf580
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x5cf5e7
mov eax, dword [esi + 4]
push 1
push 0x793e1d
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x793e1e
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x5cf5c0
push dword [ebp + 0x18]
call fcn.005293c0
mov ecx, dword [edi]
push eax
push dword [ebp + 0x14]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [ebp + 0x1c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x5cf60f
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x8e260c]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret