joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480100
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x48011a
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 0x5ae248
push ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR90.dll__mbspbrk]
add esp, 8
test eax, eax
je 0x480167
test edi, edi
je 0x480158
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 0x48018d
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48018d
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 0x480240
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4801a6
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x618910]
mov esi, eax
add esp, 4
test esi, esi
je 0x480236
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x480236
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4801d4
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
jmp 0x4801f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4801f0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x480200
mov eax, dword [esp + 0x10]
test eax, eax
je 0x48022d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x618914]
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 [0x618914]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x480250
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x4802af
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x480295
mov eax, dword [esp]
cmp al, 2
jne 0x48028f
shr eax, 8
cmp al, 2
je 0x4802af
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0058ecc6
add esp, 0x194
ret
push str.iphlpapi.dll
call fcn.00480100
add esp, 4
mov dword [0x621288], eax
test eax, eax
je 0x4802da
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4802da
mov dword [0x62128c], eax
push 3
push 2
push 0
push 6
call fcn.0047ff90
add esp, 0x10
neg eax
sbb eax, eax
neg eax
push 0x623e60
mov dword [0x623e68], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor eax, eax
call fcn.0058ecc6
add esp, 0x194
ret
Function at 0x489110
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x489153
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4891d0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
cmp dword [esi + 0x620], ebx
je 0x48921a
push 1
push esi
call fcn.00487160
mov eax, dword [esi + 0x5b4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x620]
push edx
push eax
push esi
call ecx
push ebx
push esi
mov edi, eax
call fcn.00487160
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x48925a
cmp eax, 2
jg 0x48925a
mov edx, dword [esi + 0x5b0]
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
push edx
push 1
lea eax, [eax + eax*2 + 0x5aedbc]
push 2
push eax
call edi
mov ecx, dword [esi + 0x5b0]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push 1
push edx
push eax
call edi
add esp, 0x20
pop edi
pop esi
mov eax, ebx
pop ebx
ret

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

Disassembly:
mov edx, dword [ebx + 0x5c8]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
mov ecx, eax
shl ecx, 4
push esi
lea esi, [ecx + ebx + 0x448]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
je 0x489883
cmp dword [ebx + eax*4 + 0x438], 0x4894f0
jne 0x489883
cmp dword [esi], 0
je 0x48981e
test edi, edi
je 0x489883
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004ae730
add esp, 0x14
cmp eax, 0xffffffff
je 0x489883
test al, 1
je 0x489883
cmp dword [esi], 0
jne 0x489865
mov eax, dword [ebx]
mov eax, dword [eax + 0x95c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x618910]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x489880
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x489883
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x489890
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x120]
call fcn.004897e0
mov eax, dword [esp + 0x124]
push 0
push eax
push edi
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x48993a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x489909
xor eax, eax
mov dword [esi], 0x51
jmp 0x48993a
push 0x100
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.004b55d0
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.00489340
mov eax, dword [ebx]
mov dword [eax + 0xe54], ebp
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058ecc6
add esp, 0x104
ret

Function at 0x48b7a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.004d6da0
add esp, 4
mov dword [esp + 0xc], eax
jmp dword [sym.imp.MSVCR90.dll__read]

Function at 0x48bb90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x48bb80
movzx eax, byte [esi]
push eax
call fcn.0048fab0
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x48bb61
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x48bbbd
call fcn.0048b990
test eax, eax
jne 0x48bbbd
lea eax, [esp + 4]
push eax
call fcn.0048baf0
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x48bb50
xor eax, eax
pop esi
pop ecx
ret

Function at 0x48d6f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0xbf0], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x48d72e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00489260
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xb08]
push edx
mov dword [esp + 0xc], 1
call fcn.0048b780
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb0c]
push eax
call fcn.0048b780
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x48d7a7
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.00489260
add esp, 0x10
add esp, 0x14
ret
Function at 0x48dfa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
cmp dword [ebx + 0x2f8], 3
push ebp
push esi
push edi
jne 0x48e161
cmp dword [ebx + 0x530], 0
jne 0x48e161
cmp dword [ebx + 0x598], 0
jne 0x48e161
mov esi, dword [esp + 0x224]
mov ebp, dword [ebx]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x48e040
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x11c]
mov esi, eax
push edx
push esi
call fcn.004b55d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00489340
add esp, 0x1c
jmp 0x48e16a
push edi
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x48e099
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push 0x100
lea eax, [esp + 0x11c]
push eax
push esi
call fcn.004b55d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00489340
add esp, 0x1c
jmp 0x48e16a
mov edx, dword [esp + 0x10]
lea ecx, [ebx + 0x3a0]
push ecx
lea esi, [ebx + 0x372]
push esi
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.0048df00
add esp, 0x10
test eax, eax
jne 0x48e0f7
mov esi, dword [sym.imp.MSVCR90.dll__errno]
call esi
mov edi, eax
call esi
mov edx, dword [edi]
push 0x100
lea ecx, [esp + 0x11c]
push ecx
push edx
mov esi, eax
call fcn.004b55d0
push eax
mov eax, dword [esi]
push eax
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00489340
add esp, 0x1c
jmp 0x48e16a
mov eax, dword [esp + 0x14]
lea edi, [ebx + 0x2c4]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x3d4]
push ecx
lea edx, [ebx + 0x3a4]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
movsw word es:[edi], word [esi]
call fcn.0048df00
add esp, 0x10
test eax, eax
jne 0x48e161
mov esi, dword [sym.imp.MSVCR90.dll__errno]
call esi
mov edi, eax
call esi
push 0x100
lea edx, [esp + 0x11c]
mov esi, eax
mov eax, dword [edi]
push edx
push eax
call fcn.004b55d0
mov ecx, dword [esi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00489340
add esp, 0x1c
jmp 0x48e16a
push ebx
call fcn.0048de80
add esp, 4
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058ecc6
add esp, 0x20c
ret
Function at 0x48e2d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [eax]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x48e331
push 0x100
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b55d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00489260
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0058ecc6
add esp, 0x108
ret
Function at 0x4900f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebp
jne 0x4902a1
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x49027f
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x49014d
lea ebx, [eax + 0xe]
jmp 0x490159
cmp eax, 0x17
jne 0x4901f8
lea ebx, [eax + 5]
cmp dword [edi + 0x18], ebp
je 0x4901f8
mov eax, dword [edi + 0x10]
cmp eax, ebp
jbe 0x4901f8
cmp eax, ebx
jb 0x4901f8
push 0x20
call dword [0x618910]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x490205
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [0x618910]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x49020f
mov ecx, dword [edi + 0x18]
push ebx
push ecx
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebp
je 0x4901df
push eax
call dword [0x61891c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebp
je 0x490223
cmp dword [esp + 0x10], ebp
jne 0x4901e9
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4901f4
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x490140
jmp 0x49023f
mov dword [esp + 0x14], 8
jmp 0x49023f
push esi
mov dword [esp + 0x18], 8
call dword [0x618914]
add esp, 4
jmp 0x49023f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x618914]
push esi
call dword [0x618914]
add esp, 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
cmp eax, ebp
je 0x490250
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebp
je 0x490279
mov eax, dword [esp + 8]
push eax
call fcn.004900b0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, ebp
pop edi
mov dword [esp + 4], ebp
mov dword [edx], ecx
pop ebp
add esp, 0x10
ret
cmp dword [esp + 8], ebp
jne 0x490292
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
pop edi
pop ebp
add esp, 0x10
ret
Function at 0x491c90
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 dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x491cb4
cmp eax, 0xffffffff
jne 0x491cb6
xor eax, eax
ret

Function at 0x491ef0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x5d0], 2
jne 0x491f06
mov dword [esp + 4], eax
jmp fcn.00491ea0
mov eax, 1
ret

