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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
xor eax, eax
push fcn.004274c0
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
xor cx, cx
mov edx, 0xff
call fcn.004095a0
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00449950
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004274c0
mov esp, ebp
pop ebp
ret

Function at 0x427580
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
mov edx, 0x59a1a0
lea eax, [ebp - 0x18]
call fcn.0040e7c0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.00427560
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, 0x599110
call fcn.00408bb0
push 0
lea eax, [ebp - 0x1c]
call fcn.004274d0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov ecx, str.KABx64_adobeapp.exe
call fcn.00408cb0
lea eax, [ebp - 0x10]
mov edx, 0x599148
call fcn.00408bb0
push 0
lea eax, [ebp - 0x1c]
call fcn.004274d0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov ecx, str.Adobe_Cabinet_adobeapp.exe
call fcn.00408cb0
mov byte [ebp - 8], 0
add byte [ebp - 8], 1
mov edx, 1
mov eax, 0x5e7f28
call fcn.0056ef20
mov dword [ebp - 4], eax
xor eax, eax
push fcn.00427550
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x80000001
call fcn.0056eee0
mov al, byte [ebp - 8]
cmp al, 1
jl 0x42766c
sub al, 1
je 0x427648
sub al, 1
je 0x42765c
jmp 0x42766c
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.0056f0e0
jmp 0x42766c
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
call fcn.0056f0e0
nop
movzx eax, byte [ebp - 8]
mov ecx, dword [ebp + eax*8 - 0x1c]
movzx eax, byte [ebp - 8]
mov edx, dword [ebp + eax*8 - 0x20]
mov eax, dword [ebp - 4]
call fcn.0056f290
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00427550
cmp byte [ebp - 8], 2
jl 0x427600
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00427560
mov esp, ebp
pop ebp
ret
Function at 0x428810
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x140]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004287f0
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5f3a90], 0
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00408bb0
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 8], eax
jmp 0x428a73
add byte [ebp - 0xc], 1
mov eax, dword [ebp - 8]
and eax, 1
test al, al
je 0x428a70
add byte [0x5f3a90], 1
push 0
movsx eax, byte [ebp - 0xc]
add eax, 0x40
lea ecx, [ebp - 0x10]
xor dx, dx
call fcn.004094a0
mov edx, dword [ebp - 0x10]
movzx eax, byte [0x5f3a90]
lea eax, [eax*4 + 0x5f368c]
mov ecx, 0x599530
call fcn.00408cb0
mov al, byte [ebp - 0xc]
call fcn.00454cf0
movzx ecx, byte [0x5f3a90]
mov dword [ecx*8 + 0x5f3788], eax
mov dword [ecx*8 + 0x5f378c], edx
lea eax, [ebp - 0x10]
call fcn.00403ce0
push 0
movsx eax, byte [ebp - 0xc]
add eax, 0x40
lea ecx, [ebp - 0x14]
xor dx, dx
call fcn.004094a0
mov edx, dword [ebp - 0x14]
mov ecx, 0x599530
lea eax, [ebp - 0x10]
call fcn.00408cb0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x428905
mov eax, 0x5ef2f0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jb 0x4289c4
sub eax, 2
je 0x428938
sub eax, 1
je 0x428958
sub eax, 1
je 0x428974
sub eax, 1
je 0x428990
sub eax, 1
je 0x4289ac
jmp 0x4289c4
movzx eax, byte [0x5f3a90]
lea eax, [eax*4 + 0x5f398c]
mov edx, str._REMOVABLE_
call fcn.00408bb0
jmp 0x4289c4
movzx eax, byte [0x5f3a90]
lea eax, [eax*4 + 0x5f398c]
mov edx, str._HDD_
call fcn.00408bb0
jmp 0x4289c4
movzx eax, byte [0x5f3a90]
lea eax, [eax*4 + 0x5f398c]
mov edx, str._NETWORK_
call fcn.00408bb0
jmp 0x4289c4
movzx eax, byte [0x5f3a90]
lea eax, [eax*4 + 0x5f398c]
mov edx, str._CDROM_
call fcn.00408bb0
jmp 0x4289c4
movzx eax, byte [0x5f3a90]
lea eax, [eax*4 + 0x5f398c]
mov edx, str._RAMDISK_
call fcn.00408bb0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
movzx eax, byte [0x5f3a90]
mov eax, dword [eax*4 + 0x5f368c]
mov dword [ebp - 0x2c], eax
mov eax, str.__size:
mov dword [ebp - 0x28], eax
movzx eax, byte [0x5f3a90]
lea ebx, [eax*8 + 0x5f3788]
mov eax, dword [ebx]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov ecx, 0xff
lea edx, [ebp - 0x140]
mov eax, 0xffffffff
call fcn.00405130
lea ecx, [ebp - 0x34]
xor dx, dx
lea eax, [ebp - 0x140]
call fcn.00409430
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x34]
call fcn.0040a200
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, str.bytes_
mov dword [ebp - 0x20], eax
movzx eax, byte [0x5f3a90]
mov eax, dword [eax*4 + 0x5f398c]
mov dword [ebp - 0x1c], eax
mov eax, 0x599380
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov ecx, 6
call fcn.00408f40
shr dword [ebp - 8], 1
cmp dword [ebp - 8], 0
ja 0x428868
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004287f0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428ac0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x258]
mov dword [ebp - 4], eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x138], 0
xor eax, eax
push fcn.00428aa0
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00408bb0
mov dword [ebp - 0x130], 0x128
push 0
push 2
call fcn.0056eb50
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call fcn.0056eb60
test eax, eax
je 0x428c5c
jmp 0x428c43
push 1
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x10c]
xor cx, cx
mov edx, 0x103
call fcn.004095a0
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
lea eax, [eax*4 + 0x5f166c]
call fcn.00408bb0
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x128]
mov dword [edx*4 + 0x5f266c], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax*4 + 0x5f166c]
mov dword [ebp - 0x148], eax
mov eax, 0x5995d8
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax*4 + 0x5f266c]
xor edx, edx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push dword [ebp - 0x154]
push dword [ebp - 0x158]
mov ecx, 0xff
lea edx, [ebp - 0x258]
mov eax, 0xffffffff
call fcn.004050a0
lea ecx, [ebp - 0x150]
xor dx, dx
lea eax, [ebp - 0x258]
call fcn.00409430
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x150]
call fcn.0040a200
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x140], eax
mov eax, 0x599380
mov dword [ebp - 0x13c], eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
mov ecx, 4
call fcn.00408f40
add dword [ebp - 0x134], 1
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call fcn.0056eb70
test eax, eax
jne 0x428b40
mov esi, esi
mov eax, dword [ebp - 0x134]
mov dword [0x5f3670], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00428aa0
mov esp, ebp
pop ebp
ret
Function at 0x42bad0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x42bb7a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x42bb96
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x42bb96
sub dx, 0x20
je 0x42bb70
sub dx, 0x80
je 0x42bb70
sub dx, 0x1f62
jb 0x42bb96
sub dx, 1
jbe 0x42bb70
sub dx, 6
je 0x42bb70
sub dx, 0x26
jne 0x42bb96
nop
jmp 0x42bb70
cmp eax, dword [ebp - 0x20]
jg 0x42bb18
lea esi, [esi]
jmp 0x42bb96
cmp dword [ebp - 0x1c], 2
jne 0x42bb8a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x42bb96
mov al, byte [ebp - 0xc]
call fcn.0040b400
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x42bc14
sub ax, 0x21
je 0x42bc28
sub ax, 0x17
je 0x42bc34
sub ax, 0x222
je 0x42bc40
sub ax, 0x392
je 0x42bc48
sub ax, 1
je 0x42bc50
sub ax, 0x1996
je 0x42bc58
sub ax, 1
je 0x42bc60
sub ax, 6
je 0x42bc68
sub ax, 0xb
je 0x42bc78
sub ax, 0x1b
je 0x42bc70
sub ax, 0x367
je 0x42bc80
jmp 0x42bc88
mov ax, word [ebp - 0x24]
call fcn.0040b4a0
mov byte [ebp - 0x10], al
jmp 0x42bc90
mov byte [ebp - 0x10], 0x20
jmp 0x42bc90
mov byte [ebp - 0x10], 0x2e
jmp 0x42bc90
mov byte [ebp - 0x10], 0x27
jmp 0x42bc90
mov byte [ebp - 0x10], 0x2c
jmp 0x42bc90
mov byte [ebp - 0x10], 0x27
jmp 0x42bc90
mov byte [ebp - 0x10], 0x20
jmp 0x42bc90
mov byte [ebp - 0x10], 0x20
jmp 0x42bc90
mov byte [ebp - 0x10], 0x20
jmp 0x42bc90
mov byte [ebp - 0x10], 0x20
jmp 0x42bc90
mov byte [ebp - 0x10], 0x2d
jmp 0x42bc90
mov byte [ebp - 0x10], 0x27
jmp 0x42bc90
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x439300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.004392f0
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x439410
mov al, byte [ebp - 0x110]
test al, al
je 0x4393d9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404fc0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409430
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a200
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x59c570
call fcn.00453260
mov edx, 0x43936a
mov ecx, ebp
call fcn.004141c0
jmp 0x439410
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x59c570
call fcn.00453260
mov edx, 0x4393d9
mov ecx, ebp
call fcn.004141c0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4394d4
mov al, byte [ebp - 0x110]
test al, al
je 0x43949d
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404fc0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409430
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a200
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x59c570
call fcn.00453260
mov edx, 0x43942e
mov ecx, ebp
call fcn.004141c0
jmp 0x4394d4
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x59c570
call fcn.00453260
mov edx, 0x43949d
mov ecx, ebp
call fcn.004141c0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00438990
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004392f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43c590
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, 0x59d1fc
call fcn.0040cfd0
test al, al
je 0x43c676
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0043c690
xor eax, eax
push fcn.0043c580
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0xc4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1a]
mov byte [edx + 0x1a], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1b]
mov byte [edx + 0x1b], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1c]
mov byte [edx + 0x1c], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00408bb0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0043b7a0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0043b2f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043c580
jmp 0x43c681
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0043eb20
mov esp, ebp
pop ebp
ret
Function at 0x448ad0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc20]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc10], 0
xor eax, eax
push fcn.00448ac0
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc10]
call fcn.00408bb0
lea eax, [ebp - 0xc10]
call fcn.00403d20
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x448b30
mov eax, 0x5ef2f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x448bda
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040fa10
xor eax, eax
push fcn.00448ab0
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc0c]
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x448b8c
mov eax, 0x5ef2f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x448bc8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5a1dfc
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x448bc8
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00448ab0
jmp 0x448c38
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x448bfc
mov eax, 0x5ef2f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x448c38
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5a1dfc
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x448c38
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00448ac0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x454810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x5a2da0
lea eax, [ebp - 0x268]
call fcn.0040e7c0
xor eax, eax
push fcn.004547f0
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x454853
mov eax, 0x5ef2f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x45489b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x45486f
clc
jmp 0x454876
bt dword [0x5a2370], eax
jb 0x45488f
mov eax, ebp
call fcn.00454940
test al, al
je 0x45488f
mov byte [ebp - 0x26c], 1
jmp 0x454920
mov byte [ebp - 0x26c], 0
jmp 0x454920
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x578eb0]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x454920
and esi, 0x400
je 0x454920
lea ebx, [ebp - 0x268]
mov edx, 0x5a2da0
mov eax, ebx
call fcn.0040e880
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.004544b0
test eax, eax
je 0x4548f4
sub eax, 1
je 0x45490c
jmp 0x454918
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00454810
mov byte [ebp - 0x26c], al
jmp 0x454920
mov byte [ebp - 0x26c], 1
jmp 0x454920
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004547f0
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454c80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x454c8c
mov eax, 0x5ef2f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x454ca0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x454cae
mov eax, 0x5ef2f0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x454cbc
xor ebx, ebx
jmp 0x454cc3
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454cf0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x454d08
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x454d1f
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x5f40f0], 0
je 0x454d5b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x5f40f0]
test eax, eax
je 0x454d4d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
jmp 0x454da6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x454da6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x454d9a
mov eax, dword [ebp - 8]
mul dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x454da6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454e50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00454e40
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x454ec0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b7a0
cmp ebx, 1
jle 0x454eb0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040af50
jmp 0x454ecb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408bb0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00454e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4552d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004552c0
push ebp
push 0x414300
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5f408c]
xor edx, edx
call fcn.00408bb0
mov dword [ebx*4 + 0x5f40ac], 0xffffffff
cmp ebx, 7
jl 0x4552f8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x455384
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004095a0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0044acd0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x455384
push 4
push ebx
push esi
mov eax, 0x4551a0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x455230
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004552c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4559d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.004559a0
push ebp
push 0x414300
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.0044a450
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408bb0
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a200
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408bb0
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x455adc
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00409500
mov eax, dword [ebp - 8]
test eax, eax
je 0x455a67
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a200
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409b30
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.004099d0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0044a450
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409770
test eax, eax
jne 0x455ad4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x455ac3
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.004099d0
jmp 0x455ae5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x455a50
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004559a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret