joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a920
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
jmp 0x47a94c
mov dword [0x4de5f8], edx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x47aa04
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
call eax
test eax, eax
jne 0x47aa60
test esi, esi
je 0x47a9c7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
cmp eax, 7
je 0x47aa3c
cmp eax, 8
jne 0x47aa60
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x48d720]
test eax, eax
js 0x47aa44
test eax, eax
je 0x47a940
mov eax, dword [0x4de5f4]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x47a946
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47a946
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call eax
test eax, eax
jne 0x47aa60
mov eax, 5
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
call fcn.0047a810
mov eax, dword [0x48d720]
mov edx, dword [esp + 0x2c]
jmp 0x47a9d4
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x47aa70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x48d720]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x47aaf0
test eax, eax
jne 0x47aaa0
mov eax, dword [0x4de5f8]
mov dword [0x4de5f8], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x4de5f4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x4de5f4]
sub esp, 4
mov dword [ebx], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x47aa95
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.0047a810
mov eax, dword [0x48d720]
jmp 0x47aa84
Function at 0x47ab00
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x48d720]
test eax, eax
js 0x47ab45
test eax, eax
jne 0x47ab22
mov dword [0x4de5f8], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x4de5f4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x47ab1d
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0047a810
mov eax, dword [0x48d720]
jmp 0x47ab13

Function at 0x47ac60
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x48d720]
mov edi, dword [esp + 0x40]
test eax, eax
js 0x47ad4c
test eax, eax
mov esi, dword [0x4de5f8]
jne 0x47ace1
test esi, esi
mov dword [esp + 0x2c], esi
je 0x47acd5
lea ebx, [esp + 0x2c]
mov eax, esi
nop
mov eax, dword [eax + 0x18]
test eax, eax
je 0x47acc7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x47ad10
cmp eax, 8
jne 0x47ad40
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x47ac90
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov esi, dword [0x4de5f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x47ac81
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], 0
mov edx, ebx
mov dword [esp + 0x2c], esi
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.0047a730
cmp eax, 7
jne 0x47acda
mov eax, ebx
call fcn.0047a8b0
mov esi, esi
lea edi, [edi]
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
call fcn.0047a810
mov eax, dword [0x48d720]
jmp 0x47ac77

Function at 0x47ae00
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x48d720]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x47ae75
test edx, edx
mov eax, dword [0x4de5f8]
jne 0x47ae4d
mov ecx, dword [ebx + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov edx, esi
test ecx, ecx
jne 0x47ae3f
call fcn.0047a730
cmp eax, 7
je 0x47ae46
call sub.msvcrt.dll_abort
call fcn.0047a920
jmp 0x47ae35
mov eax, esi
call fcn.0047a8b0
mov esi, dword [0x4de5f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
push edi
jmp 0x47ae1d
call fcn.0047a810
mov edx, dword [0x48d720]
jmp 0x47ae14
Function at 0x47ae90
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x47aed0
mov edx, dword [0x48d720]
test edx, edx
js 0x47af20
test edx, edx
mov eax, dword [0x4de5f8]
jne 0x47aef0
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
call fcn.0047a920
cmp eax, 7
je 0x47aee0
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.0047ac60
add esp, 0x20
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
call fcn.0047a8b0
lea esi, [esi]
mov esi, dword [0x4de5f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x47aeb4
call fcn.0047a810
mov edx, dword [0x48d720]
jmp 0x47aeab

Function at 0x47b000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [esp + 0x150]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x47b18c
cmp byte [ebx], 0
je 0x47b150
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x47b170
test al, 0x10
je 0x47b150
lea edi, [esp + 0x2c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], edi
mov esi, edi
call sub.msvcrt.dll__fullpath
mov edx, dword [esi]
add esi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x47b064
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [esi + 2]
mov ecx, eax
cmove esi, edx
add cl, al
sbb esi, 3
sub esi, edi
lea eax, [esi + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x47b17f
lea edx, [esi + 1]
lea ebp, [eax + 0x22c]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], ebp
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
cmp byte [ebx + 0x22c], 0
je 0x47b0f4
movzx eax, byte [ebx + esi + 0x22b]
cmp al, 0x2f
je 0x47b0f4
cmp al, 0x5c
je 0x47b0f4
mov edx, dword [esp + 0x1c]
mov edi, 0x5c
mov word [ebp + esi], di
mov esi, edx
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [ebp + esi], ax
mov word [ebx + 0x11c], dx
lea edx, [ebx + 0x120]
mov word [ebx + 0x11e], cx
xor eax, eax
mov ecx, 0x41
mov edi, edx
mov dword [ebx + 0x224], 0xffffffff
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
rep stosd dword es:[edi], eax
add esp, 0x13c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x13c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x47b13f
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x47b13f
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
jmp 0x47b13f
Function at 0x4800d0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x480123
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x480110
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x4801a0
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.0047f990
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.0047f540
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0047fdd0
mov eax, dword [0x48d758]
cmp eax, 0xffffffff
je 0x4801cb
test eax, eax
je 0x4801bb
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x48012b
call fcn.004875f0
test al, 1
mov edx, 3
jne 0x4801ae
jmp 0x4801b3
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4801f1
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x48d758], eax
jmp 0x4801aa
xor eax, eax
jmp 0x4801e7
Function at 0x22908f2c
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.229093ec
mov byte [esp], al
cmp byte [esp], 0
jne 0x229090b5
test edi, edi
je 0x229090b5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x22908ff5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x22908fd0
cmp edi, 0xffffffff
je 0x22908f91
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x22908f91
mov byte [esp], 0
jmp 0x229090b5
cmp dword [esi], 1
jg 0x22908fd0
cmp dword [esi], 0
jne 0x22908fc2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x22908fc2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x229090b5
lea eax, [esp + 0xc]
call fcn.22908bc4
dec ebp
test ebp, ebp
jg 0x22908f76
cmp edi, 0xffffffff
je 0x22908ff5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x22908ff3
mov byte [esp], 0
jmp 0x229090b5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x22908f3a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x22908ff5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.22909130
mov edx, eax
mov ebx, dword [0x22a428fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x22909059
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x22909057
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x22909059
xor edi, edi
cmp byte [esp], 0
je 0x2290907f
mov ebx, dword [esi]
test bl, 1
jne 0x22909095
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x2290905f
mov byte [esp + 1], 1
jmp 0x22909095
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x2290907f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x2290900c
cmp byte [esp], 0
je 0x229090b5
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 0x22909d44
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x22a44b9c
cmp dword [ebp + 0xc], 2
jl 0x22909d58
mov ebx, 0x22a44bcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x22909d90
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x2290523c
mov dword [0x22a4201c], eax
mov eax, 0x22905244
mov dword [0x22a42020], eax
mov eax, ebx
call fcn.22909c28
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x22909dc5
cmp al, 3
jge 0x22909dc5
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x22909dd6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x22909de1
call dword [ecx + eax*4]
cmp dword [0x22a42040], 0
jne 0x22909df7
mov byte [0x22a42048], 1
fnstcw word [0x22a39028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.2290a0a4
call fcn.22909cd8
ret 4

Function at 0x2290a00c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x22a42058], 0
je 0x2290a073
cmp word [0x22a42348], 0xd7b2
jne 0x2290a035
cmp dword [0x22a42350], 0
jbe 0x2290a035
mov eax, 0x22a42344
call dword [0x22a42360]
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, 0x2290a0a0
call fcn.2290abd4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x22a39032], 0
jne 0x2290a08f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x2290a234
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 [0x22a39034], 0
je 0x2290a25f
mov edx, edi
mov eax, esi
call dword [0x22a39034]
mov ebx, eax
jmp 0x2290a270
mov eax, 8
call fcn.22907038
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x22a42059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x2290a1fc
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 0x2290a2a0
mov eax, ebx
call fcn.22907054
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x2290de34
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 0x2290df9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.2290a374
cmp si, word [0x22a39a08]
jb 0x2290decc
cmp si, word [0x22a39c08]
ja 0x2290decc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x2290decc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x22a39a08]
jae 0x2290dea6
mov edi, ebx
dec edi
jmp 0x2290dec7
cmp si, word [ebx*8 + 0x22a39a08]
jbe 0x2290deb6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x2290dec7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x22a39a0c]
call fcn.2290dd54
jmp 0x2290decc
cmp edi, dword [ebp - 8]
jae 0x2290de90
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x2290df7b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x2290df7b
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.2290aed4
push dword [ebp - 0x160]
push 0x2290dfb8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.2290aed4
push dword [ebp - 0x164]
push 0x2290dfc8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.2290aed4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.2290b10c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2290dfa2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.2290a3d4
pop eax
jmp eax
Function at 0x2290e150
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 0x2290e256
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x22a44c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x22a44c2c]
jne 0x2290e19c
mov eax, esi
mov edx, 0x22a44c2e
mov ecx, 0x55
call fcn.2290aed4
push 0x22a44c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x2290e23e
push 0x22a44c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.2290a374
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x2290e20b
cmp byte [0x22a44c10], 0
je 0x2290e1d0
mov edx, esi
mov eax, ebx
call fcn.2290e034
jmp 0x2290e20b
mov edx, esi
mov eax, ebx
call fcn.2290de34
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x2290e20b
cmp dword [esi], 0
je 0x2290e1f4
mov eax, esi
mov edx, 0x2290e270
call fcn.2290b02c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.2290de34
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.2290b02c
push 0x22a44c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x22a44c2c], bx
mov eax, dword [esi]
call fcn.2290ae20
mov ecx, eax
mov eax, 0x22a44c2e
mov edx, 0xaa
call fcn.2290dcb4
push 0x22a44c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2290e25d
lea eax, [ebp - 4]
call fcn.2290a374
pop eax
jmp eax
Function at 0x2290e498
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.2290a468
xor eax, eax
push ebp
push 0x2290e6c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x2290e4de
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x2290e4f8
mov eax, dword [ebp - 4]
call fcn.2290ae20
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.2290dcb4
cmp word [ebp - 0x21e], 0
je 0x2290e6a3
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x2290e6d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x2290e5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x2290e6d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x2290e5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x2290e70c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x2290e5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x2290e70c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x2290e5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x2290e740
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x2290e5c7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x2290e774
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x2290e6a3
xor eax, eax
push ebp
push 0x2290e69c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.2290e298
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 0x2290e62a
mov eax, dword [ebp - 0x14]
call fcn.22907038
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.2290ae80
jmp 0x2290e675
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x2290e7b4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x2290e675
mov eax, dword [ebp - 0x14]
call fcn.22907038
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x2290e7b4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.2290ae80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2290e6a3
cmp dword [ebp - 0xc], 0
je 0x2290e690
mov eax, dword [ebp - 0xc]
call fcn.22907054
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 0x2290e6c7
lea eax, [ebp - 8]
mov edx, 2
call fcn.2290a3d4
pop eax
jmp eax
Function at 0x2290e9d0
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.2290a468
xor eax, eax
push ebp
push 0x2290ea92
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.2290aed4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.2290b084
mov eax, dword [ebx]
call fcn.2290e87c
test al, al
jne 0x2290ea6d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.2290aed4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.2290b084
mov eax, dword [ebx]
call fcn.2290e87c
test al, al
jne 0x2290ea6d
mov eax, ebx
call fcn.2290a374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2290ea99
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.2290a3d4
lea eax, [ebp - 4]
call fcn.2290a374
pop eax
jmp eax

Function at 0x229105f4
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