joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d02e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41d047
or eax, 0xffffffff
jmp 0x41d0a8
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41d0a4
push 0x3d
push esi
call fcn.0041c659
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41d0a4
cmp esi, eax
je 0x41d0a4
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42945c]
sete cl
cmp eax, dword [0x429460]
mov dword [ebp - 8], ecx
jne 0x41d08a
mov edi, eax
call fcn.0041cfcd
mov dword [0x42945c], eax
cmp eax, ebx
jne 0x41d0e3
cmp dword [ebp + 0xc], ebx
je 0x41d0ac
cmp dword [0x429464], ebx
je 0x41d0ac
call fcn.0041c722
test eax, eax
je 0x41d0e3
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41d0b5
xor eax, eax
jmp 0x41d0a7
push 4
call fcn.004131d5
cmp eax, ebx
pop ecx
mov dword [0x42945c], eax
je 0x41d0a4
mov dword [eax], ebx
cmp dword [0x429464], ebx
jne 0x41d0e3
push 4
call fcn.004131d5
cmp eax, ebx
pop ecx
mov dword [0x429464], eax
je 0x41d0a4
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42945c]
call fcn.0041cf80
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41d144
cmp dword [esi], ebx
je 0x41d144
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004130bd
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41d127
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41d185
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41d11e
mov eax, edi
shl eax, 2
push eax
push dword [0x42945c]
call fcn.004131e7
cmp eax, ebx
pop ecx
pop ecx
je 0x41d185
jmp 0x41d180
cmp dword [ebp - 8], ebx
jne 0x41d1f0
cmp edi, ebx
jge 0x41d153
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42945c]
call fcn.004131e7
cmp eax, ebx
pop ecx
pop ecx
je 0x41d0a4
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x42945c], eax
cmp dword [ebp + 0xc], ebx
je 0x41d1da
push dword [ebp - 4]
call fcn.00417990
inc eax
inc eax
push eax
call fcn.004131d5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41d1da
push dword [ebp - 4]
push esi
call fcn.004166d0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41d1d3
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004130bd
pop ecx
cmp dword [ebp - 8], ebx
je 0x41d1e8
push dword [ebp - 4]
call fcn.004130bd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41d0a7
push dword [ebp - 4]
call fcn.004130bd
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41d0b1
Function at 0x10003da0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1007301c]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x10], esi
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10003e15
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002b555
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [esp + 0xc], 0
ja 0x10003e4e
push edi
call fcn.1002b55e
add esp, 4
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov dword [esi + 0x14], 7
push 0x10066f48
mov word [esi], ax
call fcn.100039c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1002ac6c
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003e70
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.100039c0
push edi
call fcn.1002b55e
movups xmm0, xmmword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
pop edi
movq xmm0, qword [esp + 0x1c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.1002ac6c
mov esp, ebp
pop ebp
ret

Function at 0x100047f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055f80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1007301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea esi, [ecx + 0x20]
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
call fcn.10013360
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push dword [esi + 0x18]
call fcn.10004bf0
mov ebx, dword [esi + 0x18]
lea eax, [ebp + 8]
push 0
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000489a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x100048d1
push dword [esi + 0x20]
push 0
push dword [esi + 0x24]
call fcn.100309f0
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100048e2
mov eax, dword [ebp + 0xc]
mov byte [esi + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x1006f884
push eax
call fcn.100303fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x1006f884
push eax
call fcn.100303fa
int3
Function at 0x10004bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1007301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x20], ecx
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp byte [esi + 0x1c], 0
je 0x10004c42
mov eax, dword [esi + 0x20]
jmp 0x10004c47
mov eax, 0xc
push 0
lea edx, [ebp - 0x18]
mov dword [ebp + 0xc], eax
push edx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004cff
cmp dword [ebp - 0x18], 0
jbe 0x10004cff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x10004cbf
mov ecx, dword [esi + 0x28]
mov byte [esi + 0x1c], 0
test ecx, ecx
je 0x10004ceb
mov dword [esi + 0x28], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test ecx, ecx
je 0x10004ceb
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x1006f884
push eax
call fcn.100303fa
int3
Function at 0x10006770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056308
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1007301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10007c50
push 8
call fcn.1002ae77
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.10015907
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.10006f50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx eax, ax
mov ecx, esi
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x10006891
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov eax, dword [ebp + 8]
mov word [edi + 0x40], ax
jne 0x100068ae
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.10007c50
mov eax, dword [ebx + 0x10]
lea edx, [ebx + 0x10]
mov dword [ebp + 8], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10006900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056330
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1002ae77
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10015907
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002da00
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058eaa
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x44
mov dword [ebp - 4], 0
mov dword [ebx], vtable.boost::archive::detail::basic_iarchive.0
call fcn.1002ae77
mov edi, eax
mov dword [ebp - 0x14], edi
push edi
mov byte [ebp - 4], 1
call fcn.1002f5f0
mov ecx, dword [ebp + 8]
mov dword [edi + 4], ecx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
lea esi, [edi + 0x24]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
push 0x18
mov byte [ebp - 4], 2
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1002ae77
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, ebx
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [ebx + 0x10], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002f2e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100590ed
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x1007301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
push 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.10015b79
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x54], eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push 0x1005af1c
push eax
call fcn.10015a07
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
call fcn.10015d59
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
call fcn.10015a52
add esp, 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x1002f3c0
push eax
call fcn.1003bdbe
add esp, 4
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1002f3db
push eax
call fcn.1003bdbe
add esp, 4
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x1002f3f6
push eax
call fcn.1003bdbe
add esp, 4
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x1002f411
push eax
call fcn.1003bdbe
add esp, 4
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x1002f42c
push eax
call fcn.1003bdbe
add esp, 4
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x1002f447
push eax
call fcn.1003bdbe
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
call fcn.10015bd1
mov dword [esi], vtable.boost::archive::codecvt_null_wchar_t_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10043670
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005f950
push 0x1005f948
push str.FlsAlloc
push 0x1f
call fcn.10048ad1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10048c9a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a1ec]
call esi
jmp 0x10048ca0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10048ce4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005f960
push 0x1005f958
push str.FlsGetValue
push 0x21
call fcn.10048ad1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10048d1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a1ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10048d23
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005f968
push 0x1005f960
push str.FlsSetValue
push 0x22
call fcn.10048ad1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10048d5d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005a1ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004d6fc
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 0x1004d799
push ebx
push esi
call fcn.1004d6c5
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.1004bea1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004d746
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004d798
push edi
push eax
call fcn.10047400
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004d766
call fcn.100470e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004d797
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004bea1
add esp, 0x20
test eax, eax
jne 0x1004d785
push edi
call fcn.100470e6
jmp 0x1004d78d
push ebx
call fcn.100470e6
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 0x1004d79c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1004d7ad
pop esi
ret
push ebx
push edi
push esi
call fcn.1004d6c5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10047400
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004d7d5
push ebx
push esi
push edi
call fcn.10030470
add esp, 0xc
push 0
call fcn.100470e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1004dba5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004d7ea

Function at 0x1004ff45
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004541a
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 0x1004ffb4
cmp esi, dword [ebp - 4]
je 0x1004ffaf
cmp dword [ebp + 0xc], 0
je 0x1004ffaf
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004ff8c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004fa97
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1004ffb6
xor eax, eax
inc eax
jmp 0x1004ffb6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005001b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007301c]
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.1004541a
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.1004541a
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 0x10050092
cmp word [ecx], dx
je 0x10050092
mov eax, dword [0x100639f4]
push edi
dec eax
push eax
push 0x100638e0
call fcn.1004ffba
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10050105
cmp word [eax], dx
je 0x10050105
mov eax, dword [edi]
test eax, eax
je 0x100500b6
cmp word [eax], dx
je 0x100500b6
lea eax, [ebp - 0x10]
push eax
call fcn.1004f99d
jmp 0x100500bf
lea eax, [ebp - 0x10]
push eax
call fcn.1004fa38
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005012f
mov eax, dword [0x100638dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100635d0
call fcn.1004ffba
add esp, 0xc
test al, al
je 0x1005012f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100500fa
cmp word [eax], di
je 0x100500fa
lea eax, [ebp - 0x10]
push eax
call fcn.1004f99d
pop ecx
jmp 0x10050131
lea eax, [ebp - 0x10]
push eax
call fcn.1004fa38
jmp 0x100500f7
mov eax, dword [edi]
test eax, eax
je 0x1005011c
cmp word [eax], dx
je 0x1005011c
lea eax, [ebp - 0x10]
push eax
call fcn.1004f952
pop ecx
jmp 0x1005012f
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 0x100501fa
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004fe3f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100501fa
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100501fa
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100501fa
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10050187
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10048eff
test ebx, ebx
je 0x100501f5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10048eff
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100501fa
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 0x100501fa
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10053fe1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100501fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ac6c
leave
ret