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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d5c
xor eax, eax
push ebp
push 0x40dfb1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ddc8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40dde2
mov eax, dword [ebp - 4]
call fcn.0040a974
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d5b0
cmp word [ebp - 0x21a], 0
je 0x40df99
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dfc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40deb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dfc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40deb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dffc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40deb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dffc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40deb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e030
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40deb1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e064
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40df99
xor eax, eax
push ebp
push 0x40df92
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040db98
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40df20
mov eax, dword [ebp - 0x10]
call fcn.00407094
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a9d8
jmp 0x40df6b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40e0a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40df6b
mov eax, dword [ebp - 0x10]
call fcn.00407094
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40e0a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a9d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df99
cmp dword [ebp - 8], 0
je 0x40df86
mov eax, dword [ebp - 8]
call fcn.004070b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dfb8
lea eax, [ebp - 4]
call fcn.00409c78
pop eax
jmp eax
Function at 0x40e2c4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d5c
xor eax, eax
push ebp
push 0x40e386
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aa2c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040abdc
mov eax, dword [ebx]
call fcn.0040e16c
test al, al
jne 0x40e361
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aa2c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040abdc
mov eax, dword [ebx]
call fcn.0040e16c
test al, al
jne 0x40e361
mov eax, ebx
call fcn.00409c78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e38d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409cd8
lea eax, [ebp - 4]
call fcn.00409c78
pop eax
jmp eax

Function at 0x40febc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x42722c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42735c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x427334
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x42731d
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040aa2c
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040aea8
test eax, eax
jle 0x42731d
mov eax, dword [ebp - 4]
test eax, eax
je 0x4272d1
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x4272df
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040ad4c
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a9d8
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040abdc
jmp 0x427334
add ebx, 2
cmp word [ebx], 0
jne 0x42731a
add ebx, 4
test ebx, ebx
je 0x42732e
cmp word [ebx], 0
jne 0x42727e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427363
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409cd8
lea eax, [ebp - 4]
call fcn.00409c78
pop eax
jmp eax
Function at 0x427458
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42769b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00409c78
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x42752f
cmp dword [ebp - 0x14], 0
jne 0x42752f
xor edx, edx
mov eax, 6
call fcn.0042fe4c
test al, al
je 0x42752f
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x42752f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040aa2c
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0042722c
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040a058
mov byte [ebp - 9], 1
jmp 0x42767b
test ebx, ebx
jne 0x42753d
cmp dword [ebp - 0x14], 0
je 0x42762f
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x42762f
xor eax, eax
push ebp
push 0x427628
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42760f
xor eax, eax
push ebp
push 0x427608
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.004194d0
test eax, eax
jbe 0x4275ef
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040aa2c
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.0042722c
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a058
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42760f
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42762f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
cmp byte [ebp - 9], 0
jne 0x42767b
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0042736c
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040a058
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x42767b
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0042722c
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a058
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4276a2
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00409cd8
pop eax
jmp eax
Function at 0x4276ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.0042fe4c
test al, al
je 0x427776
xor edx, edx
mov eax, ebx
call fcn.00429220
test al, al
je 0x427776
mov eax, ebx
call fcn.00428f54
test al, 0x20
je 0x427776
mov eax, ebx
call fcn.0040a974
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427776
test ah, 4
je 0x427776
test al, 0x10
je 0x427713
mov edi, 0x2000000
jmp 0x427715
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a974
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x427776
xor eax, eax
push ebp
push 0x42776f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00427458
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427776
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x427b94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x427bed
test eax, edx
je 0x427bf0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x427bab
movzx eax, word [eax]
sub eax, ecx
jmp 0x427bd2
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x427bd3
add ecx, 4
js 0x427bc3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x427bd0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x427bd2
xor eax, eax
ret
test eax, eax
je 0x427bfc
test edx, edx
jne 0x427b9c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x428f54
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4290b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x428ef4]
call fcn.0040ccf8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x428f24]
call fcn.0040ccf8
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.004292b8
test al, al
jne 0x428fca
mov dl, 1
mov eax, esi
call fcn.00429220
test al, al
je 0x429054
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00429a7c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00430498
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a974
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42904f
test byte [ebp - 0x14], 1
je 0x42901a
or bl, 1
test byte [ebp - 0x14], 2
je 0x429023
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x42902c
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x429040
dec eax
je 0x429045
dec eax
je 0x42904a
dec eax
jne 0x429075
or bl, 0x10
jmp 0x429075
or bl, 4
jmp 0x429075
or bl, 8
jmp 0x429075
call fcn.004312e8
lea edx, [ebp - 0x20]
mov eax, dword [0xa77e7c]
call fcn.0040fdf4
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x421174]
call fcn.0042f02c
call fcn.00409370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4290bd
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409cd8
lea eax, [ebp - 0xc]
mov edx, dword [0x428f24]
call fcn.0040ce1c
lea eax, [ebp - 8]
mov edx, dword [0x428ef4]
call fcn.0040ce1c
lea eax, [ebp - 4]
call fcn.00409c78
pop eax
jmp eax

Function at 0x429120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x42914d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x429220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a974
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42928a
test ah, 4
je 0x429283
test bl, bl
jne 0x429248
mov al, 1
jmp 0x4292b1
test al, 0x10
je 0x429250
xor eax, eax
jmp 0x4292b1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x429274
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4292b1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4292b1
test al, 0x10
sete al
jmp 0x4292b1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4292ab
cmp ebx, 3
je 0x4292ab
cmp ebx, 0x7b
je 0x4292ab
mov eax, esi
call fcn.004291e0
test al, al
jne 0x4292af
xor eax, eax
jmp 0x4292b1
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a974
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x429356
test esi, 0x400
jne 0x4292ed
test esi, 0x10
setne bl
jmp 0x429356
cmp byte [esp], 0
je 0x429321
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x429356
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x429356
test esi, 0x10
je 0x42932d
mov bl, 1
jmp 0x429356
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x429354
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x429356
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42945c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x429503
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a974
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x4294e6
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.004276ac
test al, al
je 0x4294e6
mov eax, dword [ebp - 4]
call fcn.00429c00
test al, al
je 0x4294d6
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0042993c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00430498
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040abdc
mov eax, dword [ebp - 4]
call fcn.0040a974
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42950a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409cd8
pop eax
jmp eax
Function at 0x429514
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4295e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a0a0
cmp byte [ebp - 9], 0
je 0x4295a5
mov eax, ebx
call fcn.0040a974
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x4295a5
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004276ac
test al, al
je 0x4295a5
mov eax, dword [ebp - 8]
call fcn.00429c00
test al, al
je 0x42959a
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0042993c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00430498
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040abdc
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a0a0
push edi
mov eax, dword [ebp - 4]
call fcn.0040a974
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4295bf
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4295f0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409cd8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409cd8
pop eax
jmp eax

Function at 0x429728
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040a974
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42977d
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x429777
test ah, 4
je 0x429777
test al, 0x10
je 0x429777
mov eax, esi
call fcn.0040a974
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x42977d
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42db5c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42db95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409e00
jmp 0x42db9e
mov eax, ebx
mov edx, esi
call fcn.0040a058
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42dba8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42dbca
movzx eax, word [esp]
jmp 0x42dbcc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42eebc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42efe3
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042ecc4
mov esi, eax
mov eax, dword [0xa77c48]
cmp byte [eax], 0
je 0x42ef89
mov eax, dword [0xa77464]
call fcn.00407748
call fcn.00407208
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42ee8c]
call fcn.0040ccf8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42effc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42efc5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0xa77364]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0xa7c634]
call fcn.0040d254
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42efea
lea eax, [ebp - 4]
mov edx, dword [0x42ee8c]
call fcn.0040ce1c
pop eax
jmp eax

Function at 0x42fe78
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42ff52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a0a0
lea eax, [ebp - 4]
call fcn.0040a234
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a974
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42ff3a
mov eax, ebx
call fcn.00407094
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42ff33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a974
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42ff1b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ff64
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42ff1b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ff3a
mov eax, dword [ebp - 0x10]
call fcn.004070b0
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ff59
lea eax, [ebp - 4]
call fcn.00409c78
pop eax
jmp eax