joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10173b09
Capabilities:
Allocate thread local storage

Disassembly:
push 8
mov eax, 0x1032a597
call fcn.102790e7
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x10669cf8]
mov dword [ebp - 4], ebx
test eax, eax
je 0x10173b2e
inc eax
mov dword [0x10669cf8], eax
jmp 0x10173b8b
call fcn.101aeecb
test eax, eax
jne 0x10173b3e
mov ebx, 0x80004005
jmp 0x10173b8b
mov dword [0x106584f8], 2
mov dword [0x106584fc], 0xaa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10658524], eax
cmp eax, 0xffffffff
jne 0x10173b9b
mov esi, 0x80040001
call fcn.101a26d8
call fcn.1017d4b0
mov eax, dword [0x10658524]
cmp eax, 0xffffffff
je 0x10173b89
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
or dword [0x10658524], 0xffffffff
mov ebx, esi
lea ecx, [ebp - 0x14]
call fcn.10173889
mov eax, ebx
call fcn.102790b8
ret
call fcn.101a3bf1
call fcn.101a2a48
mov esi, eax
test esi, esi
js 0x10173b67
call fcn.1017e28d
mov esi, eax
test esi, esi
js 0x10173b67
call fcn.101b40ac
mov esi, eax
test esi, esi
js 0x10173b67
call fcn.1005074b
mov esi, eax
test esi, esi
js 0x10173b67
push 0x10669cfc
push 0x40
push 0x18
call fcn.101a2284
mov esi, eax
test esi, esi
js 0x10173b67
lea eax, [ebp - 0x14]
mov dword [0x10669cf8], 1
push eax
call fcn.102da437
cmp dword [ebp - 0x14], 0
pop ecx
je 0x10173b8b
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x10], ebx
call fcn.102eee9f
test eax, eax
js 0x10173c26
mov eax, dword [ebp - 0x10]
push 0x25020b
push 0x8000
push 0x10658468
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x10173b8b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x10173b8b
Function at 0x10173c42
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x1032a5ba
call fcn.102790e7
push 1
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push 0x10669d08
mov dword [ebp - 0x10], ebx
call fcn.10111f52
mov eax, dword [0x10658524]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x10173c7c
push eax
call esi
test eax, eax
jne 0x10173c92
call fcn.10173b09
mov edi, eax
test edi, edi
js 0x10173db6
mov dword [ebp - 0x10], 1
push dword [0x10658524]
call esi
test eax, eax
je 0x10173ca6
inc dword [eax + 4]
jmp 0x10173db8
push 0x5c
call fcn.1016bf4d
mov esi, eax
test esi, esi
jne 0x10173cbd
mov edi, 0x8007000e
jmp 0x10173dab
push esi
push dword [0x10658524]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 8]
push eax
call fcn.1018004d
mov edi, eax
test edi, edi
js 0x10173d58
lea eax, [esi + 0xc]
push eax
call fcn.1018008d
mov edi, eax
test edi, edi
js 0x10173d58
lea eax, [esi + 0x14]
push eax
call fcn.101ae0cb
mov edi, eax
test edi, edi
js 0x10173d58
lea eax, [esi + 0x10]
push eax
push dword [esi + 0x14]
push 8
call fcn.101a1336
mov edi, eax
test edi, edi
js 0x10173d58
xor edi, edi
mov word [esi + 0x18], bx
inc edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x40], 0x4000000
mov dword [esi + 0x44], ebx
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x48], ebx
test ecx, ecx
je 0x10173d35
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x58], ebx
test ecx, ecx
je 0x10173d45
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call fcn.1019cbf8
mov dword [esi], eax
test eax, eax
jne 0x10173dc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10173d64
call fcn.101a138b
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10173d70
call fcn.101ae14d
cmp dword [esi + 8], 0
je 0x10173d7e
push dword [esi + 8]
call fcn.101737c6
cmp dword [esi + 0xc], 0
je 0x10173d8c
push dword [esi + 0xc]
call fcn.101737d7
cmp dword [esi], 0
je 0x10173d98
push dword [esi]
call fcn.1019bd8e
push esi
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
push ebx
push dword [0x10658524]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [ebp - 0x10], 0
je 0x10173db6
call fcn.10174317
mov ebx, edi
lea ecx, [ebp - 0x1c]
call fcn.102f3376
mov eax, ebx
call fcn.102790b8
ret
call fcn.10059863
test al, al
jne 0x10173dd8
mov edi, 0x80004005
jmp 0x10173d58
call fcn.1017382b
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x50], eax
test ecx, ecx
je 0x10173ded
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
cmp dword [esi + 0x50], ebx
je 0x10173e05
call fcn.100595bb
test eax, eax
je 0x10173e05
mov edx, dword [eax]
mov ecx, eax
push dword [esi + 0x50]
call dword [edx + 0x78]
cmp dword [0x10669cf8], edi
jne 0x10173db8
call fcn.101aedfe
jmp 0x10173db8
Function at 0x10174055
Capabilities:
Get thread local storage value

Disassembly:
push 0x10
mov eax, 0x1032a620
call fcn.102790e7
push dword [0x10658524]
xor ebx, ebx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10174081
mov eax, 0x8000ffff
jmp 0x1017415b
push 1
push 0x10669d08
lea ecx, [ebp - 0x1c]
call fcn.10111f52
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], ebx
jne 0x10174151
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push ebx
mov dword [ebp - 0x10], ebx
call fcn.1018969e
mov edi, eax
test edi, edi
js 0x1017413f
mov ecx, dword [ebp - 0x10]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 0x10]
push 1
mov eax, dword [ecx]
call dword [eax + 0x70]
call fcn.10258270
mov esi, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [eax]
mov edi, dword [esi]
call dword [edx]
push eax
mov ecx, esi
call dword [edi + 0x54]
call fcn.10258270
mov esi, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [eax]
mov edi, dword [esi]
call dword [edx + 4]
push eax
mov ecx, esi
call dword [edi + 0x58]
mov ecx, dword [ebp - 0x10]
push ebx
push 0x25e4
push 0x104b72d8
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
js 0x1017413f
mov ecx, dword [ebp - 0x10]
push 0x104cfec8
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov esi, eax
test esi, esi
je 0x1017412c
cmp dword [esi], 0xffffffff
je 0x1017412c
lock inc dword [esi]
push esi
push 3
call fcn.1017c333
test esi, esi
je 0x1017413f
mov ecx, esi
call sym.osetup.dll_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x10174151
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.102f3376
mov eax, edi
call fcn.102790b8
ret
Function at 0x101743e1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xc
mov eax, 0x1032fdd0
call fcn.102790e7
push 1
push 0x10669d08
lea ecx, [ebp - 0x18]
call fcn.10111f52
mov eax, dword [0x10658524]
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, 0xffffffff
jne 0x10174415
mov edi, 0x80004005
jmp 0x1017457e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1017442c
mov edi, 0x8004000a
jmp 0x1017457e
dec dword [esi + 4]
cmp dword [esi + 4], edi
jg 0x1017457e
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x48], edi
test ecx, ecx
je 0x10174448
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x58], edi
test ecx, ecx
je 0x10174458
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [esi + 0x4c], edi
je 0x10174468
push dword [esi + 0x4c]
call fcn.101737e8
mov dword [esi + 0x4c], edi
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], edi
test ecx, ecx
je 0x10174477
call sym.osetup.dll_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x2c], edi
test ecx, ecx
je 0x10174486
call sym.osetup.dll_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x30], edi
test ecx, ecx
je 0x10174495
call sym.osetup.dll_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x34], edi
test ecx, ecx
je 0x101744a4
call sym.osetup.dll_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], edi
test ecx, ecx
je 0x101744b3
call sym.osetup.dll_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x3c], edi
test ecx, ecx
je 0x101744c2
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x40]
call fcn.101742da
cmp dword [0x10669cf8], 1
jne 0x101744d8
call fcn.101aee16
push dword [esi]
call fcn.1019bd8e
cmp dword [esi + 0x50], edi
je 0x10174507
call fcn.100595bb
test eax, eax
je 0x101744f7
mov edx, dword [eax]
mov ecx, eax
push dword [esi + 0x50]
call dword [edx + 0x7c]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x50], edi
test ecx, ecx
je 0x10174507
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
cmp dword [esi + 0x54], edi
je 0x1017451c
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x54], edi
test ecx, ecx
je 0x1017451c
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
call fcn.10059f11
cmp byte [esi + 0x18], 0
je 0x1017452d
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [esi + 0x19], 0
je 0x10174539
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esi + 0x10]
call fcn.101a138b
mov ecx, dword [esi + 0x14]
call fcn.101ae14d
push dword [esi + 8]
call fcn.101737c6
push dword [esi + 0xc]
call fcn.101737d7
cmp dword [esi + 0x20], edi
je 0x10174566
push dword [esi + 0x20]
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
push esi
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
push edi
push dword [0x10658524]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.10174317
lea ecx, [ebp - 0x18]
call fcn.102f3376
mov eax, edi
call fcn.102790b8
ret
Function at 0x101778d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x101779a4
movzx eax, word [ebp + 0x18]
xor esi, esi
push 0x2010
push eax
movzx eax, word [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
jne 0x10177910
xor eax, eax
jmp 0x1017799d
push esi
push 1
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.1017781a
mov edx, eax
test edx, edx
je 0x10177909
mov al, byte [ebp + 0x2c]
cmp al, 1
jbe 0x1017793c
or byte [edx + 0x13], 0x80
mov byte [edx + 0x14], al
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x1017799b
mov al, byte [edx + 0x12]
shr al, 3
and al, 7
cmp al, 5
je 0x10177953
cmp al, 6
jne 0x1017799b
mov eax, dword [esi]
shl eax, 8
xor eax, dword [edx + 0x14]
and eax, 0x3f00
xor dword [edx + 0x14], eax
mov eax, dword [esi + 4]
shl eax, 0xe
xor eax, dword [edx + 0x14]
and eax, 0xfc000
xor eax, dword [edx + 0x14]
mov dword [edx + 0x14], eax
mov ecx, dword [esi + 8]
shl ecx, 0x14
xor ecx, eax
and ecx, 0x3f00000
xor ecx, eax
mov dword [edx + 0x14], ecx
and ecx, 0x3ffffff
mov eax, dword [esi + 0xc]
shl eax, 0x1a
or eax, ecx
mov dword [edx + 0x14], eax
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret 0x30
push 2
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10177909
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10177909
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
xor esi, esi
cmp word [ebx + 0xe], 0x18
jb 0x10177a4c
cmp dword [ebx + 0x10], esi
jne 0x10177a4c
call fcn.1017425f
mov edx, eax
test edx, edx
je 0x10177909
mov cl, byte [ebp + 0x34]
push 0xc
pop eax
mov word [edx + 4], ax
and cl, 1
mov ax, word [ebp + 0x14]
mov word [edx + 6], ax
mov ax, word [ebp + 0x18]
mov word [edx + 0x10], ax
mov al, byte [ebp + 0xc]
and al, 7
shl cl, 2
or al, 8
mov dword [edx + 8], ebx
shl al, 3
mov byte [edx + 0x12], al
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x14], eax
mov al, byte [ebp + 0x28]
and al, 1
mov dword [edx + 0xc], esi
or cl, al
mov al, byte [ebp + 0x24]
shl cl, 3
and al, 1
or cl, al
mov al, byte [ebp + 0x20]
or cl, 4
and al, 1
add cl, cl
or cl, al
mov byte [edx + 0x13], cl
jmp 0x1017792e
movzx eax, word [ebp + 0x18]
push 0x2000
push eax
movzx eax, word [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
push edi
jmp 0x101778ff
Function at 0x1017f7e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp byte [ebp + 0xc], bl
jne 0x1017f865
cmp byte [ebp + 8], bl
jne 0x1017f865
test byte [esi + 0x32], 2
je 0x1017f85e
test byte [esi + 0x82], 0x10
je 0x1017f816
cmp dword [esi + 0x3c], ebx
je 0x1017f816
xor eax, eax
inc eax
jmp 0x1017f979
push 1
call fcn.1018febd
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1017f85e
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push 4
push eax
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], 0x83ff
call fcn.1019bc57
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1017f977
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push 1
push edx
mov dword [ebp + 0xc], esi
call dword [eax + 0x3c]
jmp 0x1017f977
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push edi
mov edi, dword [esi + 4]
test edi, edi
je 0x1017f888
mov ecx, esi
call fcn.101c2e46
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x2c]
jmp 0x1017f888
mov ecx, dword [esi + 8]
push ebx
push ebx
call fcn.1017f7e4
cmp dword [esi + 8], ebx
jne 0x1017f87e
lea ecx, [esi + 0x14]
call fcn.101742da
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1017f8aa
test byte [esi + 0x32], 0x40
jne 0x1017f8a7
call fcn.101a3da0
mov dword [esi + 0x2c], ebx
call fcn.10173987
mov edi, eax
test edi, edi
je 0x1017f943
cmp dword [edi], ebx
jle 0x1017f943
test byte [esi + 0x32], 2
je 0x1017f8df
push 1
push ebx
push esi
lea ecx, [edi + 0x64]
call fcn.101de6a2
push 1
push ebx
push esi
lea ecx, [edi + 0x58]
call fcn.101de6a2
cmp dword [esi + 0x1c], 0xffffffff
je 0x1017f8f6
push dword [esi + 0x1c]
lea ecx, [edi + 8]
call fcn.10170256
mov dword [eax], ebx
or dword [esi + 0x1c], 0xffffffff
cmp dword [esi + 0x20], 0xffffffff
je 0x1017f90d
push dword [esi + 0x20]
lea ecx, [edi + 0x18]
call fcn.10170256
mov dword [eax], ebx
or dword [esi + 0x20], 0xffffffff
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x1017f943
cmp eax, dword [edi + 0x78]
jl 0x1017f93f
push eax
lea ecx, [edi + 0x28]
call fcn.1017dfbb
mov ebx, eax
cmp byte [ebx], 0
jne 0x1017f931
mov ecx, ebx
call fcn.1017f42b
and dword [ebx + 4], 0
mov eax, dword [ebx + 0x18]
cmp eax, dword [edi + 0x78]
jge 0x1017f91a
xor ebx, ebx
or dword [esi + 0x24], 0xffffffff
or byte [esi + 0x32], 0x20
mov al, byte [esi + 0x32]
pop edi
test al, 8
jne 0x1017f972
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1017f969
test byte [ecx + 0xc], 4
jne 0x1017f972
test ecx, ecx
je 0x1017f969
push ecx
call fcn.10177183
mov dword [esi + 0x28], ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
jmp 0x1017f977
or al, 0x10
mov byte [esi + 0x32], al
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10180fa3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.100595bb
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10181094
cmp dword [edi + 4], 1
lea eax, [edi + 0x48]
push esi
mov esi, dword [eax]
mov dword [ebp - 8], eax
jne 0x10181093
test esi, esi
jle 0x10181093
push ebx
push 1
push 1
push esi
lea ecx, [ebp - 0x1c]
call fcn.101b40d8
xor ebx, ebx
test esi, esi
jle 0x1018107e
mov ecx, dword [ebp - 8]
push ebx
call fcn.1024699b
mov edi, eax
test edi, edi
je 0x10181075
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10181075
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10181075
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1018106c
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x9c]
push dword [ebp - 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
test eax, eax
je 0x1018106c
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.101807ff
cmp eax, 0xffffffff
jne 0x1018106c
push dword [ebp - 4]
call fcn.10059f3e
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.101b419f
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
cmp ebx, esi
jl 0x10180fef
mov eax, dword [ebp - 8]
pop ebx
and dword [eax], 0
cmp dword [ebp - 0x14], 0
je 0x10181093
push dword [ebp - 0x14]
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1018c045
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1065e7ec]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10669d9c], 0
push ebx
push esi
push edi
jne 0x1018c1a2
and dword [ebp - 0x30], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
push 2
pop eax
push eax
lea eax, [ebp - 0x30]
push eax
push 0x1014
push 0
call ebx
test eax, eax
je 0x1018c1a2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0xa
pop ecx
mov esi, eax
lea edi, [ebp - 0x2c]
xor eax, eax
and esi, 0x3ff
push 0x14
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 0x13
push 0
call ebx
test eax, eax
je 0x1018c1a2
movzx eax, word [ebp - 0x2a]
mov ecx, 0xbe7
push 0x31
pop ebx
cmp eax, ecx
jg 0x1018c128
je 0x1018c124
mov ecx, 0x9e7
cmp eax, ecx
jg 0x1018c103
je 0x1018c0ff
cmp eax, ebx
je 0x1018c0fb
cmp eax, 0x661
je 0x1018c0f6
cmp eax, 0x6f1
je 0x1018c0f2
cmp eax, 0x967
jne 0x1018c16e
push 0x39
jmp 0x1018c16d
push 0x29
jmp 0x1018c16d
xor esi, esi
inc esi
jmp 0x1018c16e
push 9
jmp 0x1018c16d
push 0x45
jmp 0x1018c16d
cmp eax, 0xa67
je 0x1018c120
cmp eax, 0xae7
je 0x1018c11c
cmp eax, 0xb67
jne 0x1018c16e
push 0x48
jmp 0x1018c16d
push 0x47
jmp 0x1018c16d
push 0x46
jmp 0x1018c16d
push 0x49
jmp 0x1018c16d
sub eax, 0xc67
je 0x1018c16b
mov ecx, 0x80
sub eax, ecx
je 0x1018c167
sub eax, ecx
je 0x1018c163
sub eax, 0xea
je 0x1018c15f
sub eax, ecx
je 0x1018c15b
sub eax, 0x50
je 0x1018c157
sub eax, 0x8c0
jne 0x1018c16e
push 0x53
jmp 0x1018c16d
push 0x51
jmp 0x1018c16d
push 0x54
jmp 0x1018c16d
push 0x1e
jmp 0x1018c16d
push 0x4c
jmp 0x1018c16d
push 0x4b
jmp 0x1018c16d
push 0x4a
pop esi
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push 2
pop edi
push edi
push eax
push 0x70
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1018c1a2
cmp word [ebp - 0x30], 0x32
jne 0x1018c19b
cmp word [ebp - 0x34], bx
jne 0x1018c19b
mov word [0x10658554], di
mov byte [0x10669d9c], 1
mov ecx, dword [ebp - 4]
mov ax, word [0x10658554]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.102790a9
mov esp, ebp
pop ebp
ret
Function at 0x10191135
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x1065e7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xb8], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x10191236
xor eax, eax
cmp word [ebx], ax
je 0x10191236
test edi, edi
jle 0x10191236
call fcn.1018d44b
cmp eax, 0xffffffff
je 0x10191236
and dword [ebp - 0xb4], 0
lea eax, [ebp - 0xb4]
push eax
mov ecx, esi
call fcn.1018d44b
push eax
call fcn.101ae2dd
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x10191220
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
je 0x1019121a
push 2
push edi
call fcn.1016c874
mov esi, eax
test esi, esi
je 0x1019121a
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [ebp - 0xb0]
push 0x56
push eax
push 0x5c
call fcn.10164199
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1019120a
lea eax, [ebp - 0xb0]
push eax
push edi
push esi
push edi
push ebx
call fcn.102e9ba8
test eax, eax
je 0x1019120a
mov ecx, dword [ebp - 0xb8]
push esi
call fcn.101930e3
test eax, eax
js 0x1019120a
mov bl, 1
jmp 0x1019120c
xor bl, bl
push esi
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
mov ecx, dword [ebp - 0xb4]
jmp 0x10191222
mov ecx, dword [ebp - 0xb4]
xor bl, bl
and dword [ebp - 0xb4], 0
test ecx, ecx
je 0x10191232
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x10191238
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102790a9
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
test ebx, ebx
je 0x101935b1
and dword [ebx], 0
push dword [0x1065880c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10193671
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10193660
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov eax, edi
sub eax, ecx
je 0x101935e7
sub eax, 1
je 0x10193603
sub eax, 1
jne 0x101935fc
push 8
push ecx
push dword [0x10669da4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x10193607
mov eax, 0x8007000e
jmp 0x10193679
push 0x10
jmp 0x101935e9
mov dword [ebp + 0x14], 0x80004005
sub edi, 0
je 0x1019361d
sub edi, 1
je 0x1019363f
sub edi, 1
jne 0x10193633
mov dword [esi + 4], 1
xor eax, eax
mov dword [esi], 0x104da368
mov dword [ebp + 0x14], eax
test eax, eax
jns 0x10193664
mov ecx, esi
call fcn.101938f9
mov eax, dword [ebp + 0x14]
jmp 0x10193679
push dword [ebp + 0xc]
and dword [esi + 8], 0
mov ecx, esi
and dword [esi + 0xc], 0xfffffffc
mov dword [esi + 4], 1
mov dword [esi], 0x104da350
call fcn.10193555
jmp 0x1019362c
lock inc dword [esi + 4]
push esi
push dword [0x1065880c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x10193677
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1019b55b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push dword [0x1065a1cc]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1019b57a
mov ebx, dword [eax + 0x74]
jmp 0x1019b57c
mov ebx, edi
test ebx, ebx
jne 0x1019b590
push 0x80040014
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1019b633
push ebx
push edi
push 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
call fcn.101f90a3
test eax, eax
jne 0x1019b5b0
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1019b62b
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1019b5c6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
shr eax, 2
test al, 1
jne 0x1019b5c8
mov esi, edi
test esi, esi
jne 0x1019b5d3
push 0x80070057
jmp 0x1019b605
cmp ebx, dword [esi + 8]
je 0x1019b5df
push 0x8004001e
jmp 0x1019b605
cmp dword [ebx + 0x10], edi
je 0x1019b60d
mov ecx, esi
call fcn.1019b4c2
test eax, eax
je 0x1019b60d
mov ecx, esi
call fcn.1019b4c2
mov eax, dword [eax + 0x54]
shr eax, 5
test al, 1
je 0x1019b60d
push 0x8004001f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1019b62a
mov ecx, esi
call fcn.1019b4c2
mov ecx, eax
test ecx, ecx
je 0x1019b62a
xor eax, eax
cmp dword [ebp + 0xc], eax
cmovne eax, esi
push eax
call fcn.101fea65
mov edi, eax
pop esi
lea ecx, [ebp - 0xc]
call fcn.101f8f0d
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8