joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c29c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x49ca58], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x48c376
cmp dword [0x49ca54], 0
jne 0x48c376
cmp dword [0x49cc80], 0
je 0x48c330
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0048c0a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48c316
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0048c0a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48c316
lea ebx, [ebp - 0x84]
jmp 0x48c317
inc ebx
call fcn.0048c258
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x48c3b1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x49ca5c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00482a30
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x49ca5f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x48c3b1
cmp dword [0x49ca54], 0
je 0x48c390
cmp dword [0x49ca54], 0xffffffff
je 0x48c3b1
push esi
call dword [0x49ca54]
pop ecx
mov eax, dword [0x49ca58]
test eax, eax
je 0x48c3b1
cmp dword [0x49ca58], 0xffffffff
je 0x48c3b1
cmp byte [eax], 0
je 0x48c3b1
push esi
push eax
call fcn.0048c1bc
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48db50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x48db76
test esi, esi
je 0x48db76
call fcn.0048c224
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x48dbe8
call fcn.0048d868
mov ebx, eax
test eax, eax
jne 0x48db91
call fcn.0048c224
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x48dbe8
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x48daac
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x48dbdc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x48dbd5
push 0x59
call fcn.004852cc
pop ecx
jmp 0x48dbe8
call fcn.00485338
jmp 0x48dbe8
mov dword [ebx + 8], eax
test edi, edi
je 0x48dbe8
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4022ef
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00402a27
lea eax, [ebp - 0x184]
push 0x405cb0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402348
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x405cb4
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x402398
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x40238c
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x402362
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x408b50
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.00409010
mov byte [esp], al
cmp byte [esp], 0
jne 0x408cd9
test edi, edi
je 0x408cd9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408c19
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408bf4
cmp edi, 0xffffffff
je 0x408bb5
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408bb5
mov byte [esp], 0
jmp 0x408cd9
cmp dword [esi], 1
jg 0x408bf4
cmp dword [esi], 0
jne 0x408be6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408be6
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408cd9
lea eax, [esp + 0xc]
call fcn.0040880c
dec ebp
test ebp, ebp
jg 0x408b9a
cmp edi, 0xffffffff
je 0x408c19
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c17
mov byte [esp], 0
jmp 0x408cd9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408b5e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c19
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408d54
mov edx, eax
mov ebx, dword [0x6238fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408c7d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408c7b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408c7d
xor edi, edi
cmp byte [esp], 0
je 0x408ca3
mov ebx, dword [esi]
test bl, 1
jne 0x408cb9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c83
mov byte [esp + 1], 1
jmp 0x408cb9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ca3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408c30
cmp byte [esp], 0
je 0x408cd9
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 0x409b98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62305c], 0
je 0x409bff
cmp word [0x623348], 0xd7b2
jne 0x409bc1
cmp dword [0x623350], 0
jbe 0x409bc1
mov eax, 0x623344
call dword [0x623360]
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, 0x409c2c
call fcn.0040a6ac
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x61d032], 0
jne 0x409c1b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409dc0
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 [0x61d034], 0
je 0x409deb
mov edx, edi
mov eax, esi
call dword [0x61d034]
mov ebx, eax
jmp 0x409dfc
mov eax, 8
call fcn.00406e90
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x62305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409d88
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 0x409e2c
mov eax, ebx
call fcn.00406eac
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d268
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 0x40d3cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409f00
cmp si, word [0x61da10]
jb 0x40d300
cmp si, word [0x61dc10]
ja 0x40d300
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d300
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x61da10]
jae 0x40d2da
mov edi, ebx
dec edi
jmp 0x40d2fb
cmp si, word [ebx*8 + 0x61da10]
jbe 0x40d2ea
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d2fb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x61da14]
call fcn.0040d188
jmp 0x40d300
cmp edi, dword [ebp - 8]
jae 0x40d2c4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d3af
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d3af
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.0040a99c
push dword [ebp - 0x160]
push 0x40d3e8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a99c
push dword [ebp - 0x164]
push 0x40d3f8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a99c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040abd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3d4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409f60
ret
Function at 0x40d580
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 0x40d684
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x625c14
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x625c2c]
jne 0x40d5cc
mov eax, esi
mov edx, 0x625c2e
mov ecx, 0x55
call fcn.0040a99c
push 0x625c14
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40d66e
push 0x625c14
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00409f00
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40d63b
cmp byte [0x625c10], 0
je 0x40d600
mov edx, esi
mov eax, ebx
call fcn.0040d464
jmp 0x40d63b
mov edx, esi
mov eax, ebx
call fcn.0040d268
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d63b
cmp dword [esi], 0
je 0x40d624
mov eax, esi
mov edx, 0x40d69c
call fcn.0040aaf4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d268
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aaf4
push 0x625c14
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x625c2c], bx
mov eax, dword [esi]
call fcn.0040a8fc
mov ecx, eax
mov eax, 0x625c2e
mov edx, 0xaa
call fcn.0040d0e8
push 0x625c14
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d68b
lea eax, [ebp - 4]
call fcn.00409f00
ret
Function at 0x40d8b4
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.00409fe4
xor eax, eax
push ebp
push 0x40dad9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d8f4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40d90e
mov eax, dword [ebp - 4]
call fcn.0040a8fc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d0e8
cmp word [ebp - 0x21a], 0
je 0x40dac3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dae8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dae8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d9dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40dac3
xor eax, eax
push ebp
push 0x40dabc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d6c4
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 0x40da4c
mov eax, dword [ebp - 0x10]
call fcn.00406e90
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.0040a960
jmp 0x40da97
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dbcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40da97
mov eax, dword [ebp - 0x10]
call fcn.00406e90
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dbcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a960
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dac3
cmp dword [ebp - 8], 0
je 0x40dab2
mov eax, dword [ebp - 8]
call fcn.00406eac
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 0x40dae0
lea eax, [ebp - 4]
call fcn.00409f00
ret
Function at 0x40dde0
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.00409fe4
xor eax, eax
push ebp
push 0x40dea0
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.0040a99c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ab4c
mov eax, dword [ebx]
call fcn.0040dc90
test al, al
jne 0x40de7d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a99c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ab4c
mov eax, dword [ebx]
call fcn.0040dc90
test al, al
jne 0x40de7d
mov eax, ebx
call fcn.00409f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dea7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409f60
lea eax, [ebp - 4]
call fcn.00409f00
ret

Function at 0x40faac
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 0x423f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x423fe9
test eax, edx
je 0x423fec
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x423fa7
movzx eax, word [eax]
sub eax, ecx
jmp 0x423fce
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 0x423fcf
add ecx, 4
js 0x423fbf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x423fcc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x423fce
xor eax, eax
ret
test eax, eax
je 0x423ff8
test edx, edx
jne 0x423f98
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x425354
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 0x425381
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x425414
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.0040a8fc
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4254b2
test esi, 0x400
jne 0x425449
test esi, 0x10
setne bl
jmp 0x4254b2
cmp byte [esp], 0
je 0x42547d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4254b2
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x4254b2
test esi, 0x10
je 0x425489
mov bl, 1
jmp 0x4254b2
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4254b0
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x4254b2
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429314
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 0x42934d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a088
jmp 0x429356
mov eax, ebx
mov edx, esi
call fcn.0040a2e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x429360
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 0x429382
movzx eax, word [esp]
jmp 0x429384
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42a66c
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 0x42a791
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042a474
mov esi, eax
mov eax, dword [0x6222f8]
cmp byte [eax], 0
je 0x42a739
mov eax, dword [0x621fb8]
call fcn.004078ec
call fcn.00407004
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 [0x42a63c]
call fcn.0040c96c
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 0x42a7ac
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42a775
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x621f34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x626634]
call fcn.0040cd8c
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 0x42a798
lea eax, [ebp - 4]
mov edx, dword [0x42a63c]
call fcn.0040ca90
ret

Function at 0x42b9a0
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 0x42ba76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a328
lea eax, [ebp - 4]
call fcn.0040a444
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a8fc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42ba60
mov eax, ebx
call fcn.00406e90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42ba59
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.0040a8fc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42ba43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ba88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42ba43
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 0x42ba60
mov eax, dword [ebp - 0x10]
call fcn.00406eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ba7d
lea eax, [ebp - 4]
call fcn.00409f00
ret
Function at 0x42ba8c
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 0x42bb8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a328
lea eax, [ebp - 4]
call fcn.0040a444
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a8fc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42bb76
mov eax, ebx
call fcn.00406e90
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42bb6f
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.0040a8fc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42bb59
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42bba0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42bb59
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 0x42bb76
mov eax, dword [ebp - 0x10]
call fcn.00406eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bb93
lea eax, [ebp - 4]
call fcn.00409f00
ret

Function at 0x42cbc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a3d0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fa8c
mov edi, eax
cmp edi, 0x104
jbe 0x42cb6b
mov eax, edi
add eax, eax
call fcn.00406e90
mov esi, eax
jmp 0x42cb6d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fa8c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42cba6
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42cb90
mov eax, esp
cmp esi, eax
je 0x42cbb3
mov eax, esi
call fcn.00406eac
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42cbec
cmp bl, 0
je 0x42cbe8
cmp bl, 0x41
jl 0x42cbe3
cmp bl, 0x5a
jg 0x42cbe3
or bl, 0x20
xor al, bl
inc esi
jmp 0x42cbc7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42cb2c

Function at 0x42d504
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040a99c
add esp, 0x800
pop ebx
ret