joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55896e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0x566528
lea edx, [ebx + 0x20]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 1
jne 0x4c1cbb
lea ecx, [ebx + 4]
call fcn.005326fa
jmp 0x4c1d93
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x4c1d93
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4c1d2b
mov eax, ebx
mov ebx, dword [ebx]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.00537c3d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call edi
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 0x59bbd8
push esi
call edi
jmp 0x4c1cf4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
jmp 0x4c1d72
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
je 0x4c1d85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.005326fa
mov ebx, dword [ebp - 0x18]
lea ecx, [ebx + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.0053272f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c1eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5589ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0xa
lea ecx, [edi + 4]
mov dword [ebp - 0x1c], edi
call fcn.005326bb
lea esi, [edi + 0x20]
push 0x5ba440
push esi
mov dword [ebp - 4], 0
mov dword [edi], 0x56652c
mov dword [ebp - 0x20], 0xffffffff
call fcn.0051d0e8
mov eax, dword [0x5ba8a4]
add esp, 8
mov byte [ebp - 4], 1
push str.UrlHistory2.txt
push eax
push 0x598a7c
push esi
call fcn.0051d0e8
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0x5ba440
call fcn.00537b72
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x18], ecx
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
jne 0x4c1f8a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
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
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x530]
lea edx, [ebp - 0x28]
rep stosd dword es:[edi], eax
push eax
push edx
lea eax, [ebp - 0x530]
push 0x3ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c2030
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x4c2030
lea ecx, [ebp - 0x530]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00537fcb
mov esi, eax
cmp esi, 0xffffffff
jle 0x4c1f8a
test esi, esi
jne 0x4c1fed
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.005301d1
jmp 0x4c1fcb
lea edx, [ebp - 0x24]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005304fa
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00537c3d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00537b04
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push eax
add ecx, 4
call fcn.00532864
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0
call fcn.005301d1
jmp 0x4c1fcb
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
jmp 0x4c2083
cmp ebx, 0xffffffff
je 0x4c208f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c20d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5589fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0x56652c
lea edx, [ebx + 0x20]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 1
jne 0x4c212b
lea ecx, [ebx + 4]
call fcn.005326fa
jmp 0x4c2203
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x4c2203
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4c219b
mov eax, ebx
mov ebx, dword [ebx]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.00537c3d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call edi
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 0x59bbd8
push esi
call edi
jmp 0x4c2164
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
jmp 0x4c21e2
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
je 0x4c21f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.005326fa
mov ebx, dword [ebp - 0x18]
lea ecx, [ebx + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.0053272f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5950
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [ecx + 0x54]
sub esp, 0x64
test eax, eax
push esi
lea esi, [ecx + 0x54]
je 0x4c59d7
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4c597a
push eax
lea eax, [esp + 0xc]
push str.SoftwareDownloadManager_ldChList
push eax
call fcn.0051d0e8
add esp, 0xc
jmp 0x4c5994
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.0051d0e8
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x4c59a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
push edx
push 0x80000001
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 0x5ba440
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
add esp, 0x64
ret
Function at 0x4c62c0
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 0x4c62ee
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c62f2
mov ecx, 1
jmp 0x4c62f4
mov eax, dword [esp + 0x30]
xor ecx, ecx
or esi, 0xffffffff
or edi, 0xffffffff
test ecx, ecx
je 0x4c6322
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 0x4c6355
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x4c6355
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x38]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4c6355
mov esi, dword [esp + 0x30]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x14]
xor edi, edi
cmp edi, dword [esp + 0x2c]
jg 0x4c6384
jl 0x4c6363
cmp esi, dword [esp + 0x28]
ja 0x4c6384
and esi, edi
cmp esi, 0xffffffff
je 0x4c6384
push str.Not_enough_disk_space_to_rebuild_downloaded_chunks._n
mov ecx, ebx
call fcn.004c2cc0
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 0x4c6f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558c98
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 + 0x2c]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4c6ffc
mov eax, dword [ebp + 8]
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0x24]
lea eax, [ebp + 8]
push edx
push str.sk_d
push eax
mov byte [ebp - 4], 1
call fcn.0053091a
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
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.00537b04
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 0x4c7090
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 0x2c]
sub esp, 8
test eax, eax
je 0x4c70d5
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 0x4c70d5
mov eax, dword [esp]
test eax, eax
setne al
add esp, 8
ret
xor al, al
add esp, 8
ret

Function at 0x4c70e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558cb8
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 + 0x2c]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4c7185
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x24]
lea edx, [ebp - 0x14]
push ecx
push str.sk_d
push edx
mov byte [ebp - 4], 1
call fcn.0053091a
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x2c]
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 0x4c717a
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00537b04
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.00537b04
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 0x4c7940
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558d20
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 + 0x98]
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 0x4c79b2
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 0x4c7a30
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.0051d0e8
add esp, 0x10
lea edx, [ebp - 0x9c]
mov ecx, esi
push edx
call fcn.004c7490
mov eax, dword [0x5bb6e0]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.004c9920
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 0x4c7aa7
cmp dword [ebp + 0xc], ebx
je 0x4c7a56
mov ecx, dword [0x5bb6d8]
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.004c9920
mov edx, dword [0x5bb6d8]
mov ecx, esi
push edx
call fcn.004c73d0
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 + 0x98]
cmp eax, ebx
je 0x4c7af5
mov edx, dword [eax]
lea ecx, [ebp - 0x4a4]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4c7add
mov ecx, dword [esi + 0x98]
lea eax, [ebp - 0x2a0]
push eax
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4c7af5
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 0x4c9070
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558d80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2db4
call fcn.0051cbf0
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 0x4c91eb
mov edx, dword [ebp - 0x14]
lea ecx, [eax + edx]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
cmp ecx, dword [edx]
jle 0x4c9188
mov eax, dword [ebp + 0xc]
lea ebx, [ecx + ecx]
push ebx
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
call fcn.005380a1
mov edx, eax
add esp, 4
test edx, edx
jne 0x4c9141
mov eax, dword [0x5bb754]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.004c73d0
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.005380ca
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 0x4c90cb
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
Function at 0x4c9510
Capabilities:
Get disk size

Disassembly:
sub esp, 0x428
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 0x4c9544
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 + 0x28], ecx
jmp 0x4c9551
mov ebp, 0x2da0
mov dword [esp + 0x28], 0
mov ecx, dword [edi + 0x7c]
push 0
push 0
lea eax, [esp + 0x18]
mov edx, dword [ecx + 0x30]
push 0
push eax
push edx
call fcn.0051d13a
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4c9591
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c9595
mov ecx, 1
jmp 0x4c9597
mov eax, dword [esp + 0x14]
xor ecx, ecx
or esi, 0xffffffff
or ebx, 0xffffffff
test ecx, ecx
je 0x4c95c5
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
call eax
test eax, eax
je 0x4c95f8
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
jmp 0x4c95f8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4c95f8
mov esi, dword [esp + 0x2c]
imul esi, dword [esp + 0x30]
imul esi, dword [esp + 0x14]
xor ebx, ebx
mov edx, dword [esp + 0x28]
push 0
push 0xa
push edx
push ebp
call fcn.0051e210
add eax, ebp
mov ebp, dword [esp + 0x28]
adc edx, ebp
cmp ebx, edx
jg 0x4c966c
jl 0x4c9619
cmp esi, eax
ja 0x4c966c
and esi, ebx
cmp esi, 0xffffffff
je 0x4c966c
mov ecx, dword [0x5bb720]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0051d0e8
add esp, 0xc
lea eax, [esp + 0x38]
push 0x50030
push 0x597f08
push eax
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.004c7490
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x428
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret

Function at 0x4c9b80
Capabilities:
Write file on windows

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

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push esi
cmp eax, 0xffffffff
jne 0x4c9bd1
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 0x4c9c10
mov eax, dword [esi + 4]
test eax, eax
jne 0x4c9c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c9c10
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.0051ec30
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 0x4ca9f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x9c]
mov byte [ebp - 4], 2
cmp dword [eax], 0
je 0x4caa86
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx + 0x14]
cmp eax, 0x15
je 0x4caa5a
push eax
lea edx, [ebp - 0x14]
push str.:_ld
push edx
call fcn.0053091a
add esp, 0xc
jmp 0x4caa67
push 0x5ba440
lea ecx, [ebp - 0x14]
call fcn.00537c8d
mov eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
mov eax, dword [eax + 0xc]
push edx
push eax
push str._s__s_s
push ecx
call fcn.0053091a
add esp, 0x14
mov edx, dword [0x5bb614]
mov ecx, esi
push edx
call fcn.004c73d0
mov eax, dword [esi + 0x9c]
cmp dword [eax], 0
je 0x4caaa4
mov eax, dword [ebp - 0x18]
jmp 0x4caaba
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00537b72
mov eax, dword [eax]
mov ebx, 1
push 0x59890c
push eax
lea eax, [ebp - 0x134]
push str.USER__s_s
push eax
call fcn.0051d0e8
add esp, 0x10
test bl, 1
je 0x4caae1
lea ecx, [ebp - 0x1c]
call fcn.00537b04
lea ecx, [ebp - 0x134]
push ecx
mov ecx, esi
call fcn.004c7490
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
xor eax, eax
push str.send___USER_n
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x2e7c]
push 0
not ecx
dec ecx
lea edx, [ebp - 0x134]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004c7530
mov edi, eax
test edi, edi
je 0x4cab5f
mov ecx, dword [esi + 0x2e8c]
mov byte [ebp - 4], 1
mov dword [ecx + 0x1d4], edi
lea ecx, [ebp - 0x14]
call fcn.00537b04
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
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 + 0x2e70]
call fcn.004f3d50
mov ecx, esi
call fcn.004c7fd0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], 4
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
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 0x4cabe0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x9c]
mov dword [ebp - 4], 0
cmp dword [eax], 0
je 0x4cad15
mov ecx, dword [eax + 0x114]
test ecx, ecx
je 0x4cad15
mov eax, dword [0x5bb614]
mov ecx, esi
push eax
call fcn.004c73d0
mov ecx, dword [esi + 0x9c]
push 0x59890c
lea eax, [ebp - 0x128]
mov edx, dword [ecx + 0x114]
push edx
push str.USER__s_s
push eax
call fcn.0051d0e8
add esp, 0x10
lea ecx, [ebp - 0x128]
push ecx
mov ecx, esi
call fcn.004c7490
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
push str.send___Proxy_USER_n
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x2e7c]
push 0
not ecx
dec ecx
lea edx, [ebp - 0x128]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004c7530
test eax, eax
je 0x4cacc2
mov ecx, dword [esi + 0x2e8c]
mov dword [ecx + 0x1d4], eax
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 + 0x2e70]
call fcn.004f3d50
mov ecx, esi
call fcn.004c7fd0
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
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 0x4cad30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x5bb610]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.004c73d0
mov ecx, dword [esi + 0x7c]
push 0x59890c
lea eax, [ebp - 0x128]
mov edx, dword [ecx + 0x10]
push edx
push str.PASS__s_s
push eax
call fcn.0051d0e8
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x2e7c]
push str.send___PASS_n
not ecx
dec ecx
push 0
push ecx
lea ecx, [ebp - 0x128]
push ecx
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004c7530
test eax, eax
je 0x4caddf
mov ecx, dword [esi + 0x2e8c]
mov dword [ecx + 0x1d4], eax
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 + 0x2e70]
call fcn.004f3d50
mov ecx, esi
call fcn.004c7fd0
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