joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc760
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4cc778
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4cc78e
push 1
lea eax, [esp + 0xc]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4cc7a3
push dword [eax + 0x38]
lea eax, [esp + 0xc]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4cc7b3
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov al, byte [esp + 8]
cmp al, 0x21
je 0x4cc7f6
cmp al, 0x2c
je 0x4cc7e5
cmp al, 0x3b
mov eax, dword [esp + 0xc]
je 0x4cc7d8
mov dword [eax], 0
xor eax, eax
mov dword [esi + 0x40], 0x6b
pop esi
ret
mov dword [eax], 4
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 2
mov eax, 1
ret
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 3
mov eax, 1
ret
Function at 0x4cc810
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4cc828
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
push esi
push esi
call fcn.004cc9c0
add esp, 8
test eax, eax
je 0x4cc824
lea eax, [esi + 4]
push eax
push esi
call fcn.004cc9c0
add esp, 8
test eax, eax
je 0x4cc824
mov ecx, dword [esi + 0x48]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4cc867
push 3
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4cc878
push dword [ecx + 0x38]
lea eax, [esp + 0x10]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
je 0x4cc89b
push dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
call fcn.004cd270
add esp, 4
mov dword [esi + 0x14], 0
xor eax, eax
pop ebp
pop esi
ret
mov dl, byte [esp + 0xc]
movzx ecx, dl
mov eax, ecx
and ecx, 7
shr eax, 4
inc ecx
and eax, 7
inc eax
push ebx
mov dword [esi + 8], eax
mov bl, dl
movzx eax, byte [esp + 0x11]
shr bl, 3
mov dword [esi + 0xc], eax
and bl, 1
mov al, byte [esp + 0x12]
mov byte [esi + 0x10], al
push edi
test dl, dl
jns 0x4cc9a0
mov eax, 1
shl eax, cl
push 0
push eax
call fcn.004cd320
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4cc8f8
pop edi
pop ebx
pop ebp
mov dword [esi + 0x40], 0x6d
pop esi
ret
mov byte [eax + 8], bl
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
jle 0x4cc9a7
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4cc929
push 3
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4cc93a
push dword [ecx + 0x38]
lea eax, [esp + 0x18]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
jne 0x4cc980
mov eax, dword [esi + 0x14]
inc ebx
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x14]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x15]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x16]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x14]
cmp ebx, dword [eax]
jl 0x4cc910
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
ret
push dword [esi + 0x14]
call fcn.004cd270
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0x66
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
ret
mov dword [esi + 0x14], 0
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
ret

Function at 0x4cc9c0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4cc9de
push 2
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4cc9f3
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 2
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 2
je 0x4cca03
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov ax, word [esp + 8]
movzx ecx, ah
movzx eax, al
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], ecx
mov eax, 1
ret
Function at 0x4cca20
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push edi
push 0x4c
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4cca4a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4cca43
mov dword [eax], 0x6d
xor eax, eax
pop edi
add esp, 8
ret
push esi
push 0x4c
push 0
push edi
call sub.MSVCRT.dll_memset
push 0x614c
push 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x14], 0
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4cca99
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4cca87
mov dword [eax], 0x6d
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop edi
add esp, 8
ret
push 0x614c
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [edi + 0x48], esi
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 0x38], 0
mov dword [esi], 8
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x44], eax
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4ccae7
push 6
lea ecx, [esp + 0xc]
push ecx
push edi
call eax
add esp, 0xc
jmp 0x4ccafc
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 6
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 6
je 0x4ccb11
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ccb3d
mov dword [eax], 0x66
jmp 0x4ccb3d
push 3
lea eax, [esp + 0xc]
mov byte [esp + 0x12], 0
push eax
push str.GIFVER
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4ccb54
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ccb3d
mov dword [eax], 0x67
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
add esp, 8
xor eax, eax
pop esi
pop edi
add esp, 8
ret
push edi
call fcn.004cc810
add esp, 4
test eax, eax
jne 0x4ccb86
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4ccb7e
mov dword [eax], 0x68
pop esi
xor eax, eax
pop edi
add esp, 8
ret
mov dword [edi + 0x40], 0
cmp byte [esp + 0xb], 0x39
sete al
mov byte [esi + 0x6148], al
mov eax, edi
pop esi
pop edi
add esp, 8
ret

Function at 0x4ccdd0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4ccdef
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4cce04
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x4cce1a
movzx ecx, byte [esp + 0xc]
cmp ecx, 8
jle 0x4cce1f
mov dword [esi + 0x40], 0x66
pop edi
xor eax, eax
pop esi
ret
mov eax, 1
mov dword [edi + 8], ecx
shl eax, cl
inc ecx
mov dword [edi + 0xc], eax
inc eax
mov dword [edi + 0x10], eax
inc eax
mov dword [edi + 0x14], eax
mov eax, 1
shl eax, cl
mov dword [edi + 0x1c], eax
mov eax, 0x1002
mov dword [edi + 0x18], ecx
mov ecx, 0x1000
mov byte [edi + 0x44], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0x1002
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
add edi, 0x2144
rep stosd dword es:[edi], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x4d61c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebx, 0x1505
add ecx, esi
mov eax, ecx
push edi
xor edi, edi
sub eax, esi
cmp ecx, esi
sbb ebp, ebp
not ebp
and ebp, eax
jbe 0x4d6204
mov al, byte [esi]
push eax
call fcn.004e2190
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, ebp
jb 0x4d61e3
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x4d8f40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x52ede8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4d8f5a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x52ee04
push esi
call dword [sym.imp.MSVCRT.dll_strpbrk]
add esp, 8
test eax, eax
je 0x4d8fa3
test ebp, ebp
je 0x4d8f94
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4d8fc9
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d8fc9
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4d907f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d8fe6
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x9d42c0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d9075
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4d9075
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9018
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9030
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4d9040
test ebp, ebp
je 0x4d906c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x9d42c4]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x9d42c4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4d9210
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x22c
test byte [esp + 0x230], 2
je 0x4d925b
lea eax, [esp + 0x9c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4d924f
mov eax, dword [esp + 0x9c]
cmp al, 2
jne 0x4d9249
shr eax, 8
cmp al, 2
je 0x4d925b
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x22c
ret
call fcn.004f2bd0
test eax, eax
jne 0x4d9330
push 0x52edc8
call fcn.004d8f40
add esp, 4
mov dword [0x9d90d0], eax
test eax, eax
je 0x4d9293
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d9293
mov dword [0x9d90cc], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [esp + 4], 0x9c
mov dword [esp + 8], 6
mov dword [esp + 0xc], 0
push 3
push 2
push 0
push 0
mov dword [esp + 0x24], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
pop esi
test eax, eax
je 0x4d9327
push 0x9d9cd8
mov byte [0x9d9ce0], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x22c
ret
mov byte [0x9d9ce0], 0
xor eax, eax
add esp, 0x22c
ret

Function at 0x4d94b0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c8], 2
je fcn.004d9460
mov al, 1
ret

Function at 0x4d95f0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x5e0], 0
je 0x4d9634
push 1
push edi
call fcn.004da7f0
push dword [edi + 0x574]
mov eax, dword [edi + 0x5e0]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004da7f0
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
cmp eax, 2
ja 0x4d966d
push dword [edi + 0x570]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
lea eax, [eax + eax*2]
push 1
add eax, 0x52ee88
push 2
push eax
call esi
push dword [edi + 0x570]
push 1
push dword [esp + 0x30]
push dword [esp + 0x30]
call esi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4d98a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
ret
Function at 0x4d99d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push eax
push ebp
mov esi, dword [ebp + eax*4 + 0x1a4]
call fcn.004d9e80
add esp, 8
push 0
push dword [esp + 0xa0]
push dword [esp + 0xa0]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0xa0]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4d9a77
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4d9a44
pop edi
pop esi
pop ebp
mov dword [ebx], 0x51
xor eax, eax
pop ebx
add esp, 0x80
ret
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004f3790
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.004d9680
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xc54], edi
mov eax, esi
mov dword [ebx], 0x37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a4]
lea esi, [ebx + 0x1c8]
add esi, eax
mov eax, dword [ebx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4d9f36
cmp dword [ebx + ecx*4 + 0x1b8], 0x4d9900
jne 0x4d9f36
cmp dword [esi], 0
je 0x4d9ecc
test edi, edi
je 0x4d9f36
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004e1990
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d9f36
test al, 1
je 0x4d9f36
cmp dword [esi], 0
jne 0x4d9f1f
mov eax, dword [ebx]
mov eax, dword [eax + 0x8d0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x9d42c0]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4d9f1f
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4d9f36
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e07f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
push ebx
mov ebx, dword [esp + 0x190]
cmp dword [ebx + 0x90], 3
jne 0x4e09c8
cmp byte [ebx + 0x289], 0
push ebp
push esi
push edi
jne 0x4e09bc
cmp byte [ebx + 0x2a1], 0
jne 0x4e09bc
mov esi, dword [esp + 0x1a0]
lea eax, [esp + 0x10]
mov ebp, dword [ebx]
push eax
lea eax, [esp + 0x11c]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4e0884
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push esi
call fcn.004f3790
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.004d9680
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
push pe_nt_image_headers32
lea eax, [esp + 0x9c]
mov dword [esp + 0x18], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x9c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4e08ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push esi
call fcn.004f3790
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.004d9680
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x124]
push eax
call fcn.004dfc10
add esp, 0x10
test al, al
jne 0x4e094f
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push dword [edi]
call fcn.004f3790
push eax
push dword [esi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.004d9680
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xa4]
movsw word es:[edi], word [esi]
push eax
call fcn.004dfc10
add esp, 0x10
test al, al
jne 0x4e09bc
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push dword [edi]
call fcn.004f3790
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.004d9680
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
push ebx
call fcn.004e04d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
Function at 0x4e1320
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0xa9f], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4e136a
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004d9740
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0xa3c]
mov dword [esp + 0x10], 1
call fcn.004dfb90
push dword [esi + 0xa40]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.004dfb90
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4e13e1
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.004d9740
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4e13f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x88]
push esi
push 4
mov dword [esp + 8], 1
mov esi, dword [eax]
lea eax, [esp + 8]
push eax
push 1
push 6
push dword [esp + 0xa0]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4e1451
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f3790
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004d9740
add esp, 0x18
pop esi
add esp, 0x84
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004d9740
add esp, 8
pop esi
add esp, 0x84
ret
Function at 0x4ec180
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.0043d5d0
push dword [esp + 0x1004]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4ec1cd
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4ec1cd
lea eax, [esp]
push eax
call dword [0x9d42cc]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret
Function at 0x4f2c70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4f2e03
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4f2ded
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4f2cbf
lea ebx, [eax + 0xe]
jmp 0x4f2ccb
cmp eax, 0x17
jne 0x4f2d7a
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4f2d7a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4f2d7a
cmp eax, ebx
jb 0x4f2d7a
push 0x20
call dword [0x9d42c0]
mov esi, eax
add esp, 4
test esi, esi
je 0x4f2de2
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 ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x9d42c0]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4f2dd1
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4f2d65
push eax
call dword [0x9d42cc]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4f2db7
test ebp, ebp
jne 0x4f2d6b
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f2d76
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4f2cb2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4f2d99
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x4f2de9
push ebp
call fcn.004f2c30
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x9d42c4]
push esi
call dword [0x9d42c4]
add esp, 8
jmp 0x4f2d89
push esi
mov ebx, 8
call dword [0x9d42c4]
add esp, 4
jmp 0x4f2d89
mov ebx, 8
jmp 0x4f2d89
test ebp, ebp
jne 0x4f2df9
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret