joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445090
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c6b2
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2d8], 0
lea ecx, [ebp - 0x2d4]
call fcn.004064f0
mov dword [ebp - 4], 0
push 0x2b4
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00427eb0
add esp, 0xc
push 0x711
push 0x2b4
lea ecx, [ebp - 0x2cc]
push ecx
push 0x80
mov ecx, dword [ebp + 0xc]
call fcn.00405060
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp - 0x2cc], 0
jne 0x445139
push 0
mov ecx, dword [ebp - 0x2dc]
add ecx, 0x1c
call fcn.00406460
mov dword [ebp - 0x2d4], eax
jmp 0x445145
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d4], edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x2d0]
call fcn.00402d70
lea ecx, [ebp - 0x2d4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406530
mov edx, dword [ebp - 0x2d8]
or edx, 1
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d4]
call fcn.00406510
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret 8
Function at 0x445ee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
call fcn.0040d3c3
cmp dword [0x4c78a1], 0x50001
jb 0x445f0c
push 6
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.UxTheme.dll_EnableThemeDialogTexture]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x445d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x446080
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa18], ecx
mov ecx, dword [ebp - 0xa18]
call fcn.0040d3c3
cmp dword [0x4c78a1], 0x50001
jb 0x4460c2
push 6
mov eax, dword [ebp - 0xa18]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.UxTheme.dll_EnableThemeDialogTexture]
mov edx, dword [ebp - 0xa18]
add edx, 0x74
push edx
mov ecx, dword [ebp - 0xa18]
add ecx, 0x10c8
call fcn.0041375b
cmp dword [0x4c78a1], 0x50001
jb 0x4460fb
push 6
mov eax, dword [ebp - 0xa18]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.UxTheme.dll_EnableThemeDialogTexture]
push 0xffffffffffffffff
push 0x1a8
push 0
push 0x477b00
push 0
mov ecx, dword [ebp - 0xa18]
add ecx, 0x1074
call fcn.0040c2e1
mov ecx, dword [ebp - 0xa18]
add ecx, 0x1074
call fcn.004019a0
or eax, 0x20
push eax
mov ecx, dword [ebp - 0xa18]
add ecx, 0x1074
call fcn.00401970
mov dword [ebp - 0xa0c], 0
mov edx, dword [0x477b04]
mov dword [ebp - 0x808], edx
mov eax, dword [0x477b08]
mov dword [ebp - 0x804], eax
push 0x3f8
push 0
lea ecx, [ebp - 0x800]
push ecx
call fcn.00427eb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov dword [ebp - 0xa10], 0
jmp 0x44619d
mov edx, dword [ebp - 0xa10]
add edx, 1
mov dword [ebp - 0xa10], edx
cmp dword [ebp - 0xa10], 0x20
jae 0x446287
mov eax, 1
mov ecx, dword [ebp - 0xa10]
shl eax, cl
and eax, dword [ebp - 4]
je 0x446282
mov ecx, dword [ebp - 0xa10]
add ecx, 0x41
mov word [ebp - 0x808], cx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0xa14], eax
cmp dword [ebp - 0xa14], 3
je 0x4461f7
cmp dword [ebp - 0xa14], 2
je 0x4461f7
jmp 0x44618e
cmp dword [ebp - 0xa14], 2
je 0x44624b
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0x100
lea ecx, [ebp - 0xa08]
push ecx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x44624b
lea eax, [ebp - 0xa08]
push eax
push 0x477b0c
lea ecx, [ebp - 0x802]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0xa0c]
push eax
mov ecx, dword [ebp - 0xa18]
add ecx, 0x1074
call fcn.00402900
xor ecx, ecx
mov word [ebp - 0x802], cx
mov edx, dword [ebp - 0xa0c]
add edx, 1
mov dword [ebp - 0xa0c], edx
jmp 0x44618e
mov ecx, dword [ebp - 0xa18]
call fcn.00446050
push eax
mov ecx, dword [ebp - 0xa18]
add ecx, 0x111c
call fcn.0041383f
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret
Function at 0x449400
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa20], ecx
mov dword [ebp - 0xa14], 1
jmp 0x449434
mov eax, dword [ebp - 0xa14]
add eax, 1
mov dword [ebp - 0xa14], eax
push 0x104
lea ecx, [ebp - 0xa10]
push ecx
mov edx, dword [ebp - 0xa14]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
movzx eax, word [ebp - 0xa10]
cmp eax, 0x2e
je 0x449463
jmp 0x449520
lea ecx, [ebp - 0xa10]
push ecx
mov edx, dword [ebp - 0xa14]
sub edx, 1
push edx
mov ecx, dword [ebp - 0xa20]
add ecx, 0x414
call fcn.00402900
mov dword [ebp - 0xa1c], 0x400
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0xa10]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4494b2
jmp 0x449520
mov dword [ebp - 0xa18], 1
lea edx, [ebp - 0xa1c]
push edx
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0xa18]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x449511
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x808]
push eax
push 1
push 1
mov ecx, dword [ebp - 0xa14]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0xa20]
add ecx, 0x414
call fcn.0040c370
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x449425
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret
Function at 0x44b840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], eax
push 1
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x44c760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x44c787
push 0x24000003
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44c8e7
cmp dword [ebp + 0xc], 0
je 0x44c7a6
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], eax
jae 0x44c7cf
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0x24000004
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44c8e7
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 0xffffffff
jne 0x44c803
xor eax, eax
jmp 0x44c8e7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov esi, dword [ecx + edx*4]
push 0
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x10], eax
je 0x44c854
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x24000005
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44c8e7
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44c8a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44c8e7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44d0c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x44cf70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x74], 0
jne 0x44d0fc
xor eax, eax
jmp 0x44d101
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x44d760
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa1c], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0c], 0
mov dword [ebp - 0xa10], 0
jmp 0x44d7a7
mov eax, dword [ebp - 0xa10]
add eax, 1
mov dword [ebp - 0xa10], eax
cmp dword [ebp - 0xa10], 0x20
jae 0x44d92d
mov edx, 1
mov ecx, dword [ebp - 0xa10]
shl edx, cl
and edx, dword [ebp - 4]
je 0x44d928
push 0x4791e0
push 0x200
lea eax, [ebp - 0x808]
push eax
call fcn.004287bf
add esp, 0xc
mov ecx, dword [ebp - 0xa10]
add ecx, 0x41
mov word [ebp - 0x808], cx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0xa14], eax
cmp dword [ebp - 0xa14], 3
je 0x44d826
cmp dword [ebp - 0xa14], 2
je 0x44d826
cmp dword [ebp - 0xa14], 6
je 0x44d826
jmp 0x44d798
cmp dword [ebp - 0xa14], 2
je 0x44d885
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0x100
lea ecx, [ebp - 0xa08]
push ecx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x44d885
movzx eax, word [ebp - 0xa08]
test eax, eax
je 0x44d885
lea ecx, [ebp - 0xa08]
push ecx
push str._______s_
lea edx, [ebp - 0x802]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [0x49240c]
mov ecx, dword [0x4b367c]
cmp ecx, dword [eax + 0x150]
jne 0x44d8bb
push 2
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0xa0c]
push eax
mov ecx, dword [0x49240c]
add ecx, 0x1a4
call fcn.00402190
jmp 0x44d919
mov ecx, dword [0x49240c]
mov edx, dword [0x4b367c]
cmp edx, dword [ecx + 0x4c8]
jne 0x44d8f2
push 2
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp - 0xa0c]
push ecx
mov ecx, dword [0x49240c]
add ecx, 0x520
call fcn.00402190
jmp 0x44d919
push 2
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0xa0c]
push eax
mov ecx, dword [0x49240c]
mov ecx, dword [ecx + 0x89c]
add ecx, 0x13c
call fcn.00402190
mov edx, dword [ebp - 0xa0c]
add edx, 1
mov dword [ebp - 0xa0c], edx
jmp 0x44d798
mov eax, dword [0x49240c]
mov ecx, dword [0x4b367c]
cmp ecx, dword [eax + 0x150]
je 0x44da03
mov edx, dword [0x49240c]
mov eax, dword [0x4b367c]
cmp eax, dword [edx + 0x4c8]
je 0x44da03
cmp dword [0x4b2444], 0
je 0x44d979
push 0x4b2444
call dword [0x492434]
mov dword [0x4b2444], 0
push 0x4b2444
call dword [0x492430]
mov dword [0x4b2448], eax
mov dword [ebp - 0xa18], 0
jmp 0x44d9a4
mov ecx, dword [ebp - 0xa18]
add ecx, 1
mov dword [ebp - 0xa18], ecx
mov edx, dword [ebp - 0xa18]
cmp edx, dword [0x4b2448]
jae 0x44da03
mov eax, dword [ebp - 0xa0c]
mov dword [ebp - 0xa20], eax
push 2
mov ecx, dword [ebp - 0xa18]
imul ecx, ecx, 0x50
mov edx, dword [0x4b2444]
lea eax, [edx + ecx + 0x10]
push eax
mov ecx, dword [ebp - 0xa20]
push ecx
mov edx, dword [0x49240c]
mov ecx, dword [edx + 0x89c]
add ecx, 0x13c
call fcn.00402190
mov eax, dword [ebp - 0xa0c]
add eax, 1
mov dword [ebp - 0xa0c], eax
jmp 0x44d995
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret
Function at 0x44e0e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0
jne 0x44e0f5
xor eax, eax
xor edx, edx
jmp 0x44e1bd
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x44e1b9
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x254
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0xc]
je 0x44e163
cmp dword [ebp - 0x18], 0x254
jne 0x44e163
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
jmp 0x44e171
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
je 0x44e1a7
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x44e1bd
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 8

Function at 0x44e1d0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 8
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0x7405c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44e1fe
mov eax, 1
jmp 0x44e200
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x44e5a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xa20], ecx
mov ecx, dword [ebp - 0xa20]
call fcn.0040d3c3
cmp dword [0x4c78a1], 0x50001
jb 0x44e5e2
push 6
mov eax, dword [ebp - 0xa20]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.UxTheme.dll_EnableThemeDialogTexture]
mov edx, dword [ebp - 0xa20]
mov eax, dword [edx + 0x68]
mov dword [ebp - 8], eax
push 0xff
mov ecx, dword [ebp - 0xa20]
add ecx, 0x74
call fcn.00404190
push 0x800
mov ecx, dword [ebp - 0xa20]
add ecx, 0x11c
call fcn.00404190
push 0xffffffffffffffff
push 0x1a8
push 0
push 0x47942c
push 0
mov ecx, dword [ebp - 0xa20]
add ecx, 0xc8
call fcn.0040c2e1
mov ecx, dword [ebp - 0xa20]
add ecx, 0xc8
call fcn.004019a0
or eax, 0x20
push eax
mov ecx, dword [ebp - 0xa20]
add ecx, 0xc8
call fcn.00401970
mov dword [ebp - 0xa14], 0
mov ecx, dword [0x479430]
mov dword [ebp - 0x810], ecx
mov edx, dword [0x479434]
mov dword [ebp - 0x80c], edx
push 0x3f8
push 0
lea eax, [ebp - 0x808]
push eax
call fcn.00427eb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov dword [ebp - 0xa18], 0
jmp 0x44e6ba
mov ecx, dword [ebp - 0xa18]
add ecx, 1
mov dword [ebp - 0xa18], ecx
cmp dword [ebp - 0xa18], 0x20
jae 0x44e7af
mov edx, 1
mov ecx, dword [ebp - 0xa18]
shl edx, cl
and edx, dword [ebp - 4]
je 0x44e7aa
mov eax, dword [ebp - 0xa18]
add eax, 0x41
mov word [ebp - 0x810], ax
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0xa1c], eax
cmp dword [ebp - 0xa1c], 3
je 0x44e714
cmp dword [ebp - 0xa1c], 2
je 0x44e714
jmp 0x44e6ab
cmp dword [ebp - 0xa1c], 2
je 0x44e773
push 0x200
lea edx, [ebp - 0x410]
push edx
push 0
push 0
push 0
push 0x100
lea eax, [ebp - 0xa10]
push eax
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x44e773
movzx edx, word [ebp - 0xa10]
test edx, edx
je 0x44e773
lea eax, [ebp - 0xa10]
push eax
push str.____s_
lea ecx, [ebp - 0x80a]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x810]
push edx
mov eax, dword [ebp - 0xa14]
push eax
mov ecx, dword [ebp - 0xa20]
add ecx, 0xc8
call fcn.00402900
xor ecx, ecx
mov word [ebp - 0x80a], cx
mov edx, dword [ebp - 0xa14]
add edx, 1
mov dword [ebp - 0xa14], edx
jmp 0x44e6ab
mov ecx, dword [ebp - 0xa20]
call fcn.0044e540
push eax
mov ecx, dword [ebp - 0xa20]
add ecx, 0x170
call fcn.0041383f
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret
Function at 0x4504e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ecx
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x18]
add eax, 0x74
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x450520
jmp 0x4505eb
mov dword [ebp - 4], 0
push 0
push 0
push 7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45054b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4505eb
push 0
lea eax, [ebp - 4]
push eax
push 7
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45056b
cmp dword [ebp - 4], 7
je 0x450577
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4505eb
push 7
push 0x479a88
lea ecx, [ebp - 0x14]
push ecx
call fcn.00428d68
add esp, 0xc
test eax, eax
jne 0x4505e1
push 0
push 0
push 7
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4505af
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4505eb
push 0
lea ecx, [ebp - 4]
push ecx
push 7
mov edx, dword [ebp - 0x18]
add edx, 0x10074
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4505d5
cmp dword [ebp - 4], 7
je 0x4505e1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4505eb
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret
Function at 0x451200
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b422
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x48d800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
push 0x10000
call fcn.0040858b
add esp, 4
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xe8]
mov dword [eax + 0x1008c], ecx
mov dword [ebp - 0x14], 0
jmp 0x45126e
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0x20
jae 0x451302
mov eax, 1
mov ecx, dword [ebp - 0x14]
shl eax, cl
and eax, dword [ebp - 0x10]
je 0x4512fd
push 0x47983c
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx + 0x1008c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x14]
add eax, 0x41
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx + 0x1008c]
mov word [edx], ax
push 0
lea ecx, [ebp - 0xe4]
call fcn.00445e70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.0040d6c7
test eax, eax
je 0x4512eb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.00445c40
jmp 0x451302
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.00445c40
jmp 0x451265
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 0x1008c]
mov dword [ebp - 0xec], ecx
mov edx, dword [ebp - 0xec]
push edx
call fcn.00408596
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4564c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2074
call fcn.0042beb0
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x206c], ecx
lea eax, [ebp - 4]
push eax
push 0x479ff8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x45666b
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x201c], 0x800
mov dword [ebp - 0x14], 0x1000
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x2070], ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2018]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x201c]
push edx
lea eax, [ebp - 0x1018]
push eax
mov ecx, dword [ebp - 0x2070]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp eax, 0x103
jne 0x45656a
jmp 0x456597
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2018]
push eax
call fcn.00428c42
add esp, 8
test eax, eax
jne 0x45658a
mov dword [ebp - 0xc], 1
jmp 0x456597
mov ecx, 1
test ecx, ecx
jne 0x456507
cmp dword [ebp - 0xc], 0
jne 0x45664f
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x2074], edx
mov eax, dword [ebp - 0x2074]
push eax
push str.image_d
lea ecx, [ebp - 0x2060]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x2064], 1
push 0
push 0
lea eax, [ebp - 0x2064]
push eax
push 0
lea ecx, [ebp - 0x2060]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2068], eax
cmp dword [ebp - 0x2068], 0
je 0x45660f
jmp 0x456618
mov eax, 1
test eax, eax
jne 0x4565a8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
push 1
push 0
lea eax, [ebp - 0x2060]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45664d
mov ecx, dword [ebp - 0x206c]
call fcn.00455ae0
jmp 0x45665a
mov ecx, dword [ebp - 0x206c]
call fcn.00455ae0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x45666d
xor eax, eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret 4