joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453fc2
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
push 0x105
lea esi, [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call fcn.0041bba0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
mov esi, edi
sub esi, ebx
push ebx
sar esi, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jbe 0x418e09
nop
lea ecx, [eax + 0xa]
mov dword [ebp - 0x50], ecx
cmp esi, ecx
jbe 0x418d76
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x418df3
push 0
push edi
push esi
call fcn.004328d0
add esp, 0xc
mov dword [ebp - 0x40], esi
jmp 0x418df0
jae 0x418df3
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x418e49
add esi, eax
mov eax, dword [ebp - 0x3c]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x418dc4
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x418dab
xor eax, eax
jmp 0x418dad
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x44]
call fcn.0041bf50
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x418dea
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x40]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x40], ecx
mov edi, dword [ebp - 0x40]
mov esi, edi
sub esi, ebx
push ebx
sar esi, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x418d50
xor edi, edi
cmp eax, edi
jne 0x418e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
xor edx, edx
push 0x1d
mov eax, str.WinAPI::getTempPath___failed.
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
call fcn.0040e990
mov byte [ebp - 4], 1
push 0x4630f4
lea eax, [ebp - 0x34]
push eax
call fcn.00436bf2
push str.vector_T__too_long
call fcn.00430350
mov eax, ebx
cmp ebx, edi
jne 0x418e5e
mov eax, 0x45d498
mov esi, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], cx
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x418e75
sub ecx, edi
sar ecx, 1
push ecx
call fcn.0040e990
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00416b30
mov byte [ebp - 4], 1
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0
xor edi, edi
cmp ebx, edi
je 0x418eb3
push ebx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x418ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453f6a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x48], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
mov dword [ebp - 0x4c], eax
call edi
inc eax
push eax
lea esi, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call fcn.0041bba0
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
sub eax, esi
sar eax, 1
push esi
push eax
call edi
test eax, eax
jne 0x418f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
xor ecx, ecx
push 0x38
mov eax, str.WinAPI::getCurrentDirectory:_GetCurrentDirectory_failed
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
call fcn.0040e990
mov byte [ebp - 4], 1
push 0x4630f4
lea edx, [ebp - 0x34]
push edx
call fcn.00436bf2
mov edi, dword [ebp - 0x4c]
push esi
push edi
call fcn.00415630
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x418fa7
push esi
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x418fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453f18
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
push 0x105
lea esi, [ebp - 0x12c]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x118], ecx
mov edi, edx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call fcn.0041bba0
mov dword [ebp - 4], 1
mov edx, 8
cmp dword [edi + 0x14], edx
jb 0x419054
mov ecx, dword [edi]
jmp 0x419056
mov ecx, edi
mov eax, dword [ebp - 0x118]
cmp dword [eax + 0x14], edx
jb 0x419063
mov eax, dword [eax]
mov esi, dword [ebp - 0x12c]
push esi
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jne 0x41917e
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x6c]
push eax
call fcn.0041bc30
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 2
xor ecx, ecx
push 0x18
mov eax, str.WinAPI::getTempFileName_
lea esi, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x50], cx
call fcn.0040e990
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, esi
call fcn.00418520
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xa4]
push ecx
mov edx, 0x45e378
call fcn.004185a0
mov byte [ebp - 4], 5
lea edx, [ebp - 0xc0]
push edi
push edx
mov ecx, eax
call fcn.00418520
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xf8]
push eax
mov edx, 0x45e378
call fcn.004185a0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x138]
lea ecx, [ebp - 0x114]
push ecx
mov ecx, eax
call fcn.0041c020
add esp, 0x24
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0xdc]
push edx
mov edx, 0x45e364
call fcn.004185a0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
xor eax, eax
push ebx
mov word [ebp - 0x30], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.00401a90
mov byte [ebp - 4], 9
push 0x4630f4
lea ecx, [ebp - 0x34]
push ecx
call fcn.00436bf2
mov edi, dword [ebp - 0x134]
push esi
push edi
call fcn.00415630
mov dword [ebp - 0x11c], 1
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x4191a5
push esi
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x419990
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453c33
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46c664]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push edi
mov eax, dword [0x46c664]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ecx, esi
call fcn.00416e80
test al, al
je 0x419ab9
cmp dword [esi + 0x14], 8
jb 0x4199e2
mov eax, dword [esi]
jmp 0x4199e4
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
jne 0x419a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x419a89
mov eax, str.WinAPI::deleteFile_
lea ecx, [esp + 0x64]
call fcn.0040ea80
xor ebx, ebx
mov dword [esp + 0x90], ebx
lea ecx, [esp + 0x2c]
push esi
push ecx
mov ecx, eax
call fcn.00418520
mov byte [esp + 0x98], 1
push eax
lea edx, [esp + 0x54]
push edx
mov edx, 0x45e364
call fcn.004185a0
add esp, 0x10
mov byte [esp + 0x90], 2
xor ecx, ecx
push ebx
mov word [esp + 0x14], cx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.00401a90
mov byte [esp + 0x90], 2
push 0x4630f4
lea edx, [esp + 0x10]
push edx
call fcn.00436bf2
mov ecx, esi
call fcn.00416e80
test al, al
je 0x419ab9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 5
call edi
mov eax, esi
call fcn.00401a80
push eax
call ebx
mov ecx, esi
call fcn.00416e80
test al, al
jne 0x419aa0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00432675
mov esp, ebp
pop ebp
ret

