joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017f11
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10017e8d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10018080
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10018080
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10018035
jg 0x10017f6d
test eax, eax
je 0x1001802b
push 1
push 0x1000
call fcn.1000c197
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10017f90
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10018022
push 0x8000
push ebx
call fcn.10017dbe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10017fb9
jg 0x10017fb4
cmp ecx, 0x1000
jb 0x10017fb9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10012116
add esp, 0x10
cmp eax, 0xffffffff
je 0x10017ffe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10017fb4
jl 0x10017fe5
test ecx, ecx
jne 0x10017fa6
push dword [ebp - 0xc]
push ebx
call fcn.10017dbe
push esi
call fcn.1000c1f4
add esp, 0xc
xor ebx, ebx
jmp 0x1001808e
cmp byte [edi + 0x24], 0
je 0x10018015
cmp dword [edi + 0x20], 5
jne 0x10018015
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10018020
mov ebx, dword [edi + 0x18]
jmp 0x10018022
xor ebx, ebx
push esi
call fcn.1000c1f4
pop ecx
jmp 0x1001808e
test ecx, ecx
jg 0x10017ff7
jl 0x10018035
test eax, eax
jae 0x10017ff7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016914
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10018055
cmp byte [edi + 0x1c], 0
je 0x10017ff7
jmp 0x10018086
push ebx
call fcn.100126fc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10017ff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001808e
cmp byte [edi + 0x1c], 0
je 0x1001808b
mov ebx, dword [edi + 0x18]
jmp 0x1001808e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10016914
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001a3a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a3cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a3cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401981
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401990
pop dword [ebp - 0x38]
mov eax, 0x99dc3031
add eax, 0x6663e95f
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x50c5986a
sub dword [ebp - 0x48], 0x273531f
mov dword [ebp - 0x44], 0xd7aae1f5
sub dword [ebp - 0x44], 0xa57795b0
mov dword [ebp - 0x40], 0xa7254566
sub dword [ebp - 0x40], 0x5ad90138
mov dword [ebp - 0x3c], 0xfb5dc392
sub dword [ebp - 0x3c], 0xfb5dc392
lea eax, [ebp - 0x48]
push eax
mov eax, 0xc96fae6b
add eax, 0x36d121e9
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x381c4a9a
add dword [ebp - 0x48], 0x3c561ebc
mov dword [ebp - 0x44], 0x29a5d137
sub dword [ebp - 0x44], 0xe8396fc2
mov dword [ebp - 0x40], 0x808d1abc
add dword [ebp - 0x40], 0xe2e251b0
mov dword [ebp - 0x3c], 0xa8b5ec05
add dword [ebp - 0x3c], 0x574a13fb
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3b131
push 0
call eax
mov ecx, 0x20919df2
add ecx, 0xdf6eb030
mov esi, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x38]
mov edx, 0x55e24614
xor dword [ebp - 0x20], 0x199d7516
mov ebx, dword [edi]
mov dword [ebp - 0x10], 0xe979b83f
xor ebx, edx
add dword [ebp - 0x18], edx
mov dword [esi], ebx
mov dword [ebp - 0x2c], 0x7c0f056b
add esi, 0xc61ffe4a
sub esi, 0xc61ffe46
add edi, 0xf604b47a
sub edi, 0xf604b476
loop 0x401aa1
add eax, 0x12b5b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x1001a6fd
Capabilities:
Query environment variable

