joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a100
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push 0
push 0
push 0xffffffffffffffff
push dword [esp + 0x14]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x46a16b
push esi
lea ecx, [edi + edi]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x46a146
push str.Win32:_Failed_to_allocate_global_handle_for_clipboard
push 0x10008
call fcn.004677b0
add esp, 8
pop esi
pop edi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x46a16d
push str.Win32:_Failed_to_lock_global_handle
push 0x10008
call fcn.004677b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
ret
push edi
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x51d2c4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x46a1a0
push str.Win32:_Failed_to_open_clipboard
jmp 0x46a156
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop esi
pop edi
jmp dword [sym.imp.USER32.dll_CloseClipboard]

Function at 0x46afb0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0x14
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
push eax
mov dword [0x51e078], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x46b00e
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [esp + 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x51e068], xmm0
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x51e070], xmm0
cmp dword [ebx + 0x68], 0x34001
jne 0x46b033
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x46b023
push dword [eax + 4]
jmp 0x46b035
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x46b035
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call fcn.00466250
add esp, 4
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
cmp dword [ebx + 0x1e8], 0
je 0x46b0ca
mov eax, dword [ebx + 0x2ac]
push 0xc
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 1
push eax
mov dword [esp + 0x14], 0x20001
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46b0ca
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.004677b0
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
xor ecx, esp
call fcn.00471a79
add esp, 0x14
ret
Function at 0x46b0e0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push 0xc
push 1
lea eax, [esp + 8]
mov dword [esp + 8], 0x20001
push eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46b120
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.004677b0
add esp, 8
add esp, 0xc
ret

Function at 0x46b130
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x1e8], 0
je 0x46b17e
push 0xc
push 1
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x20001
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46b17e
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.004677b0
add esp, 8
push 0
mov dword [0x51e078], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x51e070]
cvttsd2si ecx, qword [0x51e068]
mov dword [esp + 8], eax
mov dword [esi + 0x2dc], eax
lea eax, [esp + 4]
push eax
push dword [esi + 0x2ac]
mov dword [esp + 0xc], ecx
mov dword [esi + 0x2d8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [esi + 0x68], 0x34001
jne 0x46b20a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x46b1f1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret

Function at 0x46b220
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push 0xc
push 1
mov dword [esp + 8], 0x20001
mov eax, dword [eax + 0x2ac]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46b266
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.004677b0
add esp, 8
add esp, 0xc
ret

Function at 0x46b390
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebp
movzx esi, ax
push 0x11
shr esi, 0xf
call ebp
mov edi, esi
or edi, 2
test ax, ax
push 0x12
cmovns edi, esi
call ebp
mov ebx, edi
or ebx, 4
test ax, ax
push 0x5c
cmovns ebx, edi
call ebp
push 0x5b
mov si, ax
call ebp
mov edi, ebx
or edi, 8
or si, ax
push 0x14
cmovns edi, ebx
call ebp
mov esi, edi
or esi, 0x10
test al, 1
push 0x90
cmove esi, edi
call ebp
mov ecx, esi
or ecx, 0x20
test al, 1
pop edi
cmove ecx, esi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
Function at 0x46f960
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x51e1bc], 0
mov dword [esp], str.libOSMesa.dll
mov dword [esp + 4], str.OSMesa.dll
mov dword [esp + 8], 0
je 0x46f9a2
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471a79
add esp, 0x10
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov eax, str.libOSMesa.dll
push eax
call edi
mov ecx, eax
mov dword [0x51e1bc], ecx
test ecx, ecx
jne 0x46f9f2
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x46f9b1
test ecx, ecx
jne 0x46f9f2
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.00464240
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471a79
add esp, 0x10
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OSMesaCreateContextExt
push ecx
call esi
push str.OSMesaCreateContextAttribs
push dword [0x51e1bc]
mov dword [0x51e1c0], eax
call esi
push str.OSMesaDestroyContext
push dword [0x51e1bc]
mov dword [0x51e1c4], eax
call esi
push str.OSMesaMakeCurrent
push dword [0x51e1bc]
mov dword [0x51e1c8], eax
call esi
push str.OSMesaGetColorBuffer
push dword [0x51e1bc]
mov dword [0x51e1cc], eax
call esi
push str.OSMesaGetDepthBuffer
push dword [0x51e1bc]
mov dword [0x51e1d0], eax
call esi
push str.OSMesaGetProcAddress
push dword [0x51e1bc]
mov dword [0x51e1d4], eax
call esi
cmp dword [0x51e1c0], 0
mov dword [0x51e1d8], eax
je 0x46fab8
cmp dword [0x51e1c8], 0
je 0x46fab8
cmp dword [0x51e1cc], 0
je 0x46fab8
cmp dword [0x51e1d0], 0
je 0x46fab8
cmp dword [0x51e1d4], 0
je 0x46fab8
test eax, eax
je 0x46fab8
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471a79
add esp, 0x10
ret
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.00464240
mov eax, dword [0x51e1bc]
add esp, 8
test eax, eax
je 0x46fae4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x51e1bc], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00471a79
add esp, 0x10
ret

Function at 0x4704d2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4704f9
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4704fc
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004704ae
pop esi
leave
ret 8

Function at 0x472712
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x472751
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x472751
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x472751
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x472751
cmp dword [ecx + 0x74], 0xe
jbe 0x472751
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x48277d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00472890
mov eax, dword [0x51a900]
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.00486df3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4827bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48291b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00496760
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 + 0x5230c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004894c5
mov ecx, dword [esi*4 + 0x5230c0]
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 0x482914
cmp eax, dword [ecx + edi + 0x24]
jne 0x482914
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 0x482914
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004894c5
add esp, 0x14
test edx, edx
jl 0x482914
jg 0x48288a
test eax, eax
jb 0x482914
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x482914
jl 0x4828a4
cmp dword [ebp - 0x1008], eax
ja 0x482914
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4828c2
test ebx, ebx
je 0x4828fb
cmp ecx, edi
jae 0x4828fb
mov al, byte [ecx]
cmp al, 0xd
jne 0x4828dc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4828e8
cmp byte [ecx + 1], 0xa
jne 0x4828e8
inc ecx
jmp 0x4828e8
movzx eax, al
movsx eax, byte [eax + 0x51abb0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4828c2
cmp edx, ebx
jne 0x4828c2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x482919
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00471a79
leave
ret
Function at 0x489541
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 + 0x5230c0]
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 0x489581
cmp byte [ebx], 0xa
jne 0x489581
or byte [edi + eax + 0x28], 4
jmp 0x489586
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 0x489685
mov dl, byte [eax]
cmp dl, 0x1a
je 0x489668
inc eax
cmp dl, 0xd
je 0x4895b2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4895d8
cmp eax, ecx
jae 0x4895e6
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 0x48959a
jmp 0x489685
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 0x489663
cmp dword [ebp - 0x10], 0
je 0x489663
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5230c0]
test byte [eax + edi + 0x28], 0x48
je 0x48963d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x489628
mov byte [esi], dl
jmp 0x489639
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5230c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x489685
cmp byte [ebp - 1], 0xa
jne 0x48964c
cmp esi, ebx
jne 0x48964c
mov byte [esi], 0xa
jmp 0x489684
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004894e3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x489685
mov byte [esi], 0xd
jmp 0x489684
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5230c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x489682
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x489685
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48968e
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 + 0x5230c0]
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 0x4896d4
cmp word [ebx], dx
jne 0x4896d4
or byte [eax + edi + 0x28], 4
jmp 0x4896d9
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 0x48983c
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 0x48981c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48971a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x489750
cmp eax, edx
jae 0x48975e
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 0x4896f5
jmp 0x48983c
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 0x489817
cmp dword [ebp - 0x18], 0
je 0x489817
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5230c0]
test byte [eax + edi + 0x28], 0x48
je 0x4897ed
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 0x4897b1
mov word [esi], cx
jmp 0x4897e8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5230c0]
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 + 0x5230c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5230c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48983c
pop eax
cmp word [ebp - 4], ax
jne 0x4897fd
cmp esi, ebx
jne 0x4897fd
mov word [esi], ax
jmp 0x489839
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004894e3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48983c
push 0xd
pop eax
jmp 0x4897f8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5230c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x489836
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48983c
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 0x48a531
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d71f0
push 0x4d71e8
push str.FlsAlloc
push 0x1f
call fcn.0048a35c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a565
push dword [ebp + 8]
mov ecx, esi
call dword [0x49b36c]
call esi
jmp 0x48a56b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48a5af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d7200
push 0x4d71f8
push str.FlsGetValue
push 0x21
call fcn.0048a35c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a5e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x49b36c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48a5ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d7208
push 0x4d7200
push str.FlsSetValue
push 0x22
call fcn.0048a35c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a628
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x49b36c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48dc58
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 0x48dcf5
push ebx
push esi
call fcn.0048dc21
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.0048c952
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x48dca2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48dcf4
push edi
push eax
call fcn.00487cd9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x48dcc2
call fcn.00487c9f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48dcf3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0048c952
add esp, 0x20
test eax, eax
jne 0x48dce1
push edi
call fcn.00487c9f
jmp 0x48dce9
push ebx
call fcn.00487c9f
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 0x49047b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00486b08
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 0x4904ea
cmp esi, dword [ebp - 4]
je 0x4904e5
cmp dword [ebp + 0xc], 0
je 0x4904e5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4904c2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0048ffcd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4904ec
xor eax, eax
inc eax
jmp 0x4904ec
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x490551
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51a900]
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.00486b08
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.00486b08
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 0x4905c8
cmp word [ecx], dx
je 0x4905c8
mov eax, dword [0x4daf6c]
push edi
dec eax
push eax
push 0x4dae58
call fcn.004904f0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x49063b
cmp word [eax], dx
je 0x49063b
mov eax, dword [edi]
test eax, eax
je 0x4905ec
cmp word [eax], dx
je 0x4905ec
lea eax, [ebp - 0x10]
push eax
call fcn.0048fed3
jmp 0x4905f5
lea eax, [ebp - 0x10]
push eax
call fcn.0048ff6e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x490665
mov eax, dword [0x4dae54]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4dab48
call fcn.004904f0
add esp, 0xc
test al, al
je 0x490665
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x490630
cmp word [eax], di
je 0x490630
lea eax, [ebp - 0x10]
push eax
call fcn.0048fed3
pop ecx
jmp 0x490667
lea eax, [ebp - 0x10]
push eax
call fcn.0048ff6e
jmp 0x49062d
mov eax, dword [edi]
test eax, eax
je 0x490652
cmp word [eax], dx
je 0x490652
lea eax, [ebp - 0x10]
push eax
call fcn.0048fe88
pop ecx
jmp 0x490665
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 0x490730
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00490375
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x490730
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x490730
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x490730
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4906bd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0048a72e
test ebx, ebx
je 0x49072b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0048a72e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x490730
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 0x490730
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004953d7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x490732
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471a79
leave
ret