joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e20c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x49e231
cmp eax, esi
jge 0x49e229
mov eax, edi
call fcn.0049dc9a
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor ecx, ecx
cmp dword [edi + 8], ecx
jle 0x49e253
mov al, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [edi + 8], 0
jg 0x49e238
cmp ecx, 4
jge 0x49e26f
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x49e260
xor dl, dl
jmp 0x49e265
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x49e256
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x49e2a1
mov eax, str.zlib_corrupt
call fcn.0049980b
jmp 0x49e2dd
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x49e2b1
mov eax, str.read_past_buffer
jmp 0x49e29a
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x49e2c7
push esi
call fcn.0049dd69
pop ecx
test eax, eax
je 0x49e2dd
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.00422ff0
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4a394d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
movsd dword es:[edi], dword [esi]
call fcn.0048a2a2
mov ecx, dword [ebx + 0x6f0]
test ecx, ecx
je 0x4a39c7
lea eax, [ebp - 0x10]
push eax
call fcn.004a379e
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6f0]
test eax, eax
je 0x4a39a3
push 0
call fcn.0048c460
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4a39c7
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 0x54
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
call fcn.0048c460
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4a39ce
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048a632
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x4a3a40
lea eax, [ebp - 0x10]
push eax
call fcn.004a379e
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6f0]
test eax, eax
je 0x4a3a1c
push 0
call fcn.0048c460
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4a3a40
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 0x54
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
call fcn.0048c460
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
leave
ret 0xc
Function at 0x4bc790
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 0x4bc780
movzx eax, byte [esi]
push eax
call fcn.004be270
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 0x4bc761
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x4bc7c1
push esi
call fcn.004c4250
add esp, 4
test eax, eax
jne 0x4bc7c1
lea eax, [esp + 4]
push eax
call fcn.004bc6f0
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x4bc750
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4be8d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.004be8b0
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.004298de
Function at 0x4c0580
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4c05bf
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 8
ret

Function at 0x4c4200
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4c4212
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0xec]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4c422f
xor esi, esi
xor eax, eax
test esi, esi
setg al
pop esi
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
setg al
pop esi
ret
Function at 0x4c4b30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x814], 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 0x4c4b6e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.004c81e0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x72c]
push edx
mov dword [esp + 0xc], 1
call fcn.004be8a0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x730]
push eax
call fcn.004be8a0
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 0x4c4be7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.004c81e0
add esp, 0x10
add esp, 0x14
ret
Function at 0x4c5590
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x19c]
push esi
mov esi, dword [esp + 0x194]
push edi
mov edi, dword [esp + 0x1a0]
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.00422f70
mov eax, dword [esp + 0x1a8]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4c5618
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x94]
mov edi, eax
push ecx
push edi
call fcn.004aa910
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4c565c
mov edx, dword [esp + 0xc]
push ebx
push edi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004c5390
add esp, 0x10
test eax, eax
jne 0x4c5665
call fcn.0041d477
mov edi, eax
call fcn.0041d477
mov edx, dword [edi]
push 0x100
lea ecx, [esp + 0x94]
push ecx
push edx
mov ebx, eax
call fcn.004aa910
push eax
mov eax, dword [ebx]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.004c8260
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418878
add esp, 0x188
ret

Function at 0x4c5870
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x104], eax
push 4
lea eax, [esp + 4]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4c58c7
push 0x100
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004aa910
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.004c81e0
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00418878
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x19c], 0
je 0x4c599d
push eax
call fcn.004bbcc0
add esp, 4
test eax, eax
jne 0x4c59bd
xor eax, eax
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x4c599a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4c59bd
ret
mov eax, 1
ret
Function at 0x4c8080
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 0x4c80c3
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 0x4c8140
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x7e0], edi
je 0x4c81d5
cmp dword [esi + 0x1d0], edi
je 0x4c8195
push 1
push esi
call fcn.004af930
mov eax, dword [esi + 0x16c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x1d0]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.004af930
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4c81d5
cmp eax, 2
jg 0x4c81d5
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x5d65e0]
push 2
push eax
call fcn.0041a937
mov ecx, dword [esi + 0x168]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.0041a937
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov edx, dword [eax + 0x330]
push ebx
mov ebx, dword [eax + ecx*4 + 0x148]
push esi
lea esi, [ecx + 0x17]
shl esi, 4
add esi, eax
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x44], 3
je 0x4c869d
cmp dword [eax + ecx*4 + 0x160], 0x4c8310
jne 0x4c869d
cmp dword [esi], 0
je 0x4c862e
test edi, edi
je 0x4c869d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004c8bc0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4c869d
test al, 1
je 0x4c869d
cmp dword [esi], 0
jne 0x4c8686
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x550]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6434c8]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x4c8675
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4c869d
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4c86b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x114]
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + ecx*4 + 0x148]
push edi
mov edi, dword [esp + 0x128]
push esi
call fcn.004c85f0
add esp, 4
test eax, eax
je 0x4c8706
mov dword [edi], 0x1b
or eax, 0xffffffff
jmp 0x4c876c
mov eax, dword [esp + 0x124]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x4c876a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4c873f
xor ebx, ebx
mov dword [edi], 0x51
jmp 0x4c876a
push 0x100
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.004aa910
push eax
push str.Send_failure:__s
push esi
call fcn.004c8260
mov dword [esi + 0xa94], ebp
add esp, 0x18
mov dword [edi], 0x37
mov eax, ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418878
add esp, 0x104
ret

Function at 0x4c8820
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebp, ebp
cmp edi, ebp
je 0x4c8834
cmp dword [edi], ebp
jne 0x4c8865
mov esi, dword [esp + 0x24]
cmp esi, ebp
je 0x4c8840
cmp dword [esi], ebp
jne 0x4c8869
mov edx, dword [esp + 0x28]
cmp edx, ebp
je 0x4c884c
cmp dword [edx], ebp
jne 0x4c886d
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.004c87d0
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
cmp eax, ebp
jg 0x4c8897
jl 0x4c8887
cmp ecx, ebp
jae 0x4c888d
mov dword [esp + 0xc], ebp
jmp 0x4c88f0
cmp eax, ebp
jl 0x4c88e8
jg 0x4c8897
cmp ecx, ebp
jbe 0x4c88e8
push ebx
push ebp
push 0x3e8
push eax
push ecx
call fcn.00433e20
push ebp
push 0x3e8
push ebx
push ecx
mov edi, eax
mov esi, edx
call fcn.0041f0d0
cmp esi, ebp
mov dword [esp + 0x18], edx
pop ebx
jl 0x4c88d2
jg 0x4c88c9
cmp edi, 0x7fffffff
jbe 0x4c88d2
mov edi, accept
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x4c88f0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
cmp edx, ebp
je 0x4c88f8
cmp dword [edx], ebp
jne 0x4c88fa
xor edx, edx
cmp esi, ebp
je 0x4c8906
cmp dword [esi], ebp
je 0x4c8906
mov ecx, esi
jmp 0x4c8908
xor ecx, ecx
cmp edi, ebp
je 0x4c8914
cmp dword [edi], ebp
je 0x4c8914
mov eax, edi
jmp 0x4c8916
xor eax, eax
mov esi, dword [esp + 0xc]
push esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
inc ecx
push ecx
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4d3e50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x627024
push eax
call fcn.004c81e0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004d2ea0
test eax, eax
jne 0x4d3e7e
mov ecx, esi
jmp fcn.004d32d0
ret
Function at 0x4d42f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x3a8]
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x80
mov eax, dword [ebx + 0x13c]
mov ecx, dword [ebx + 0x148]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebx + 0x14]
push 0
add eax, 4
lea esi, [ebx + 0x148]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [ebx + 0x130], 0
mov dword [ebx + 0x134], eax
jne 0x4d437f
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [ebx + 0xb0]
push edx
call fcn.00422ff0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebx + 0x130], eax
mov edi, dword [ebx + 0x134]
cmp edi, 4
jge 0x4d43ba
push str.Received_too_short_packet
push ebp
call fcn.004c8260
add esp, 8
mov dword [ebx + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418878
add esp, 0x8c
ret
mov eax, esi
call fcn.004d2fe0
movzx eax, ax
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4d43d3
jmp dword [eax*4 + 0x4d44dc]
cmp edi, 4
jle case.0x4d43d3.4
mov eax, esi
call fcn.004d2ff0
movzx ecx, word [ebx + 0x144]
inc ecx
cmp cx, ax
jne case.0x4d43d3.4
mov edx, dword [esi]
add edi, 0xfffffffc
push edi
add edx, 4
push edx
push 1
push ebp
call fcn.004c85c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d4429
mov ecx, 5
mov eax, ebx
call fcn.004d4270
mov eax, esi
jmp 0x4d43a1
mov eax, dword [ebx + 0x134]
sub eax, 4
cdq
add dword [ebp + 0x90], eax
mov ecx, dword [ebp + 0x90]
adc dword [ebp + 0x94], edx
mov eax, dword [ebp + 0x94]
push eax
push ecx
push ebp
call fcn.004c1e40
jmp 0x4d44b1
mov edx, dword [esi]
mov eax, esi
add edx, 4
add edi, 0xfffffffc
call fcn.004d2ff0
movzx eax, ax
mov esi, edx
mov dword [ebx + 8], eax
call fcn.004d3000
cmp eax, edi
jae case.0x4d43d3.4
mov ecx, esi
push ecx
push str.TFTP_error:__s
push ebp
call fcn.004c81e0
jmp 0x4d44b1
mov edx, dword [esi]
add edi, 0xfffffffe
push edi
add edx, 2
push edx
push ebx
call fcn.004d3080
add esp, 0xc
test eax, eax
je case.0x4d43d3.4
jmp 0x4d43a1
push str.Internal_error:_Unexpected_packet
push 0x627024
push ebp
call fcn.004c8260
add esp, 0xc
push ebp
call fcn.004c2780
add esp, 4
test eax, eax
je 0x4d439f
mov ecx, 5
mov eax, ebx
call fcn.004d4270
mov eax, 0x2a
jmp 0x4d43a1

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

Disassembly:
push ecx
mov cl, byte [esp + 8]
mov eax, dword [edi + 0xc]
push 0
push 3
lea edx, [esp + 8]
mov byte [esp + 8], 0xff
mov byte [esp + 9], cl
mov byte [esp + 0xa], bl
mov eax, dword [eax + 0x148]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4d48b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004c8260
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.004d4770
add esp, 4
pop esi
pop ecx
ret
Function at 0x4d5670
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [eax + 0x134]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jne 0x4d57c7
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4d56a8
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d56b3
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d56be
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 0x4d56f0
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d56fe
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d5708
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d5712
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d571d
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d5728
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x18]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
mov dword [ebp + 0x1eb8], eax
push ecx
lea ecx, [ebp + 0x1cb6]
mov eax, 0x3e
mov dword [edi], ebx
call fcn.004d4bf0
mov edi, dword [sym.imp.WS2_32.dll_send]
add esp, 4
push 0
push 3
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x148]
push edx
call edi
test eax, eax
jge 0x4d5782
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004c8260
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.004d54b0
mov ecx, dword [ebx + 0x148]
add esp, 8
push 0
push 2
add ebp, 0x1cbb
push ebp
push ecx
call edi
test eax, eax
jge 0x4d57c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004c8260
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4daef0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [edi + 0xc]
mov ebp, dword [esi + 0x14c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4daf4b
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
push edi
call fcn.004c59d0
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x4daf86
push str.Error_accept__ing_server_connect
push edi
call fcn.004c8260
add esp, 8
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00418878
add esp, 0x88
ret
push str.Connection_accepted_from_server
push edi
call fcn.004c81e0
push 1
push ebx
mov dword [esi + 0x2b4], 0
mov dword [esi + 0x14c], ebx
call fcn.004eb240
add esp, 0x10
mov dword [esi + 0x300], 1
cmp dword [edi + 0x1d8], 0
je 0x4db010
push 1
push edi
call fcn.004af930
mov ecx, dword [edi + 0x1dc]
mov edx, dword [edi + 0x1d8]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.004af930
add esp, 0x1c
test ebx, ebx
je 0x4db010
push edi
call fcn.004dae50
add esp, 4
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00418878
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00418878
add esp, 0x88
ret
Function at 0x4de730
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov ebx, dword [edi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
cmp eax, 2
je 0x4de76b
push str.Couldnt_set_desired_mode
push edi
call fcn.004c8260
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4de782
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push edi
call fcn.004c81e0
add esp, 0xc
cmp ebp, 0x13
jne 0x4de798
push ebx
push edi
call fcn.004de6c0
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4de7a9
call fcn.004dbbb0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4de7bc
mov eax, edi
call fcn.004de710
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4de7ca
mov eax, edi
call fcn.004de720
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4e1c20
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 [0x6434d0]
mov edi, eax
add esp, 8
test edi, edi
je 0x4e1be8
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 0x4e1c00
cmp esi, ebx
je 0x4e1c00
cmp esi, 0x8000
ja 0x4e1c00
cmp esi, ebx
jb 0x4e1bf9
push esi
push edi
call dword [0x6434d0]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e1bb0
push ebp
call dword [0x6434cc]
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 [0x6434cc]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x4e1b90