joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4966e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
xor eax, eax
test dword [edx + 0x18], 0x80000
mov dword [ebp - 4], eax
je 0x49682b
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x496746
lea esp, [esp]
mov eax, dword [edi + 0x14]
test eax, eax
jle 0x49673c
lea edx, [edi + 0x24]
mov esi, eax
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x49672c
or eax, 0xffffffff
jmp 0x496733
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 8
dec esi
jne 0x496720
mov edi, dword [edi + 4]
test edi, edi
jne 0x496710
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
mov eax, esi
test esi, esi
jne 0x496755
xor edi, edi
mov dword [ebp - 8], edi
jmp 0x496772
cmp byte [esi], 0
je 0x496766
lea ebx, [ebx]
inc eax
cmp byte [eax], 0
jne 0x496760
sub eax, esi
and eax, 0x3fffffff
mov edi, eax
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ecx + 0x44]
add ebx, 0x38
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], ebx
je 0x4967b7
xor eax, eax
mov edx, edi
mov ecx, esi
test edi, edi
jle 0x4967b1
lea esp, [esp]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x548ae0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x496790
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [ebx]
jmp 0x4967b9
xor edx, edx
push edi
push esi
mov eax, ebx
call fcn.004478c0
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x496825
mov edi, dword [eax + 8]
cmp edi, ebx
je 0x496825
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ecx
push edx
xor eax, eax
mov dword [ebp - 8], ebx
call fcn.004949c0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
je 0x49681e
movzx ecx, word [eax + 0x32]
cmp ecx, ebx
jle 0x49681e
mov edx, dword [eax + 4]
mov esi, ecx
movzx ecx, word [edx]
cmp cx, 0x1f
jle 0x49680e
or eax, 0xffffffff
jmp 0x496815
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 2
dec esi
jne 0x496800
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x4967d2
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x496830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
push esi
jne 0x49685f
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00495cf0
test eax, eax
jne 0x496855
cmp dword [esi + 0x10], eax
jne 0x496855
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x4968b6
jmp 0x496870
mov esi, dword [edi + 0x14]
xor edx, edx
test esi, esi
jle 0x4968ac
lea ecx, [edi + 0x24]
lea esp, [esp]
mov eax, dword [ecx]
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + eax*4], 0
jge 0x49696a
mov ebx, dword [ebp + 8]
movsx ebx, word [ebx + 0x24]
cmp eax, ebx
jne 0x4968a4
cmp dword [ebp + 0x10], 0
jne 0x49696a
inc edx
add ecx, 8
cmp edx, esi
jl 0x496880
mov edi, dword [edi + 4]
test edi, edi
jne 0x496870
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
mov eax, esi
test esi, esi
jne 0x4968c5
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x4968e2
cmp byte [esi], 0
je 0x4968d6
lea ebx, [ebx]
inc eax
cmp byte [eax], 0
jne 0x4968d0
sub eax, esi
and eax, 0x3fffffff
mov edi, eax
mov dword [ebp - 4], eax
mov ebx, dword [ecx + 0x44]
add ebx, 0x38
cmp dword [ebx + 0xc], 0
mov dword [ebp - 8], ebx
je 0x496927
xor eax, eax
mov edx, edi
mov ecx, esi
test edi, edi
jle 0x496921
jmp 0x496900
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x548ae0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x496900
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
xor edx, edx
div dword [ebx]
jmp 0x496929
xor edx, edx
push edi
push esi
mov eax, ebx
call fcn.004478c0
add esp, 8
test eax, eax
je 0x496961
mov esi, dword [eax + 8]
test esi, esi
je 0x496961
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov eax, esi
call fcn.00496000
add esp, 0xc
test eax, eax
jne 0x49696a
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x496940
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b1b01
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [ebp + 8]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x4b5540
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x56adc0]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b5595
mov eax, dword [esp]
cmp al, 2
jne 0x4b558f
shr eax, 8
cmp al, 2
jne 0x4b558f
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x4b7240
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4b7262
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4b7256
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4b7292
cmp dword [esi + 8], 0
jne 0x4b7285
mov ecx, dword [eax + 8]
push 0x550d58
push ecx
call fcn.00528da3
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4b7285
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0052910a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4b72b4
mov eax, dword [esi + 8]
test eax, eax
je 0x4b72ae
push eax
call fcn.004f8dd9
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret

Function at 0x4bf6c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x454], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4bf713
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004c1df0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x458]
mov dword [ebp - 0x10], 1
call fcn.004cc240
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x45c]
call fcn.004cc240
imul eax, eax, 0x3e8
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4bf77d
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.004c1df0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x4bfda0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
cmp dword [esi + 0x1bc], 0
mov ebx, dword [esi]
push edi
mov edi, ecx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], ebx
jne 0x4bff4e
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x88]
push ecx
push edi
mov dword [ebp - 0x110], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4bfe2a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
call fcn.004e1010
add esp, 4
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004c1e70
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push edi
mov dword [ebp - 0x110], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4bfe7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
call fcn.004e1010
add esp, 4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004c1e70
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xa6]
lea ebx, [esi + 0xd4]
lea edi, [ebp - 0x88]
mov dword [ebp - 0x118], eax
call fcn.004bfd50
test eax, eax
jne 0x4bfed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004e1010
mov ecx, dword [ebp - 0x114]
add esp, 4
push eax
push edi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004c1e70
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10c]
lea edi, [esi + 0x48]
mov esi, dword [ebp - 0x118]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x108]
add eax, 0xd8
lea edi, [ebp - 0x108]
call fcn.004bfd50
test eax, eax
jne 0x4bff48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10c]
mov edi, eax
push edx
call fcn.004e1010
add esp, 4
push eax
mov eax, dword [ebp - 0x114]
push edi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004c1e70
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10c]
mov eax, esi
call fcn.004bfd00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x4c02c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 4
lea ecx, [ebp - 4]
push ecx
mov edi, eax
mov esi, dword [edi]
mov eax, dword [esi + 0x354]
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4c0310
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, eax
call fcn.004e1010
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004c1df0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004c1df0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c0330
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x571d70], 0
mov dword [ebp - 0x9c], 0x4020
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 4
jne 0x4c03c6
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004fbb00
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
mov dword [0x571d70], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4c03c6
cmp dword [ebp - 0x94], 6
jb 0x4c03c6
mov dword [0x571d70], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
cmp dword [0x571d70], 2
je 0x4c041a
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4c0400
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jg 0x4c041a
push 4
lea edx, [ebp - 0x9c]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x4c0810
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebx + 0x5a0]
test edi, edi
je 0x4c084e
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x4c084e
mov ecx, dword [eax + 0x30]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0
call fcn.004c85f0
cmp dword [ebp - 0xc], 0
jne 0x4c0857
mov dword [ebx + 0x5a0], 0
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c0860
mov dword [eax], edi
cmp dword [edi + 0x168], 0
mov esi, dword [edi + 0x140]
jne 0x4c084e
push 2
push 1
lea eax, [ebp - 5]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4c084e
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c2040
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x140]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4c20bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4c2094
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ecx], 0x51
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.004e1010
mov edx, dword [esi]
add esp, 4
push eax
push str.Send_failure:__s
push edx
call fcn.004c1e70
mov eax, dword [esi]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x85dc], edi
add esp, 0xc
mov dword [ecx], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4c238a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x4c24c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4c24db
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x4c250f
cmp eax, 2
jg 0x4c250f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x542d6c]
push 2
push edx
call fcn.004f8c8f
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.004f8c8f
add esp, 0x20
xor eax, eax
ret
Function at 0x4c7fa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
cmp eax, 0xffffffff
jne 0x4c7fb4
or eax, eax
jmp 0x4c7fbb
mov eax, dword [edi + eax*4 + 0x140]
mov dword [edi + 0x238], eax
cmp ecx, 0xffffffff
jne 0x4c7fca
or eax, ecx
jmp 0x4c7fd1
mov eax, dword [edi + ecx*4 + 0x140]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x23c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x58], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esi + 0x120], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x68], ebx
test edx, edx
jne 0x4c8015
mov dword [esi + 0x98], edx
test eax, eax
jl 0x4c8015
jg 0x4c8009
test ecx, ecx
je 0x4c8015
push eax
push ecx
mov eax, esi
call fcn.004cc7d0
add esp, 8
cmp dword [esi + 0x120], 0
jne 0x4c8027
cmp dword [esi + 0x314], 0
jne 0x4c80a1
or eax, 0xffffffff
mov edx, 1
cmp dword [edi + 0x238], eax
je 0x4c803d
or dword [esi + 0xf8], edx
cmp dword [edi + 0x23c], eax
je 0x4c80a1
mov eax, dword [esi + 0x8694]
mov ecx, 2
test eax, eax
je 0x4c809b
mov edi, dword [edi + 0x22c]
test byte [edi + 0x3c], dl
je 0x4c8091
mov edi, dword [esi + 0x128]
cmp dword [edi + 0x58], ecx
jne 0x4c8091
mov dword [esi + 0xd4], edx
call fcn.004c2720
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], edx
mov eax, 0x410
mov ecx, esi
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.004b96e0
test eax, eax
je 0x4c809b
mov dword [esi + 0xd4], ecx
or dword [esi + 0xf8], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d2410
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x3e0]
push edi
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4d24a4
mov edx, dword [ebp - 0x90]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004fb720
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4d24d7
push str.Received_too_short_packet
push ebx
call fcn.004c1e70
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.004d1430
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4d24f4
jmp dword [eax*4 + 0x4d2624]
cmp edx, 4
jle case.0x4d24f4.4
lea eax, [esi + 0x15c]
call fcn.004d1440
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x4d24f4.4
mov eax, dword [ebp - 0x94]
lea ecx, [edx - 4]
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
call fcn.004c21f0
mov edi, eax
add esp, 8
test edi, edi
je 0x4d255f
mov ecx, 5
mov eax, esi
call fcn.004d2160
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
mov ecx, dword [ebx + 0x70]
adc dword [ebx + 0x74], edx
mov eax, dword [ebx + 0x74]
push eax
push ecx
mov eax, ebx
call fcn.004cc790
add esp, 8
jmp case.0x4d24f4.4
lea eax, [esi + 0x15c]
call fcn.004d1440
movzx edx, ax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 0x551fdc
push ebx
mov dword [esi + 8], edx
call fcn.004c1df0
jmp 0x4d25e7
mov ecx, dword [esi + 0x15c]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004d14d0
add esp, 0xc
test eax, eax
je case.0x4d24f4.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x54b538
push ebx
call fcn.004c1e70
add esp, 0xc
mov edx, dword [ebp - 0x94]
push edx
call fcn.004cc850
add esp, 4
test eax, eax
je 0x4d24c4
mov ecx, 5
mov eax, esi
call fcn.004d2160
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x4d75c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi]
push ebx
push esi
mov esi, dword [edi + 0x144]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4d7612
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov eax, edi
call fcn.004c0890
cmp ebx, 0xffffffff
jne 0x4d7644
mov edx, dword [ebp - 0x1c]
push str.Error_accept__ing_server_connect
push edx
call fcn.004c1e70
add esp, 8
mov eax, 0x1e
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
push str.Connection_accepted_from_server_n
push esi
call fcn.004c1df0
push 1
mov edx, ebx
mov dword [edi + 0x144], ebx
call fcn.004e0750
mov dword [edi + 0x154], 1
mov eax, dword [esi + 0x1b0]
add esp, 0xc
test eax, eax
je 0x4d76b3
mov ecx, dword [esi + 0x1b4]
push 1
push ebx
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x4d76b3
mov esi, ebx
mov eax, edi
call fcn.004c0890
mov dword [edi + 0x144], 0xffffffff
mov eax, 0x2a
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x4d9670
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
mov ebx, dword [edi]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x4d96a6
push str.Couldnt_set_desired_mode
push ebx
call fcn.004c1e70
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp ecx, 0xc8
je 0x4d96bd
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.004c1df0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x4d96d5
push edi
call fcn.004d87d0
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x14
jne 0x4d96ea
push edi
call fcn.004d8830
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x15
jne 0x4d96fd
mov eax, edi
call fcn.004d8950
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x16
jne 0x4d970b
mov eax, edi
call fcn.004d8960
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4dbfe0
Capabilities:
Parse pe header

Disassembly:
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4dbfeb
jmp dword [ecx*4 + 0x4dc040]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x4dc1a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4dc1e8
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004c1e70
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x4dc20f
shr eax, 8
test al, al
jne 0x4dc20f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004c1e70
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.004f6bad
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x140]
push ebx
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [ebp - 4]
mov ebx, eax
mov al, byte [ebp + 8]
push ecx
push edx
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], al
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4dc435
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004c1e70
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.004dc2f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret