joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458153
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x45e81f
call fcn.00431818
mov eax, 0x1014
call fcn.00430560
mov eax, dword [0x4774f0]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x45824e
push dword [ebp + 0xc]
call fcn.004580a4
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x45819c
push dword [ebp + 0x14]
jmp 0x45827f
push esi
call fcn.00447b5f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x458219
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.00424dea
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.00424cc4
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x45823c
lea eax, [ebp + 0xc]
push eax
call fcn.00424d00
jmp 0x458244
push dword [ebp + 0x14]
call fcn.00425b12
lea ecx, [ebx - 0x10]
call fcn.00424a21
jmp 0x458287
cmp dword [ebp + 0x14], edi
jne 0x45825a
mov dword [ebp + 0x14], 0x4663fc
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.00425b12
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004305ce
leave
ret 0x10

Function at 0x4587d8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x45880d
cmp edi, dword [esi + 0xc]
jge 0x45880d
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x45880d
cmp edi, dword [eax + 8]
jge 0x45880d
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x45880f
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x458913
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x458947
jmp fcn.0043f959
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x4589b8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x458ab1
cmp eax, dword [edi + 0xc]
jge 0x458ab1
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x458a09
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x458a9a
cmp dword [ebp + 0xc], ebx
je 0x458a9a
jmp 0x458a33
push 0x10
call fcn.004586a4
cmp eax, ebx
je 0x458a1f
mov ecx, eax
call fcn.0045890a
mov esi, eax
jmp 0x458a21
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x458a4a
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
jmp 0x458a5a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
cmp eax, ebx
jne 0x458a6c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call fcn.0043f959
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00431c10
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x458aac
cmp ecx, dword [esi + 8]
jge 0x458aac
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x458ab2
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x458b70
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x458b9e
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x458bbc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00458ada
jmp 0x458bbc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x458bbc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00458ada
test edi, edi
mov eax, edi
jne 0x458ba6
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x47a2a8]
test ecx, ecx
je 0x458c6f
jmp 0x458b6f
ret 8
Function at 0xf07234
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.00f09d68
test esi, esi
jne 0xf0726a
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.00f09ef0
jmp 0xf07288
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00f07178
mov edi, eax
test esi, esi
je 0xf07288
cmp dword [ebx], 0
je 0xf07288
dec esi
jmp 0xf07271
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0xf072bc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1244008], 0x8088405
inc edx
mov dword [ebx + 0x1244008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0xf08a00
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.00f08e8c
mov byte [esp], al
cmp byte [esp], 0
jne 0xf08b89
test edi, edi
je 0xf08b89
mov byte [esp + 1], 0
test ebp, ebp
jle 0xf08ac9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0xf08aa4
cmp edi, 0xffffffff
je 0xf08a65
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0xf08a65
mov byte [esp], 0
jmp 0xf08b89
cmp dword [esi], 1
jg 0xf08aa4
cmp dword [esi], 0
jne 0xf08a96
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0xf08a96
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0xf08b89
lea eax, [esp + 0xc]
call fcn.00f086bc
dec ebp
test ebp, ebp
jg 0xf08a4a
cmp edi, 0xffffffff
je 0xf08ac9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0xf08ac7
mov byte [esp], 0
jmp 0xf08b89
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0xf08a0e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xf08ac9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00f08bf8
mov edx, eax
mov ebx, dword [0x16828fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0xf08b2d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0xf08b2b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0xf08b2d
xor edi, edi
cmp byte [esp], 0
je 0xf08b53
mov ebx, dword [esi]
test bl, 1
jne 0xf08b69
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xf08b33
mov byte [esp + 1], 1
jmp 0xf08b69
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xf08b53
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0xf08ae0
cmp byte [esp], 0
je 0xf08b89
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 0xf09a00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x168205c], 0
je 0xf09a67
cmp word [0x1682348], 0xd7b2
jne 0xf09a29
cmp dword [0x1682350], 0
jbe 0xf09a29
mov eax, 0x1682344
call dword [0x1682360]
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, 0xf09a94
call fcn.00f0a570
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x1244032], 0
jne 0xf09a83
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0xf09c28
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 [0x1244034], 0
je 0xf09c53
mov edx, edi
mov eax, esi
call dword [0x1244034]
mov ebx, eax
jmp 0xf09c64
mov eax, 8
call fcn.00f06eb4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x168205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0xf09bf0
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 0xf09c94
mov eax, ebx
call fcn.00f06ed0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0xf0cfb0
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 0xf0d115
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00f09d68
cmp si, word [0x1244a00]
jb 0xf0d048
cmp si, word [0x1244c00]
ja 0xf0d048
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0xf0d048
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x1244a00]
jae 0xf0d022
mov edi, ebx
dec edi
jmp 0xf0d043
cmp si, word [ebx*8 + 0x1244a00]
jbe 0xf0d032
inc ebx
mov dword [ebp - 8], ebx
jmp 0xf0d043
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x1244a04]
call fcn.00f0ced0
jmp 0xf0d048
cmp edi, dword [ebp - 8]
jae 0xf0d00c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xf0d0f7
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0xf0d0f7
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.00f0aaa8
push dword [ebp - 0x160]
push 0xf0d130
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00f0aaa8
push dword [ebp - 0x164]
push 0xf0d140
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00f0aaa8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00f0ace0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0d11c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00f09dc8
ret
Function at 0xf0d2c8
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 0xf0d3cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1684c14
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x1684c2c]
jne 0xf0d314
mov eax, esi
mov edx, 0x1684c2e
mov ecx, 0x55
call fcn.00f0aaa8
push 0x1684c14
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0xf0d3b6
push 0x1684c14
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00f09d68
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0xf0d383
cmp byte [0x1684c10], 0
je 0xf0d348
mov edx, esi
mov eax, ebx
call fcn.00f0d1ac
jmp 0xf0d383
mov edx, esi
mov eax, ebx
call fcn.00f0cfb0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0xf0d383
cmp dword [esi], 0
je 0xf0d36c
mov eax, esi
mov edx, 0xf0d3e4
call fcn.00f0ac00
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00f0cfb0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00f0ac00
push 0x1684c14
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x1684c2c], bx
mov eax, dword [esi]
call fcn.00f0aa04
mov ecx, eax
mov eax, 0x1684c2e
mov edx, 0xaa
call fcn.00f0ce30
push 0x1684c14
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0d3d3
lea eax, [ebp - 4]
call fcn.00f09d68
ret
Function at 0xf0d5fc
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.00f09e4c
xor eax, eax
push ebp
push 0xf0d821
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0xf0d63c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0xf0d656
mov eax, dword [ebp - 4]
call fcn.00f0aa04
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00f0ce30
cmp word [ebp - 0x21a], 0
je 0xf0d80b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0d830
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xf0d725
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0d830
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xf0d725
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0d86c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xf0d725
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0d86c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xf0d725
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0d8a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xf0d725
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0d8d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0xf0d80b
xor eax, eax
push ebp
push 0xf0d804
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00f0d40c
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 0xf0d794
mov eax, dword [ebp - 0x10]
call fcn.00f06eb4
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.00f0aa6c
jmp 0xf0d7df
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0xf0d914
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0xf0d7df
mov eax, dword [ebp - 0x10]
call fcn.00f06eb4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0xf0d914
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00f0aa6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0d80b
cmp dword [ebp - 8], 0
je 0xf0d7fa
mov eax, dword [ebp - 8]
call fcn.00f06ed0
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 0xf0d828
lea eax, [ebp - 4]
call fcn.00f09d68
ret
Function at 0xf0db10
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.00f09e4c
xor eax, eax
push ebp
push 0xf0dbd0
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.00f0aaa8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00f0ac58
mov eax, dword [ebx]
call fcn.00f0d9d8
test al, al
jne 0xf0dbad
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00f0aaa8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00f0ac58
mov eax, dword [ebx]
call fcn.00f0d9d8
test al, al
jne 0xf0dbad
mov eax, ebx
call fcn.00f09d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0dbd7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00f09dc8
lea eax, [ebp - 4]
call fcn.00f09d68
ret

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

Disassembly:
cmp eax, edx
je 0xf233a1
test eax, edx
je 0xf233a4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0xf2335f
movzx eax, word [eax]
sub eax, ecx
jmp 0xf23386
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 0xf23387
add ecx, 4
js 0xf23377
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0xf23384
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0xf23386
xor eax, eax
ret
test eax, eax
je 0xf233b0
test edx, edx
jne 0xf23350
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Function at 0xf2490c
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.00f0aa04
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0xf24976
test ah, 4
je 0xf2496f
test bl, bl
jne 0xf24934
mov al, 1
jmp 0xf2499d
test al, 0x10
je 0xf2493c
xor eax, eax
jmp 0xf2499d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0xf24960
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0xf2499d
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0xf2499d
test al, 0x10
sete al
jmp 0xf2499d
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0xf24997
cmp ebx, 3
je 0xf24997
cmp ebx, 0x7b
je 0xf24997
mov eax, esi
call fcn.00f248cc
test al, al
jne 0xf2499b
xor eax, eax
jmp 0xf2499d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0xf28ae0
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 0xf28b19
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00f09ef0
jmp 0xf28b22
mov eax, ebx
mov edx, esi
call fcn.00f0a148
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0xf28b2c
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 0xf28b4e
movzx eax, word [esp]
jmp 0xf28b50
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0xf29e4c
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 0xf29f71
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00f29c54
mov esi, eax
mov eax, dword [0x1681af4]
cmp byte [eax], 0
je 0xf29f19
mov eax, dword [0x1681644]
call fcn.00f07854
call fcn.00f07028
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 [0xf29e1c]
call fcn.00f0c578
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 0xf29f8c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0xf29f55
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x168157c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x1685634]
call fcn.00f0cad4
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 0xf29f78
lea eax, [ebp - 4]
mov edx, dword [0xf29e1c]
call fcn.00f0c69c
ret

Function at 0xf2b030
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 0xf2b106
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00f0a190
lea eax, [ebp - 4]
call fcn.00f0a2b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00f0aa04
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0xf2b0f0
mov eax, ebx
call fcn.00f06eb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xf2b0e9
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.00f0aa04
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0xf2b0d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xf2b118
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0xf2b0d3
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 0xf2b0f0
mov eax, dword [ebp - 0x10]
call fcn.00f06ed0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf2b10d
lea eax, [ebp - 4]
call fcn.00f09d68
ret