joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64f670
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64f748
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0xd1547c], 0
jne 0x64f72c
lea eax, [ebp - 4]
mov edx, 0x64f760
call fcn.005f4cec
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.005f5104
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x64f72c
mov eax, ebx
call fcn.005f3138
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x64f725
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x64f70f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x64f770
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x64f70f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0xd1547c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64f72c
mov eax, dword [ebp - 0xc]
call fcn.005f3158
ret
mov ebx, dword [0xd1547c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64f74f
lea eax, [ebp - 4]
call fcn.005f4c54
ret

Function at 0x66291c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0xd154a0], 0
jne 0x66293f
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x662890
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0xd154a0], eax
ret

Function at 0x665e70
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00640a34
test al, al
je 0x665ecb
cmp bl, 7
jne 0x665ea7
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
movzx edi, byte [esp]
sub edi, 0x30
jmp 0x665eac
mov edi, ebx
and edi, 0x7f
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xcc]
test eax, eax
je 0x665ecb
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, edi
call fcn.005cd22c
mov byte [esi + 0x220], bl
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x667e90
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x667f02
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x667ed6
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.005f4e44
jmp 0x667edd
mov eax, ebx
call fcn.005f4c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x667f09
cmp dword [ebp - 8], 0
je 0x667ef9
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x667f10
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x667fb2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x667f85
mov edx, ebx
mov eax, dword [0x619c00]
call fcn.0061e364
test al, al
je 0x667f75
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0061e274
call fcn.005f4944
jmp 0x667fb9
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x667f40
mov ecx, dword [0x821d7c]
mov dl, 1
mov eax, dword [0x5e03a0]
call fcn.005e5904
call fcn.005f4898
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x667fb9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x667fc0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x668018
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66801f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x668028
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x66807d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x668084
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x6680f4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x668169
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00667dcc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0061e338
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x668153
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x668170
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x668178
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x6681ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00667dcc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x6681d7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6681f4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x66df28
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0066f700
test byte [ebp + 0xd], 0xc0
jne 0x66df4c
mov eax, dword [0x81e280]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x66df59
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x66df86
je 0x66df98
sub ecx, 0x100
je 0x66dfa6
sub ecx, 0x100
je 0x66dfad
sub ecx, 0x100
je 0x66df9f
jmp 0x66dfb4
sub ecx, 0x600
je 0x66dfad
sub ecx, 0x100
je 0x66df98
jmp 0x66dfb4
mov edi, 1
jmp 0x66dfb9
mov edi, 2
jmp 0x66dfb9
mov edi, 4
jmp 0x66dfb9
mov edi, 5
jmp 0x66dfb9
mov edi, 3
test byte [ebp + 0xd], 1
je 0x66dfe0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x81dcf8]
test al, 0x80
je 0x66dfd9
mov ebx, 0x80
jmp 0x66dff2
mov ebx, 1
jmp 0x66dff2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x66dff2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x66e004
je 0x66e00d
dec eax
je 0x66e016
jmp 0x66e01f
mov dword [ebp - 4], SysStringLen
jmp 0x66e02e
mov dword [ebp - 4], 0x40000000
jmp 0x66e02e
mov dword [ebp - 4], 0xc0000000
jmp 0x66e02e
push 1
call fcn.0066faf8
pop ecx
mov ebx, eax
jmp 0x66e11e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x66e04a
sub eax, 0x10
je 0x66e051
sub eax, 0x10
je 0x66e05a
sub eax, 0x10
je 0x66e063
jmp 0x66e063
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x66e06a
mov dword [ebp - 8], 1
jmp 0x66e06a
mov dword [ebp - 8], 2
jmp 0x66e06a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x66e0d7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x66e0cc
test byte [ebp + 0xd], 1
je 0x66e0c7
mov ebx, 0x50
jmp 0x66e0cc
mov ebx, 2
push ebx
call fcn.0066faf8
pop ecx
mov ebx, eax
jmp 0x66e11e
mov edi, esi
push edi
call fcn.0066de8c
pop ecx
test eax, eax
je 0x66e0eb
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x66e0f7
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0066f820
add esp, 8
mov ebx, eax
inc eax
jne 0x66e11e
push 4
call fcn.0066faf8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0066f734
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x66e2e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0066f700
test byte [ebp + 0xd], 0xc0
jne 0x66e304
mov eax, dword [0x81e280]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x66e311
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x66e33e
je 0x66e350
sub ecx, 0x100
je 0x66e35e
sub ecx, 0x100
je 0x66e365
sub ecx, 0x100
je 0x66e357
jmp 0x66e36c
sub ecx, 0x600
je 0x66e365
sub ecx, 0x100
je 0x66e350
jmp 0x66e36c
mov edi, 1
jmp 0x66e371
mov edi, 2
jmp 0x66e371
mov edi, 4
jmp 0x66e371
mov edi, 5
jmp 0x66e371
mov edi, 3
test byte [ebp + 0xd], 1
je 0x66e398
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x81dcf8]
test al, 0x80
je 0x66e391
mov ebx, 0x80
jmp 0x66e3aa
mov ebx, 1
jmp 0x66e3aa
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x66e3aa
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x66e3bc
je 0x66e3c5
dec eax
je 0x66e3ce
jmp 0x66e3d7
mov dword [ebp - 4], SysStringLen
jmp 0x66e3e6
mov dword [ebp - 4], 0x40000000
jmp 0x66e3e6
mov dword [ebp - 4], 0xc0000000
jmp 0x66e3e6
push 1
call fcn.0066faf8
pop ecx
mov ebx, eax
jmp 0x66e4d6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x66e402
sub eax, 0x10
je 0x66e409
sub eax, 0x10
je 0x66e412
sub eax, 0x10
je 0x66e41b
jmp 0x66e41b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x66e422
mov dword [ebp - 8], 1
jmp 0x66e422
mov dword [ebp - 8], 2
jmp 0x66e422
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x66e48f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x66e484
test byte [ebp + 0xd], 1
je 0x66e47f
mov ebx, 0x50
jmp 0x66e484
mov ebx, 2
push ebx
call fcn.0066faf8
pop ecx
mov ebx, eax
jmp 0x66e4d6
mov edi, esi
push edi
call fcn.0066de8c
pop ecx
test eax, eax
je 0x66e4a3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x66e4af
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0066f820
add esp, 8
mov ebx, eax
inc eax
jne 0x66e4d6
push 4
call fcn.0066faf8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0066f734
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x66e854
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x66e870
call fcn.0066fb64
jmp 0x66e8df
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x66e88c
call fcn.0066fb64
jmp 0x66e8df
cmp dword [0xd15d24], 1
je 0x66e8dd
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00676fe4
pop ecx
cmp al, 0x41
jl 0x66e8dd
cmp al, 0x5a
jg 0x66e8dd
cmp byte [ebp - 0x107], 0x3a
jne 0x66e8dd
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x66e8dd
call fcn.0066fb64
jmp 0x66e8df
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x66e8e4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x66e900
call fcn.0066fb64
jmp 0x66e921
test byte [ebp + 0xc], 0x80
jne 0x66e90b
or ebx, 1
jmp 0x66e90e
and ebx, 0xfffffffe
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
dec eax
je 0x66e91f
call fcn.0066fb64
jmp 0x66e921
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x66e930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x66e960
movsx edx, byte [ebp - 0x104]
sub edx, 0x61
inc edx
jmp 0x66e96b
movsx edx, byte [ebp - 0x104]
sub edx, 0x41
inc edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x66e974
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x66e9da
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x66e9da
call fcn.0066fb64
jmp 0x66ea15
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x66e9ea
call fcn.0066fb64
jmp 0x66ea15
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x66ea10
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x66ea0e
cmp ebx, 1
je 0x66ea0e
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x66e9fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x66f398
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x81e1b0]
jb 0x66f3bc
push 6
call fcn.0066faf8
pop ecx
jmp 0x66f453
push ebx
call fcn.0066f744
pop ecx
mov esi, dword [ebx*4 + 0xd15a24]
push 0x24
push 0
push edi
call fcn.0066c86c
add esp, 0xc
push esi
call sub.KERNEL32.DLL_GetFileType
dec eax
je 0x66f3f0
dec eax
je 0x66f3e8
dec eax
je 0x66f442
jmp 0x66f448
mov word [edi + 4], 0x2000
jmp 0x66f448
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push esi
call sub.KERNEL32.DLL_GetFileTime
dec eax
je 0x66f40e
call fcn.0066fb64
mov esi, eax
jmp 0x66f44a
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
test byte [ebx*4 + 0x81e1b5], 1
je 0x66f431
xor eax, eax
jmp 0x66f436
mov eax, 1
push eax
push edi
call fcn.0067946c
add esp, 0x18
jmp 0x66f448
mov word [edi + 4], 0x1000
xor esi, esi
push ebx
call fcn.0066f7d8
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x66f45c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0066c210
pop ecx
mov ebx, eax
test eax, eax
jne 0x66f480
xor eax, eax
jmp 0x66f529
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x66f4a1
cmp esi, 0x104
jb 0x66f4ac
push ebx
call fcn.0066c220
pop ecx
xor eax, eax
jmp 0x66f529
cmp byte [ebx + 1], 0x3a
jne 0x66f4dc
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x66f4dc
push ebx
call fcn.0066c220
pop ecx
xor eax, eax
jmp 0x66f529
inc esi
test edi, edi
je 0x66f51f
cmp esi, dword [ebp + 0x10]
jbe 0x66f4f1
push ebx
call fcn.0066c220
pop ecx
xor eax, eax
jmp 0x66f529
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0066c220
pop ecx
mov eax, edi
jmp 0x66f529
push esi
push ebx
call fcn.0066c230
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x66f590
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x66f5d6
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x66f5c4
cmp eax, dword [ebp + 0x10]
jle 0x66f65f
call fcn.00677164
mov dword [eax], 8
xor eax, eax
jmp 0x66f6cc
cmp dword [0xd15d24], 1
jne 0x66f61b
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x66f65f
xor eax, eax
jmp 0x66f6cc
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x66f65b
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x66f65f
xor eax, eax
jmp 0x66f6cc
lea edx, [ebp - 0x10c]
push edx
call fcn.0066ca1c
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x66f680
call fcn.00677164
mov dword [eax], 0x22
xor eax, eax
jmp 0x66f6cc
test edi, edi
jne 0x66f6a3
mov edx, dword [ebp + 0x10]
push edx
call fcn.0066c210
pop ecx
mov edi, eax
test eax, eax
jne 0x66f6a3
call fcn.00677164
mov dword [eax], 8
xor eax, eax
jmp 0x66f6cc
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6734f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0066c910
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0066ca1c
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0066ca1c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x81efb9
lea ecx, [ebp - 0x200]
push ecx
call fcn.0066c910
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0066ca1c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.006746e4
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x673605
push esi
call fcn.0066ca1c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0066ca1c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0066c210
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x6735dc
xor eax, eax
jmp 0x67368c
push esi
call fcn.0066ca1c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0066ca1c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0066c86c
add esp, 0xc
jmp 0x673645
mov edi, dword [ebx + 0x24]
push edi
call fcn.0066ca1c
pop ecx
push eax
push esi
call fcn.0066ca1c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0066ca1c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0066c230
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x673645
xor eax, eax
jmp 0x67368c
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0066c910
add esp, 8
push 0x81efbb
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0066c910
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0066c910
add esp, 8
push 0x81efbd
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0066c910
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6770fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x67715e
call fcn.006770ac
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0066ca1c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0066ca1c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret