joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028e92
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x1002e067
call fcn.1002b09b
cmp byte [0x1003cdfb], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
jne 0x10028ebf
cmp byte [0x1003cdfa], 0
je 0x10028f0e
call fcn.10025ea6
test al, al
mov edx, 0x1002fb8c
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x1003e5f8
call fcn.10025ea6
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x10028efa
push 0x1003e5f8
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10028f0e
push 0x1003e5f8
call fcn.10005eb0
pop ecx
and dword [esi], 0
lea eax, [edi + 4]
and dword [ebx], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.10025ea6
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100028d9
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.100031be
test ebx, ebx
jne 0x10028f8c
cmp byte [0x1003cdfb], bl
jne 0x10028f58
cmp byte [0x1003cdfa], bl
je 0x10029000
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x1003e5f8
push ebx
call fcn.10025ea6
cmp byte [0x1003cdfa], 0
pop ecx
pop ecx
je 0x10028f7a
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10029000
push ebx
call fcn.10005eb0
pop ecx
jmp 0x10029000
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, ebx
call esi
mov dword [edi + 0x44], eax
test eax, eax
jne 0x10028fbb
cmp byte [0x1003cdfb], al
jne 0x10028fb4
cmp byte [0x1003cdfa], al
je 0x10029000
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x10028f5d
mov eax, dword [ebx]
push dword [edi + 0x48]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x10028ff0
cmp byte [0x1003cdfb], al
jne 0x10028fe6
cmp byte [0x1003cdfa], al
je 0x10029000
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x10028f5d
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
call fcn.1002b045
ret
Function at 0x40411c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x492a2c
mov esi, 0x494ad0
mov edi, dword [ebx + 4]
jmp 0x404141
mov ebp, dword [edi + 4]
push 0x8000
push 0
push edi
call sub.user32.dll_ShowWindow
mov edi, ebp
cmp edi, ebx
jne 0x40412f
mov edx, 0x37
mov eax, 0x48f084
mov ecx, eax
mov dword [eax + 0x14], ecx
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
xor ecx, ecx
mov dword [eax + 0xc], ecx
add eax, 0x20
dec edx
jne 0x40414f
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov edx, 0x400
mov ecx, 0x492acc
mov eax, ecx
mov dword [eax], eax
mov dword [eax + 4], eax
add ecx, 8
dec edx
jne 0x40417a
mov ebx, dword [esi + 4]
jmp 0x40419e
mov edi, dword [ebx + 4]
push 0x8000
push 0
push ebx
call sub.user32.dll_ShowWindow
mov ebx, edi
cmp ebx, esi
jne 0x40418c
mov dword [esi], esi
mov dword [esi + 4], esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4041ac
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x494ae8], 0
je 0x4041c7
mov eax, dword [0x494ae8]
push eax
call sub.user32.dll_LoadStringW
xor eax, eax
mov dword [0x494ae8], eax
cmp byte [0x4928dc], 0
je 0x4041d5
call fcn.00403bcc
cmp dword [0x494ae0], 0
je 0x4041f7
push 0x8000
push 0
mov eax, dword [0x494ae0]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
mov dword [0x494ae0], eax
call fcn.0040411c
ret

Function at 0x404c58
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor edx, edx
mov ebx, eax
mov dx, word [eax + 4]
sub edx, 0xd7b0
je 0x404c84
cmp edx, 3
ja 0x404d1b
call dword [ebx + 0x24]
test eax, eax
je 0x404c84
call fcn.004043a0
mov word [ebx + 4], 0xd7b3
mov dword [ebx + 8], esi
mov dword [ebx + 0x24], 0x404c30
mov dword [ebx + 0x1c], 0x404720
cmp word [ebx + 0x48], 0
je 0x404d02
mov eax, 0xc0000000
mov dl, byte [0x48f00c]
and edx, 0x70
shr edx, 2
mov edx, dword [edx + 0x48f798]
mov ecx, 2
sub edi, 3
je 0x404ce4
mov ecx, 3
inc edi
je 0x404ce4
mov eax, 0x40000000
inc edi
mov word [ebx + 4], 0xd7b2
je 0x404ce4
mov eax, 0x80000000
mov word [ebx + 4], 0xd7b1
push 0
push 0x80
push ecx
push 0
push edx
push eax
lea eax, [ebx + 0x48]
push eax
call sub.user32.dll_MapVirtualKeyW
cmp eax, 0xffffffff
je 0x404d22
mov dword [ebx], eax
jmp 0x404d32
mov dword [ebx + 0x24], 0x404720
cmp edi, 3
je 0x404d12
push 0xfffffffffffffff6
jmp 0x404d14
push 0xfffffffffffffff5
call sub.user32.dll_PeekMessageA
jmp 0x404cf9
mov eax, 0x66
jmp 0x404d2d
mov word [ebx + 4], 0xd7b0
call sub.user32.dll_SetCapture
call fcn.004043a0
pop edi
pop esi
pop ebx
ret
Function at 0x40bc6c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], eax
push 0x40bd0c
push 0x40bd30
call fcn.0040b7d0
mov ebx, eax
push 0x40bd40
call sub.user32.dll_GetKeyboardLayoutNameW
mov edx, dword [ebp - 8]
mov dword [edx], eax
push 0x40bd60
call sub.user32.dll_GetKeyboardLayoutNameW
mov dword [esi], eax
push 0x40bd8c
call sub.user32.dll_GetKeyboardLayoutNameW
mov dword [edi], eax
cmp dword [esi], 0
je 0x40bcd1
test ebx, ebx
je 0x40bcd1
push 0
push 0
mov eax, dword [esi]
push eax
push ebx
call sub.user32.dll_GetMenuState
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x40bcd8
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
cmp dword [edi], 0
je 0x40bcf5
test ebx, ebx
je 0x40bcf5
push 0
push 0
mov eax, dword [edi]
push eax
push ebx
call sub.user32.dll_GetMenuState
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x40bcfe
mov eax, dword [ebp + 8]
mov dword [eax], 3
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x410114
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4101bd
test eax, edx
je 0x4101c0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x41013d
push edx
mov edx, eax
mov eax, esp
call fcn.0040747c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410153
push eax
lea eax, [esp + 8]
call fcn.0040747c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410162
movzx eax, word [eax]
sub eax, ecx
jmp 0x410189
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 0x4101a3
add ecx, 4
js 0x41017a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4101a0
push eax
mov eax, ecx
mov edx, 2
call fcn.004065c4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410187
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410189
xor eax, eax
ret
test eax, eax
je 0x4101d0
test edx, edx
jne 0x410124
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x410ffc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
or eax, 0xffffffff
mov esi, ebx
and esi, 3
cmp esi, 2
ja 0x41104f
mov edx, ebx
and edx, 0xf0
cmp edx, 0x40
ja 0x41104f
push 0
push 0x80
push 3
push 0
mov eax, ebx
and eax, 0xf0
shr eax, 4
mov eax, dword [eax*4 + 0x48fbdc]
push eax
mov eax, dword [esi*4 + 0x48fbd0]
push eax
mov eax, edi
call fcn.004072ec
push eax
call sub.KERNEL32.DLL_LoadResource
pop edi
pop esi
pop ebx
ret
Function at 0x411054
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
or eax, 0xffffffff
mov esi, ebx
and esi, 0xf0
cmp esi, 0x40
ja 0x411093
push 0
push 0x80
push 2
push 0
shr esi, 4
mov eax, dword [esi*4 + 0x48fbf0]
push eax
push 0xc0000000
mov eax, edi
call fcn.004072ec
push eax
call sub.KERNEL32.DLL_LoadResource
pop edi
pop esi
pop ebx
ret

Function at 0x411454
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf0
mov esi, edx
mov edi, eax
push esp
lea eax, [esp + 8]
push eax
push 0x104
mov eax, edi
call fcn.004072ec
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
cmp ebx, 0x104
jg 0x411495
lea edx, [esp + 4]
mov eax, esi
mov ecx, ebx
call fcn.0040739c
jmp 0x4114da
test ebx, ebx
jle 0x4114da
mov eax, esi
mov edx, ebx
call fcn.004075dc
push esp
mov eax, dword [esi]
call fcn.004072ec
push eax
push ebx
push ebp
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
mov eax, dword [esi]
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x20c]
test eax, eax
je 0x4114cd
sub eax, 4
mov eax, dword [eax]
cmp eax, ebx
jle 0x4114da
mov eax, esi
mov edx, ebx
call fcn.004075dc
add esp, 0x210
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4147bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jle 0x4147f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040739c
jmp 0x4147fe
mov eax, ebx
mov edx, esi
call fcn.00407260
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414808
Capabilities:
Read file on windows

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_ReadFile
test eax, eax
jle 0x41482a
movzx eax, word [esp]
jmp 0x41482c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414fbc
Capabilities:
Get thread local storage value
Set thread local storage value

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 0x4150e1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414dcc
mov esi, eax
mov eax, dword [0x4913d8]
cmp byte [eax], 0
je 0x415089
mov eax, dword [0x4911a8]
call fcn.004049ec
call fcn.00404380
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_TlsGetValue
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x414f94]
call fcn.004089bc
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_TlsGetValue
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_UnhandledExceptionFilter
push eax
call sub.KERNEL32.DLL_TlsSetValue
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4150fc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_UnhandledExceptionFilter
push eax
call sub.KERNEL32.DLL_TlsSetValue
jmp 0x4150c5
push pe_nt_image_headers32
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x49114c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x494c40]
call fcn.00408ab0
push eax
call sub.user32.dll_GetClassLongW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_GetCursorPos
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4150e8
lea eax, [ebp - 4]
mov edx, dword [0x414f94]
call fcn.004089c8
ret

Function at 0x415de8
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
mov esi, edx
test esi, esi
jl 0x415e10
inc esi
mov ebx, eax
push 0
push 1
push ebx
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
jne 0x415df3
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GlobalDeleteAtom
add ebx, 8
dec esi
jne 0x415df3
pop esi
pop ebx
ret
Function at 0x415edc
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 0x415fb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004072b4
lea eax, [ebp - 4]
call fcn.00407c64
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004072ec
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x415f9c
mov eax, ebx
call fcn.00404218
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x415f95
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.004072ec
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x415f7f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x415fc4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x415f7f
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 0x415f9c
mov eax, dword [ebp - 0x10]
call fcn.00404234
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415fb9
lea eax, [ebp - 4]
call fcn.00407250
ret

Function at 0x416e6f
Capabilities:
Encode data using xor
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406974
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov edi, eax
cmp edi, 0x104
jbe 0x416e92
mov eax, edi
add eax, eax
call fcn.00404218
mov esi, eax
jmp 0x416e94
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
push edi
push esi
call fcn.0040b6c0
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x416ecd
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x416eb7
mov eax, esp
cmp esi, eax
je 0x416eda
mov eax, esi
call fcn.00404234
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x416f14
cmp bl, 0
je 0x416f10
cmp bl, 0x41
jl 0x416f0b
cmp bl, 0x5a
jg 0x416f0b
or bl, 0x20
xor al, bl
inc esi
jmp 0x416eef
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x416e54
Function at 0x4176bc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
push edx
call sub.KERNEL32.DLL_MultiByteToWideChar
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41772e
push dword fs:[eax]
mov dword fs:[eax], esp
fnstcw word [ebp - 2]
xor eax, eax
push ebp
push 0x417710
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004072ec
push eax
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417717
fnclex
fldcw word [ebp - 2]
ret

Function at 0x4177f4
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
cmp dword [0x494d94], 0
jne 0x417826
mov dl, 1
mov eax, dword [0x40fdc0]
call fcn.00418354
mov ebx, eax
mov esi, 0x494d94
push 0
push ebx
push esi
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
je 0x417826
mov eax, ebx
call fcn.004052f8
mov eax, dword [0x494d94]
pop esi
pop ebx
ret

Function at 0x417f30
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
cmp dword [0x494d98], 0
jne 0x417f68
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x40f5fc]
call fcn.0041813c
mov ebx, eax
mov esi, 0x494d98
push 0
push ebx
push esi
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
je 0x417f68
mov eax, ebx
call fcn.004052f8
mov eax, dword [0x494d98]
pop esi
pop ebx
ret

Function at 0x418004
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
cmp dword [0x494d9c], 0
jne 0x418036
mov dl, 1
mov eax, dword [0x40fc00]
call fcn.00418354
mov ebx, eax
mov esi, 0x494d9c
push 0
push ebx
push esi
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
je 0x418036
mov eax, ebx
call fcn.004052f8
mov eax, dword [0x494d9c]
pop esi
pop ebx
ret

Function at 0x418040
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
cmp dword [0x494da4], 0
jne 0x418072
mov dl, 1
mov eax, dword [0x40fa40]
call fcn.004182d8
mov ebx, eax
mov esi, 0x494da4
push 0
push ebx
push esi
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
je 0x418072
mov eax, ebx
call fcn.004052f8
mov eax, dword [0x494da4]
pop esi
pop ebx
ret

Function at 0x4181d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0
mov ebx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
push edx
mov edx, dword [eax + 0x14]
push edx
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_TlsGetValue
pop ebx
pop ebp
ret 8

Function at 0x418208
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
push edx
mov edx, dword [eax + 0x10]
push edx
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
pop ebx
pop ebp
ret 8
Function at 0x4211d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp dword [0x496f2c], 0
je 0x4211fa
cmp bx, 0x100
jb 0x4211fa
cmp bx, 0x7ff
jbe 0x4211fe
xor eax, eax
jmp 0x421200
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x421287
push 0x496f30
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
push ebp
push 0x421280
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x496f2c]
call fcn.004087f4
movzx edi, bx
mov edx, edi
sub edx, 0x100
cmp eax, edx
setg byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x421268
mov eax, dword [0x496f2c]
mov eax, dword [eax + edi*4 - 0x400]
mov dword [esi], eax
cmp dword [esi], 0
je 0x42125f
mov eax, dword [esi]
cmp eax, dword [0x48fe64]
jne 0x421263
xor eax, eax
jmp 0x421265
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421287
push 0x496f30
call sub.KERNEL32.DLL_GetLocaleInfoW
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x421294
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x421356
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0x496f30
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
push ebp
push 0x421339
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x496f2c]
call fcn.004087fc
mov esi, eax
test esi, esi
jl 0x421321
inc esi
xor edi, edi
mov eax, dword [0x496f2c]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x42131d
cmp ebx, dword [0x48fe64]
je 0x42131d
lea edx, [ebp - 0x10]
mov eax, dword [ebx]
call fcn.004051d0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00410378
test al, al
je 0x42131d
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov byte [ebp - 9], 1
jmp 0x421321
inc edi
dec esi
jne 0x4212e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421340
push 0x496f30
call sub.KERNEL32.DLL_GetLocaleInfoW
ret

Function at 0x4217c4
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
add esp, 0xfffff800
mov esi, edx
push 0x200
lea edx, [esp + 4]
push edx
movzx edx, byte [eax]
push edx
inc eax
push eax
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov ebx, eax
push 0x200
lea eax, [esp + 0x404]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov esi, eax
push esi
lea eax, [esp + 0x404]
push eax
push ebx
lea eax, [esp + 0xc]
push eax
push 1
mov eax, dword [0x4910f0]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GlobalFindAtomW
cmp eax, 2
sete al
add esp, 0x800
pop esi
pop ebx
ret
Function at 0x4217de
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
add esp, 0xfffff800
mov esi, edx
push 0x200
lea edx, [esp + 4]
push edx
movzx edx, byte [eax]
push edx
inc eax
push eax
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov ebx, eax
push 0x200
lea eax, [esp + 0x404]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov esi, eax
push esi
lea eax, [esp + 0x404]
push eax
push ebx
lea eax, [esp + 0xc]
push eax
push 1
mov eax, dword [0x4910f0]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GlobalFindAtomW
cmp eax, 2
sete al
add esp, 0x800
pop esi
pop ebx
ret

Function at 0x4223c8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00407248
xor eax, eax
push ebp
push 0x42250e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
mov eax, dword [eax]
call fcn.004216c0
mov ebx, eax
cmp word [ebx], 0
je 0x4224cb
mov eax, dword [ebp - 4]
test eax, eax
je 0x422429
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x422429
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040678c
mov edi, eax
test edi, edi
je 0x422434
sub edi, 4
mov edi, dword [edi]
push 0
push 0
push 0
push 0
push edi
mov eax, dword [ebp - 4]
call fcn.004072ec
push eax
push 0
movzx eax, word [ebx]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00406e44
mov eax, dword [ebp - 4]
test eax, eax
je 0x42247e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x42247e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040678c
mov edi, eax
test edi, edi
je 0x422489
sub edi, 4
mov edi, dword [edi]
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00406d14
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.004072ec
push eax
push 0
movzx eax, word [ebx]
push eax
call sub.KERNEL32.DLL_TlsGetValue
lea eax, [ebp - 8]
xor ecx, ecx
movzx edx, word [ebx]
call fcn.00407cfc
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00422064
jmp 0x4224e8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.004074a4
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00422064
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422515
lea eax, [ebp - 0x14]
call fcn.004065a0
lea eax, [ebp - 8]
call fcn.004065a0
lea eax, [ebp - 4]
call fcn.00407250
ret