Function at 0x4922e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x1b4], eax
cmp dword [0x621380], 0
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
jne 0x492317
call fcn.004922d0
test eax, eax
je 0x49232f
mov dword [0x621380], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.0058ecc6
add esp, 0x1b8
ret
mov eax, dword [esi + 0xa38]
test eax, eax
je 0x492350
push 0x400
push eax
call fcn.004c0130
add esp, 8
call fcn.004922d0
test eax, eax
jne 0x492317
push ebx
push ebp
push edi
mov esi, 2
lea edi, [esp + 0x84]
mov dword [esp + 0x20], 4
jmp 0x492370
lea eax, [esp + 0x34]
push eax
call fcn.00491d00
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.004ae600
add esp, 8
push ebp
push ebx
lea eax, [esi - 1]
push 0
push eax
call fcn.0058ee40
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.00491d00
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
push edx
mov ebp, eax
call fcn.00491d00
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.0058ee40
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.00491d00
lea ecx, [esp + 0x58]
push ecx
lea ebp, [eax + 8]
call fcn.00491d00
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 0x492370
fld qword [0x5afbf0]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.004c00b0
add esp, 0x10
call fcn.004922d0
test eax, eax
je 0x492353
lea ecx, [esp + 0xc4]
push 0x100
push ecx
mov byte [esp + 0xcc], 0
call fcn.004c02b0
add esp, 8
cmp byte [esp + 0xc4], 0
pop edi
pop ebp
pop ebx
je 0x4924c7
lea edx, [esp + 0xb8]
push 0x400
push edx
call fcn.004c0130
add esp, 8
call fcn.004922d0
test eax, eax
jne 0x492317
mov eax, dword [esp + 0x18]
push str.libcurl_is_now_using_a_weak_random_seed__n
push eax
call fcn.00489260
add esp, 8
call fcn.004922d0
mov ecx, dword [esp + 0x1b8]
neg eax
sbb eax, eax
and eax, 0xffffffdd
pop esi
xor ecx, esp
add eax, 0x23
call fcn.0058ecc6
add esp, 0x1b8
ret
Function at 0x4982b0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x618918]
mov edi, eax
add esp, 8
test edi, edi
je 0x498278
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x498290
cmp esi, ebx
je 0x498290
cmp esi, 0x8000
ja 0x498290
cmp esi, ebx
jb 0x498289
push esi
push edi
call dword [0x618918]
mov edi, eax
add esp, 8
test edi, edi
jne 0x498240
push ebp
call dword [0x618914]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x618914]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x498220
Function at 0x49feb0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x5aec18
push ecx
call fcn.00489260
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0049ee80
test eax, eax
jne 0x49fee0
mov ecx, esi
jmp fcn.0049f330
ret
Function at 0x4a20e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x420]
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 0x4a2124
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00489340
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004a1fe0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4a2ec0
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 + 0x14c]
mov dword [esp + 4], eax
jne 0x4a3019
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4a2ef7
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4a2f02
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4a2f0d
mov byte [eax], 0x1f
inc dword [edi]
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 0x4a2f3f
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4a2f4d
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4a2f57
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4a2f61
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4a2f6c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4a2f77
mov byte [eax], 0xf0
inc dword [edi]
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.004a2470
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x4a2fd4
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00489340
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.004a2d00
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x4a3016
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00489340
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4a3a90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esi + 0x424]
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], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4a3aed
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.0048e440
add esp, 8
cmp ebx, 0xffffffff
jne 0x4a3b11
push str.Error_accept__ing_server_connect
push edi
call fcn.00489340
add esp, 8
mov eax, 0x1e
jmp 0x4a3b83
push str.Connection_accepted_from_server_n
push edi
call fcn.00489260
push 1
push ebx
mov dword [esi + 0x55c], 0
mov dword [esi + 0x424], ebx
call fcn.004b3630
add esp, 0x10
mov dword [esi + 0x768], 1
cmp dword [edi + 0x628], 0
je 0x4a3b81
push 1
push edi
call fcn.00487160
mov ecx, dword [edi + 0x62c]
mov edx, dword [edi + 0x628]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.00487160
add esp, 0x1c
test ebx, ebx
je 0x4a3b81
call fcn.004a39f0
mov eax, 0x2a
jmp 0x4a3b83
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058ecc6
add esp, 0x88
ret
Function at 0x4a71a0
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
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x4a71da
push str.Couldnt_set_desired_mode
push edi
call fcn.00489340
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4a71f1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.00489260
add esp, 0xc
cmp ebp, 0x13
jne 0x4a7206
push ebx
call fcn.004a7130
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4a7217
call fcn.004a46d0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4a722a
mov eax, ebx
call fcn.004a7180
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4a7238
mov eax, ebx
call fcn.004a7190
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret