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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, ecx
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x4765a1
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x4765ad
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47658e
jmp 0x4765b4
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x4765bb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x5966da
call fcn.00595190
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00432a8a
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x476606
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4765e7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4765e7
lea ecx, [ebp - 0x10]
call fcn.004764db
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x47663d
xor esi, esi
jmp 0x4765ea
push eax
call fcn.004765bb
test eax, eax
pop ecx
je 0x476639
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4765e7
call edi
cmp eax, ebx
jne 0x476639
jmp 0x4765e7

Function at 0x4766ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
test byte [0x61fa18], 1
jne 0x47673c
mov eax, dword [0x61b884]
or dword [0x61fa18], 1
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
push 0x59c3c0
mov dword [0x61fa14], eax
call fcn.0049ba0e
pop ecx
mov eax, dword [0x61fa14]
cmp dword [eax - 0xc], 0
jne 0x476798
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x476793
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0049be03
pop ecx
lea ecx, [ebp - 0x20c]
mov ebx, eax
mov esi, 0x61fa14
push ecx
mov eax, esi
call fcn.004013f5
call fcn.0047652d
push str.drivers_
push esi
call fcn.004327b5
pop esi
pop ebx
mov eax, dword [0x61fa14]
add eax, 0xfffffff0
call fcn.0040135c
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x478088
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x47809b
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret
Function at 0x478a1f
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.004b5ae0
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x120]
push str..PhysicalDrive_d
push eax
call fcn.00478df3
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x478bbe
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.0049bf00
push edi
lea eax, [ebp - 0x37d0]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0049bf00
add esp, 0x18
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x37d0]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x2d1400
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x478baf
mov eax, dword [ebp - 0x37c4]
push ebx
lea esi, [ebp - 0xcd8]
lea ecx, [ebp - 0x37d0]
call fcn.004788db
mov eax, dword [ebp - 0x37c0]
push ebx
lea esi, [ebp - 0x8f0]
lea ecx, [ebp - 0x37d0]
call fcn.004788db
mov eax, dword [ebp - 0x37bc]
push ebx
lea esi, [ebp - 0x10c0]
lea ecx, [ebp - 0x37d0]
call fcn.004788db
mov eax, dword [ebp - 0x37b8]
push 1
lea esi, [ebp - 0x508]
lea ecx, [ebp - 0x37d0]
call fcn.004788db
add esp, 0x10
cmp byte [0x61ed60], bl
jne 0x478b7f
movsx eax, byte [ebp - 0x508]
push eax
call fcn.004a132f
test eax, eax
pop ecx
jne 0x478b53
movsx eax, byte [ebp - 0x4f5]
push eax
call fcn.004a132f
test eax, eax
pop ecx
je 0x478b7f
lea eax, [ebp - 0x508]
push eax
push 0x61ed60
call fcn.00478e0e
lea eax, [ebp - 0x8f0]
push eax
push 0x61f160
call fcn.00478e0e
add esp, 0x10
mov dword [ebp - 0x10], 1
push edi
lea eax, [ebp - 0x37d0]
push ebx
push eax
call fcn.0049bf00
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x37d0]
push eax
push ebx
push ebx
push 0x700a0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x478bb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x478a3c
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47970c
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x47972e
xor eax, eax
inc eax
jmp 0x479798
cmp dword [edi], esi
je 0x479737
xor ebx, ebx
inc ebx
jmp 0x47977c
lea eax, [ebp - 8]
push eax
push 0x5f04ac
push 1
push esi
push 0x5f049c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x479756
push 2
jmp 0x47977b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x47976b
push 3
jmp 0x47977b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x47977c
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x479789
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x479796
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x47ccb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x47cdb1
cmp dword [ebp + 0xc], edi
je 0x47cdb1
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
xor ebx, ebx
push edi
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47cd9e
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp + 8], edi
mov word [ebp - 0x210], di
call fcn.0049bf00
mov eax, dword [esi + 0x10]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47cd9e
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp + 8]
jne 0x47cd9e
cmp eax, 1
je 0x47cd4e
cmp eax, 2
jne 0x47cd78
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00432a8a
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], edi
jne 0x47cd70
add eax, 0xfffffff0
call fcn.004011c0
jmp 0x47cd9e
add eax, 0xfffffff0
call fcn.004011c0
cmp dword [esi + 0x18], 4
jne 0x47cd9b
push 4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], edi
call fcn.0049e740
add esp, 0xc
cmp dword [ebp + 0x10], edi
jbe 0x47cd9e
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], edi
je 0x47cdac
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x47cdb3
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x47d161
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x5fcb88
call fcn.00594ff8
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x47d20f
cmp dword [ebp + 0xc], eax
je 0x47d20f
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x47d20f
mov ebx, 0x103
cmp esi, ebx
ja 0x47d20f
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049a678
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x47d20b
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049bf00
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x47d20b
cmp eax, ebx
ja 0x47d20b
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004a07b6
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x47d20b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x47d21e
push dword [ebp - 0x1c]
call fcn.0049bf7a
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.00595033
ret 8
Function at 0x47d4a6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59b47e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
call fcn.00483104
mov dword [esp + 0x1c], eax
call fcn.0048305b
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
call fcn.0049506b
lea edi, [esp + 0x40]
mov dword [esp + 0xdc], esi
call fcn.00434021
mov byte [esp + 0xdc], 1
push dword [0x61f5b0]
mov esi, 0x5e8b00
push esi
lea eax, [esp + 0x98]
call fcn.00432a05
push dword [0x61f5b4]
lea eax, [esp + 0xa0]
push esi
call fcn.00432a05
add esp, 0x10
push dword [0x61f5d8]
lea eax, [esp + 0xa0]
push eax
call fcn.00432a64
push dword [0x61f5dc]
lea eax, [esp + 0xa8]
push eax
call fcn.00432a64
call fcn.004831ad
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00485703
pop ecx
mov byte [esp + 0xdc], 2
push dword [eax]
lea eax, [esp + 0xa4]
push eax
call fcn.00432a64
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 3
cdq
mov dword [esp + 0x20], vtable.cf::time::KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0xdc], 3
mov ecx, dword [ebx + 0xc]
xor esi, esi
cmp ecx, esi
je 0x47d600
mov eax, dword [esp + 0x10]
xor edx, edx
div ecx
push esi
push 0x15180
push dword [esp + 0x34]
push dword [esp + 0x34]
mov edi, edx
imul edi, dword [ebx + 0x10]
add edi, dword [ebx + 8]
call fcn.004aaa80
cmp eax, edi
jge 0x47d5f8
mov dword [esp + 0xc], 0x165
jmp 0x47d600
mov dword [esp + 0x14], 1
push esi
push dword [esp + 0x14]
lea ecx, [esp + 0x48]
push dword [esp + 0x14]
push 1
push 0x1e
call fcn.0043439e
cmp dword [esp + 0x14], esi
je 0x47d624
cmp dword [ebx + 0x14], esi
je 0x47d624
xor esi, esi
inc esi
lea ecx, [esp + 0x40]
call fcn.00434102
mov ecx, dword [esp + 0xd4]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47db47
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59b47e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
and dword [esp], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], 1
call fcn.00483104
mov dword [esp + 0x1c], eax
call fcn.0048305b
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
call fcn.0049506b
and dword [esp + 0xdc], 0
lea edi, [esp + 0x40]
call fcn.00434021
mov byte [esp + 0xdc], 1
push dword [0x61f5b0]
mov esi, 0x5e8b00
push esi
lea eax, [esp + 0x98]
call fcn.00432a05
push dword [0x61f5b4]
lea eax, [esp + 0xa0]
push esi
call fcn.00432a05
add esp, 0x10
push dword [0x61f5d8]
lea eax, [esp + 0xa0]
push eax
call fcn.00432a64
push dword [0x61f5dc]
lea eax, [esp + 0xa8]
push eax
call fcn.00432a64
call fcn.004831ad
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00485703
pop ecx
mov byte [esp + 0xdc], 2
push dword [eax]
lea eax, [esp + 0xa4]
push eax
call fcn.00432a64
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 3
cdq
mov dword [esp + 0x20], vtable.cf::time::KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
xor esi, esi
push esi
push 0x15180
push edx
push eax
mov byte [esp + 0xec], 3
call fcn.004aaa80
cmp eax, dword [ebx + 0xc]
jg 0x47dc88
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jb 0x47dc88
mov dword [esp + 0xc], 0x167
jmp 0x47dc8c
mov dword [esp + 0x14], esi
push esi
push dword [esp + 0x14]
lea ecx, [esp + 0x48]
push dword [esp + 0x14]
push 1
push 0x1e
call fcn.0043439e
lea ecx, [esp + 0x40]
call fcn.00434102
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47fe67
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push 0x5eb160
mov esi, str.instbysoftmgr
push esi
add ebx, 8
push ebx
call fcn.004965ec
push eax
push edi
call fcn.00432a64
push 0x5eb16c
push esi
push ebx
call fcn.004965ec
push eax
push dword [esp + 0x18]
call fcn.00432a64
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x47fed0
push edi
call fcn.00482664
test eax, eax
pop ecx
je 0x47fed0
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47fed0
push dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
call fcn.0047fed8
xor eax, eax
inc eax
jmp 0x47fed2
xor eax, eax
pop esi
pop ebx
pop ecx
ret 8
Function at 0x480001
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x48009c
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, str.ProgramPath
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
je 0x480043
cmp dword [ebp - 8], 2
jne 0x48009a
push esi
mov esi, dword [ebp + 0xc]
call fcn.00401462
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004011f9
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x480082
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x480092
push eax
call fcn.0049be03
pop ecx
mov edx, esi
call fcn.004011d8
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x480533
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48054a
test al, 0x10
jne 0x48054a
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x480914
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push str.DownloadControl____Start
mov esi, 0x61f638
mov edi, eax
call fcn.004870fe
pop ecx
mov eax, edi
call fcn.004806b4
test eax, eax
jne 0x48094f
push str.DownloadControl_curlExecuter_Invalid
call fcn.004870fe
pop ecx
mov eax, 0x100
jmp 0x480a99
push dword [ebp + 8]
push edi
call fcn.004807db
mov ebx, eax
test ebx, ebx
je 0x480970
push str.DownloadControl_GetDownloadFileLength_Failure
call fcn.004870fe
pop ecx
mov eax, ebx
jmp 0x480a99
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x480987
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [edi + 0x10]
mov eax, dword [ebx]
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x48099d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
push dword [edi + 4]
call fcn.00481934
test eax, eax
pop ecx
je 0x4809b5
push dword [edi + 4]
push ebx
call fcn.0048054d
jmp 0x4809ba
mov eax, 0x80004005
test eax, eax
jge 0x4809d3
push str.DownloadControl_CreateFile_Failure
call fcn.004870fe
pop ecx
mov eax, 0x102
jmp 0x480a99
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x103
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
mov ebx, edi
call fcn.00480aa0
push dword [ebp - 4]
mov ebx, eax
push dword [edi + 0xc]
push dword [ebp - 8]
push ebx
push str.DownloadControl____ExE_CurlCode___d__Count___d__CurrentSize___d__ResCode___d
call fcn.004870fe
add esp, 0x14
test ebx, ebx
jne 0x480a1f
cmp dword [ebp - 4], 0xce
je 0x480a3d
cmp dword [ebp - 4], 0xc8
je 0x480a3d
cmp ebx, 0x1c
je 0x480a2f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x25d
jle 0x4809e5
jmp 0x480a41
and dword [ebp - 0xc], 0
push dword [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.004805e2
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00480625
mov eax, dword [esi]
test eax, eax
je 0x480a6a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x480a7e
test ebx, ebx
je 0x480a79
mov dword [eax], ebx
jmp 0x480a7e
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 8]
mov esi, 0x61f638
push dword [ebp - 0xc]
push str.DownloadControl____End_HRESULT___d__Count___d
call fcn.004870fe
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4812a2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x481326
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x481325
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
inc eax
push eax
call fcn.0049a678
mov esi, eax
cmp esi, ebx
pop ecx
je 0x48131d
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x481316
mov eax, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
mov byte [esi + eax], bl
call fcn.004312da
push esi
call fcn.0049bf7a
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x48132c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4813ac
mov eax, dword [esi]
push ebx
mov dword [ebp - 4], edi
mov ebx, dword [eax - 0xc]
push edi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0043d9e4
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
cmp eax, edi
jne 0x481383
xor eax, eax
jmp 0x48138a
push eax
call fcn.0049dbb0
pop ecx
mov edx, esi
call fcn.00419498
cmp dword [ebp - 0x10], edi
je 0x4813a2
cmp dword [ebp - 4], ebx
jne 0x4813a2
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x4813b3
Capabilities:
Get disk information

Disassembly:
mov eax, 0x5966da
call fcn.00595190
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4813dc
xor eax, eax
jmp 0x481489
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
mov dword [ebp - 0x18], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0049a678
mov ebx, eax
test ebx, ebx
pop ecx
je 0x481486
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.0049bf00
add esp, 0xc
push ebx
push esi
call edi
mov esi, eax
mov eax, dword [0x61b884]
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
shr esi, 2
test esi, esi
mov dword [ebp - 0x14], ebx
jle 0x48146d
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00432a64
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x481468
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00432acd
add dword [ebp - 0x14], 8
lea esi, [ebp - 0x10]
call fcn.00401462
dec dword [ebp - 0x18]
jne 0x48143b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 1
call fcn.004011c0
push ebx
call fcn.0049bf7a
pop ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x481498
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, 0x597374
call fcn.00595190
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
xor esi, esi
cmp ecx, esi
jne 0x4814bc
xor eax, eax
jmp 0x481564
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4814b5
mov eax, dword [0x61b884]
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
push dword [edi]
lea eax, [ebp - 0x14]
push 0x5f0b20
call fcn.00432a05
pop ecx
pop ecx
push esi
push esi
push 3
push esi
push 3
push SysReAllocStringLen
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x481557
push 9
pop ecx
push 0x28
xor eax, eax
mov dword [ebp - 0x4c], esi
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x481550
cmp dword [ebp - 0x30], 7
je 0x481550
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret