joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45446f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
mov esi, eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x4544c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x50bd68
call fcn.0046353e
add esp, 0xc
jmp 0x4545ed
push edi
push dword [esi + 4]
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
jne 0x4544fa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
mov esi, 0x50bd68
call fcn.0046353e
add esp, 0xc
jmp 0x4545d8
push dword [esi + 4]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x454532
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x50bd68
call fcn.0046353e
add esp, 0xc
jmp 0x4545ca
lea ebx, [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
mov esi, dword [ebx + 4]
je 0x454550
cmp dword [ebp - 0x20], ebx
je 0x454555
call fcn.0048a49e
cmp dword [ebp - 0x1c], esi
je 0x4545c3
lea esi, [ebp - 0x20]
call fcn.00454d15
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x45456f
xor eax, eax
jmp 0x454574
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.004316e4
push eax
push dword [ebp - 8]
call fcn.0048bb02
add esp, 0xc
test eax, eax
jne 0x4545ad
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x454596
xor esi, esi
jmp 0x45459b
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 8], esi
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
call fcn.00454d35
xor edi, edi
jmp 0x454543
push dword [ebp + 8]
mov esi, 0x50bd68
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
call fcn.0046353e
pop ecx
pop ecx
jmp 0x4545ca
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], edi
je 0x4545d8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x10], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4545e8
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x454632
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 0x454669
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x454675
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x454656
jmp 0x45467c
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x4d3e38
call fcn.004ce9f0
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4546ce
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
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 0x4546af
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4546af
lea ecx, [ebp - 0x10]
call fcn.004333b6
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x454705
xor esi, esi
jmp 0x4546b2
push eax
call fcn.00454683
test eax, eax
pop ecx
je 0x454701
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4546af
call edi
cmp eax, ebx
jne 0x454701
jmp 0x4546af

Function at 0x4547c7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
test byte [0x50c0c4], 1
jne 0x454804
mov eax, dword [0x5096c0]
or dword [0x50c0c4], 1
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
push 0x4d6ed7
mov dword [0x50c0c0], eax
call fcn.00489b3e
pop ecx
mov eax, dword [0x50c0c0]
cmp dword [eax - 0xc], 0
jne 0x45484e
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x454849
push esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x50c0c0
push esi
call fcn.00422bdc
call fcn.004545f7
push str.drivers_
push esi
call fcn.0040c5e6
pop esi
mov eax, dword [0x50c0c0]
add eax, 0xfffffff0
call fcn.00422b5e
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x4561a6
Capabilities:
Delete file
Set file attributes

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.004a03c0
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.00456e31
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 0x456bfc
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.00489db0
push edi
lea eax, [ebp - 0x37d0]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00489db0
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 0x456bed
mov eax, dword [ebp - 0x37c4]
push ebx
lea esi, [ebp - 0xcd8]
lea ecx, [ebp - 0x37d0]
call fcn.00456919
mov eax, dword [ebp - 0x37c0]
push ebx
lea esi, [ebp - 0x8f0]
lea ecx, [ebp - 0x37d0]
call fcn.00456919
mov eax, dword [ebp - 0x37bc]
push ebx
lea esi, [ebp - 0x10c0]
lea ecx, [ebp - 0x37d0]
call fcn.00456919
mov eax, dword [ebp - 0x37b8]
push 1
lea esi, [ebp - 0x508]
lea ecx, [ebp - 0x37d0]
call fcn.00456919
add esp, 0x10
cmp byte [0x50acb8], bl
jne 0x456bbd
movsx eax, byte [ebp - 0x508]
push eax
call fcn.0048dce4
test eax, eax
pop ecx
jne 0x456b91
movsx eax, byte [ebp - 0x4f5]
push eax
call fcn.0048dce4
test eax, eax
pop ecx
je 0x456bbd
lea eax, [ebp - 0x508]
push eax
push 0x50acb8
call fcn.00456e4c
lea eax, [ebp - 0x8f0]
push eax
push 0x50b0b8
call fcn.00456e4c
add esp, 0x10
mov dword [ebp - 0x10], 1
push edi
lea eax, [ebp - 0x37d0]
push ebx
push eax
call fcn.00489db0
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 0x456bf3
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 0x456a7a
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45a928
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 0x45aa25
cmp dword [ebp + 0xc], edi
je 0x45aa25
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 0x45aa12
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp + 8], edi
mov word [ebp - 0x210], di
call fcn.00489db0
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 0x45aa12
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp + 8]
jne 0x45aa12
cmp eax, 1
je 0x45a9c2
cmp eax, 2
jne 0x45a9ec
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00422646
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], edi
jne 0x45a9e4
add eax, 0xfffffff0
call fcn.00405c8d
jmp 0x45aa12
add eax, 0xfffffff0
call fcn.00405c8d
cmp dword [esi + 0x18], 4
jne 0x45aa0f
push 4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], edi
call fcn.0048a820
add esp, 0xc
cmp dword [ebp + 0x10], edi
jbe 0x45aa12
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], edi
je 0x45aa20
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x45aa27
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x45add5
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4f6498
call fcn.004ce860
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x45ae83
cmp dword [ebp + 0xc], eax
je 0x45ae83
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 0x45ae83
mov ebx, 0x103
cmp esi, ebx
ja 0x45ae83
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.0048873c
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x45ae7f
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.00489db0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x45ae7f
cmp eax, ebx
ja 0x45ae7f
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004898fa
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x45ae7f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x45ae92
push dword [ebp - 0x1c]
call fcn.0048aed2
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004ce89b
ret 8
Function at 0x45b114
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d6396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
call fcn.004606b3
mov dword [esp + 0x1c], eax
call fcn.00460606
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push eax
call fcn.004345de
pop ecx
lea edi, [esp + 0x40]
mov dword [esp + 0xa4], esi
call fcn.00422e58
mov byte [esp + 0xa4], 1
push dword [0x50bcd0]
mov esi, 0x4e730c
push esi
lea eax, [esp + 0x78]
call fcn.004229e7
push dword [0x50bcd4]
lea eax, [esp + 0x80]
push esi
call fcn.004229e7
add esp, 0x10
push dword [0x50bce8]
lea eax, [esp + 0x7c]
push eax
call fcn.00422bdc
push dword [0x50bcec]
lea eax, [esp + 0x84]
push eax
call fcn.00422bdc
call fcn.004607b0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00462865
pop ecx
mov byte [esp + 0xa4], 2
push dword [eax]
lea eax, [esp + 0x80]
push eax
call fcn.00422bdc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 2
cdq
mov dword [esp + 0x20], vtable.KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0xa4], 3
mov ecx, dword [ebx + 0xc]
xor esi, esi
cmp ecx, esi
je 0x45b26a
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.0049e4f0
cmp eax, edi
jge 0x45b262
mov dword [esp + 0xc], 0x165
jmp 0x45b26a
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.00422f1f
cmp dword [esp + 0x14], esi
je 0x45b28e
cmp dword [ebx + 0x14], esi
je 0x45b28e
xor esi, esi
inc esi
lea ecx, [esp + 0x40]
call fcn.00422ed4
mov ecx, dword [esp + 0x9c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b6dd
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d6396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
and dword [esp], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], 1
call fcn.004606b3
mov dword [esp + 0x1c], eax
call fcn.00460606
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push eax
call fcn.004345de
pop ecx
and dword [esp + 0xa4], 0
lea edi, [esp + 0x40]
call fcn.00422e58
mov byte [esp + 0xa4], 1
push dword [0x50bcd0]
mov esi, 0x4e730c
push esi
lea eax, [esp + 0x78]
call fcn.004229e7
push dword [0x50bcd4]
lea eax, [esp + 0x80]
push esi
call fcn.004229e7
add esp, 0x10
push dword [0x50bce8]
lea eax, [esp + 0x7c]
push eax
call fcn.00422bdc
push dword [0x50bcec]
lea eax, [esp + 0x84]
push eax
call fcn.00422bdc
call fcn.004607b0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00462865
pop ecx
mov byte [esp + 0xa4], 2
push dword [eax]
lea eax, [esp + 0x80]
push eax
call fcn.00422bdc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 2
cdq
mov dword [esp + 0x20], vtable.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 + 0xb4], 3
call fcn.0049e4f0
cmp eax, dword [ebx + 0xc]
jg 0x45b81a
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jb 0x45b81a
mov dword [esp + 0xc], 0x167
jmp 0x45b81e
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.00422f1f
lea ecx, [esp + 0x40]
call fcn.00422ed4
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45d636
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 0x45d658
xor eax, eax
inc eax
jmp 0x45d6c2
cmp dword [edi], esi
je 0x45d661
xor ebx, ebx
inc ebx
jmp 0x45d6a6
lea eax, [ebp - 8]
push eax
push 0x4ea8e8
push 1
push esi
push 0x4ea8d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45d680
push 2
jmp 0x45d6a5
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 0x45d695
push 3
jmp 0x45d6a5
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x45d6a6
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x45d6b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x45d6c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x45ddb9
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, 0x50bd68
mov edi, eax
call fcn.0046353e
pop ecx
mov eax, edi
call fcn.0045daf5
test eax, eax
jne 0x45ddf4
push str.DownloadControl_curlExecuter_Invalid
call fcn.0046353e
pop ecx
mov eax, 0x100
jmp 0x45df3e
push dword [ebp + 8]
push edi
call fcn.0045dc80
mov ebx, eax
test ebx, ebx
je 0x45de15
push str.DownloadControl_GetDownloadFileLength_Failure
call fcn.0046353e
pop ecx
mov eax, ebx
jmp 0x45df3e
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x45de2c
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 0x45de42
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
push dword [edi + 4]
call fcn.0045ed8c
test eax, eax
pop ecx
je 0x45de5a
push dword [edi + 4]
push ebx
call fcn.0045d98e
jmp 0x45de5f
mov eax, 0x80004005
test eax, eax
jge 0x45de78
push str.DownloadControl_CreateFile_Failure
call fcn.0046353e
pop ecx
mov eax, 0x102
jmp 0x45df3e
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.0045df45
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.0046353e
add esp, 0x14
test ebx, ebx
jne 0x45dec4
cmp dword [ebp - 4], 0xce
je 0x45dee2
cmp dword [ebp - 4], 0xc8
je 0x45dee2
cmp ebx, 0x1c
je 0x45ded4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x25d
jle 0x45de8a
jmp 0x45dee6
and dword [ebp - 0xc], 0
push dword [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.0045da23
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0045da66
mov eax, dword [esi]
test eax, eax
je 0x45df0f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45df23
test ebx, ebx
je 0x45df1e
mov dword [eax], ebx
jmp 0x45df23
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 8]
mov esi, 0x50bd68
push dword [ebp - 0xc]
push str.DownloadControl____End_HRESULT___d__Count___d
call fcn.0046353e
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45e769
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 0x45e7e9
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.00428fce
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 0x45e7c0
xor eax, eax
jmp 0x45e7c7
push eax
call fcn.0048a4b0
pop ecx
mov edx, esi
call fcn.0040812e
cmp dword [ebp - 0x10], edi
je 0x45e7df
cmp dword [ebp - 4], ebx
jne 0x45e7df
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 0x45e7f0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4d3e38
call fcn.004ce9f0
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 0x45e819
xor eax, eax
jmp 0x45e8c2
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
mov dword [ebp - 0x14], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0048873c
mov ebx, eax
test ebx, ebx
pop ecx
je 0x45e8bf
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.00489db0
add esp, 0xc
push ebx
push esi
call edi
mov esi, eax
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
shr esi, 2
test esi, esi
mov edi, ebx
jle 0x45e8a6
mov dword [ebp - 0x14], esi
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.00422bdc
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x45e8a1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
call fcn.00452d1c
lea esi, [ebp - 0x10]
add edi, 8
call fcn.00422606
dec dword [ebp - 0x14]
jne 0x45e877
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x14], 1
call fcn.00405c8d
push ebx
call fcn.0048aed2
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x45e8d1
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, 0x4d4058
call fcn.004ce9f0
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 0x45e8f5
xor eax, eax
jmp 0x45e99d
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x45e8ee
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
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 0x4eaa80
call fcn.004229e7
pop ecx
pop ecx
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e990
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 0x45e989
cmp dword [ebp - 0x30], 7
je 0x45e989
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x4d3e38
call fcn.004ce9f0
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45eb17
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
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 0x45eaf8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x45eaf8
lea ecx, [ebp - 0x10]
call fcn.0045e9f2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x45eb4e
xor esi, esi
jmp 0x45eafb
push eax
call fcn.0045eacc
test eax, eax
pop ecx
je 0x45eb4a
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x45eaf8
call edi
cmp eax, ebx
jne 0x45eb4a
jmp 0x45eaf8