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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e140
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x23c], esi
lea eax, [ebp - 0x220]
mov dword [ebp - 0x23c], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push 0x4267b4
push eax
call fcn.00401050
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x238], 0
add esp, 0xc
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x238], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032b8
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00403f40
push edi
lea edx, [ebp - 0x238]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00404400
mov edx, dword [ebp - 0x224]
add esp, 4
cmp edx, 0x10
jb 0x403322
mov ecx, dword [ebp - 0x238]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403318
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40333f
push edx
push ecx
call fcn.0040560c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004055fe
mov esp, ebp
pop ebp
ret
call fcn.0040ad56
int3

Function at 0x40f52f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421320
push 0x421318
push str.FlsAlloc
push 0x1e
call fcn.0040f39c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f563
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f17c]
call esi
jmp 0x40f569
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f5ad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421330
push 0x421328
push str.FlsGetValue
push 0x20
call fcn.0040f39c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f5e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41289f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41293c
push ebx
push esi
call fcn.00412868
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004127b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4128e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41293b
push edi
push eax
call fcn.0040e339
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x412909
call fcn.0040e2ff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41293a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004127b1
add esp, 0x20
test eax, eax
jne 0x412928
push edi
call fcn.0040e2ff
jmp 0x412930
push ebx
call fcn.0040e2ff
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x407734
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.0040b8c0
test esi, esi
jne 0x40776a
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.0040ba58
jmp 0x407788
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407678
mov edi, eax
test esi, esi
je 0x407788
cmp dword [ebx], 0
je 0x407788
dec esi
jmp 0x407771
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40a508
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.0040a9c8
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a691
test edi, edi
je 0x40a691
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a5d1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a5ac
cmp edi, 0xffffffff
je 0x40a56d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a56d
mov byte [esp], 0
jmp 0x40a691
cmp dword [esi], 1
jg 0x40a5ac
cmp dword [esi], 0
jne 0x40a59e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a59e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a691
lea eax, [esp + 0xc]
call fcn.0040a1bc
dec ebp
test ebp, ebp
jg 0x40a552
cmp edi, 0xffffffff
je 0x40a5d1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a5cf
mov byte [esp], 0
jmp 0x40a691
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a516
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a5d1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a70c
mov edx, eax
mov ebx, dword [0x9318fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a635
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a633
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a635
xor edi, edi
cmp byte [esp], 0
je 0x40a65b
mov ebx, dword [esi]
test bl, 1
jne 0x40a671
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a63b
mov byte [esp + 1], 1
jmp 0x40a671
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a65b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a5e8
cmp byte [esp], 0
je 0x40a691
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 0x40b558
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x93105c], 0
je 0x40b5bf
cmp word [0x931348], 0xd7b2
jne 0x40b581
cmp dword [0x931350], 0
jbe 0x40b581
mov eax, 0x931344
call dword [0x931360]
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, 0x40b5ec
call fcn.0040c2b8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x92b036], 0
jne 0x40b5db
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x40b780
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 [0x92b038], 0
je 0x40b7ab
mov edx, edi
mov eax, esi
call dword [0x92b038]
mov ebx, eax
jmp 0x40b7bc
mov eax, 8
call fcn.00407030
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x93105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b748
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 0x40b7ec
mov eax, ebx
call fcn.0040704c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40f7e0
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 0x40f947
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b8c0
cmp si, word [0x92ba18]
jb 0x40f878
cmp si, word [0x92bc18]
ja 0x40f878
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40f878
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x92ba18]
jae 0x40f852
mov edi, ebx
dec edi
jmp 0x40f873
cmp si, word [ebx*8 + 0x92ba18]
jbe 0x40f862
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40f873
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x92ba1c]
call fcn.0040f6fc
jmp 0x40f878
cmp edi, dword [ebp - 8]
jae 0x40f83c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40f927
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f927
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.0040c664
push dword [ebp - 0x160]
push 0x40f964
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c664
push dword [ebp - 0x164]
push 0x40f974
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c664
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c89c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f94e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b920
pop eax
jmp eax
Function at 0x40fafc
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 0x40fc02
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x933c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x933c30]
jne 0x40fb48
mov eax, esi
mov edx, 0x933c32
mov ecx, 0x55
call fcn.0040c664
push 0x933c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40fbea
push 0x933c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b8c0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40fbb7
cmp byte [0x933c14], 0
je 0x40fb7c
mov edx, esi
mov eax, ebx
call fcn.0040f9e0
jmp 0x40fbb7
mov edx, esi
mov eax, ebx
call fcn.0040f7e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40fbb7
cmp dword [esi], 0
je 0x40fba0
mov eax, esi
mov edx, 0x40fc1c
call fcn.0040c7bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040f7e0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c7bc
push 0x933c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x933c30], bx
mov eax, dword [esi]
call fcn.0040c5b0
mov ecx, eax
mov eax, 0x933c32
mov edx, 0xaa
call fcn.0040f65c
push 0x933c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fc09
lea eax, [ebp - 4]
call fcn.0040b8c0
pop eax
jmp eax
Function at 0x40fe44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040b9b4
xor eax, eax
push ebp
push 0x41006c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40fe8a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40fea4
mov eax, dword [ebp - 4]
call fcn.0040c5b0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040f65c
cmp word [ebp - 0x21e], 0
je 0x41004f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41007c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ff73
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x41007c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ff73
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4100b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ff73
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4100b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ff73
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x4100ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ff73
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x410120
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x41004f
xor eax, eax
push ebp
push 0x410048
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040fc44
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ffd6
mov eax, dword [ebp - 0x14]
call fcn.00407030
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c610
jmp 0x410021
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x410160
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x410021
mov eax, dword [ebp - 0x14]
call fcn.00407030
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x410160
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41004f
cmp dword [ebp - 0xc], 0
je 0x41003c
mov eax, dword [ebp - 0xc]
call fcn.0040704c
mov eax, dword [ebp - 0x10]
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 0x410073
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b920
pop eax
jmp eax
Function at 0x410380
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.0040b9b4
xor eax, eax
push ebp
push 0x410442
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.0040c664
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c814
mov eax, dword [ebx]
call fcn.00410228
test al, al
jne 0x41041d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040c664
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c814
mov eax, dword [ebx]
call fcn.00410228
test al, al
jne 0x41041d
mov eax, ebx
call fcn.0040b8c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410449
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b920
lea eax, [ebp - 4]
call fcn.0040b8c0
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x426b41
test eax, edx
je 0x426b44
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x426aff
movzx eax, word [eax]
sub eax, ecx
jmp 0x426b26
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x426b27
add ecx, 4
js 0x426b17
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x426b24
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x426b26
xor eax, eax
ret
test eax, eax
je 0x426b50
test edx, edx
jne 0x426af0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x427f90
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.0040c5b0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427ffa
test ah, 4
je 0x427ff3
test bl, bl
jne 0x427fb8
mov al, 1
jmp 0x428021
test al, 0x10
je 0x427fc0
xor eax, eax
jmp 0x428021
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427fe4
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x428021
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x428021
test al, 0x10
sete al
jmp 0x428021
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42801b
cmp ebx, 3
je 0x42801b
cmp ebx, 0x7b
je 0x42801b
mov eax, esi
call fcn.00427f50
test al, al
jne 0x42801f
xor eax, eax
jmp 0x428021
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x428028
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.0040c5b0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4280c6
test esi, 0x400
jne 0x42805d
test esi, 0x10
setne bl
jmp 0x4280c6
cmp byte [esp], 0
je 0x428091
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4280c6
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4280c6
test esi, 0x10
je 0x42809d
mov bl, 1
jmp 0x4280c6
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4280c4
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4280c6
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42cd88
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 0x42cdc1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ba58
jmp 0x42cdca
mov eax, ebx
mov edx, esi
call fcn.0040bcb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42cdd4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42cdf8
movzx eax, word [esp]
jmp 0x42cdfa
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42e518
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 0x42e63f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042e320
mov esi, eax
mov eax, dword [0x930c3c]
cmp byte [eax], 0
je 0x42e5e5
mov eax, dword [0x930818]
call fcn.00408260
call fcn.004071a4
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 [0x42e4e8]
call fcn.0040ea64
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 0x42e658
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42e621
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x930768]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x93463c]
call fcn.0040f300
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 0x42e646
lea eax, [ebp - 4]
mov edx, dword [0x42e4e8]
call fcn.0040eb88
pop eax
jmp eax
Function at 0x42fad8
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x42fb1b
mov eax, dword [ebp - 0x10c]
mov dword [0x9348fc], eax
mov eax, 0x934900
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040c664
mov eax, 0x934904
call fcn.0040b8c0
xor eax, eax
mov dword [0x934908], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x9347c0], 0xa
jl 0x42fc71
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42fc7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42fc71
xor eax, eax
push ebp
push 0x42fc6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42fcd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42fbca
cmp dword [ebp - 8], 2
jle 0x42fbca
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42fb9d
adc edx, 0
mov eax, 0x934904
call fcn.0040c73c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x934904]
call fcn.0040c5b0
push eax
push 0
push 0
push 0x42fcd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42fc24
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42fcf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42fc24
cmp dword [ebp - 8], 2
jle 0x42fc24
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42fbf9
adc edx, 0
mov eax, 0x934904
call fcn.0040c73c
lea eax, [ebp - 8]
push eax
mov eax, dword [0x934904]
call fcn.0040c5b0
push eax
push 0
push 0
push 0x42fcf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x934908
push 0
push 0
push 0x42fd0c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42fc51
xor eax, eax
mov dword [0x934908], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fc71
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x92d710], 1
mov esp, ebp
pop ebp
ret