joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fad50
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ac4c8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov edx, eax
or edx, ecx
je 0x4fad96
mov ebp, dword [edi + 0x38]
mov ebx, dword [edi + 0x3c]
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
sub eax, ebp
sbb ecx, ebx
sub eax, esi
sbb ecx, edx
mov ebp, eax
mov dword [esp + 0x34], ecx
jmp 0x4fada3
mov ebp, 0x2da0
mov dword [esp + 0x34], 0
mov ecx, dword [edi + 0x80]
push 0
push 0
lea eax, [esp + 0x18]
mov edx, dword [ecx + 0x30]
push 0
push eax
push edx
call fcn.0056d0ac
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4fade6
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fadea
mov ecx, 1
jmp 0x4fadec
mov eax, dword [esp + 0x20]
xor ecx, ecx
or esi, 0xffffffff
or ebx, 0xffffffff
test ecx, ecx
je 0x4fae1a
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x18]
push ecx
push edx
call eax
test eax, eax
je 0x4fae4d
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
jmp 0x4fae4d
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4fae4d
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
imul esi, dword [esp + 0x20]
xor ebx, ebx
mov edx, dword [esp + 0x34]
push 0
push 0xa
push edx
push ebp
call fcn.0056e3a0
add eax, ebp
mov ebp, dword [esp + 0x34]
adc edx, ebp
cmp ebx, edx
jg 0x4faeef
jl 0x4fae72
cmp esi, eax
ja 0x4faeef
and esi, ebx
cmp esi, 0xffffffff
je 0x4faeef
mov eax, dword [0x65ec1c]
mov dword [esp + 0x14], eax
mov edx, dword [0x66470c]
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x4c], 0
call fcn.0058148b
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x50030
push str.Internet_Download_Manager
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Not_enough_disk_space_to_store_files_chunks__canceling_download._n
mov ecx, edi
call fcn.004f8a80
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.005886c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x4fc0a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, ecx
mov byte [eax], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
sub eax, 4
push 0
push edx
mov dword [esp + 0x18], eax
push eax
mov eax, dword [edi + 4]
sbb ecx, 0
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4fc0ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x4fc1f4
mov eax, dword [edi + 4]
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push eax
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fc253
cmp dword [esp + 0x2c], 4
jne 0x4fc253
lea ecx, [esp + 0x18]
push ecx
call fcn.005309f0
mov ebx, eax
add esp, 4
test ebx, ebx
jbe 0x4fc253
mov eax, 0xfffffffc
xor edx, edx
sub eax, ebx
mov ecx, 0xffffffff
sbb ecx, edx
mov edx, dword [esi]
add edx, eax
mov dword [esi], edx
mov ebp, dword [esi + 4]
adc ebp, ecx
mov eax, ebp
mov dword [esi + 4], ebp
mov ecx, dword [esi]
test eax, eax
jl 0x4fc253
jg 0x4fc16c
test ecx, ecx
jbe 0x4fc253
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
push 0
push edx
push ecx
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4fc197
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x4fc1f4
mov eax, dword [edi + 4]
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x20]
push 0xc
push edx
push eax
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fc1c6
cmp dword [esp + 0x2c], 0xc
jne 0x4fc253
mov al, byte [esp + 0x28]
test al, al
mov al, byte [esp + 0x18]
je 0x4fc1db
cmp al, 8
je 0x4fc207
jmp 0x4fc0b4
cmp al, 9
jne 0x4fc0b4
mov cl, byte [esp + 0x23]
and cl, 0xf0
cmp cl, 0x10
je 0x4fc207
jmp 0x4fc0b4
mov ecx, edi
call fcn.004fbf30
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
cmp ebx, 0xc350
mov eax, 0xc350
ja 0x4fc216
mov eax, ebx
mov ebp, dword [esp + 0x34]
push eax
mov dword [ebp], eax
call fcn.00584a5c
mov edx, dword [esp + 0x34]
add esp, 4
test eax, eax
mov dword [edx], eax
je 0x4fc253
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp]
push ecx
mov ecx, dword [esi]
push edx
push eax
mov eax, dword [esi + 4]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.004fc260
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 0x14
Function at 0x4fc260
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov byte [eax], 0
mov edx, dword [esi + 4]
push 0
push ecx
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x4fc2bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4fc2bc
mov ecx, esi
call fcn.004fbf30
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push 0
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fc2f6
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x4fc2f6
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov eax, dword [esp + 0x28]
xor ecx, ecx
add eax, edi
lea edx, [esp + 0x18]
adc ecx, ebx
add eax, 4
push 0
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi + 4]
adc ecx, 0
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x4fc340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x4fc340
mov ecx, esi
call fcn.004fbf30
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18

Function at 0x4fc360
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4fc36d
xor eax, eax
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0xc

Function at 0x4fc3a0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push esi
cmp eax, 0xffffffff
jne 0x4fc3b1
xor eax, eax
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x4fc3f0
mov eax, dword [esi + 4]
test eax, eax
jne 0x4fc3f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4fc3f0
mov dword [esi], eax
mov dword [esi + 4], 0
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.0056ee00
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x4fd210
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac7ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x65ec1c]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0xb0]
mov byte [ebp - 4], 2
cmp dword [ecx], 0
je 0x4fd2ae
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x14]
cmp eax, 0x15
je 0x4fd27a
push eax
lea eax, [ebp - 0x18]
push str.:_ld
push eax
call fcn.0058148b
add esp, 0xc
jmp 0x4fd287
push 0x663188
lea ecx, [ebp - 0x18]
call fcn.00588849
mov eax, dword [esi + 0x80]
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [eax + 0xc]
push edx
push eax
push str._s__s_s
push ecx
call fcn.0058148b
mov eax, dword [0x65ec1c]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov edx, dword [0x664600]
push 1
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004f89b0
mov eax, dword [esi + 0xb0]
cmp dword [eax], 0
je 0x4fd2d5
mov eax, dword [ebp - 0x1c]
jmp 0x4fd2f5
mov ecx, dword [esi + 0x80]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.0058872e
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
mov byte [ebp - 4], 4
push 0x639b3c
push eax
lea eax, [ebp - 0x14]
push str.USER__s_s
push eax
call fcn.0058148b
add esp, 0x10
mov dword [ebp - 4], 3
test bl, 1
je 0x4fd320
lea ecx, [ebp - 0x24]
call fcn.005886c0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.004f8a80
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push str.send___USER_n
dec ecx
push 0
push ecx
push edx
mov edx, dword [esi + 0x30cc]
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f8b20
mov edi, eax
test edi, edi
je 0x4fd3a0
mov eax, dword [esi + 0x30dc]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [eax + 0xf8], edi
call fcn.005886c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
lea ecx, [esi + 0x30c0]
call fcn.0052f670
mov ecx, esi
call fcn.004f9770
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], 4
mov byte [ebp - 4], 2
call fcn.005886c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fd430
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0xb0]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x4fd578
cmp dword [eax + 0x114], ebx
je 0x4fd578
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x664600]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004f89b0
mov edx, dword [esi + 0xb0]
push 0x639b3c
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x114]
push eax
push str.USER__s_s
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, esi
push edx
call fcn.004f8a80
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x30cc]
push str.send___Proxy_USER_n
not ecx
dec ecx
push ebx
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f8b20
mov edi, eax
cmp edi, ebx
je 0x4fd51a
mov ecx, dword [esi + 0x30dc]
mov byte [ebp - 4], bl
mov dword [ecx + 0xf8], edi
lea ecx, [ebp - 0x14]
call fcn.005886c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
lea ecx, [esi + 0x30c0]
call fcn.0052f670
mov ecx, esi
call fcn.004f9770
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], 4
mov byte [ebp - 4], bl
call fcn.005886c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fd590
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x65ec1c]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6645fc]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004f89b0
mov edx, dword [esi + 0x80]
push 0x639b3c
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
push str.PASS__s_s
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push str.send___PASS_n
dec ecx
push ebx
push ecx
push edx
mov edx, dword [esi + 0x30cc]
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f8b20
mov edi, eax
cmp edi, ebx
je 0x4fd652
mov eax, dword [esi + 0x30dc]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [eax + 0xf8], edi
call fcn.005886c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
lea ecx, [esi + 0x30c0]
call fcn.0052f670
mov ecx, esi
call fcn.004f9770
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], 4
mov byte [ebp - 4], bl
call fcn.005886c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0xb0]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x4fd80d
cmp dword [eax + 0x118], ebx
je 0x4fd80d
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6645fc]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004f89b0
mov edx, dword [esi + 0xb0]
push 0x639b3c
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x118]
push eax
push str.PASS__s_s
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push str.send___proxy_PASS_n
dec ecx
push ebx
push ecx
push edx
mov edx, dword [esi + 0x30cc]
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f8b20
mov edi, eax
cmp edi, ebx
je 0x4fd7af
mov eax, dword [esi + 0x30dc]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [eax + 0xf8], edi
call fcn.005886c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x15
lea ecx, [esi + 0x30c0]
call fcn.0052f670
mov ecx, esi
call fcn.004f9770
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], 4
mov byte [ebp - 4], bl
call fcn.005886c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fdb30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x6645e8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 1
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.004f89b0
push 0x639b3c
lea ecx, [ebp - 0x128]
push str.PASV_s
push ecx
call fcn.0056d05a
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x30cc]
push str.send___PASV
not ecx
dec ecx
push 0
lea edx, [ebp - 0x128]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f8b20
test eax, eax
je 0x4fdbda
mov ecx, dword [esi + 0x30dc]
mov dword [ecx + 0xf8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [esi + 0x30c0]
call fcn.0052f670
mov ecx, esi
call fcn.004f9770
mov dword [esi + 0x5c], 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fee00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x6645b8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 1
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.004f89b0
mov ebx, dword [ebp + 8]
push 0x639b3c
push ebx
lea ecx, [ebp - 0x128]
push str.TYPE__s_s
push ecx
call fcn.0056d05a
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x30cc]
push str.send___TYPE
not ecx
dec ecx
push 0
lea edx, [ebp - 0x128]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f8b20
test eax, eax
je 0x4feeb0
mov ecx, dword [esi + 0x30dc]
mov dword [ecx + 0xf8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx], 0x41
jne 0x4feeb9
push 0x11
jmp 0x4feebb
push 7
lea ecx, [esi + 0x30c0]
call fcn.0052f670
mov ecx, esi
call fcn.004f9770
mov dword [esi + 0x5c], 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x6645ac]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 1
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.004f89b0
mov al, byte [esi + 0x90]
test al, al
mov eax, dword [ebp + 8]
je 0x4ff095
mov ecx, dword [ebp + 0xc]
add eax, 0x30
adc ecx, 0
jmp 0x4ff098
mov ecx, dword [ebp + 0xc]
push 0x639b3c
push ecx
push eax
lea ecx, [ebp - 0x128]
push str.REST__I64d_s
push ecx
call fcn.0056d05a
add esp, 0x14
lea edx, [ebp - 0x128]
mov ecx, esi
push edx
call fcn.004f8a80
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
push str.send___REST
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
mov ecx, dword [esi + 0x30cc]
lea eax, [ebp - 0x128]
push eax
push ecx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f8b20
test eax, eax
je 0x4ff117
mov edx, dword [esi + 0x30dc]
mov dword [edx + 0xf8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xa
lea ecx, [esi + 0x30c0]
call fcn.0052f670
mov ecx, esi
call fcn.004f9770
mov dword [esi + 0x5c], 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ff600
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac9c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x80]
mov dword [ebp - 4], 0
cmp dword [eax + 0x28], 2
jne 0x4ff64c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.NOOP_r_n]
mov dx, word [0x6530ec]
mov al, byte [0x6530ee]
mov dword [ebp - 0x1c], ecx
push str.Sending_NOOP_n
mov ecx, esi
mov word [ebp - 0x18], dx
mov byte [ebp - 0x16], al
call fcn.004f8a80
lea edi, [ebp - 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x30cc]
repne scasb al, byte es:[edi]
not ecx
push str.send___NOOP
dec ecx
push 0
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f8b20
test eax, eax
je 0x4ff6c2
mov ecx, dword [esi + 0x30dc]
mov dword [ecx + 0xf8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004fc720
mov byte [esi + 0x30e4], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x500b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2db4
call fcn.0056c9b0
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x18], ecx
push edi
xor eax, eax
mov ecx, 0xb68
lea edi, [ebp - 0x2dc4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [edx]
mov dword [ebp - 0x10], esp
mov ecx, dword [eax]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x2dc4]
push 0x2da0
push eax
push ecx
call sub.WSOCK32.dll_recv
test eax, eax
mov dword [ebp - 0x24], eax
jle 0x500cbd
mov edx, dword [ebp - 0x14]
lea ecx, [eax + edx]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
cmp ecx, dword [edx]
jle 0x500c5a
mov eax, dword [ebp + 0xc]
lea ebx, [ecx + ecx]
push ebx
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
call fcn.00584a5c
mov edx, eax
add esp, 4
test edx, edx
jne 0x500c13
mov eax, dword [0x664740]
mov ecx, dword [ebp - 0x18]
push 1
push eax
call fcn.004f89b0
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, ebx
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, dword [ecx]
mov esi, dword [eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov dword [edx], ebx
call fcn.00584a85
mov eax, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov ecx, eax
lea esi, [ebp - 0x2dc4]
mov edi, dword [edx]
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
jmp 0x500b9b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc