joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d170
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
cmp dword [ebx + 0x94], 2
push ebp
mov ebp, dword [ebx]
je 0x1003d2ff
cmp dword [ebx + 0x2a4], 0
push esi
push edi
jne 0x1003d2f4
cmp dword [ebx + 0x314], 0
jne 0x1003d2f4
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1003d204
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.10029aa0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.10038470
add esp, 0x18
jmp 0x1003d2fd
push edi
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], edi
call fcn.1011e8d0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1003d251
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.10029aa0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.10038470
add esp, 0x18
jmp 0x1003d2fd
lea edx, [ebx + 0x138]
push edx
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.1003d110
add esp, 0xc
test eax, eax
jne 0x1003d29e
call fcn.1012158a
mov esi, eax
call fcn.1012158a
mov ecx, dword [esi]
push ecx
push ebx
mov edi, eax
call fcn.10029aa0
mov edx, dword [edi]
push eax
push edx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.10038470
add esp, 0x18
jmp 0x1003d2fd
lea edi, [ebx + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea ecx, [ebx + 0x13c]
push ecx
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
call fcn.1003d110
add esp, 0xc
test eax, eax
jne 0x1003d2f4
call fcn.1012158a
mov esi, eax
call fcn.1012158a
mov edi, eax
mov eax, dword [esi]
push eax
push ebx
call fcn.10029aa0
mov ecx, dword [edi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.10038470
add esp, 0x18
jmp 0x1003d2fd
push ebx
call fcn.1003d090
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.1011a380
add esp, 0x108
ret

Function at 0x1003d320
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1003d369
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10029aa0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100383e0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100383e0
add esp, 8
pop edi
pop esi
ret
Function at 0x1003d380
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x101cff30]
test eax, eax
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
jne 0x1003d3d0
push 3
push 2
push eax
push 6
call fcn.10063260
add esp, 0x10
test eax, eax
je 0x1003d3c4
mov dword [0x101cff30], 2
add esp, 0xc
ret
mov dword [0x101cff30], 1
jmp 0x1003d3d5
cmp eax, 2
je 0x1003d41c
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1003d403
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x1003d41b
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1f0], 0
je 0x1003d4dd
push eax
call fcn.1002eaf0
add esp, 4
test eax, eax
jne 0x1003d4fd
xor eax, eax
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1003d4da
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1003d4fd
ret
mov eax, 1
ret
Function at 0x1003fd60
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x1003fe04
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x1003fdd5
cmp word [ecx + 0xa], 4
jne 0x1003fdd5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x1003fdd5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.1003fcf0
test eax, eax
mov dword [esi], eax
je 0x1003fdf8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x1003fdb0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.1011ab29
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x1003fe14.11001
jmp dword [eax*4 + 0x1003fe38]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x10040670
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x101cff34], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x100400c0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x100403b0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.10040070
je 0x100406e2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x101b9070]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1011a380
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100407df
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1011b28e
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.1011a6f4
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1004075d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x100407a4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.1011b28e
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.1011a6f4
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x100407db
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x1004080f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x1004080f
add edi, 1
cmp edi, 3
jl 0x100407a6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x101b9070], edx
mov dword [0x101b9078], eax
mov dword [fcn.10040070], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x101b9070]
xor ecx, esp
mov dword [0x101cff34], 1
call fcn.1011a380
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x100407db

Function at 0x10040d60
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.1012394e
add esp, 0x18
test eax, eax
je 0x10040d83
cmp eax, 0xffffffff
jne 0x10040d85
xor eax, eax
ret
Function at 0x100412c0
Capabilities:
Check for time delay via gettickcount
Encode data using xor

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x1b4], eax
cmp dword [0x101cff44], 0
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
jne 0x100412f7
call fcn.100412b0
test eax, eax
je 0x1004130f
mov dword [0x101cff44], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.1011a380
add esp, 0x1b8
ret
mov eax, dword [esi + 0x668]
test eax, eax
je 0x10041330
push 0x400
push eax
call fcn.10066140
add esp, 8
call fcn.100412b0
test eax, eax
jne 0x100412f7
push ebx
push ebp
push edi
mov esi, 2
lea edi, [esp + 0x84]
mov dword [esp + 0x20], 4
jmp 0x10041350
lea eax, [esp + 0x34]
push eax
call fcn.1003fb00
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
push 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.1002d080
add esp, 8
push ebp
push ebx
lea eax, [esi - 1]
push 0
push eax
call fcn.10122c10
lea ecx, [esp + 0x74]
mov ebx, esi
imul ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.1003fb00
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
push edx
mov ebp, eax
call fcn.1003fb00
mov ecx, dword [esp + 0x38]
add esp, 8
add ebp, dword [eax]
push 0
adc ecx, dword [eax + 4]
lea edx, [esi + 1]
push edx
push ecx
push ebp
mov dword [esp + 0x38], edx
call fcn.10122c10
shld edx, eax, 8
xor dword [esp + 0x14], edx
shl eax, 8
xor dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
call fcn.1003fb00
lea ecx, [esp + 0x58]
push ecx
lea ebp, [eax + 8]
call fcn.1003fb00
mov edx, dword [ebp]
add edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, 2
imul edx, esi
mov esi, dword [esp + 0x30]
shl edx, 0x10
mov dword [edi], eax
xor ebx, edx
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
sub dword [esp + 0x20], 1
jne 0x10041350
fld qword [0x10160668]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.10065fb0
add esp, 0x10
call fcn.100412b0
test eax, eax
je 0x10041333
lea ecx, [esp + 0xc4]
push pe_nt_image_headers32
push ecx
mov byte [esp + 0xcc], 0
call fcn.100662a0
add esp, 8
cmp byte [esp + 0xc4], 0
pop edi
pop ebp
pop ebx
je 0x100414a7
lea edx, [esp + 0xb8]
push 0x400
push edx
call fcn.10066140
add esp, 8
call fcn.100412b0
test eax, eax
jne 0x100412f7
mov eax, dword [esp + 0x18]
push str.libcurl_is_now_using_a_weak_random_seed__n
push eax
call fcn.100383e0
add esp, 8
call fcn.100412b0
mov ecx, dword [esp + 0x1b8]
neg eax
sbb eax, eax
and eax, 0xffffffdd
pop esi
xor ecx, esp
add eax, 0x23
call fcn.1011a380
add esp, 0x1b8
ret
Function at 0x10046ef0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.10123ebc
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x10046f55
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10046f55
lea edx, [esp]
push edx
call dword [0x101b900c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1011a380
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.1011a380
add esp, 0x108
ret
jmp 0x10046ef0

Function at 0x10046f70
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.10123ebc
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x10046f55
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10046f55
lea edx, [esp]
push edx
call dword [0x101b900c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1011a380
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.1011a380
add esp, 0x108
ret
jmp 0x10046ef0
Function at 0x1004f320
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x1015f6d0
push ecx
call fcn.100383e0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.1004e440
test eax, eax
jne 0x1004f350
mov eax, esi
jmp fcn.1004e8e0
ret
Function at 0x1004f7c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x90
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
mov ebx, dword [ebp + 0x520]
push esi
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [ebx + 0x154]
mov eax, dword [ebx + 0x15c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x14]
push 0
add edx, 4
lea esi, [ebx + 0x15c]
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [ebx + 0x148], 0
mov dword [ebx + 0x14c], eax
jne 0x1004f857
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0xc8]
push ecx
call fcn.1011e560
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebx + 0x148], edx
mov edx, dword [ebx + 0x14c]
cmp edx, 4
jge 0x1004f892
push str.Received_too_short_packet
push edi
call fcn.10038470
add esp, 8
mov dword [ebx + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011a380
add esp, 0x90
ret
mov eax, esi
call fcn.1004e5d0
movzx eax, ax
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x1004f8ab
jmp dword [eax*4 + 0x1004f9c0]
cmp edx, 4
jle case.0x1004f8ab.4
mov eax, esi
call fcn.1004e5e0
movzx ecx, word [ebx + 0x40]
add ecx, 1
cmp cx, ax
jne case.0x1004f8ab.4
add edx, 0xfffffffc
push edx
mov edx, dword [esi]
add edx, 4
push edx
push 1
push ebp
call fcn.10038870
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004f900
mov ecx, 5
mov eax, ebx
call fcn.1004f740
mov eax, esi
jmp 0x1004f879
mov eax, dword [ebx + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x90], eax
mov ecx, dword [edi + 0x90]
adc dword [edi + 0x94], edx
mov eax, dword [edi + 0x94]
push eax
push ecx
push edi
call fcn.10045cb0
add esp, 0xc
jmp case.0x1004f8ab.4
mov ebp, dword [esi]
mov eax, esi
add ebp, 4
lea edi, [edx - 4]
call fcn.1004e5e0
movzx edx, ax
mov esi, ebp
mov dword [ebx + 8], edx
call fcn.1004e5f0
cmp eax, edi
jae 0x1004f962
mov eax, dword [esp + 0x18]
push ebp
push str.TFTP_error:__s_n
push eax
call fcn.100383e0
add esp, 0xc
mov ebp, dword [esp + 0x14]
push ebp
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x1004f877
mov ecx, 5
mov eax, ebx
call fcn.1004f740
mov eax, 0x2a
jmp 0x1004f879
mov ecx, dword [esi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push ebx
call fcn.1004e680
add esp, 0xc
test eax, eax
je case.0x1004f8ab.4
jmp 0x1004f879
push str.Internal_error:_Unexpected_packet
push 0x101abb1c
push edi
call fcn.10038470
add esp, 0xc
jmp case.0x1004f8ab.4
Function at 0x100512b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100512e5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10038470
add esp, 0xc
jmp 0x1005131c
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ax, word [esp]
cmp al, 2
jne 0x1005130e
test ah, ah
jne 0x1005130e
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1011a380
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10038470
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.1011a380
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x1a8]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x10051504
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10038470
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.100513b0
add esp, 4
pop esi
pop ecx
ret
Function at 0x100522a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x164]
mov dword [esp + 4], eax
jne 0x10052402
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
cmp ebx, edi
mov dword [edi], ebx
jae 0x100522d8
mov byte [ebx], 0xff
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x100522e4
mov byte [eax], 0xfa
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x100522f0
mov byte [eax], 0x1f
add dword [edi], 1
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10052323
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x10052332
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x1005233d
mov byte [eax], cl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x10052348
mov byte [eax], ch
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x10052354
mov byte [eax], 0xff
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x10052360
mov byte [eax], 0xf0
add dword [edi], 1
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
push ecx
mov dword [ebp + 0x1eb4], eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.10051850
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
test eax, eax
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jge 0x100523bd
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.10038470
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.100520d0
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x100523ff
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.10038470
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x10052ed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esi + 0x1ac]
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10052f27
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.1003d510
add esp, 8
cmp ebx, 0xffffffff
jne 0x10052f5c
push str.Error_accept__ing_server_connect
push edi
call fcn.10038470
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1011a380
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.100383e0
push 1
push ebx
mov dword [esi + 0x2cc], 0
mov dword [esi + 0x1ac], ebx
call fcn.10063500
add esp, 0x10
mov dword [esi + 0x1bc], 1
cmp dword [edi + 0x1e8], 0
je 0x10052fdd
push 1
push edi
call fcn.100361c0
mov ecx, dword [edi + 0x1ec]
mov edx, dword [edi + 0x1e8]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.100361c0
add esp, 0x1c
test ebx, ebx
je 0x10052fdd
call fcn.10052e00
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1011a380
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1011a380
add esp, 0x18
ret
Function at 0x100565e0
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
push edi
mov edi, dword [ebx]
je 0x1005661a
push str.Couldnt_set_desired_mode
push edi
call fcn.10038470
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x10056631
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.100383e0
add esp, 0xc
cmp ebp, 0x13
jne 0x10056646
push ebx
call fcn.10056570
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x10056657
call fcn.100539c0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x1005666a
mov eax, ebx
call fcn.100565c0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x10056678
mov eax, ebx
call fcn.100565d0
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x100633b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x10166f84
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x100633ca
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x10166f70
push ebx
mov dword [esp + 0x18], edi
call fcn.10124899
add esp, 8
test eax, eax
je 0x10063416
test edi, edi
je 0x10063407
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x1006343c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006343c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x100634f4
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10063455
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x100634ea
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100634ea
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10063485
sub eax, edx
mov word [eax + esi], 0x5c
mov eax, esi
lea edx, [eax + 1]
jmp 0x100634a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100634a0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
add ecx, 1
test al, al
jne 0x100634b2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100634e1
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x101b9004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x101b9004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret