joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4565a4
Capabilities:
Get storage device properties

Disassembly:
push 0x28
mov eax, 0x66cf1d
call fcn.00621369
mov si, cx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00424609
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b7d4
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x20]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
inc eax
mov byte [ebp - 4], al
movzx eax, si
push eax
lea eax, [ebp - 0x14]
push str.__c:
push eax
call fcn.0041c07a
mov esi, dword [ebp - 0x14]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x456666
push 0x229
lea ecx, [ebp - 0x20]
call fcn.0041b552
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push ebx
push eax
mov ecx, 0x228
lea eax, [ebp - 0x30]
push ecx
push edi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x34]
mov dword [edi + 4], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45665d
cmp dword [edi + 0x1c], 7
push 1
pop eax
cmove ebx, eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.0041b90f
lea ecx, [esi - 0x10]
call fcn.004246cb
mov eax, ebx
call fcn.00621313
ret

Function at 0x45667e
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x66cf52
call fcn.00621369
mov si, cx
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], edi
call fcn.00424609
push eax
lea ecx, [ebp - 0x20]
call fcn.0041b7d4
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
movzx eax, si
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push str._c:_test.tmp
push eax
call fcn.0041c07a
mov esi, dword [ebp - 0x20]
mov dword [esp], 0x4000000
push 2
push ecx
push 0xc0000000
push esi
lea ecx, [ebp - 0x1c]
call fcn.00419a50
test eax, eax
jne 0x456752
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45670a
call fcn.004297fa
jmp 0x45670c
xor eax, eax
test eax, eax
jne 0x456755
push eax
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043654a
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00419aa0
test eax, eax
jne 0x456752
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jne 0x456752
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 1
je 0x456760
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x456755
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x456760
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.004246cb
mov eax, dword [ebp - 0x30]
call fcn.00621313
ret
Function at 0x456edd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push esi
push edi
push 0x38
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00638f20
and dword [ebp - 0x38], 0
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], str.open
jb 0x456f21
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], edi
jb 0x456f2c
mov esi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x2c], esi
cmp byte [ebp + 8], cl
push 5
pop eax
cmovne eax, ecx
mov dword [ebp - 0x3c], 0x540
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x456f56
xor al, al
jmp 0x456f80
cmp dword [ebp - 8], 0
je 0x456f7e
test ebx, ebx
je 0x456f7e
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret

Function at 0x45730a
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x66d0c1
call fcn.00621369
mov esi, ecx
xor ecx, ecx
xorps xmm0, xmm0
cmp dword [esi + 0x14], 8
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
jb 0x457332
mov eax, dword [esi]
jmp 0x457334
mov eax, esi
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4573a6
push edi
call fcn.0063e2ce
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4573a6
push edi
push 0
push ebx
call fcn.00638f20
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x457363
mov esi, dword [esi]
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x457397
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x6cdc00
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x457397
mov eax, dword [ebp - 0x18]
xor esi, esi
mov edi, dword [eax + 8]
or esi, dword [eax + 0xc]
jmp 0x45739d
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push ebx
call fcn.0063de88
pop ecx
jmp 0x4573ac
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov eax, esi
mov edx, edi
call fcn.00621313
ret
Function at 0x457447
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
xor ebx, ebx
xor esi, esi
push 0xc
push ebx
push eax
mov dword [ebp - 0xc], ebx
inc esi
call fcn.00638f20
push 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
push ebx
push eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0xc], ebx
call fcn.00638f20
add esp, 0x18
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push eax
push 0xc
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push edi
call ebx
test eax, eax
je 0x4574bf
cmp dword [ebp - 0xc], 0xc
jne 0x4574bf
movzx eax, byte [ebp - 0x28]
and esi, eax
push 0xc
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00638f20
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xc
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00638f20
add esp, 0x18
lea eax, [ebp - 0xc]
push 0
push eax
push 0xc
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push edi
call ebx
test eax, eax
je 0x457518
cmp dword [ebp - 0xc], 0xc
jne 0x457518
xor eax, eax
cmp byte [ebp - 0x34], al
sete al
and esi, eax
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push 0x228
push 0
push eax
call fcn.00638f20
add esp, 0xc
mov dword [ebp - 0x258], 5
mov dword [ebp - 0x25c], 0x200
mov byte [ebp - 0x23e], 0xec
push 0x28
pop eax
push 2
pop ecx
push 0
mov word [ebp - 0x264], ax
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0x262], cx
lea eax, [ebp - 0x264]
mov ecx, 0x228
push ecx
push eax
push ecx
push eax
push 0x4d02c
push edi
call ebx
test eax, eax
je 0x4575a1
cmp dword [ebp - 0xc], 0x228
jne 0x4575a1
push 2
pop eax
cmp word [ebp - 0x8a], ax
sbb ecx, ecx
neg ecx
and esi, ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret 4
Function at 0x4575b6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6d268c]
and dword [ebp - 0x1c], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ax, word [0x6d2690]
mov word [ebp - 8], ax
xor eax, eax
and dword [ebx + 4], eax
push esi
mov word [ebx], ax
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00457c09
mov edi, dword [ebp - 0x24]
mov esi, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
jmp 0x457653
movzx eax, word [esi]
push 8
mov dword [ebp - 0x20], eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00638f20
add esp, 0xc
lea eax, [ebp - 0x18]
push 0
push 0
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x457650
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shrd ecx, eax, 0x1e
shr eax, 0x1e
cmp dword [ebp - 0x1c], ecx
jae 0x457650
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov word [ebx], ax
mov dword [ebx + 4], ecx
add esi, 2
cmp esi, edi
jne 0x457602
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret 8

Function at 0x45777d
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movzx eax, cx
xor esi, esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push str.._c:
push eax
call fcn.00457bea
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45782a
push 0xc
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00638f20
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push eax
push 0xc
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45782a
cmp dword [ebp - 0x210], 0xc
jne 0x45782a
mov eax, dword [ebp - 0x218]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x45782c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret 4
Function at 0x45783f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6d268c]
push ebx
push esi
mov dword [ebp - 0xc], eax
xor esi, esi
mov ax, word [0x6d2690]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x4578de
push edi
xor edi, edi
mov ecx, esi
inc edi
shl edi, cl
test edi, ebx
je 0x4578d4
lea eax, [esi + 0x41]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4578a5
not edi
and ebx, edi
jmp 0x4578d4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.0045777d
test eax, eax
je 0x4578d4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00457c09
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ecx + 0xc]
call fcn.004578ee
inc esi
cmp esi, 0x20
jb 0x457878
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret
Function at 0x45ac83
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
ret
Function at 0x45b07f
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0x144
mov eax, 0x66d697
call fcn.00621369
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 0x14]
or ebx, 0xffffffff
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], ecx
mov byte [ebp - 0x134], cl
push 0x104
push ecx
mov edi, 0x105
mov dword [ebp - 4], ecx
push edi
push eax
mov dword [esi], ecx
call fcn.0064e305
push edi
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00638f20
add esp, 0x1c
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x45b105
mov dword [esi], 3
jmp 0x45b2f2
cmp byte [ebp - 0x11c], 0
jne 0x45b112
xor eax, eax
jmp 0x45b11f
lea eax, [ebp - 0x11c]
push eax
call fcn.0063c700
pop ecx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.004292fd
push 0x6d2914
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0045c9f8
add esp, 0xc
lea ecx, [ebp - 0x134]
push eax
call fcn.00428aea
push 0
push 1
lea ecx, [ebp - 0x14c]
call fcn.0042961d
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0
cmovae eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45b1a3
call edi
cmp eax, 0xb7
je 0x45b1a3
call edi
cmp eax, 5
jne 0x45b0fa
push str.DeskUpdate
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0045c9f8
add esp, 0xc
lea ecx, [ebp - 0x134]
push eax
call fcn.00428aea
push 0
push 1
lea ecx, [ebp - 0x14c]
call fcn.0042961d
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0
cmovae eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x45b20e
call edi
cmp eax, 0xb7
je 0x45b20e
call edi
cmp eax, 5
jne 0x45b0fa
push str.GlobalMgr.db
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0045c9f8
add esp, 0xc
lea ecx, [ebp - 0x134]
push eax
call fcn.00428aea
xor ebx, ebx
lea ecx, [ebp - 0x14c]
push ebx
push 1
call fcn.0042961d
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push ebx
cmovae eax, dword [ebp - 0x134]
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45b27f
mov dword [esi], 0x50
jmp 0x45b2c0
call edi
cmp eax, 2
jne 0x45b2ba
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0
cmovae eax, dword [ebp - 0x134]
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45b2c5
mov dword [esi], 0x65f
cmp ebx, 0xffffffff
je 0x45b2f2
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0x104
cmovae eax, dword [ebp - 0x134]
push eax
push 0x105
push dword [ebp - 0x150]
call fcn.0064e2fa
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x134]
call fcn.0042961d
mov eax, ebx
call fcn.00621313
ret 0x10
Function at 0x45c025
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x66d8b0
call fcn.00621369
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.0045c26f
xor ecx, ecx
lea eax, [ebp - 0x40]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x2c], 8
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [ebp - 0x40]
push 3
push ecx
inc ecx
push ecx
push closesocket
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x45c0f8
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.0045c26f
lea ecx, [ebp - 0x40]
call fcn.0045c81c
test al, al
jne 0x45c0c5
lea ecx, [ebp - 0x28]
call fcn.0045c81c
test al, al
je 0x45c0c5
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x45c0c5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 1
push closesocket
push eax
call edi
xor edi, edi
lea ecx, [ebp - 0x28]
push edi
push 1
mov esi, eax
call fcn.00428e92
cmp esi, 0xffffffff
je 0x45c135
jmp 0x45c0fa
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x45c12e
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45c12e
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x40]
push edi
inc eax
push eax
call fcn.00428e92
mov al, bl
call fcn.00621313
ret 4

