joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64733c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64743d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x6473ff
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00646e48
pop ecx
test al, al
je 0x64739d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x647450
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_ShellExecuteW
mov dword [ebp - 0x10], eax
jmp 0x6473bd
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_ShellExecuteW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jg 0x6473f5
cmp dword [ebp - 0x10], 0x1d
je 0x6473f5
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea eax, [ebp - 0x14]
call fcn.00647130
pop ecx
mov eax, dword [ebp - 0x14]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x647427
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x647444
lea eax, [ebp - 0x14]
call fcn.00406d70
ret
Function at 0x647530
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
mov eax, dword [ebp - 8]
call fcn.00406d68
mov eax, dword [ebp - 0xc]
call fcn.00406d68
xor eax, eax
push ebp
push 0x6476be
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x647575
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x64757c
mov dword [ebp - 0x10], 1
xor eax, eax
push ebp
push 0x647621
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 8]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
push 0x6476d0
push 0
call sub.shell32.dll_ShellExecuteW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x20
jg 0x647614
push ebp
call fcn.0064746c
pop ecx
test al, al
je 0x6475e9
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
mov ecx, eax
mov edx, 0x6476d0
xor eax, eax
call fcn.0064733c
jmp 0x647614
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 8]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
push 0x6476d0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6476a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6476c5
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406d78
ret

Function at 0x6479f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00496cdc
mov dl, 1
mov eax, dword [0x490de0]
call fcn.0040448c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x647aa7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x647ac4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00538158
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
dec eax
test eax, eax
jl 0x647a71
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
xor byte [eax], 0x27
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x647a60
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00496cdc
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00496f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x647aae
mov eax, dword [ebp - 0x18]
call fcn.004044bc
ret
Function at 0x647b08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x490de0]
call fcn.0040448c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x647bc3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00496cdc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.00496f80
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
dec eax
test eax, eax
jl 0x647b82
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
xor byte [eax], 0x27
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x647b71
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00496cdc
mov ecx, 0x647be0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00538258
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00496cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x647bca
mov eax, dword [ebp - 0x18]
call fcn.004044bc
ret
Function at 0x64cfc8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
xor eax, eax
push ebp
push 0x64d166
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00406dd4
xor eax, eax
push ebp
push 0x64d034
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x490c94]
call fcn.004971fc
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64d0dc
xor eax, eax
push ebp
push 0x64d134
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00496f80
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00496cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64d13b
mov eax, dword [ebp - 0xc]
call fcn.004044bc
cmp dword [ebp - 0x10], 0
je 0x64d133
mov eax, dword [ebp - 0x10]
call fcn.00406e0c
push eax
call sub.kernel32.dll_DeleteFileW
ret
Function at 0x64e010
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00406d68
mov eax, dword [ebp + 0xc]
call fcn.00406d68
xor eax, eax
push ebp
push 0x64e0be
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
jne 0x64e052
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp + 0xc]
call fcn.00406f3c
mov eax, dword [ebp + 0xc]
push eax
push 0
mov edx, 0x64e0cc
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.0064dc10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x64e095
mov eax, dword [ebp + 0xc]
call fcn.0064db4c
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
cmp eax, edx
jl 0x64e095
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
call fcn.0064dbcc
jmp 0x64e0a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64e0c5
lea eax, [ebp - 0xc]
call fcn.00406d70
lea eax, [ebp + 0xc]
call fcn.00406d70
ret

Function at 0x64e654
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, 8
call fcn.004030fc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x64e6c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
push eax
push 0x64e400
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x64e6a5
mov byte [ebp - 5], 1
jmp 0x64e6a9
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64e6cb
mov edx, 8
mov eax, dword [ebp - 0xc]
call fcn.00403118
ret
Function at 0x64f4bc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x64f4c5
mov eax, dword [ebp - 4]
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
lea eax, [ebp - 0x10018]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
mov dword [ebp - 0x18], 0x715210
lea edx, [ebp - 0x10018]
mov eax, dword [ebp - 0x18]
mov ecx, 4
call fcn.0040331c
lea edx, [ebp - 0x10014]
lea eax, [ebp - 8]
mov ecx, 4
call fcn.0040331c
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x64f58e
lea eax, [ebp - 0x10018]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x64f58e
cmp dword [ebp - 0x10], 4
jne 0x64f58e
mov edx, 0x715218
lea eax, [ebp - 0x10018]
mov ecx, 4
call fcn.00478f14
test al, al
je 0x64f58e
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x64f598
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x64f5a1
mov eax, dword [ebp - 4]
add esp, 0xffffffdc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
je 0x64f5da
mov eax, dword [ebp + 8]
cmp dword [eax + 0x21c], 0
jne 0x64f6e6
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, 0
jne 0x64f5ed
cmp eax, 0x10000
jbe 0x64f5ff
jmp 0x64f5ef
jle 0x64f5ff
mov dword [ebp - 0x28], 0x10000
mov dword [ebp - 0x24], 0
jmp 0x64f60a
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x64f6e6
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 0x10028]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x10000
lea eax, [ebp - 0x10028]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x64f6e6
cmp dword [ebp - 0x1c], 4
jne 0x64f6e6
mov edx, 0x715218
lea eax, [ebp - 0x10028]
mov ecx, 4
call fcn.00478f14
test al, al
je 0x64f6e6
cmp dword [ebp - 0xc], 0
jne 0x64f5c4
push 0
lea eax, [ebp - 0x20]
push eax
push 4
push 0x715214
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x64f6e6
cmp byte [ebp + 0xc], 0
je 0x64f6e2
lea eax, [ebp - 0x10028]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x10000
lea eax, [ebp - 0x10028]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 8
Function at 0x64f6f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x64f6f9
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xa], 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00496cdc
cmp dword [ebp + 8], 0
je 0x64f739
mov eax, dword [ebp + 8]
cmp dword [eax + 0x21c], 0
jne 0x64f84e
lea eax, [ebp - 0x10018]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
lea edx, [ebp - 0x10018]
mov ecx, 0x10000
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x64f84e
lea eax, [ebp - 0x10018]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x64f84e
cmp dword [ebp - 0x14], 4
jne 0x64f84e
mov edx, 0x715218
lea eax, [ebp - 0x10018]
mov ecx, 4
call fcn.00478f14
test al, al
je 0x64f84e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.00496cbc
cmp edx, dword [esp + 4]
jne 0x64f7f5
cmp eax, dword [esp]
pop edx
pop eax
jne 0x64f723
push 0
lea eax, [ebp - 0x18]
push eax
push 4
push 0x715214
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x64f84e
cmp byte [ebp - 9], 0
je 0x64f84a
lea eax, [ebp - 0x10018]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
mov byte [ebp - 0xa], 1
mov al, byte [ebp - 0xa]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x64f858
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x64f861
mov eax, dword [ebp - 4]
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
lea eax, [ebp - 0x10018]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x64f902
cmp dword [ebp - 0x10], 8
jne 0x64f902
mov edx, 0x715210
lea eax, [ebp - 0x10018]
mov ecx, 4
call fcn.00478f14
test al, al
je 0x64f902
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x10014]
mov ecx, 4
call fcn.0040331c
push 0
lea eax, [ebp - 0x14]
push eax
push 4
push 0x715218
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x64f902
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x64f90c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x64f915
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00496d40
cmp dword [ebp + 8], 0
je 0x64f955
mov eax, dword [ebp + 8]
cmp dword [eax + 0x21c], 0
jne 0x64fa2a
lea eax, [ebp - 0x10018]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x64fa2a
cmp dword [ebp - 0x14], 4
jne 0x64f9db
lea edx, [ebp - 0x10018]
mov eax, 0x715214
mov ecx, 4
call fcn.00478f14
test al, al
je 0x64f9db
cmp byte [ebp + 0xc], 0
je 0x64fa0b
lea eax, [ebp - 0x10018]
xor ecx, ecx
mov edx, 0x10000
call fcn.00403b8c
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 0x10018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x64fa0b
lea edx, [ebp - 0x10018]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
push 0
lea eax, [ebp - 0x18]
push eax
push 4
push 0x715218
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x64fa2a
jmp 0x64f93f
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x64fa22
cmp eax, dword [esp]
pop edx
pop eax
jne 0x64fa2a
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x658a98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x658b02
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0x16]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x16]
mov ecx, 7
call fcn.00406f90
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00479ed8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x658b09
lea eax, [ebp - 0x1c]
call fcn.00406d70
ret

Function at 0x65912c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004068c4
push eax
mov eax, dword [ebp - 4]
call fcn.004068c4
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x65917c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004068c4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x6591a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004068c4
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x6591c9
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x6591d0
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x659264
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetTempFileNameW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x6595dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004068c4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x659602
test byte [ebp - 0xc], 0x10
jne 0x659606
xor eax, eax
jmp 0x659608
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x659614
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004068c4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x65963a
test byte [ebp - 0xc], 0x10
je 0x65963e
xor eax, eax
jmp 0x659640
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x65964c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00406d48
xor eax, eax
push ebp
push 0x6597ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00406ad8
jne 0x6596af
mov ecx, 0x6597e8
mov dl, 1
mov eax, dword [0x477804]
call fcn.00481750
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 3
mov eax, dword [ebp - 0xc]
call fcn.00405354
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6596c8
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp word [eax + edx*2 - 2], 0x5c
jne 0x6596fb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x6596ef
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 4]
call fcn.00406ccc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x659714
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
shr eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x659720
mov byte [ebp - 0x19], 1
jmp 0x65972b
mov eax, dword [ebp - 4]
call fcn.006595dc
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x659737
mov byte [ebp - 0x1a], 1
jmp 0x659769
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.00406ff8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0047aa38
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
call fcn.00406ff8
mov edx, dword [ebp - 0x28]
pop eax
call fcn.00407534
sete byte [ebp - 0x1a]
cmp byte [ebp - 0x1a], 0
jne 0x6597a3
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00659314
mov eax, dword [ebp - 0x2c]
call fcn.0065964c
test al, al
je 0x65979a
push 0
mov eax, dword [ebp - 4]
call fcn.004068c4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x65979e
xor eax, eax
jmp 0x6597a0
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6597d5
lea eax, [ebp - 0x2c]
call fcn.004066c4
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00406d78
lea eax, [ebp - 4]
call fcn.004066c4
ret
Function at 0x6598c4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004068c4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x65c9b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
xor eax, eax
push ebp
push 0x65ca17
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
je 0x65c9fd
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 5
jne 0x65ca01
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65ca1e
lea eax, [ebp - 4]
call fcn.00406d70
ret

Function at 0x65ca28
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
xor eax, eax
push ebp
push 0x65ca8d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1c
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetVolumeInformationW
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2c]
call fcn.0047b7d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65ca94
lea eax, [ebp - 4]
call fcn.00406d70
ret