joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100043a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100360bc]
cmp eax, 8
jne 0x100043c0
cmp byte [0x10035e96], 0
sete byte [0x10035e96]
mov esp, ebp
pop ebp
ret
cmp eax, 7
jne 0x100043d7
cmp byte [0x10035e94], 0
sete byte [0x10035e94]
mov esp, ebp
pop ebp
ret
push esi
cmp eax, 6
jne 0x1000442b
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2e
call esi
test ax, ax
je 0x10004405
mov eax, dword [0x10034ab8]
cmp eax, 1
jle 0x10004559
dec eax
mov dword [0x10034ab8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x2d
call esi
test ax, ax
je 0x10004559
mov eax, dword [0x10034ab8]
cmp eax, 3
jge 0x10004559
inc eax
mov dword [0x10034ab8], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x1000447e
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2e
call esi
test ax, ax
je 0x10004458
mov eax, dword [0x10034ac4]
cmp eax, 1
jle 0x10004559
dec eax
mov dword [0x10034ac4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x2d
call esi
test ax, ax
je 0x10004559
mov eax, dword [0x10034ac4]
cmp eax, 2
jge 0x10004559
inc eax
mov dword [0x10034ac4], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x100044d1
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2e
call esi
test ax, ax
je 0x100044ab
mov eax, dword [0x10034abc]
cmp eax, 1
jle 0x10004559
dec eax
mov dword [0x10034abc], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x2d
call esi
test ax, ax
je 0x10004559
mov eax, dword [0x10034abc]
cmp eax, 3
jge 0x10004559
inc eax
mov dword [0x10034abc], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x10004518
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2e
call esi
test ax, ax
je 0x100044fa
mov eax, dword [0x10034ac8]
cmp eax, 1
jle 0x10004559
dec eax
mov dword [0x10034ac8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x2d
call esi
test ax, ax
je 0x10004559
mov eax, dword [0x10034ac8]
cmp eax, 3
jge 0x10004559
inc eax
mov dword [0x10034ac8], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10004530
cmp byte [0x10035e95], 0
pop esi
sete byte [0x10035e95]
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10004548
cmp byte [0x10035f05], 0
pop esi
sete byte [0x10035f05]
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x10004559
cmp byte [0x10036075], al
sete byte [0x10036075]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004e90
Capabilities:
Create thread
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100280b7
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x10034040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 0
je 0x10004ff8
sub eax, 1
jne 0x10005044
push 0x105
push 0x100360c0
push 0x10035f00
push 0x100361cc
push 0x10035efc
push 0x105
push 0x10035f70
push 0x10031048
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10004ff8
mov eax, dword [0x10035efc]
cmp eax, 0x1603e100
je 0x10004f93
cmp eax, 0x32bcc5cb
je 0x10004f93
cmp eax, 0x3c47e6a7
je 0x10004f8a
cmp eax, 0x9e49e7f2
je 0x10004f8a
cmp eax, 0x3e663fa7
je 0x10004f8a
cmp eax, 0x64fdcbef
je 0x10004f8a
cmp eax, 0xbab6e8ef
je 0x10004f8a
cmp eax, 0xea495296
je 0x10004f8a
cmp eax, 0xff1ebfc0
je 0x10004f8a
cmp eax, 0x6a780ecc
je 0x10004f8a
cmp eax, 0x10c7e212
je 0x10004f8a
cmp eax, 0x28b5afb8
je 0x10004f8a
cmp eax, 0x32bcc5c9
je 0x10004f8a
push 0x30
push str._C_2022___HWID_IS_NOT_REGISTERED__RG_GaminG
push 0x100310e4
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x40
push str.________________RG_GaminG_HWID
jmp 0x10004f9a
push 0x40
push str._______________RG_GaminG_HWID
push 0x1003106c
push 0
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x1003607c], 0
jne 0x10004fd6
push 0x18
call fcn.100090ca
add esp, 4
mov dword [ebp - 0x118], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10007c40
mov dword [0x1003607c], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x10004be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10005044
mov esi, dword [0x1003607c]
test esi, esi
je 0x10005044
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1000501b
call fcn.10008320
mov esi, dword [0x1003607c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10005044
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10005039
call fcn.10008320
push 0x18
push esi
call fcn.10009414
add esp, 8
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push str.RGhacks.dll
push eax
call fcn.1000a840
add esp, 8
test eax, eax
jne 0x10005096
push 0x10
push str.RG_GaminG
push str.Dont_Rename____p0tang_ina_nakikigamit_ka_na_nga_lang_
push eax
call edi
push 0x10
push str.RG_GaminG
push str.Contact_RG_GAMING_para_sa_orig_file____k_bye_
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100090b7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007c40
Capabilities:
Check if file exists
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10034040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x10c]
push 0x105
push 0
push eax
mov dword [esi], 0
mov ebx, 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
call fcn.1000b0c0
add esp, 0xc
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x10c]
push 0
push 0x29
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x10007e05
push str._ntdll.dll
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.100128cb
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10007e05
push 0x100311b4
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10012884
add esp, 0xc
test eax, eax
jne 0x10007e05
push edi
push 2
push eax
push dword [ebp - 0x110]
call fcn.1000f76a
push dword [ebp - 0x110]
call fcn.1001279d
push eax
mov dword [ebp - 0x114], eax
call fcn.1001292e
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10007df2
push 0
push 0
push dword [ebp - 0x110]
call fcn.1000f76a
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push ebx
push edi
call fcn.1000f30c
push dword [ebp - 0x110]
call fcn.1000e707
add esp, 0x20
mov ecx, edi
call fcn.10007e20
mov dword [esi + 0x10], eax
test eax, eax
je 0x10007dc9
mov edx, str.NtProtectVirtualMemory
mov ecx, eax
call fcn.10008290
mov dword [esi], eax
test eax, eax
je 0x10007dc9
mov ecx, dword [esi + 0x10]
mov edx, str.NtQueryVirtualMemory
call fcn.10008290
mov dword [esi + 4], eax
test eax, eax
je 0x10007dc9
mov ecx, dword [esi + 0x10]
mov edx, str.NtReadVirtualMemory
call fcn.10008290
mov dword [esi + 8], eax
test eax, eax
je 0x10007dc9
mov ecx, dword [esi + 0x10]
mov edx, str.NtWriteVirtualMemory
call fcn.10008290
mov dword [esi + 0xc], eax
test eax, eax
jne 0x10007dcb
xor ebx, ebx
push edi
call fcn.1000ef76
add esp, 4
mov eax, esi
test ebx, ebx
je 0x10007de1
mov dword [esi + 0x14], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100090b7
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100090b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100090b7
mov esp, ebp
pop ebp
ret
Function at 0x10012560
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000a200
mov eax, dword [0x10034040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10015102
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100125a2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100126fe
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100277f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10035a40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100199b3
mov ecx, dword [esi*4 + 0x10035a40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100126f7
cmp eax, dword [ecx + edi + 0x24]
jne 0x100126f7
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100126f7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100199b3
add esp, 0x14
test edx, edx
jl 0x100126f7
jg 0x1001266d
test eax, eax
jb 0x100126f7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100126f7
jl 0x10012687
cmp dword [ebp - 0x1008], eax
ja 0x100126f7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100126a5
test ebx, ebx
je 0x100126de
cmp ecx, edi
jae 0x100126de
mov al, byte [ecx]
cmp al, 0xd
jne 0x100126bf
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100126cb
cmp byte [ecx + 1], 0xa
jne 0x100126cb
inc ecx
jmp 0x100126cb
movzx eax, al
movsx eax, byte [eax + 0x100342e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100126a5
cmp edx, ebx
jne 0x100126a5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100126fc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100090b7
leave
ret

Function at 0x100142b7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100142f6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100142f6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100142f6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100142f6
cmp dword [ecx + 0x74], 0xe
jbe 0x100142f6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100188c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002cec0
push 0x1002ceb8
push str.FlsAlloc
push 0x1f
call fcn.10018732
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100188fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x100291a4]
call esi
jmp 0x10018901
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10018945
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ced0
push 0x1002cec8
push str.FlsGetValue
push 0x21
call fcn.10018732
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001897c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100291a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10018984
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ced8
push 0x1002ced0
push str.FlsSetValue
push 0x22
call fcn.10018732
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100189be
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100291a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018e4b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10035a40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018e8b
cmp byte [ebx], 0xa
jne 0x10018e8b
or byte [edi + eax + 0x28], 4
jmp 0x10018e90
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10018f8f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10018f72
inc eax
cmp dl, 0xd
je 0x10018ebc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10018ee2
cmp eax, ecx
jae 0x10018ef0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10018ea4
jmp 0x10018f8f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018f6d
cmp dword [ebp - 0x10], 0
je 0x10018f6d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10035a40]
test byte [eax + edi + 0x28], 0x48
je 0x10018f47
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10018f32
mov byte [esi], dl
jmp 0x10018f43
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10035a40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10018f8f
cmp byte [ebp - 1], 0xa
jne 0x10018f56
cmp esi, ebx
jne 0x10018f56
mov byte [esi], 0xa
jmp 0x10018f8e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100199d1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10018f8f
mov byte [esi], 0xd
jmp 0x10018f8e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10035a40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018f8c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018f8f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10018f98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10035a40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018fde
cmp word [ebx], dx
jne 0x10018fde
or byte [eax + edi + 0x28], 4
jmp 0x10018fe3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10019146
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10019126
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10019024
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001905a
cmp eax, edx
jae 0x10019068
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10018fff
jmp 0x10019146
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019121
cmp dword [ebp - 0x18], 0
je 0x10019121
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10035a40]
test byte [eax + edi + 0x28], 0x48
je 0x100190f7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100190bb
mov word [esi], cx
jmp 0x100190f2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10035a40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10035a40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10035a40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10019146
pop eax
cmp word [ebp - 4], ax
jne 0x10019107
cmp esi, ebx
jne 0x10019107
mov word [esi], ax
jmp 0x10019143
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100199d1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10019146
push 0xd
pop eax
jmp 0x10019102
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10035a40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10019140
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10019146
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001e831
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 0x1001e8ce
push ebx
push esi
call fcn.1001e7fa
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.1001d60e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e87b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e8cd
push edi
push eax
call fcn.10019a2f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e89b
call fcn.10017eb2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e8cc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d60e
add esp, 0x20
test eax, eax
jne 0x1001e8ba
push edi
call fcn.10017eb2
jmp 0x1001e8c2
push ebx
call fcn.10017eb2
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 0x1002130b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100156eb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002137a
cmp esi, dword [ebp - 4]
je 0x10021375
cmp dword [ebp + 0xc], 0
je 0x10021375
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021352
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10020e5d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002137c
xor eax, eax
inc eax
jmp 0x1002137c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100213e1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10034040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100156eb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100156eb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10021458
cmp word [ecx], dx
je 0x10021458
mov eax, dword [0x1002d5dc]
push edi
dec eax
push eax
push 0x1002d4c8
call fcn.10021380
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100214cb
cmp word [eax], dx
je 0x100214cb
mov eax, dword [edi]
test eax, eax
je 0x1002147c
cmp word [eax], dx
je 0x1002147c
lea eax, [ebp - 0x10]
push eax
call fcn.10020d63
jmp 0x10021485
lea eax, [ebp - 0x10]
push eax
call fcn.10020dfe
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100214f5
mov eax, dword [0x1002d4c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002d1b8
call fcn.10021380
add esp, 0xc
test al, al
je 0x100214f5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100214c0
cmp word [eax], di
je 0x100214c0
lea eax, [ebp - 0x10]
push eax
call fcn.10020d63
pop ecx
jmp 0x100214f7
lea eax, [ebp - 0x10]
push eax
call fcn.10020dfe
jmp 0x100214bd
mov eax, dword [edi]
test eax, eax
je 0x100214e2
cmp word [eax], dx
je 0x100214e2
lea eax, [ebp - 0x10]
push eax
call fcn.10020d18
pop ecx
jmp 0x100214f5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100215c0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10021205
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100215c0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100215c0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100215c0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002154d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10018ac4
test ebx, ebx
je 0x100215bb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10018ac4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100215c0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100215c0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002546f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100215c2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100090b7
leave
ret