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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x4022e1
mov dword [ebp + 0x14], 0
jmp 0x4022fe
cmp dword [ebp + 0x14], 2
jne 0x4022f7
mov dword [ebp + 0x14], 7
jmp 0x4022fe
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x405229
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x2098340
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x402343
push 0xff
push 0x4012dcd
push 6
call fcn.004023d4
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x40235f
mov eax, 0
jmp 0x402369
mov eax, 1
jmp 0x402369
mov esp, ebp
pop ebp
ret 0x14

Function at 0x402bd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402c62
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x402c54
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x402c4c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x402c15
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4031b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x353975ec
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x8e85e47
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x407080
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409d88
test esi, esi
jne 0x4070b6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409f10
jmp 0x4070d4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406f64
mov edi, eax
test esi, esi
je 0x4070d4
cmp dword [ebx], 0
je 0x4070d4
dec esi
jmp 0x4070bd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408948
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408da8
mov byte [esp], al
cmp byte [esp], 0
jne 0x408ad2
test edi, edi
je 0x408ad2
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408a12
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089ed
cmp edi, 0xffffffff
je 0x4089ad
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089ad
mov byte [esp], 0
jmp 0x408ad2
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4089ed
test ebx, ebx
jne 0x4089df
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089df
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408ad2
lea eax, [esp + 0xc]
call fcn.00408628
dec ebp
test ebp, ebp
jg 0x408992
cmp edi, 0xffffffff
je 0x408a12
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408a10
mov byte [esp], 0
jmp 0x408ad2
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408956
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a12
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b40
mov edx, eax
mov ebx, dword [0x6278fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a76
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a74
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a76
xor edi, edi
cmp byte [esp], 0
je 0x408a9c
mov ebx, dword [esi]
test bl, 1
jne 0x408ab2
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a7c
mov byte [esp + 1], 1
jmp 0x408ab2
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a9c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a29
cmp byte [esp], 0
je 0x408ad2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409a18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62705c], 0
je 0x409a7f
cmp word [0x627348], 0xd7b2
jne 0x409a41
cmp dword [0x627350], 0
jbe 0x409a41
mov eax, 0x627344
call dword [0x627360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409aac
call fcn.0040a6bc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x61f032], 0
jne 0x409a9b
push 0
push 0x61fa12
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409c48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x61f034], 0
je 0x409c73
mov edx, edi
mov eax, esi
call dword [0x61f034]
mov ebx, eax
jmp 0x409c84
mov eax, 8
call fcn.00406c44
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x62705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409c10
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409cb4
mov eax, ebx
call fcn.00406c60
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c850
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c9b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409d88
cmp si, word [0x61fa50]
jb 0x40c8e8
cmp si, word [0x61fc50]
ja 0x40c8e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c8e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x61fa50]
jae 0x40c8c2
mov edi, ebx
dec edi
jmp 0x40c8e3
cmp si, word [ebx*8 + 0x61fa50]
jbe 0x40c8d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c8e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x61fa54]
call fcn.0040c770
jmp 0x40c8e8
cmp edi, dword [ebp - 8]
jae 0x40c8ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c997
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c997
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab20
push dword [ebp - 0x160]
push 0x40c9d0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ab20
push dword [ebp - 0x164]
push 0x40c9e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ab20
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9bc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409de8
ret
Function at 0x40cb68
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cc6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x629b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x629ba4]
jne 0x40cbb4
mov eax, esi
mov edx, 0x629ba6
mov ecx, 0x55
call fcn.0040ab20
push 0x629b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc56
push 0x629b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409d88
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc23
cmp byte [0x629b88], 0
je 0x40cbe8
mov edx, esi
mov eax, ebx
call fcn.0040ca4c
jmp 0x40cc23
mov edx, esi
mov eax, ebx
call fcn.0040c850
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc23
cmp dword [esi], 0
je 0x40cc0c
mov eax, esi
mov edx, 0x40cc84
call fcn.0040ac78
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c850
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ac78
push 0x629b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x629ba4], bx
mov eax, dword [esi]
call fcn.0040aa64
mov ecx, eax
mov eax, 0x629ba6
mov edx, 0xaa
call fcn.0040c6d0
push 0x629b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc73
lea eax, [ebp - 4]
call fcn.00409d88
ret
Function at 0x40ce9c
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.00409e6c
xor eax, eax
push ebp
push 0x40d0c1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cedc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cef6
mov eax, dword [ebp - 4]
call fcn.0040aa64
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c6d0
cmp word [ebp - 0x21a], 0
je 0x40d0ab
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d10c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d10c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d140
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d174
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d0ab
xor eax, eax
push ebp
push 0x40d0a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ccac
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 0x40d034
mov eax, dword [ebp - 0x10]
call fcn.00406c44
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.0040aacc
jmp 0x40d07f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d1b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d07f
mov eax, dword [ebp - 0x10]
call fcn.00406c44
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d1b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aacc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0ab
cmp dword [ebp - 8], 0
je 0x40d09a
mov eax, dword [ebp - 8]
call fcn.00406c60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0c8
lea eax, [ebp - 4]
call fcn.00409d88
ret
Function at 0x40d3b0
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.00409e6c
xor eax, eax
push ebp
push 0x40d470
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.0040ab20
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acd0
mov eax, dword [ebx]
call fcn.0040d278
test al, al
jne 0x40d44d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ab20
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040acd0
mov eax, dword [ebx]
call fcn.0040d278
test al, al
jne 0x40d44d
mov eax, ebx
call fcn.00409d88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d477
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409de8
lea eax, [ebp - 4]
call fcn.00409d88
ret

Function at 0x41dfc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41e01d
test eax, edx
je 0x41e020
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41dfdb
movzx eax, word [eax]
sub eax, ecx
jmp 0x41e002
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 0x41e003
add ecx, 4
js 0x41dff3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41e000
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41e002
xor eax, eax
ret
test eax, eax
je 0x41e02c
test edx, edx
jne 0x41dfcc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41f230
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_1
test eax, eax
jne 0x41f25d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41f330
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.0040aa64
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f39a
test ah, 4
je 0x41f393
test bl, bl
jne 0x41f358
mov al, 1
jmp 0x41f3c1
test al, 0x10
je 0x41f360
xor eax, eax
jmp 0x41f3c1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41f384
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41f3c1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41f3c1
test al, 0x10
sete al
jmp 0x41f3c1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41f3bb
cmp ebx, 3
je 0x41f3bb
cmp ebx, 0x7b
je 0x41f3bb
mov eax, esi
call fcn.0041f2f0
test al, al
jne 0x41f3bf
xor eax, eax
jmp 0x41f3c1
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41f3c8
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.0040aa64
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41f46f
test esi, 0x400
jne 0x41f404
test esi, 0x10
setne bl
jmp 0x41f49f
cmp byte [esp], 0
je 0x41f438
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41f49f
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41f49f
test esi, 0x10
je 0x41f444
mov bl, 1
jmp 0x41f49f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41f46b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41f49f
mov bl, 1
jmp 0x41f49f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41f499
cmp eax, 3
je 0x41f499
cmp eax, 0xa1
je 0x41f499
cmp eax, 0x7b
je 0x41f499
cmp eax, 0x35
je 0x41f499
cmp eax, 0x15
je 0x41f499
cmp eax, 0x43
jne 0x41f49d
xor ebx, ebx
jmp 0x41f49f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41f4a8
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.0040aa64
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41f4fd
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f4f7
test ah, 4
je 0x41f4f7
test al, 0x10
je 0x41f4f7
mov eax, esi
call fcn.0040aa64
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41f4fd
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42323c
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_1
test eax, eax
jle 0x423275
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409f10
jmp 0x42327e
mov eax, ebx
mov edx, esi
call fcn.0040a168
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423288
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_1
test eax, eax
jle 0x4232aa
movzx eax, word [esp]
jmp 0x4232ac
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4242c0
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 0x4243e5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004240c8
mov esi, eax
mov eax, dword [0x626110]
cmp byte [eax], 0
je 0x42438d
mov eax, dword [0x625acc]
call fcn.00407654
call fcn.00406e14
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x424290]
call fcn.0040bf50
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x424400
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4243c9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6259f4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x629c54]
call fcn.0040c370
push eax
call sub.user32.dll_LoadStringW_1
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 0x4243ec
lea eax, [ebp - 4]
mov edx, dword [0x424290]
call fcn.0040c074
ret
Function at 0x4250f4
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 0x4251ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a1b0
lea eax, [ebp - 4]
call fcn.0040a324
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa64
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4251b4
mov eax, ebx
call fcn.00406c44
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4251ad
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.0040aa64
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x425197
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4251dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x425197
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 0x4251b4
mov eax, dword [ebp - 0x10]
call fcn.00406c60
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4251d1
lea eax, [ebp - 4]
call fcn.00409d88
ret

Function at 0x4251e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4252e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a1b0
lea eax, [ebp - 4]
call fcn.0040a324
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa64
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4252ca
mov eax, ebx
call fcn.00406c44
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4252c3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa64
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4252ad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4252f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4252ad
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4252ca
mov eax, dword [ebp - 0x10]
call fcn.00406c60
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4252e7
lea eax, [ebp - 4]
call fcn.00409d88
ret