Function at 0x419ae0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x46c664]
xor eax, esp
mov dword [esp + 0x78], eax
push edi
mov eax, dword [0x46c664]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ecx, esi
call fcn.00416e80
test al, al
je 0x419bb7
cmp dword [esi + 0x14], 8
jb 0x419b34
mov eax, dword [esi]
jmp 0x419b36
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x419bb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x419bb7
cmp edi, 3
je 0x419bb7
mov eax, str.WinAPI::removeDirectory_
lea ecx, [esp + 0x64]
call fcn.0040ea80
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x2c]
push esi
push ecx
mov ecx, eax
call fcn.00418520
mov byte [esp + 0x98], 1
push eax
lea edx, [esp + 0x54]
push edx
mov edx, 0x45e364
call fcn.004185a0
add esp, 0x10
mov byte [esp + 0x90], 2
push eax
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00418b60
push 0x4630f4
lea ecx, [esp + 0x10]
push ecx
call fcn.00436bf2
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x419be0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453b89
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x419c1e
mov ecx, dword [edi]
jmp 0x419c20
mov ecx, edi
cmp dword [ebx + 0x14], eax
jb 0x419c29
mov eax, dword [ebx]
jmp 0x419c2b
mov eax, ebx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x419cf1
mov dword [ebp - 0x40], eax
mov word [ebp - 0x50], ax
push 0x11
mov eax, str.WinAPI::copyFile_
lea esi, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
call fcn.0040e990
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
push ebx
push ecx
mov ecx, esi
call fcn.00418520
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x6c]
push edx
mov edx, 0x45e378
call fcn.004185a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
push edi
push ecx
mov ecx, eax
call fcn.00418520
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x88]
push edx
mov edx, 0x45e364
call fcn.004185a0
add esp, 0x20
mov esi, eax
mov bl, 4
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
xor eax, eax
push eax
mov word [ebp - 0x30], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
call fcn.00401a90
mov byte [ebp - 4], bl
push 0x4630f4
lea ecx, [ebp - 0x34]
push ecx
call fcn.00436bf2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x419d10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453b19
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x46c664]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push esi
mov eax, dword [0x46c664]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x419d60
mov ecx, dword [edi]
jmp 0x419d62
mov ecx, edi
cmp dword [ebx + 0x14], eax
jb 0x419d6b
mov eax, dword [ebx]
jmp 0x419d6d
mov eax, ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x419e57
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
push 0x11
mov eax, str.WinAPI::moveFile_
lea esi, [esp + 0x30]
mov dword [esp + 0x44], 7
call fcn.0040e990
mov dword [esp + 0xc8], 0
lea ecx, [esp + 0x9c]
push ebx
push ecx
mov ecx, esi
call fcn.00418520
mov byte [esp + 0xd0], 1
push eax
lea edx, [esp + 0x54]
push edx
mov edx, 0x45e378
call fcn.004185a0
mov byte [esp + 0xd8], 2
lea ecx, [esp + 0x90]
push edi
push ecx
mov ecx, eax
call fcn.00418520
mov byte [esp + 0xe0], 3
push eax
lea edx, [esp + 0x80]
push edx
mov edx, 0x45e364
call fcn.004185a0
add esp, 0x20
mov esi, eax
mov bl, 4
mov byte [esp + 0xc8], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
xor eax, eax
push eax
mov word [esp + 0x14], ax
push esi
or eax, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00401a90
mov byte [esp + 0xc8], bl
push 0x4630f4
lea ecx, [esp + 0x10]
push ecx
call fcn.00436bf2
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00432675
mov esp, ebp
pop ebp
ret

Function at 0x41a2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x54]
push edx
push esi
push ecx
push eax
mov dword [ebp - 0x54], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x41a30c
cmp dword [ebp - 0x54], esi
je 0x41a369
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov word [ebp - 0x50], ax
push 0x1b
mov eax, str.WinAPI::writeFile___failed.
lea esi, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], ebx
call fcn.0040e990
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
mov edx, esi
mov word [ebp - 0x30], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.00401a90
mov byte [ebp - 4], bl
push 0x4630f4
lea eax, [ebp - 0x34]
push eax
call fcn.00436bf2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x41a420
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453a43
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x41a457
mov eax, dword [edi]
jmp 0x41a459
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41a532
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
cmp eax, 0xb7
jne 0x41a4a3
cmp dword [edi + 0x14], esi
jb 0x41a486
mov eax, dword [edi]
jmp 0x41a488
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a4a3
and al, 0x10
cmp al, 0x10
sete al
test al, al
jne 0x41a532
xor eax, eax
mov word [ebp - 0x4c], ax
push 0x18
mov eax, str.WinAPI::createDirectory_
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
call fcn.0040e990
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
push edi
push ecx
mov ecx, esi
call fcn.00418520
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x84]
push edx
mov edx, 0x45e364
call fcn.004185a0
add esp, 0x10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x88]
xor edx, edx
push edx
mov dword [ebp - 0x30], ecx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00401a90
mov byte [ebp - 4], 2
push 0x4630f4
lea eax, [ebp - 0x30]
push eax
call fcn.00436bf2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x41a550
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454c0d
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x10], ebx
je 0x41a622
push eax
lea edi, [ebp - 0xbc]
call fcn.004191e0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0xac], ebx
je 0x41a613
push 0x45e1e4
mov edx, edi
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.004186e0
add esp, 0xc
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x30]
call fcn.0040b350
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x38], esi
jb 0x41a5f8
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0043266a
add esp, 4
xor edx, edx
cmp dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
jae 0x41a613
lea esi, [ebp - 0x30]
mov byte [ebp - 4], bl
lea eax, [ebp - 0xbc]
push eax
call fcn.00416c90
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 8
jb 0x41a644
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0043266a
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
Function at 0x41a680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453fc2
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
push 0x105
lea esi, [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call fcn.0041bba0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, esi
jbe 0x41a7a9
nop
lea ecx, [eax + 0xa]
mov dword [ebp - 0x50], ecx
cmp esi, ecx
jbe 0x41a716
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41a793
push 0
push edi
push esi
call fcn.004328d0
add esp, 0xc
mov dword [ebp - 0x40], esi
jmp 0x41a790
jae 0x41a793
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41a7e9
add esi, eax
mov eax, dword [ebp - 0x3c]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41a764
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41a74b
xor eax, eax
jmp 0x41a74d
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x44]
call fcn.0041bf50
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x41a78a
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x40]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x40], ecx
mov edi, dword [ebp - 0x40]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, esi
ja 0x41a6f0
xor edi, edi
cmp eax, edi
jne 0x41a7f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
xor edx, edx
push 0x25
mov eax, str.WinAPI::getWindowsDirectory___failed.
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
call fcn.0040e990
mov byte [ebp - 4], 1
push 0x4630f4
lea eax, [ebp - 0x34]
push eax
call fcn.00436bf2
push str.vector_T__too_long
call fcn.00430350
mov eax, ebx
cmp ebx, edi
jne 0x41a7fe
mov eax, 0x45d498
mov esi, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], cx
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41a815
sub ecx, edi
sar ecx, 1
push ecx
call fcn.0040e990
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00416b30
mov byte [ebp - 4], 1
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0
xor edi, edi
cmp ebx, edi
je 0x41a853
push ebx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret