joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11c4d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x11c4d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x11c4d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x11c4d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x11c4d94
push eax
push esi
call fcn.011c720b
add esp, 8
pop esi
ret 0x10

Function at 0x11c4da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x11c4e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x11c4e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x11dd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.011c6dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x11c4dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x11c4e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x11c4ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x11c4eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x11dd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.011c6dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x11c4eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x11c4e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x11c5000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x11c5131
push esi
call fcn.011c8145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.011b7080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x11c5131
push 0
push ebp
call fcn.011b73a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.011b7260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x11c508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.011b72f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x11c5121
push 0x11dd918
push edi
call fcn.011c63f0
push eax
push ebx
push esi
call fcn.011c4f60
push 0x11dd8f8
push edi
call fcn.011c63f0
push eax
push ebx
push esi
call fcn.011c4f60
push 0x11dd8d8
push edi
call fcn.011c63f0
push eax
push ebx
push esi
call fcn.011c4f60
push 0x11dd8c0
push edi
call fcn.011c63f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.011c4f60
push 0x11dd8a0
push edi
call fcn.011c63f0
push eax
push ebx
push esi
call fcn.011c4f60
push 0x11dd888
push edi
call fcn.011c63f0
push eax
push ebx
push esi
call fcn.011c4f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x11c61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.011c6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.011c6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.011c6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.011c6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x11c6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x11c6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x11d887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x11c6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x11c6c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401000
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x28]
push 5
push str._init
push esi
mov dword [0x40e640], edi
call fcn.00408880
add esp, 0xc
test eax, eax
jne 0x401043
cmp byte [esi + 5], 0x20
jne 0x401030
lea eax, [esi + 6]
push eax
call fcn.004023c0
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x1c
ret 0x10
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0x4010f0
push 0
push 0x65
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [0x40ef4c], eax
jne 0x401080
push 0x10
push eax
push str.Failed_to_create_dialog.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret 0x10
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x401740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
call esi
test eax, eax
jle 0x4010dc
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call esi
test eax, eax
jg 0x4010bc
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10
Function at 0x402650
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov ebp, dword [esp + 0x98]
mov edx, ebp
push esi
mov esi, dword [esp + 0x98]
cmp ebp, 0x40
push edi
mov dword [esp + 0x10], edx
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
jbe 0x4026b6
lea edi, [ebp - 1]
shr edi, 6
push esi
push ebx
call fcn.00402750
mov edx, dword [esp + 0x18]
add esp, 8
sub edx, 0x40
add esi, 0x40
dec edi
mov dword [esp + 0x10], edx
jne 0x40269b
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [esp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x13], 0x80
cmp edx, 0x38
ja 0x40270d
lea edx, [esp + 0x14]
lea ecx, [ebp*8]
shr ebp, 0x1d
push edx
push ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebp
call fcn.00402750
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
lea ecx, [esp + 0x14]
lea eax, [ebp*8]
shr ebp, 0x1d
push ecx
push ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ebp
call fcn.00402750
lea edx, [esp + 0x5c]
push edx
push ebx
call fcn.00402750
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret

Function at 0x405bfd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b880
cmp edx, dword [eax]
je 0x405c1f
add eax, 8
inc ecx
cmp eax, 0x40b910
jl 0x405c10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b880]
jne 0x405d4d
mov eax, dword [0x40ef5c]
cmp eax, 1
je 0x405d27
test eax, eax
jne 0x405c50
cmp dword [0x40b5b4], 1
je 0x405d27
cmp edx, 0xfc
je 0x405d4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405c87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407990
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405cca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4094f4
push edi
call fcn.00407df0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407990
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004079a0
lea eax, [ebp - 0xa0]
push 0x4094d4
push eax
call fcn.004079a0
push dword [esi + 0x40b884]
lea eax, [ebp - 0xa0]
push eax
call fcn.004079a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407d58
add esp, 0x2c
pop edi
jmp 0x405d4d
lea eax, [ebp + 8]
lea esi, [esi + 0x40b884]
push 0
push eax
push dword [esi]
call fcn.00405e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402a70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41a1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x64]
mov dword [esp + 0x84], ebx
call fcn.00412bcb
lea eax, [esp + 0x1c]
lea ebp, [esi + 0x74]
push ebx
push eax
lea ecx, [esi + 0x6c]
push ebp
push ecx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], ebx
call dword [0x41b238]
test eax, eax
jne 0x402ae9
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call fcn.00412c40
xor eax, eax
jmp 0x402c6c
lea edx, [esp + 0x1c]
push ebx
lea eax, [esi + 0x78]
lea edi, [esi + 0x70]
push edx
push eax
push edi
call dword [0x41b238]
test eax, eax
jne 0x402b1f
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call fcn.00412c40
xor eax, eax
jmp 0x402c6c
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x44
push ecx
call dword [0x41b23c]
mov eax, dword [ebp]
mov edx, dword [edi]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
push ecx
push ebx
push ebx
push ebx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xa0]
push 1
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x8c], 0x101
mov word [esp + 0x90], bx
call dword [0x41b240]
test eax, eax
jne 0x402bf1
call dword [0x41b244]
push 0x5c2538
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00412cae
push edi
lea eax, [esp + 0x14]
push 0x5c0b0c
push eax
mov byte [esp + 0x90], 1
call fcn.004109c0
add esp, 8
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004129b5
push ebx
mov ecx, esi
call fcn.004026c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], bl
call fcn.00412c40
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call fcn.00412c40
xor eax, eax
jmp 0x402c6c
mov eax, dword [ebp]
mov ebp, dword [0x41b260]
push eax
call ebp
mov ecx, dword [edi]
push ecx
call ebp
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push ebx
push esi
push 0x4024e0
push ebx
push ebx
mov dword [esi + 0x7c], edx
mov dword [esp + 0x2c], ebx
call dword [0x41b248]
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x402c43
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call fcn.00412c40
xor eax, eax
jmp 0x402c6c
push ebx
push ebx
push ebx
push ebx
call dword [0x41b24c]
lea ecx, [esp + 0x8c]
mov dword [esi + 0x68], eax
mov dword [esp + 0x84], 0xffffffff
call fcn.00412c40
mov eax, 1
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret 4
Function at 0x4123c3
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0043ec50
push dword [esp + 0x10]
call fcn.00426500
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
push 0x104
call fcn.0043ce80
call fcn.0043ebe0
lea eax, [esp + 8]
push eax
call fcn.0043eae0
lea eax, [esp]
push eax
push 0
push 0
push dword [esp + 0x18]
push 0
call sub.SHELL32.dll_SHGetFolderLocation
mov eax, dword [esp + 4]
push eax
push dword [esp + 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
mov edx, dword [esp + 4]
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea80
pop eax
push eax
call fcn.004264d0
pop edx
add eax, edx
jmp 0x412450
push dword [esp + 4]
call fcn.0043ecb0
add esp, 8
ret 4

Function at 0x416bff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416c05
call fcn.0043ec50
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00426060
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00426060
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x416ca6
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x18], eax
push dword [esp + 8]
call sub.ADVAPI32.dll_RegCloseKey
push dword [esp + 0x18]
call sub.KERNEL32.dll_SetLastError
mov eax, dword [esp + 0x10]
jmp 0x416cb7
push dword [esp]
call fcn.0043ecb0
push dword [esp + 4]
call fcn.0043ecb0
add esp, 0x1c
pop ebx
ret 0xc
Function at 0x416e47
Capabilities:
Get disk information

Disassembly:
mov edx, 0x83
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416e4c
call fcn.0043ec50
push dword [esp + 0x214]
call fcn.00426500
mov edx, dword [esp + 0x210]
lea ecx, [esp]
call fcn.00426060
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
push 0x104
call fcn.0043ce80
lea eax, [esp + 8]
push 0x104
push eax
call fcn.0043eb70
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
mov eax, 0x442624
push eax
mov eax, 0x445d92
push eax
push dword [esp + 0x10]
call fcn.0043c960
lea eax, [esp + 4]
push eax
call fcn.0043eae0
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
mov eax, 0x442ce4
push eax
mov eax, 0x4468b6
push eax
push dword [esp + 0x10]
call fcn.0043c960
lea eax, [esp + 4]
push eax
call fcn.0043eae0
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
mov eax, 0x442038
push eax
mov eax, str.__
push eax
push dword [esp + 0x10]
call fcn.0043c960
lea eax, [esp + 4]
push eax
call fcn.0043eae0
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
mov eax, 0x442038
push eax
mov eax, str.._
push eax
push dword [esp + 0x10]
call fcn.0043c960
lea eax, [esp + 4]
push eax
call fcn.0043eae0
push 0x104
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_QueryDosDeviceW
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.0043ea40
pop edx
push eax
push 0x104
push edx
call fcn.0043ece0
call fcn.004264e2
add dword [esp], edx
call fcn.0043cf70
pop eax
push eax
call fcn.004264d0
pop edx
add eax, edx
jmp 0x416fbb
push dword [esp]
call fcn.0043ecb0
add esp, 0x20c
ret 4

Function at 0x4173de
Capabilities:
Query environment variable

Disassembly:
xor eax, eax
push eax
push eax
push eax
call fcn.0043ec50
push dword [esp + 0x14]
call fcn.00426500
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00426060
mov edx, 0x442038
lea ecx, [esp + 4]
call fcn.00426068
push 0
push 0
push dword [esp + 8]
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x41745e
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
push dword [esp + 0x10]
call fcn.0043ce80
lea eax, [esp + 8]
push eax
call fcn.0043eae0
push dword [esp + 8]
mov eax, dword [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
push dword [esp + 0xc]
call fcn.0043cf70
pop eax
push eax
call fcn.004264d0
pop edx
add eax, edx
jmp 0x41748d
push dword [esp]
call fcn.0043ecb0
push dword [esp + 4]
call fcn.0043ecb0
add esp, 0xc
ret 4
Function at 0x419276
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.0043ec50
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00426060
mov byte [esp + 0xc], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00405ed2
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
cmp ebx, 0xffffffff
je 0x4192f0
push 0
lea eax, [esp + 8]
push eax
push 0xc
push dword [esp + 0x28]
push 0
push 0
push 0x2d1080
push dword [esp + 0x24]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0xc], al
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x4192fc
push dword [esp]
call fcn.0043ecb0
add esp, 0x10
pop ebx
ret 8
Function at 0x41acf3
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41acfa
call fcn.0043ec50
push dword [esp + 0x2c]
call fcn.00426500
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00426060
mov dword [esp + 8], 0
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
push 0x104
call fcn.0043ce80
lea eax, [esp + 0x10]
push eax
call fcn.0043eae0
lea eax, [esp + 0x10]
mov edx, 0x442038
push edx
push 3
push eax
call fcn.0043ebb0
mov edx, 0x442038
lea ecx, [esp + 0x18]
call fcn.00426068
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 8], eax
mov dword [esp + 4], 0
jmp 0x41ad8d
mov ebx, dword [esp + 8]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 4]
jl 0x41ae49
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea40
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0xc]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.0043dbb0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.0043eb70
push dword [esp]
push edx
call fcn.0043ea40
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0043ea40
pop edx
push eax
push 3
push edx
call fcn.0043ece0
call fcn.004264e2
add dword [esp], edx
call fcn.00416e47
call fcn.00426550
mov edx, eax
pop ecx
call fcn.00426510
je 0x41ae3f
lea edx, [esp + 0x10]
push edx
call fcn.0043ea40
pop edx
push eax
push 3
push edx
call fcn.0043ece0
lea eax, [esp + 0x1c]
push eax
call fcn.0043eae0
jmp 0x41ae49
inc dword [esp + 4]
jno 0x41ad8d
mov edx, dword [esp + 0x18]
push edx
call fcn.0043ea40
pop edx
push eax
push edx
call fcn.0043ea80
pop eax
push eax
call fcn.004264d0
pop edx
add eax, edx
jmp 0x41ae71
push dword [esp + 0x18]
call fcn.0043ecb0
push dword [esp]
call fcn.0043ecb0
push dword [esp + 0xc]
call fcn.0043ecb0
add esp, 0x1c
pop edi
pop ebx
ret 4
Function at 0x41f882
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41f888
call fcn.0043ec50
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00426060
mov byte [esp + 0x18], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.00405ed2
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x41f908
push 0
lea eax, [esp + 0x14]
push eax
push 0x428
push dword [esp + 0x34]
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push dword [esp + 0x30]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0x18], al
push dword [esp + 0x14]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0x18]
movsx eax, al
jmp 0x41f914
push dword [esp]
call fcn.0043ecb0
add esp, 0x1c
pop ebx
ret 8