Disassembly:
push 0xc
mov eax, 0x1002f459
call fcn.100036bc
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1001a7ec
cmp dword [ebp + 0xc], 0
je 0x1001a7ec
xor esi, esi
push esi
push esi
push ebx
call sub.kernel32.dll_ExpandEnvironmentStringsW
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x14], eax
mul edx
seto cl
mov dword [ebp - 4], esi
neg ecx
or ecx, eax
push ecx
call fcn.1001f632
pop ecx
mov edi, eax
jmp 0x1001a754
test edi, edi
jne 0x1001a786
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001a77f
test byte [eax + 0x1c], 1
je 0x1001a77f
push dword [ebp - 0x14]
push reloc.advapi32.dll_UnregisterTraceGuids
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001f632
mov esi, 0x8007000e
jmp 0x1001a7e8
push dword [ebp - 0x14]
push edi
push ebx
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
jne 0x1001a7d2
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001a7c3
test byte [eax + 0x1c], 1
je 0x1001a7c3
call sub.kernel32.dll_GetLastError
push eax
mov eax, dword [0x100320c8]
push reloc.advapi32.dll_UnregisterTraceGuids
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001f632
call sub.kernel32.dll_GetLastError
push eax
call fcn.1001f632
mov esi, eax
jmp 0x1001a7dd
mov ecx, dword [ebp + 0xc]
push edi
call fcn.1001f632
mov edi, esi
test edi, edi
je 0x1001a7e8
push edi
call fcn.1001f632
pop ecx
mov eax, esi
jmp 0x1001a815
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001a810
test byte [eax + 0x1c], 1
je 0x1001a810
push reloc.advapi32.dll_UnregisterTraceGuids
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001f632
mov eax, 0x80070057
call fcn.10005952
ret 8
Function at 0x1001f632
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1001f641
pop dword [ebp - 0x48]
mov eax, 0x92761a8d
add eax, 0x7d8bdbb4
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x401ad
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3da394d8
sub ecx, 0x3da34de7
mov edx, eax
mov edi, 0x10038c00
add edi, dword [ebp - 0x48]
mov esi, 0xb13eb5d8
sub dword [ebp - 0x38], ecx
mov ebx, dword [edi]
add dword [ebp - 0x20], 0xcefb1cfb
xor ebx, esi
mov dword [ebp - 0x40], 0x2432b98b
mov dword [edx], ebx
mov dword [ebp - 0x3c], 0x9769abf8
add edx, 4
add edi, 0x80591bcf
add edi, 0x7fa6e435
loop 0x1001f68f
add eax, 0xd53217a3
sub eax, 0xd531090c
xor ebx, ebx
add ebx, eax
add eax, 0x26f421bf
add eax, 0xd90bde46
mov ecx, 0x4c00a694
add ecx, 0xc3ff596c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10023e87
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x28]
push ebx
xor edi, edi
call sub.kernel32.dll_EnterCriticalSection
cmp dword [esi + 4], edi
jne 0x10023ec9
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10023ec2
test byte [eax + 0x1c], 1
je 0x10023ec2
push 0x1000c0b0
push reloc.advapi32.dll_GetTraceEnableFlags
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001f632
mov edi, 0x8000ffff
jmp 0x10023f46
cmp dword [esi + 8], edi
jne 0x10023f46
cmp dword [esi + 0x14], edi
jbe 0x10023f46
push dword [esi + 0x40]
call sub.kernel32.dll_ResetEvent
push dword [esi + 0x44]
call sub.kernel32.dll_ResetEvent
cmp dword [esi + 0x48], edi
je 0x10023ef0
push dword [esi + 0x48]
call sub.kernel32.dll_CloseHandle
lea eax, [esi + 0x4c]
push eax
push edi
push esi
push 0x100281e1
push edi
push edi
call sub.kernel32.dll_CreateThread
mov dword [esi + 0x48], eax
test eax, eax
jne 0x10023f3f
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10023f38
test byte [eax + 0x1c], 1
je 0x10023f38
call sub.kernel32.dll_GetLastError
push eax
mov eax, dword [0x100320c8]
push 0x1000c0b0
push reloc.advapi32.dll_GetTraceEnableLevel
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001f632
mov edi, 0x80004005
jmp 0x10023f46
mov dword [esi + 8], 1
push ebx
call sub.kernel32.dll_LeaveCriticalSection
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10029fb4
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x21c
mov eax, 0x1002ff54
call fcn.1002b85a
mov eax, dword [ebp + 8]
mov dword [ebp - reloc.advapi32.dll_TraceMessage], eax
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, reloc.advapi32.dll_TraceMessage
push edi
push eax
mov esi, edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.advapi32.dll_TraceMessage
push eax
push 0x108
push edi
push 0x10006bd0
push 0x80000002
mov dword [ebp - reloc.advapi32.dll_TraceMessage], edi
mov dword [ebp - reloc.advapi32.dll_TraceMessage], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002a034
mov esi, eax
jle 0x1002a1ad
and esi, 0xffff
or esi, 0x80070000
jmp 0x1002a1ad
mov ebx, edi
push edi
push edi
push edi
push edi
lea eax, reloc.advapi32.dll_TraceMessage
push eax
lea eax, reloc.advapi32.dll_TraceMessage
push eax
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - reloc.advapi32.dll_TraceMessage], 0x104
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1002a1ad
test eax, eax
jne 0x1002a177
lea eax, reloc.advapi32.dll_TraceMessage
push eax
call fcn.1001f632
push 0xc
call fcn.1001f632
pop ecx
mov dword [ebp - reloc.advapi32.dll_TraceMessage], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x1002a09c
mov ecx, eax
call fcn.10004f6b
mov edi, eax
or dword [ebp - 4], reloc.advapi32.dll_TraceMessage
mov dword [ebp - reloc.advapi32.dll_TraceMessage], edi
test edi, edi
je 0x1002a139
lea eax, reloc.advapi32.dll_TraceMessage
push eax
mov ecx, edi
call fcn.1000503e
mov esi, eax
test esi, esi
js 0x1002a10b
mov ecx, dword [ebp - reloc.advapi32.dll_TraceMessage]
lea eax, reloc.advapi32.dll_TraceMessage
push eax
call fcn.1000f2a1
mov esi, eax
test esi, esi
js 0x1002a0ef
inc ebx
push 0
pop edi
cmp ebx, 0x1f4
jae 0x1002a1ad
jmp 0x1002a036
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1002a163
test byte [eax + 0x1c], 1
je 0x1002a163
push esi
push 0x1000c1d4
push 0x15
jmp 0x1002a158
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1002a163
test byte [eax + 0x1c], 1
je 0x1002a163
push esi
lea ecx, reloc.advapi32.dll_TraceMessage
push ecx
push 0x1000c1d4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001f632
jmp 0x1002a163
mov esi, 0x8007000e
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1002a163
test byte [eax + 0x1c], 1
je 0x1002a163
push esi
push 0x1000c1d4
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001f632
test edi, edi
je 0x1002a1ad
mov ecx, edi
call fcn.10004fde
push edi
call fcn.1001f632
pop ecx
jmp 0x1002a1ad
mov esi, eax
jle 0x1002a187
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1002a1ad
test byte [eax + 0x1c], 1
je 0x1002a1ad
push esi
push ebx
push 0x1000c1d4
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001f632
cmp dword [ebp - reloc.advapi32.dll_TraceMessage], 0
je 0x1002a1c2
push dword [ebp - 0x21c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
call fcn.1002b897
ret 4
Function at 0xf06dcc
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.00f09754
test esi, esi
jne 0xf06e02
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00f098dc
jmp 0xf06e20
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00f06d10
mov edi, eax
test esi, esi
je 0xf06e20
cmp dword [ebx], 0
je 0xf06e20
dec esi
jmp 0xf06e09
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1159008], 0x8088405
inc edx
mov dword [ebx + 0x1159008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0xf08418
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.00f08878
mov byte [esp], al
cmp byte [esp], 0
jne 0xf085a2
test edi, edi
je 0xf085a2
mov byte [esp + 1], 0
test ebp, ebp
jle 0xf084e2
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0xf084bd
cmp edi, 0xffffffff
je 0xf0847d
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0xf0847d
mov byte [esp], 0
jmp 0xf085a2
mov ebx, dword [esi]
cmp ebx, 1
jg 0xf084bd
test ebx, ebx
jne 0xf084af
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0xf084af
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0xf085a2
lea eax, [esp + 0xc]
call fcn.00f080f8
dec ebp
test ebp, ebp
jg 0xf08462
cmp edi, 0xffffffff
je 0xf084e2
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0xf084e0
mov byte [esp], 0
jmp 0xf085a2
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0xf08426
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xf084e2
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.00f08610
mov edx, eax
mov ebx, dword [0x15978fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0xf08546
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0xf08544
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0xf08546
xor edi, edi
cmp byte [esp], 0
je 0xf0856c
mov ebx, dword [esi]
test bl, 1
jne 0xf08582
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xf0854c
mov byte [esp + 1], 1
jmp 0xf08582
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xf0856c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0xf084f9
cmp byte [esp], 0
je 0xf085a2
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0xf093e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x159705c], 0
je 0xf0944b
cmp word [0x1597348], 0xd7b2
jne 0xf0940d
cmp dword [0x1597350], 0
jbe 0xf0940d
mov eax, 0x1597344
call dword [0x1597360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0xf09478
call fcn.00f09ff8
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x1159032], 0
jne 0xf09467
push 0
push 0x11599c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0xf09614
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 [0x1159034], 0
je 0xf0963f
mov edx, edi
mov eax, esi
call dword [0x1159034]
mov ebx, eax
jmp 0xf09650
mov eax, 8
call fcn.00f06a4c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x159705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0xf095dc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread_1
mov esi, eax
test esi, esi
jne 0xf09680
mov eax, ebx
call fcn.00f06a68
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0xf0c280
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 0xf0c3e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00f09754
cmp si, word [0x1159a00]
jb 0xf0c318
cmp si, word [0x1159c00]
ja 0xf0c318
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0xf0c318
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x1159a00]
jae 0xf0c2f2
mov edi, ebx
dec edi
jmp 0xf0c313
cmp si, word [ebx*8 + 0x1159a00]
jbe 0xf0c302
inc ebx
mov dword [ebp - 8], ebx
jmp 0xf0c313
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x1159a04]
call fcn.00f0c1a0
jmp 0xf0c318
cmp edi, dword [ebp - 8]
jae 0xf0c2dc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xf0c3c7
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0xf0c3c7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00f0a4d0
push dword [ebp - 0x160]
push 0xf0c400
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00f0a4d0
push dword [ebp - 0x164]
push 0xf0c410
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00f0a4d0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00f0a708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0c3ec
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00f097b4
ret
Function at 0xf0c598
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 0xf0c69c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1599b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x1599ba4]
jne 0xf0c5e4
mov eax, esi
mov edx, 0x1599ba6
mov ecx, 0x55
call fcn.00f0a4d0
push 0x1599b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0xf0c686
push 0x1599b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
call fcn.00f09754
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0xf0c653
cmp byte [0x1599b88], 0
je 0xf0c618
mov edx, esi
mov eax, ebx
call fcn.00f0c47c
jmp 0xf0c653
mov edx, esi
mov eax, ebx
call fcn.00f0c280
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0xf0c653
cmp dword [esi], 0
je 0xf0c63c
mov eax, esi
mov edx, 0xf0c6b4
call fcn.00f0a628
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00f0c280
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00f0a628
push 0x1599b8c
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x1599ba4], bx
mov eax, dword [esi]
call fcn.00f0a42c
mov ecx, eax
mov eax, 0x1599ba6
mov edx, 0xaa
call fcn.00f0c100
push 0x1599b8c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0c6a3
lea eax, [ebp - 4]
call fcn.00f09754
ret
Function at 0xf0c8cc
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.00f09838
xor eax, eax
push ebp
push 0xf0caf1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0xf0c90c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0xf0c926
mov eax, dword [ebp - 4]
call fcn.00f0a42c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00f0c100
cmp word [ebp - 0x21a], 0
je 0xf0cadb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0cb00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0xf0c9f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0cb00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0xf0c9f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0cb3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0xf0c9f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0cb3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0xf0c9f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0cb70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0xf0c9f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xf0cba4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0xf0cadb
xor eax, eax
push ebp
push 0xf0cad4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00f0c6dc
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_1
test eax, eax
jne 0xf0ca64
mov eax, dword [ebp - 0x10]
call fcn.00f06a4c
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_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00f0a494
jmp 0xf0caaf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0xf0cbe4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0xf0caaf
mov eax, dword [ebp - 0x10]
call fcn.00f06a4c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0xf0cbe4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00f0a494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0cadb
cmp dword [ebp - 8], 0
je 0xf0caca
mov eax, dword [ebp - 8]
call fcn.00f06a68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0caf8
lea eax, [ebp - 4]
call fcn.00f09754
ret
Function at 0xf0cde0
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.00f09838
xor eax, eax
push ebp
push 0xf0cea0
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00f0a4d0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00f0a680
mov eax, dword [ebx]
call fcn.00f0cca8
test al, al
jne 0xf0ce7d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00f0a4d0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00f0a680
mov eax, dword [ebx]
call fcn.00f0cca8
test al, al
jne 0xf0ce7d
mov eax, ebx
call fcn.00f09754
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf0cea7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00f097b4
lea eax, [ebp - 4]
call fcn.00f09754
ret