joyce8/EMBER2024-capa huggingface dataset:
Function at 0x924da0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c7000]
push edi
jmp 0x924dba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x924dc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x924db0
mov eax, 1
add ebx, ebx
jne 0x924dd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x924de4
jne 0x924e03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x924e03
dec eax
add ebx, ebx
jne 0x924df0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x924dc8
add ebx, ebx
jne 0x924dff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x924e55
xor ecx, ecx
sub eax, 3
jb 0x924e1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x924e8a
sar eax, 1
mov ebp, eax
jmp 0x924e26
add ebx, ebx
jne 0x924e26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x924df4
inc ecx
add ebx, ebx
jne 0x924e34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x924df4
add ebx, ebx
jne 0x924e41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x924e36
jne 0x924e52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x924e36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x924e74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x924e66
jmp 0x924db6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x924e74
add edi, ecx
jmp 0x924db6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x924e92
cmp byte [edi], 0x11
jne 0x924e92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x924e97
lea edi, [esi + 0x51d000]
mov eax, dword [edi]
or eax, eax
je 0x924f0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x96426c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9643e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x924ec4
mov ecx, edi
jns 0x924ef3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9643ec]
or eax, eax
je 0x924f09
mov dword [ebx], eax
add ebx, 4
jmp 0x924ee1
call dword [esi + 0x9643fc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x924f40
cmp al, 0xef
ja 0x924f33
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x924f15
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x924f22
mov ebp, dword [esi + 0x9643f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x924f74
sub esp, 0xffffff80
jmp 0x420577
Function at 0x404bca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [str.9l_f7]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00402e5c
mov dword [ebp - 0x14], eax
cmp dword [0x425210], esi
jne 0x404cbd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x404d9d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x404d9d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404d9d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x425210], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x425214], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x425218], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425220], eax
test eax, eax
je 0x404cba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42521c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404ce2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404cd5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x404cf7
push 4
pop eax
jmp 0x404d9f
cmp dword [ebp - 0x14], esi
je 0x404cf7
push dword [0x425210]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x404cdc
mov eax, dword [0x42521c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x404d55
cmp dword [0x425220], edi
je 0x404d55
push eax
call ebx
push dword [0x425220]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x404d55
test eax, eax
je 0x404d55
call ecx
test eax, eax
je 0x404d4a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x404d4a
test byte [ebp - 8], 1
jne 0x404d55
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x404d85
mov eax, dword [0x425214]
cmp eax, edi
je 0x404d82
push eax
call ebx
test eax, eax
je 0x404d82
call eax
mov esi, eax
test esi, esi
je 0x404d82
mov eax, dword [0x425218]
cmp eax, edi
je 0x404d82
push eax
call ebx
test eax, eax
je 0x404d82
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x425210]
call ebx
test eax, eax
je 0x404d9d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x404d9f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013c0
mov esp, ebp
pop ebp
ret
Function at 0x4e10e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401cf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401998
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x68], ebx
mov esi, 1
mov eax, 9
cmp si, ax
jg 0x4e120c
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x60], 0x406258
mov dword [ebp - 0x68], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
xor eax, eax
cmp si, 9
sete al
neg eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0x50], ax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x48]
push eax
push ecx
mov dword [ebp - 0x58], 0xb
call dword [sym.imp.MSVBVM60.DLL_rtcImmediateIf]
mov eax, dword [edi]
cmp eax, ebx
je 0x4e11a9
cmp word [eax], 1
jne 0x4e11a9
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
movsx ebx, si
sub ebx, edx
cmp ebx, ecx
jb 0x4e11a4
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
shl ebx, 2
jmp 0x4e11b1
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, eax
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
add ecx, ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
push eax
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov eax, 1
add esp, 0x14
add ax, si
jo 0x4e1248
mov esi, eax
xor ebx, ebx
jmp 0x4e1125
push 0x4e1235
jmp 0x4e1234
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
Function at 0x100e9eb8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10104ed0]
jne 0x100e9ec2
repz ret
jmp fcn.100ea8d8

Function at 0x100ee89f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100ea36c
and dword [ebp - 4], 0
cmp dword [0x10106e2c], 0
mov ebx, eax
jne 0x100ee950
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100eea01
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100eea01
push eax
call fcn.100ea2fa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10106e2c], eax
call esi
push eax
call fcn.100ea2fa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10106e30], eax
call esi
push eax
call fcn.100ea2fa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10106e34], eax
call esi
push eax
call fcn.100ea2fa
pop ecx
mov dword [0x10106e3c], eax
test eax, eax
je 0x100ee950
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100ea2fa
pop ecx
mov dword [0x10106e38], eax
mov eax, dword [0x10106e38]
cmp eax, ebx
je 0x100ee9a8
cmp dword [0x10106e3c], ebx
je 0x100ee9a8
push eax
call fcn.100ea375
push dword [0x10106e3c]
mov esi, eax
call fcn.100ea375
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100ee9a8
test edi, edi
je 0x100ee9a8
call esi
test eax, eax
je 0x100ee99f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100ee99f
test byte [ebp - 0xc], 1
jne 0x100ee9a8
or dword [ebp + 0x10], 0x200000
jmp 0x100ee9e1
mov eax, dword [0x10106e30]
cmp eax, ebx
je 0x100ee9e1
push eax
call fcn.100ea375
pop ecx
test eax, eax
je 0x100ee9e1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100ee9e1
mov eax, dword [0x10106e34]
cmp eax, ebx
je 0x100ee9e1
push eax
call fcn.100ea375
pop ecx
test eax, eax
je 0x100ee9e1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10106e2c]
call fcn.100ea375
pop ecx
test eax, eax
je 0x100eea01
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100eea03
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100efa50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [0x10104bf8], 0x238b
mov dword [ebp - 8], 0
mov dword [0x10104bf8], 0x1d7a
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x104
setl al
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0x11]
test al, 1
jne 0x100efaa6
jmp 0x100efadd
mov dword [0x10104bfc], 0x3c9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax]
cmp ecx, 0
jne 0x100eface
jmp 0x100efadd
jmp 0x100efad0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x100efa90
mov dword [0x10104bfc], 0x17fe
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dx, word [eax + ecx*2 - 0x1a]
mov word [ebp - 0x1a], dx
mov ax, word [ebp - 0x1a]
movzx ecx, ax
cmp ecx, 0x6c
jne 0x100efbc5
mov eax, dword [0x10104bf8]
sub eax, 0x82d
mov dword [0x10104bf8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x100efbc3
mov dword [0x10104bf8], 0x12a0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x100efbc1
mov dword [0x10104bf8], 0x1fd2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x100efbbf
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x100efbbd
mov dword [0x10104bf8], 0x2335
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x100efbbb
mov dword [0x10104bf8], 0x202
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x100efbb9
mov dword [ebp - 0x10], 1
jmp 0x100efbd6
jmp 0x100efbbb
jmp 0x100efbbd
jmp 0x100efbbf
jmp 0x100efbc1
jmp 0x100efbc3
jmp 0x100efbc5
mov dword [0x10104bf8], 0x3b1
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x1c
pop ebp
ret
Function at 0x100efe60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.100efe60]
mov dword [0x10104bf8], 0x1abd
mov dword [ebp - 8], eax
mov dword [0x10104bf8], 0x24bb
jmp 0x100efe8d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x100eff01
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
sete cl
mov byte [ebp - 9], cl
mov al, byte [ebp - 9]
test al, 1
jne 0x100efea7
jmp 0x100efebb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x100efe85
jmp 0x100efebb
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [0x10104bf8]
add ecx, 0x1449
mov dword [0x10104bf8], ecx
mov al, 1
test al, 1
jne 0x100efe8d
jmp 0x100efeeb
mov eax, dword [0x10104bf8]
sub eax, 0x24d8
mov dword [0x10104bf8], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add esp, 0x14
pop ebp
ret
Function at 0x407e18
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x4c
mov eax, dword [0x522ecc]
test eax, eax
je 0x407e4a
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.00426fc7
test eax, eax
setne bl
jmp 0x407f67
xor edi, edi
test edx, edx
je 0x407e5a
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov edi, eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x407e93
mov dword [esp + 8], 0x91
mov dword [esp + 4], 0x4952f4
mov dword [esp], 0x49530a
call dword [0x491228]
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x407ec7
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x407f11
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x495348
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
je 0x407f15
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor ebx, ebx
jmp 0x407f45
xor ecx, ecx
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
sete bl
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x407f56
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407f67
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407f71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ecx, 0x41
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
mov esi, eax
xor eax, eax
push ebx
sub esp, 0x15c
mov dword [ebp - 0x130], edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x12c], edx
mov edx, 0x4df840
mov ecx, 0x1ff
mov dword [ebp - 0x124], 0xffffffff
mov edi, edx
rep stosb byte es:[edi], al
lea edi, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x1ff
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
test ebx, ebx
je 0x408043
cmp byte [esi + ebx], 0x5c
je 0x407fdb
dec ebx
jmp 0x407fce
cmp ebx, 0x103
ja 0x408138
inc eax
mov ecx, esi
mov edx, 0x104
mov dword [esp], eax
mov eax, edi
call fcn.0040735c
lea eax, [ebp - 0x12c]
mov byte [ebp + ebx - 0x11c], 0
inc ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x4080d6
xor eax, eax
mov dword [ebp - 0x12c], eax
jmp 0x408110
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x495361
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x408084
xor eax, eax
mov dword [ebp - 0x130], eax
jmp 0x408110
lea eax, [ebp - 0x128]
xor edi, edi
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x49536a
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x408036
lea eax, [ebp - 0x120]
xor ecx, ecx
add esi, ebx
mov dword [esp + 0x10], 0x4df840
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x408124
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x408138
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40839a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
mov eax, dword [0x4df228]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x16c], eax
mov ebx, dword [ebp + 0x18]
test esi, esi
js 0x40842d
lea edi, [esi - 0x80]
cmp edi, 0x40
jbe 0x4083e6
mov dword [esp + 8], 0x182
mov dword [esp + 4], str.drive.c
mov dword [esp], str._DriveIndex___DRIVE_INDEX_MIN____DriveIndex___DRIVE_INDEX_MAX_
call dword [0x491228]
xor eax, eax
test ecx, ecx
jne 0x4083f0
test edx, edx
je 0x408446
cmp dword [ebp - 0x16c], esi
jne 0x408434
imul esi, eax, 0x58
cmp dword [esi + 0x4df294], ecx
je 0x40840b
inc eax
cmp eax, 0x10
jne 0x4083f8
jmp 0x408415
cmp dword [esi + 0x4df290], edx
jne 0x408403
jmp 0x408446
test ebx, ebx
jne 0x40842d
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], str.Error:_Could_not_find_a_partition_at_offset__lld_on_this_disk
call fcn.0043d9e0
xor eax, eax
jmp 0x408537
test ebx, ebx
jne 0x40842d
mov dword [esp], str.Error:_Searching_for_a_partition_on_a_non_matching_disk
call fcn.0043d9e0
jmp 0x40842d
inc eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x15c]
mov dword [esp + 0xc], str.Harddisk_luPartition_lu
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov edi, dword [str._GLOBALROOT]
mov eax, 1
mov byte [ebp - 0x11d], 0
test edi, edi
je 0x408495
mov dword [esp], edi
call sub.msvcrt.dll_strlen
inc eax
mov dword [esp], eax
lea esi, [ebp - 0x11c]
mov ecx, edi
mov edx, 0x104
mov eax, esi
lea edi, [ebp - 0x15c]
call fcn.0040735c
lea eax, [ebp - 0x10e]
mov dword [esp + 8], 0xf6
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
sub esp, 0xc
test eax, eax
je 0x4084e1
mov dword [esp], esi
call sub.msvcrt.dll_strlen
cmp eax, 0x13
ja 0x408507
test ebx, ebx
jne 0x40842d
call fcn.0043df77
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], str.Could_not_find_a_DOS_volume_name_for__s:__s
call fcn.0043d9e0
jmp 0x40842d
cmp dword [ebp + 0x14], 0
je 0x40852e
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x495461
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strncat_s]
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__strdup]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409a0c
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
xor edi, edi
push esi
lea eax, [ebp - 0xe0]
lea esi, [ebp - 0xf0]
push ebx
sub esp, 0x10c
mov dword [ebp - 0xf0], ecx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov edi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0xc8
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x560000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
sub esp, 0x20
test eax, eax
je 0x409a7d
cmp dword [ebp - 0xf0], 0
je 0x409a7d
mov edx, dword [ebp - 0xe0]
test edx, edx
jne 0x409af8
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0xec]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x2d1080
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
sub esp, 0x20
mov edx, eax
test eax, eax
je 0x409acb
cmp dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0xe8]
jne 0x409b16
cmp dword [0x524104], 0
je 0x409b11
mov eax, str._empty_data_
test edx, edx
jne 0x409ae2
call fcn.0043df77
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], str.Could_not_get_device_number_for_device__s__s
call fcn.0043d9e0
jmp 0x409b11
dec edx
mov eax, dword [ebp - 0xd8]
je 0x409b16
mov dword [esp + 4], ebx
mov dword [esp], str.Ignoring_drive__s_as_it_spans_multiple_disks__RAID__
call fcn.0043d9e0
or eax, 0xffffffff
jmp 0x409b3d
cmp eax, 0x3f
jle 0x409b3d
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], str.Device_Number_for_device__s_is_too_big___d____ignoring_device
call fcn.0043d9e0
mov dword [esp], str.NOTE:_This_may_be_due_to_an_excess_of_Virtual_Drives__such_as_hidden_ones_created_by_the_XBox_PC_app
call fcn.0043d9e0
jmp 0x409b11
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40a050
Capabilities:
Get disk information

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00409b45

Function at 0x40a27a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x71]
add esp, 0xffffff80
mov bl, byte [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], 0x69
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
push edx
push edx
test eax, eax
jne 0x40a2b6
call fcn.0043df77
mov dword [esp], str.GetLogicalDriveStrings_failed:__s
mov dword [esp + 4], eax
call fcn.0043d9e0
jmp 0x40a2d3
cmp eax, 0x69
jbe 0x40a2f3
mov dword [esp + 8], 0x69
mov dword [esp + 4], eax
mov dword [esp], str.GetLogicalDriveStrings:_Buffer_too_small__required__lu_vs.__zu_
call fcn.0043d9e0
mov eax, 1
jmp 0x40a2fc
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
cmp bl, al
je 0x40a2d3
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea esi, [esi + eax + 1]
movsx eax, byte [esi]
test al, al
jne 0x40a2da
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret