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

Disassembly:
push 0xffffffffffffffff
push 0x4310fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x34]
xor ebx, ebx
xor cl, cl
mov byte [esp + 0x34], cl
cmp ebp, ebx
je 0x419eb4
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
cmp dword [eax - 0xc], ebx
je 0x419eb4
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push 9
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x419dc2
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0x419dc2
mov edx, dword [esp + 0x18]
inc edx
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
push edx
call edi
cmp eax, ebx
jne 0x419db4
push esi
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x3c], 1
cmp esi, ebx
je 0x419dc2
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x419dd1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x3c]
cmp al, bl
jne 0x419e9f
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push 9
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x419e8c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push ebx
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x50], ebx
call edi
test eax, eax
jne 0x419e8c
mov edx, dword [esp + 0x38]
inc edx
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
lea eax, [esp + 0x38]
push eax
push esi
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebp
push edx
call edi
cmp eax, ebx
jne 0x419e7e
push esi
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x34], 1
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x3c], 1
cmp esi, ebx
je 0x419e8c
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x419e9b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov al, cl
mov ecx, dword [esp + 0x20]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x419ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x431114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
lea eax, [esp + 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWARESony_CorporationSony_Picture_UtilityMusicTransfer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419f9a
push esi
mov esi, dword [esp + 8]
cmp esi, ebx
je 0x419f99
push 0x100
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov dword [esp + 0x18], 1
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push str.CurrentVersion
push esi
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419f8e
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ecx, dword [esp + 0x128]
push eax
mov dword [esp + 0x124], ebx
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x114]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x41aea0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004231f0
call fcn.004231f0
mov esi, dword [eax]
xor edi, edi
mov dword [esp + 0xc], esi
cmp esi, edi
jne 0x41aed0
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0040f3a0
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
dec eax
add esp, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp eax, 3
ja case.default.0x41af04
jmp dword [eax*4 + 0x41b070]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x40
jmp 0x41af9a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, 1
call fcn.00427640
add esp, 8
jmp 0x41af9c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x3e8
push edx
push eax
call fcn.00430d80
push edi
push 0x1f400
push edx
push eax
call fcn.00430ee0
push edi
push 8
push edx
push eax
call fcn.00430d80
jmp 0x41af9c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x80
adc edx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x41afd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
and eax, 0xfffc1ff8
add eax, 0x8004200d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x714]
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp ecx, edi
mov edx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jl 0x41b053
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 8]
cmp edx, edi
je 0x41b00e
mov eax, dword [edx + 4]
movzx eax, byte [eax + 4]
jmp 0x41b010
xor eax, eax
cmp ecx, eax
jge 0x41b04b
mov eax, dword [esp + 0xc]
cmp ecx, dword [eax + 0x18]
jge 0x41b046
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
je 0x41b04b
mov ecx, dword [ecx]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea edi, [esp + 0x10]
call fcn.00416440
add esi, dword [esp + 0x10]
adc ebx, dword [esp + 0x14]
mov edx, esi
jmp 0x41b053
call sub.mfc90.dll_Ordinal_1252
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp ebx, dword [esp + 0x1c]
jg 0x41b066
jl 0x41b061
cmp edx, dword [esp + 0x18]
jae 0x41b066
mov eax, 0x8004200b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41af0b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004231f0
call fcn.004231f0
mov esi, dword [eax]
xor edi, edi
mov dword [esp + 0xc], esi
cmp esi, edi
jne 0x41aed0
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0040f3a0
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
dec eax
add esp, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp eax, 3
ja case.default.0x41af04
jmp dword [eax*4 + 0x41b070]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x40
jmp 0x41af9a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, 1
call fcn.00427640
add esp, 8
jmp 0x41af9c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x3e8
push edx
push eax
call fcn.00430d80
push edi
push 0x1f400
push edx
push eax
call fcn.00430ee0
push edi
push 8
push edx
push eax
call fcn.00430d80
jmp 0x41af9c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x80
adc edx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x41afd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
and eax, 0xfffc1ff8
add eax, 0x8004200d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x714]
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp ecx, edi
mov edx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jl 0x41b053
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 8]
cmp edx, edi
je 0x41b00e
mov eax, dword [edx + 4]
movzx eax, byte [eax + 4]
jmp 0x41b010
xor eax, eax
cmp ecx, eax
jge 0x41b04b
mov eax, dword [esp + 0xc]
cmp ecx, dword [eax + 0x18]
jge 0x41b046
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
je 0x41b04b
mov ecx, dword [ecx]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea edi, [esp + 0x10]
call fcn.00416440
add esi, dword [esp + 0x10]
adc ebx, dword [esp + 0x14]
mov edx, esi
jmp 0x41b053
call sub.mfc90.dll_Ordinal_1252
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp ebx, dword [esp + 0x1c]
jg 0x41b066
jl 0x41b061
cmp edx, dword [esp + 0x18]
jae 0x41b066
mov eax, 0x8004200b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41af2f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004231f0
call fcn.004231f0
mov esi, dword [eax]
xor edi, edi
mov dword [esp + 0xc], esi
cmp esi, edi
jne 0x41aed0
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0040f3a0
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
dec eax
add esp, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp eax, 3
ja case.default.0x41af04
jmp dword [eax*4 + 0x41b070]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x40
jmp 0x41af9a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, 1
call fcn.00427640
add esp, 8
jmp 0x41af9c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x3e8
push edx
push eax
call fcn.00430d80
push edi
push 0x1f400
push edx
push eax
call fcn.00430ee0
push edi
push 8
push edx
push eax
call fcn.00430d80
jmp 0x41af9c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x80
adc edx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x41afd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
and eax, 0xfffc1ff8
add eax, 0x8004200d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x714]
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp ecx, edi
mov edx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jl 0x41b053
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 8]
cmp edx, edi
je 0x41b00e
mov eax, dword [edx + 4]
movzx eax, byte [eax + 4]
jmp 0x41b010
xor eax, eax
cmp ecx, eax
jge 0x41b04b
mov eax, dword [esp + 0xc]
cmp ecx, dword [eax + 0x18]
jge 0x41b046
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
je 0x41b04b
mov ecx, dword [ecx]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea edi, [esp + 0x10]
call fcn.00416440
add esi, dword [esp + 0x10]
adc ebx, dword [esp + 0x14]
mov edx, esi
jmp 0x41b053
call sub.mfc90.dll_Ordinal_1252
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp ebx, dword [esp + 0x1c]
jg 0x41b066
jl 0x41b061
cmp edx, dword [esp + 0x18]
jae 0x41b066
mov eax, 0x8004200b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41af48
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004231f0
call fcn.004231f0
mov esi, dword [eax]
xor edi, edi
mov dword [esp + 0xc], esi
cmp esi, edi
jne 0x41aed0
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0040f3a0
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
dec eax
add esp, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp eax, 3
ja case.default.0x41af04
jmp dword [eax*4 + 0x41b070]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x40
jmp 0x41af9a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, 1
call fcn.00427640
add esp, 8
jmp 0x41af9c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x3e8
push edx
push eax
call fcn.00430d80
push edi
push 0x1f400
push edx
push eax
call fcn.00430ee0
push edi
push 8
push edx
push eax
call fcn.00430d80
jmp 0x41af9c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x80
adc edx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x41afd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
and eax, 0xfffc1ff8
add eax, 0x8004200d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x714]
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp ecx, edi
mov edx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jl 0x41b053
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 8]
cmp edx, edi
je 0x41b00e
mov eax, dword [edx + 4]
movzx eax, byte [eax + 4]
jmp 0x41b010
xor eax, eax
cmp ecx, eax
jge 0x41b04b
mov eax, dword [esp + 0xc]
cmp ecx, dword [eax + 0x18]
jge 0x41b046
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
je 0x41b04b
mov ecx, dword [ecx]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea edi, [esp + 0x10]
call fcn.00416440
add esi, dword [esp + 0x10]
adc ebx, dword [esp + 0x14]
mov edx, esi
jmp 0x41b053
call sub.mfc90.dll_Ordinal_1252
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp ebx, dword [esp + 0x1c]
jg 0x41b066
jl 0x41b061
cmp edx, dword [esp + 0x18]
jae 0x41b066
mov eax, 0x8004200b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41af76
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004231f0
call fcn.004231f0
mov esi, dword [eax]
xor edi, edi
mov dword [esp + 0xc], esi
cmp esi, edi
jne 0x41aed0
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0040f3a0
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
dec eax
add esp, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp eax, 3
ja case.default.0x41af04
jmp dword [eax*4 + 0x41b070]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x40
jmp 0x41af9a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, 1
call fcn.00427640
add esp, 8
jmp 0x41af9c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x3e8
push edx
push eax
call fcn.00430d80
push edi
push 0x1f400
push edx
push eax
call fcn.00430ee0
push edi
push 8
push edx
push eax
call fcn.00430d80
jmp 0x41af9c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0x24
push ecx
push edx
call fcn.00430d80
push edi
push 0x120
push edx
push eax
call fcn.00430ee0
add eax, 0x80
adc edx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x41afd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
and eax, 0xfffc1ff8
add eax, 0x8004200d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x714]
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp ecx, edi
mov edx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jl 0x41b053
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 8]
cmp edx, edi
je 0x41b00e
mov eax, dword [edx + 4]
movzx eax, byte [eax + 4]
jmp 0x41b010
xor eax, eax
cmp ecx, eax
jge 0x41b04b
mov eax, dword [esp + 0xc]
cmp ecx, dword [eax + 0x18]
jge 0x41b046
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
je 0x41b04b
mov ecx, dword [ecx]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea edi, [esp + 0x10]
call fcn.00416440
add esi, dword [esp + 0x10]
adc ebx, dword [esp + 0x14]
mov edx, esi
jmp 0x41b053
call sub.mfc90.dll_Ordinal_1252
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp ebx, dword [esp + 0x1c]
jg 0x41b066
jl 0x41b061
cmp edx, dword [esp + 0x18]
jae 0x41b066
mov eax, 0x8004200b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431d9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
call fcn.004231f0
call fcn.004231f0
mov ebx, dword [eax]
test ebx, ebx
jne 0x41b0cc
mov eax, 0x8004200e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
je 0x41b0e4
shr eax, 4
and al, 1
jne 0x41b0fc
mov eax, 0x8004200a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x714]
test eax, eax
jl 0x41b135
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x41b11d
mov ecx, dword [ecx + 4]
movzx ecx, byte [ecx + 4]
jmp 0x41b11f
xor ecx, ecx
cmp eax, ecx
jge 0x41b135
cmp eax, dword [ebx + 0x18]
jge 0x41b14a
mov edx, dword [ebx + 0x14]
mov ebx, dword [edx + eax*4]
lea eax, [edx + eax*4]
test ebx, ebx
jne 0x41b14f
push 0x43c408
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0x8004200e
call sub.MSVCR90.dll__CxxThrowException
call sub.mfc90.dll_Ordinal_1252
call fcn.0041ae20
test eax, eax
jge 0x41b16d
push 0x43c408
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], 0x8004200e
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebx]
push eax
call esi
cmp eax, 0xffffffff
je 0x41b180
shr eax, 4
not al
and al, 1
jne 0x41b195
push 0x43c408
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 0x8004200c
call sub.MSVCR90.dll__CxxThrowException
mov eax, ebx
call fcn.00427d90
test eax, eax
jge 0x41b1b1
mov dword [ebp - 0x24], eax
push 0x43c408
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebx + 0x10]
xor esi, esi
cmp eax, 3
ja case.default.0x41b1bb
jmp dword [eax*4 + 0x41b228]
mov esi, 1
jmp case.default.0x41b1bb
xor esi, esi
add edi, 0x94
call fcn.004231f0
mov ecx, dword [eax + 0x20]
mov ebx, dword [ebx + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push edi
push ebx
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b4e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004231f0
call fcn.004231f0
mov esi, dword [eax]
xor edi, edi
cmp esi, edi
jne 0x41b50c
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00410010
mov edx, dword [esi + 8]
add esp, 0xc
cmp edx, edi
jne 0x41b534
xor eax, eax
jmp 0x41b54d
mov eax, dword [edx + 4]
movzx eax, word [eax + 0x21]
mov ecx, eax
shr ecx, 8
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], al
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x14]
imul eax, eax, 0x3e8
mov ebx, eax
xor eax, eax
cmp ecx, eax
jl 0x41b59c
jg 0x41b569
mov eax, dword [esp + 0x10]
cmp eax, ebx
jbe 0x41b5a0
cmp edx, edi
jne 0x41b579
xor eax, eax
imul eax, eax, 0x3e8
xor ecx, ecx
jmp 0x41b5a0
mov edx, dword [edx + 4]
movzx eax, word [edx + 0x21]
mov ecx, eax
shr ecx, 8
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], al
movzx eax, word [esp + 0xc]
imul eax, eax, 0x3e8
xor ecx, ecx
jmp 0x41b5a0
mov eax, dword [esp + 0x10]
push edi
push 0x3e8
push ecx
push eax
call fcn.00430d80
push edi
push 0x1f400
push edx
push eax
call fcn.00430ee0
push edi
push 8
push edx
push eax
call fcn.00430d80
push edi
mov dword [esp + 0x28], edx
push edi
lea edx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
push edx
push eax
mov dword [esp + 0x28], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x41b600
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
and eax, 0xfffc1ff8
add eax, 0x8004200d
jmp 0x41b60e
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x714]
cmp ecx, edi
jl 0x41b661
mov edx, dword [esi + 8]
cmp edx, edi
je 0x41b62b
mov edx, dword [edx + 4]
movzx edx, byte [edx + 4]
jmp 0x41b62d
xor edx, edx
cmp ecx, edx
jge 0x41b661
cmp ecx, dword [esi + 0x18]
jge 0x41b681
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
je 0x41b661
mov ecx, dword [ecx]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea edi, [esp + 0x10]
call fcn.00416440
mov ecx, dword [esp + 0x10]
add dword [esp + 0x18], ecx
mov edx, dword [esp + 0x14]
adc ebx, edx
cmp ebx, dword [esp + 0x24]
jg 0x41b678
jl 0x41b673
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x18], ecx
jae 0x41b678
mov eax, 0x8004200b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call sub.mfc90.dll_Ordinal_1252
int3