joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479d80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
sub esp, 0x10
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0044c850
mov eax, dword [esi + 0x6f0]
test eax, eax
je 0x479e06
lea edi, [esp + 8]
call fcn.004797b0
mov eax, edi
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x479dda
mov ecx, dword [esi + 0x6f0]
mov edx, dword [ecx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x54
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x10]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x6f0]
push ecx
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4854a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x4854c2
cmp eax, esi
jge 0x4854ba
mov edx, edi
call fcn.00484db0
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor eax, eax
cmp dword [edi + 8], eax
jle 0x4854ea
lea ecx, [eax - 8]
lea esp, [esp]
mov dl, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], ecx
mov byte [esp + eax + 8], dl
inc eax
cmp dword [edi + 8], 0
jg 0x4854d0
cmp eax, 4
jge 0x485507
mov esi, dword [edi + 4]
mov edx, dword [edi]
nop
cmp edx, esi
jb 0x4854f8
xor cl, cl
jmp 0x4854fb
mov cl, byte [edx]
inc edx
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x4854f0
mov dword [edi], edx
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xb]
movzx edx, byte [esp + 0xa]
movzx esi, ah
movzx eax, al
shl esi, 8
add esi, eax
shl ecx, 8
mov eax, esi
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x485540
mov dword [0x635588], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [edi]
add ecx, esi
cmp ecx, dword [edi + 4]
jbe 0x485559
pop edi
mov dword [0x635588], 0x6104cc
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 0x10]
lea edx, [eax + esi]
cmp edx, dword [edi + 0x18]
jbe 0x485571
push esi
call fcn.00484eb0
add esp, 4
test eax, eax
je 0x48553a
push ebx
mov ebx, dword [edi]
push ebp
mov ebp, dword [edi + 0x10]
push esi
push ebx
push ebp
call fcn.00588160
add esp, 0xc
add ebx, esi
add ebp, esi
mov dword [edi + 0x10], ebp
pop ebp
mov dword [edi], ebx
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x48c070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b3bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
and dword [esp + 0x14], 0xfffffe00
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
push edi
push esi
mov dword [esp + 0x3c], 1
call fcn.0048c150
test al, al
jne 0x48c0e8
lea esi, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0048f400
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
mov eax, esi
call fcn.0048d0f0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
mov edx, eax
call fcn.0048f530
mov eax, esi
call fcn.0048d0f0
mov ecx, dword [eax]
mov eax, dword [edi + 4]
sub eax, dword [esi + 0x5c]
mov dword [ecx + 0x10], eax
mov eax, esi
call fcn.0048d0f0
mov ecx, dword [eax]
mov eax, dword [edi + 8]
sub eax, dword [esi + 0x5c]
lea esi, [esp + 0xc]
mov dword [ecx + 0x14], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0048f400
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x48c6d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5b0db8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edx, dword [esp + 0x8c]
mov eax, dword [edx + 8]
sub eax, dword [edx + 4]
mov edi, dword [esi + 0x14]
sub eax, 2
mov ebx, 1
cmp edi, eax
ja 0x48c740
cmp dword [esi + 0x18], eax
je 0x48c740
push ebx
push eax
mov ecx, esi
call fcn.004080c0
test al, al
je 0x48c739
cmp dword [esi + 0x18], 0x10
mov dword [esi + 0x14], edi
jb 0x48c732
mov eax, dword [esi + 4]
jmp 0x48c735
lea eax, [esi + 4]
mov byte [eax + edi], 0
mov edx, dword [esp + 0x8c]
mov ebp, dword [edx + 4]
mov ecx, dword [edx + 8]
sub ecx, ebx
add ebp, ebx
mov dword [esp + 0x18], ecx
cmp ebp, ecx
je 0x48c942
jmp 0x48c76b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
mov al, byte [ebp]
add ebp, ebx
mov byte [esp + 0x20], al
cmp al, 0x22
je 0x48c942
cmp al, 0x5c
jne 0x48c869
cmp ebp, ecx
je 0x48c886
mov al, byte [ebp]
movsx eax, al
add ebp, ebx
add eax, 0xffffffde
mov dword [esp + 0x14], ebp
cmp eax, 0x53
ja case.0x48c7ab.35
movzx eax, byte [eax + 0x48c984]
jmp dword [eax*4 + 0x48c95c]
push 0x22
jmp 0x48c86e
push 0x2f
jmp 0x48c86e
push 0x5c
jmp 0x48c86e
push 8
jmp 0x48c86e
push 0xc
jmp 0x48c86e
push 0xa
jmp 0x48c86e
push 0xd
jmp 0x48c86e
push 9
jmp 0x48c86e
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x90]
push ecx
lea ecx, [esp + 0x20]
mov edi, edx
call fcn.0048c9e0
test al, al
je 0x48c8cc
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x44]
call fcn.0048aa30
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [esp + 0x8c], ebx
call fcn.00407dc0
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x48c84e
mov eax, dword [esp + 0x44]
push eax
call fcn.005759d0
add esp, 4
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jmp 0x48c877
mov ecx, dword [esp + 0x20]
push ecx
mov eax, ebx
mov edi, esi
call fcn.00426a20
cmp ebp, dword [esp + 0x18]
jne 0x48c760
jmp 0x48c942
push 0x6108fc
lea ecx, [esp + 0x60]
call fcn.00407aa0
mov edx, dword [esp + 0x8c]
push ebp
push edx
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x64]
mov dword [esp + 0x88], 0
call fcn.0048ccc0
cmp dword [esp + 0x74], 0x10
mov bl, al
jb 0x48c942
mov eax, dword [esp + 0x60]
push eax
jmp 0x48c93a
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x74
ret 8
push 0x1d
push 0x61091c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00407990
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
push ebp
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], 2
call fcn.0048ccc0
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0x48c942
mov edx, dword [esp + 0x28]
push edx
call fcn.005759d0
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x74
ret 8
Function at 0x491460
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4914b2
mov eax, dword [esp]
cmp al, 2
jne 0x4914ac
shr eax, 8
cmp al, 2
jne 0x4914ac
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005832f8
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.005832f8
add esp, 0x194
ret
Function at 0x49d190
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 0x49d1c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x49d300
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x49d31b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x49d34f
cmp eax, 2
jg 0x49d34f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5b8728]
push 2
push edx
call fcn.00583831
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.00583831
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x49d6dd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x49d6b4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004921b0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0049d4e0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8614], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49f540
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x470], 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 0x49f57e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0049d450
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [esp + 0xc], 1
call fcn.004a6ab0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.004a6ab0
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 0x49f5f7
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.0049d450
add esp, 0x10
add esp, 0x14
ret
Function at 0x49fbf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x49fd65
cmp dword [ebp + 0x1f8], 0
push ebx
push esi
jne 0x49fd5a
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x49fc7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004921b0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0049d4e0
add esp, 0x18
jmp 0x49fd63
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.00587fb0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49fcc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004921b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0049d4e0
add esp, 0x18
jmp 0x49fd63
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.0049fbb0
test eax, eax
jne 0x49fd0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004921b0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0049d4e0
add esp, 0x18
jmp 0x49fd63
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.0049fbb0
test eax, eax
jne 0x49fd5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004921b0
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0049d4e0
add esp, 0x18
jmp 0x49fd63
push ebp
call fcn.0049fb50
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.005832f8
add esp, 0x10c
ret

Function at 0x49fd80
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x49fdc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004921b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0049d450
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0049d450
add esp, 8
pop esi
pop ecx
ret
Function at 0x49fde0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x63081c]
push esi
mov dword [esp + 4], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
test eax, eax
jne 0x49fea4
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00587fb0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x20], 0x9c
mov dword [esp + 0x24], 6
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 edx
push eax
push 0x33
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x49fe98
mov dword [0x63081c], 2
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005832f8
add esp, 0xac
ret
mov dword [0x63081c], 1
jmp 0x49fea9
cmp eax, 2
je 0x49fef1
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x49fed9
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x49fef1
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xac]
pop esi
xor ecx, esp
call fcn.005832f8
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5d8]
test esi, esi
je 0x49ff89
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x49ff4f
cmp dword [edi + 0x40], eax
je 0x49ff89
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x49ff62
mov eax, dword [edi + 0x40]
push 0x49ff10
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.004be8d0
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x49ff92
mov dword [edi + 0x5d8], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49ff9c
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x49ffc1
push esi
call fcn.00493710
add esp, 4
test eax, eax
jne 0x49ffd5
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49ff89
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x4a1c30
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x4a1de1
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4a1dbf
push esi
jmp 0x4a1c80
cmp dword [edi + 4], 2
jne 0x4a1d38
cmp dword [edi + 0x18], ebx
je 0x4a1d38
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x4a1d38
cmp eax, 0x10
jb 0x4a1d38
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a1d45
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 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4a1d4f
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x4a1d25
push eax
call dword [0x62300c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4a1d63
cmp dword [esp + 0x10], ebx
jne 0x4a1d2f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x4a1d36
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4a1c80
jmp 0x4a1d7f
mov dword [esp + 0x14], 8
jmp 0x4a1d7f
push esi
mov dword [esp + 0x18], 8
call dword [0x623004]
add esp, 4
jmp 0x4a1d7f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x623004]
push esi
call dword [0x623004]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x4a1d8f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x4a1db9
mov eax, dword [esp + 0xc]
push eax
call fcn.004a1bf0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x4a1dd2
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4a2120
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.005847e1
add esp, 0x18
test eax, eax
je 0x4a2143
cmp eax, 0xffffffff
jne 0x4a2145
xor eax, eax
ret
Function at 0x4a2280
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4a228f
jmp dword [ecx*4 + 0x4a22e4]
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 0x4a6ae0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.004a6ad0
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.00596328
Function at 0x4ae2c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x5b892c
push ecx
call fcn.0049d450
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004ad480
test eax, eax
jne 0x4ae2f0
mov eax, esi
jmp fcn.004ad910
ret
Function at 0x4ae700
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x420]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
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 0x4ae78f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00588160
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4ae7ca
push str.Received_too_short_packet
push ebx
call fcn.0049d4e0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005832f8
add esp, 0x88
ret
mov eax, edi
call fcn.004ad620
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4ae7e3
jmp dword [eax*4 + 0x4ae8cc]
cmp edx, 4
jle case.0x4ae7e3.4
mov eax, edi
call fcn.004ad630
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x4ae7e3.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.0049d9a0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4ae836
mov ecx, 5
mov eax, esi
call fcn.004ae680
mov eax, edi
jmp 0x4ae7b1
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
push ebx
call fcn.004a5da0
jmp 0x4ae8a2
mov eax, edi
call fcn.004ad630
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x5b892c
push ebx
mov dword [esi + 8], edx
call fcn.0049d450
jmp 0x4ae8a2
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004ad6c0
add esp, 0xc
test eax, eax
je case.0x4ae7e3.4
jmp 0x4ae7b1
push str.Internal_error:_Unexpected_packet
push 0x6048dc
push ebx
call fcn.0049d4e0
add esp, 0xc
push ebp
call fcn.004a5e80
add esp, 4
test eax, eax
je 0x4ae7af
mov ecx, 5
mov eax, esi
call fcn.004ae680
mov eax, 0x2a
jmp 0x4ae7b1

Function at 0x4b0120
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x62c930]
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 0x4b0155
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0049d4e0
add esp, 0xc
jmp 0x4b018e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x4b0180
shr eax, 8
test al, al
jne 0x4b0180
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005832f8
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0049d4e0
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.005832f8
add esp, 0x194
ret
Function at 0x4b0320
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x154]
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 0x4b0364
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0049d4e0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004b0220
add esp, 4
pop esi
pop ecx
ret