joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f38f0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f3924
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
ret
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x4f3972
mov eax, dword [esi + 4]
test eax, eax
jne 0x4f3972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
je 0x4f3972
mov dword [esi], 0
push edi
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.0056d280
mov ecx, dword [esi]
push edi
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [esi + 4]
adc ecx, edx
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
Function at 0x4f44a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x54]
xor ebx, ebx
push eax
push ecx
push ebx
push ebx
push 0x63d538
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x10
call edi
test eax, eax
jne 0x4f4641
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
push eax
push str._dkf
push ecx
call fcn.0056b4da
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x74]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call edi
cmp eax, ebx
jne 0x4f455b
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
jne 0x4f45cf
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x24]
fmul qword [0x5d8358]
fcom qword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x4f4559
fld qword [esi + 0x50]
fsub st(1)
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
fstp st(0)
mov eax, dword [ebp - 0x50]
cmp eax, 0xffffffff
je 0x4f4641
push eax
lea ecx, [ebp - 0x44]
push 0x636fe4
push ecx
call fcn.0056b4da
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push edx
mov edx, dword [esi + 0x74]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call edi
test eax, eax
jne 0x4f4641
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x4f44f2
cmp eax, 0xffffffff
je 0x4f44f2
sub eax, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x34]
fmul qword [0x5d8358]
fsubr qword [esi + 0x18]
fstp qword [esi + 0x18]
jmp 0x4f44f2
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x4f45f2
sub eax, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x2c]
fmul qword [0x5d8358]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
jmp 0x4f455b
jae 0x4f455b
mov edx, dword [0x65ca8c]
mov dword [ebp - 0x14], edx
push eax
mov eax, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x54]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.error_in_chlist__id_d__next_d__starttime_ld__ts_ld_n
push edx
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, esi
push eax
call fcn.004f1060
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00586b33
jmp 0x4f455b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f55e0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [ecx + 0x74]
sub esp, 0x64
test eax, eax
push esi
lea esi, [ecx + 0x74]
je 0x4f5667
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4f560a
push eax
lea eax, [esp + 0xc]
push str.SoftwareDownloadManager_ldChList
push eax
call fcn.0056b4da
add esp, 0xc
jmp 0x4f5624
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
push edx
push eax
lea ecx, [esp + 0x10]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push ecx
call fcn.0056b4da
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x4f5631
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
push edx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push esi
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
add esp, 0x64
ret
Function at 0x4f6030
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4f605e
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f6062
mov ecx, 1
jmp 0x4f6064
mov eax, dword [esp + 0x30]
xor ecx, ecx
or esi, 0xffffffff
or edi, 0xffffffff
test ecx, ecx
je 0x4f6092
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
push edx
call eax
test eax, eax
je 0x4f60da
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x4f60da
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4f60da
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
push 0
push edx
push 0
push eax
call fcn.0056d280
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
push eax
call fcn.0056d280
mov esi, eax
mov edi, edx
cmp edi, dword [esp + 0x2c]
jg 0x4f6109
jl 0x4f60e8
cmp esi, dword [esp + 0x28]
ja 0x4f6109
and esi, edi
cmp esi, 0xffffffff
je 0x4f6109
push str.Not_enough_disk_space_to_rebuild_downloaded_chunks._n
mov ecx, ebx
call fcn.004f1060
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc
Function at 0x4f6d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa6a8
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 + 0x40]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4f6dbc
mov eax, dword [ebp + 8]
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0x38]
lea eax, [ebp + 8]
push edx
push str.sk_d
push eax
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x40]
add esp, 0xc
lea ecx, [ebp - 0x14]
push 4
push ecx
push 4
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f6e50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 0x40]
sub esp, 8
test eax, eax
je 0x4f6e95
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0
push str.mmsIndex
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f6e95
mov eax, dword [esp]
test eax, eax
setne al
add esp, 8
ret
xor al, al
add esp, 8
ret

Function at 0x4f6ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4f6f45
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x38]
lea edx, [ebp - 0x14]
push ecx
push str.sk_d
push edx
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x40]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4f6f3a
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00586b33
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00586b33
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
Function at 0x4f71f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa6f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4f72d4
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x2c]
push eax
push 0x636fe4
push ecx
call fcn.0056b4da
add esp, 0xc
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push edx
mov edx, dword [esi + 0x40]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x14], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f72a0
push eax
lea eax, [ebp - 0x170]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.0056b4da
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
mov ecx, esi
call fcn.00535f00
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4f7294
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x20], edx
jmp 0x4f729a
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x24], ecx
mov edx, dword [esi + 0x24]
push 1
push 0
push 0
push edx
call fcn.0056d280
mov ecx, dword [esi + 0x1c]
xor edi, edi
add eax, ecx
mov ecx, dword [esi + 0x40]
adc edx, edi
push 0x10
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
push edi
lea eax, [ebp - 0x2c]
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f7910
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi + 0xac]
mov ecx, 1
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x4a4], ebx
je 0x4f7982
mov edx, dword [eax]
mov dword [ebp - 0x2a0], 2
mov dword [ebp - 0x298], edx
mov edx, dword [eax]
mov dword [ebp - 0x4a0], edx
mov dword [ebp - 0x4a4], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
neg eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x4a4]
sbb eax, eax
push edx
and eax, ecx
lea edx, [ebp - 0x2a0]
push eax
push ebx
lea eax, [edi + 1]
push edx
push eax
mov dword [ebp - 0x18], ebx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x4f7a00
call sub.WSOCK32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
lea ecx, [ebp - 0x9c]
push str.Select_failed__err_code___d__socket___d_n
push ecx
call fcn.0056b4da
add esp, 0x10
lea edx, [ebp - 0x9c]
mov ecx, esi
push edx
call fcn.004f73c0
mov eax, dword [0x662534]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.004fa710
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, ebx
jne 0x4f7a79
cmp dword [ebp + 0xc], ebx
je 0x4f7a28
mov ecx, dword [0x66252c]
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.004fa710
mov edx, dword [0x66252c]
push 1
push edx
mov ecx, esi
call fcn.004f72f0
mov eax, 0x7532
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xac]
cmp eax, ebx
je 0x4f7ac7
mov edx, dword [eax]
lea ecx, [ebp - 0x4a4]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4f7aaf
mov ecx, dword [esi + 0xac]
lea eax, [ebp - 0x2a0]
push eax
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4f7ac7
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
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 8
Function at 0x4f9690
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5aa868
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 0x4f96d6
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 0x4f96e3
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.0056b52c
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4f9726
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f972a
mov ecx, 1
jmp 0x4f972c
mov eax, dword [esp + 0x20]
xor ecx, ecx
or esi, 0xffffffff
or ebx, 0xffffffff
test ecx, ecx
je 0x4f975a
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 0x4f978d
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
jmp 0x4f978d
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 0x4f978d
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.0056c820
add eax, ebp
mov ebp, dword [esp + 0x34]
adc edx, ebp
cmp ebx, edx
jg 0x4f982f
jl 0x4f97b2
cmp esi, eax
ja 0x4f982f
and esi, ebx
cmp esi, 0xffffffff
je 0x4f982f
mov eax, dword [0x65ca8c]
mov dword [esp + 0x14], eax
mov edx, dword [0x662574]
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x4c], 0
call fcn.0057f8fb
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x50030
push 0x6370c0
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.004f73c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.00586b33
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 0x4fa9e0
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 0x4faa2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x4fab34
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 0x4fab93
cmp dword [esp + 0x2c], 4
jne 0x4fab93
lea ecx, [esp + 0x18]
push ecx
call fcn.0052f110
mov ebx, eax
add esp, 4
test ebx, ebx
jbe 0x4fab93
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 0x4fab93
jg 0x4faaac
test ecx, ecx
jbe 0x4fab93
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 0x4faad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x4fab34
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 0x4fab06
cmp dword [esp + 0x2c], 0xc
jne 0x4fab93
mov al, byte [esp + 0x28]
test al, al
mov al, byte [esp + 0x18]
je 0x4fab1b
cmp al, 8
je 0x4fab47
jmp 0x4fa9f4
cmp al, 9
jne 0x4fa9f4
mov cl, byte [esp + 0x23]
and cl, 0xf0
cmp cl, 0x10
je 0x4fab47
jmp 0x4fa9f4
mov ecx, edi
call fcn.004fa870
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
cmp ebx, 0xc350
mov eax, 0xc350
ja 0x4fab56
mov eax, ebx
mov ebp, dword [esp + 0x34]
push eax
mov dword [ebp], eax
call fcn.00582ecc
mov edx, dword [esp + 0x34]
add esp, 4
test eax, eax
mov dword [edx], eax
je 0x4fab93
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.004faba0
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 0x4faba0
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 0x4fabfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4fabfc
mov ecx, esi
call fcn.004fa870
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 0x4fac36
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x4fac36
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 0x4fac80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x4fac80
mov ecx, esi
call fcn.004fa870
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 0x4faca0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4facad
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 0x4face0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push esi
cmp eax, 0xffffffff
jne 0x4facf1
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 0x4fad30
mov eax, dword [esi + 4]
test eax, eax
jne 0x4fad30
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4fad30
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.0056d280
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 0x4fbb50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aab8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x65ca8c]
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 0x4fbbee
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x14]
cmp eax, 0x15
je 0x4fbbba
push eax
lea eax, [ebp - 0x18]
push str.:_ld
push eax
call fcn.0057f8fb
add esp, 0xc
jmp 0x4fbbc7
push 0x660ff8
lea ecx, [ebp - 0x18]
call fcn.00586cbc
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.0057f8fb
mov eax, dword [0x65ca8c]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov edx, dword [0x662468]
push 1
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004f72f0
mov eax, dword [esi + 0xb0]
cmp dword [eax], 0
je 0x4fbc15
mov eax, dword [ebp - 0x1c]
jmp 0x4fbc35
mov ecx, dword [esi + 0x80]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.00586ba1
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
mov byte [ebp - 4], 4
push 0x637b34
push eax
lea eax, [ebp - 0x14]
push str.USER__s_s
push eax
call fcn.0057f8fb
add esp, 0x10
mov dword [ebp - 4], 3
test bl, 1
je 0x4fbc60
lea ecx, [ebp - 0x24]
call fcn.00586b33
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.004f73c0
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.004f7460
mov edi, eax
test edi, edi
je 0x4fbce0
mov eax, dword [esi + 0x30dc]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [eax + 0xf8], edi
call fcn.00586b33
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
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.0052dd90
mov ecx, esi
call fcn.004f80b0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], 4
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
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