Function at 0x45c14c
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x66d8b0
call fcn.00621369
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.0045c26f
xor ecx, ecx
lea eax, [ebp - 0x40]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x2c], 8
push 2
cmovae eax, dword [ebp - 0x40]
push ecx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45c1cb
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.0045c26f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00428e92
cmp esi, 0xffffffff
je 0x45c1f7
push 0
lea eax, [ebp - 0x44]
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45c1f0
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x40]
push 0
inc eax
push eax
call fcn.00428e92
mov al, bl
call fcn.00621313
ret 4
Function at 0x45c26f
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x66d902
call fcn.00621369
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x23c], esi
xor edx, edx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x238], edx
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edx
jb 0x45c2aa
mov eax, dword [esi]
jmp 0x45c2ac
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x208
xor edi, edi
mov dword [ebp - 4], edx
push edx
lea eax, [ebp - 0x21c]
inc edi
push eax
mov dword [ebp - 0x238], edi
call fcn.00638f20
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
xor edi, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45c3a9
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
je 0x45c326
lea eax, [ebp - 0x21c]
push eax
call fcn.0063dcb8
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004284c0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004253a9
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.00428e92
mov edi, 0x6d2998
test bl, bl
jne 0x45c372
mov edi, 0x6d29c0
push edi
call fcn.0063dcb8
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00425448
mov ecx, esi
call fcn.0045c3b1
test al, al
jne 0x45c394
mov ecx, esi
call fcn.0045c47b
mov edi, 0x6d29e4
push edi
call fcn.0063dcb8
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00425448
mov eax, esi
call fcn.00621313
ret
Function at 0x45d17a
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd3c], edx
push edi
mov dword [ebp - 0xd38], ecx
xor esi, esi
mov dword [ebp - 0xd40], eax
test bl, bl
jne 0x45d3c0
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.00638f20
push esi
push 0x6d2a0c
push 0xffffffffffffffff
lea eax, [ebp - 0x50c]
push 0xff
push eax
call fcn.00448b01
add esp, 0x20
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45d3b6
and dword [ebp - 0xd34], 0
lea eax, [ebp - 0xd18]
push 0xc
push 0
push eax
call fcn.00638f20
xor eax, eax
push 0x800
push eax
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd14], eax
lea eax, [ebp - 0xd0c]
push eax
call fcn.00638f20
add esp, 0x18
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd18]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45d3a9
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00638f20
push 0x100
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00638f20
push 0x100
lea eax, [ebp - 0x30c]
push 0
push eax
call fcn.00638f20
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.0045cc06
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.0045cc06
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.0045cc06
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.0064e507
add esp, 0x40
test eax, eax
jne 0x45d31f
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.0064e507
pop ecx
test eax, eax
je 0x45d3af
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00429293
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.00428aea
xor ebx, ebx
lea ecx, [ebp - 0xd30]
push ebx
push 1
call fcn.0042961d
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00429293
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.00428aea
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.0042961d
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.00429293
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.00428aea
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.0042961d
mov bl, 1
jmp 0x45d3af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x45d1a9
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret
Function at 0x45d8d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa4
call fcn.00620f90
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.00638f20
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x6d2a58
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0064b6b2
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa4], eax
test eax, eax
jne 0x45d947
xor al, al
jmp 0x45da68
push 0x6ce52c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45da3b
lea ecx, [ebp - 0x2aa0]
mov dword [ebp - 0x2aa0], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x45da3b
push ebx
push 3
pop eax
mov dword [ebp - 0x2a9c], eax
lea esi, [ebp - 0x2a8c]
mov ebx, edi
lea eax, [ebp - 0x2a94]
sub ebx, eax
lea ecx, [esi + 8]
call fcn.0045da78
push 6
mov dword [ebp - 0x2a98], eax
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.00638f20
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x2a94]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x45d9d7
inc edx
cmp edx, 6
jb 0x45d9ba
mov ecx, dword [ebp - 0x2a98]
jmp 0x45d9f5
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x45d9e7
cmp eax, 0x17
jne 0x45da30
mov ecx, dword [ebp - 0x2a98]
cmp dword [ebp - 0x2a9c], ecx
jle 0x45da30
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov dword [ebp - 0x2a9c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x45d997
pop ebx
push dword [ebp - 0x2aa4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.00638f20
add esp, 0xc
lea eax, [ebp - 0x2a94]
mov ecx, edi
push eax
call fcn.0045d744
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00620181
mov esp, ebp
pop ebp
ret