joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035570
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.1006a2d0
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2d10], ecx
test ecx, ecx
je 0x100356ed
push ebx
push esi
push edi
xor edi, edi
nop word [eax + eax]
push edi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.10036020
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x100356b1
push 0x2710
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2d0c], esi
push esi
push eax
mov dword [ebp - 0x2d00], esi
mov dword [ebp - 0x2d08], esi
mov dword [ebp - 0x2d04], esi
call fcn.10045390
add esp, 0xc
lea eax, [ebp - 0x2d0c]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100356aa
push 0x3e8
lea eax, [ebp - 0x5ec]
push esi
push eax
call fcn.10045390
mov edx, dword [ebp - 0x2ce4]
lea eax, [ebp - 0x5ec]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0x2cfc]
call fcn.1003ea90
mov eax, dword [ebp - 0x2d10]
lea esi, [ebp - 0x5ec]
add esp, 8
mov edx, 0x64
sub esi, eax
nop
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x10035699
mov cl, byte [esi + eax]
test cl, cl
je 0x10035699
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x10035680
test edx, edx
lea ecx, [eax - 1]
cmovne ecx, eax
xor esi, esi
mov byte [ecx], 0
test edx, edx
jne 0x100356ce
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x10
jl 0x100355a0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret
push ebx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret
Function at 0x10036090
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100738d7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0xd0], edi
mov esi, ecx
mov dword [ebp - 0xd4], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xcc], 0
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10036237
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0xcc], 1
movups xmmword [ebp - 0x24], xmm0
test edi, edi
je 0x10036217
mov edi, dword [ebx + 8]
test edi, edi
je 0x10036217
push 0x40
lea eax, [ebp - 0x6c]
mov dword [ebp - 0xc8], vtable.MD5_CTX.0
push 0
push eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc4], 0x67452301
mov dword [ebp - 0xc0], 0xefcdab89
mov dword [ebp - 0xbc], 0x98badcfe
mov dword [ebp - 0xb8], 0x10325476
call fcn.10045390
add esp, 0xc
mov byte [ebp - 0x6c], 0x80
lea ecx, [ebp - 0xc8]
push edi
push dword [ebp - 0xd0]
call fcn.1003ecc0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc8]
call fcn.1003eda0
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
movzx ecx, byte [ebp - 0x23]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
movzx eax, byte [ebp - 0x21]
push eax
movzx eax, byte [ebp - 0x22]
push eax
push ecx
movzx ecx, byte [ebp - 0x24]
push ecx
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push esi
call fcn.10005430
add esp, 0x48
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.100013a0
int3
Function at 0x10037280
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073aa7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10089040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
lea esi, [ebx + 0x10]
mov dword [ebx], 0x1007f844
mov dword [esi], 0x1007f83c
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov byte [ebx + 0xa8], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x18]
mov eax, dword [ebx]
push 0
push edi
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.10022e10
mov eax, dword [esi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 5
mov eax, dword [ebx]
push 8
mov dword [ebp - 0x18], edi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
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
mov dword [edi + 0x30], 0
call fcn.10043901
add esp, 4
mov esi, eax
push 1
mov byte [ebp - 4], 6
call fcn.100692bf
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100230c0
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, ebx
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 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 4
Function at 0x100395e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10039813
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x1007f8c0
push str.Windows
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push str.SoftwareMicrosoft_sCurrentVersion_s
push eax
call fcn.10005430
add esp, 0x10
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0x2001f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
mov edi, dword [ebp - 0x21c]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100017b0
or ebx, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x234]
jne 0x100397ca
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1003981d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x224]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.10005430
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10045390
add esp, 0x1c
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push dword [ebp - 0x228]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10039751
mov eax, dword [ebp - 0x238]
cmp eax, 1
je 0x1003973f
cmp eax, 2
jne 0x10039751
cmp dword [ebp - 0x220], 0
jne 0x10039751
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1004ec69
add esp, 8
test eax, eax
je 0x100397a2
test esi, esi
je 0x100397a2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039774
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x228]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100397bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x234]
mov esi, 1
jmp 0x100397cc
xor esi, esi
test eax, eax
je 0x100397d7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100397f3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
int3
Function at 0x10039830
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073d2d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x10089040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x1008c0f8], 0
jne 0x10039876
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x1008c0f8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x100398e0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x1008c0f8
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10005aa0
test al, al
jne 0x100398cc
mov ecx, 0x1008c0f8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100398b0
sub ecx, edx
sar ecx, 1
push ecx
push 0x1008c0f8
mov ecx, esi
call fcn.10005d10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100013a0
int3

Function at 0x1003a3c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073eba
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10089040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x1008bda0]
test esi, esi
jne 0x1003a4f8
push 0xc
call fcn.10043901
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
lea ebx, [esi + 4]
mov dword [esi], vtable.CURLDEF.0
mov dword [ebp - 0x14], ebx
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1003a50c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push str.http:__report.pdfxd.com
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10005aa0
test al, al
jne 0x1003a453
push 0x17
push str.http:__report.pdfxd.com
mov ecx, ebx
call fcn.10005d10
mov byte [ebp - 4], 2
lea edi, [esi + 8]
mov dword [ebp - 0x14], edi
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1003a50c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push str.https:__apis.pdfxd.com
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10005aa0
test al, al
jne 0x1003a498
push 0x16
push str.https:__apis.pdfxd.com
mov ecx, edi
call fcn.10005d10
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.10034ca0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1003a4d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003a4f2
push 0x1b
push str.http:__report_dev.pdfxd.com
mov ecx, ebx
call fcn.10005d10
push 0x15
push str.https:__dev.pdfxd.com
mov ecx, edi
call fcn.10005d10
mov dword [0x1008bda0], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100013a0
int3
Function at 0x1003e740
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1003e7ec
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
mov dword [esp + 0x34], eax
lea eax, [esp + 8]
push eax
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x20], 0x10000000
mov dword [esp + 0x34], str.XDSTMgeTmWnd
mov dword [esp + 0x14], 0x1003e9c0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1003e7f6
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003eda0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
lea edx, [esi + 0x16]
nop dword [eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ebp + eax - 0xc], cl
movzx ecx, byte [edx - 5]
mov byte [ebp + eax - 0xb], cl
movzx ecx, byte [edx - 4]
mov byte [ebp + eax - 0xa], cl
movzx ecx, byte [edx - 3]
mov byte [ebp + eax - 9], cl
add eax, 4
cmp eax, 8
jb 0x1003edc0
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x5c]
shr edx, 3
mov ecx, 0x78
and edx, 0x3f
mov eax, 0x38
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
mov ecx, esi
push eax
push ebx
call fcn.1003ecc0
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.1003ecc0
lea ecx, [edi + 2]
mov edi, 4
lea edx, [esi + 6]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 2], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 5], al
movzx eax, byte [edx - 4]
mov byte [ecx - 4], al
movzx eax, byte [edx - 3]
mov byte [ecx - 3], al
sub edi, 1
jne 0x1003ee30
push 0x9c
push edi
push esi
call fcn.10045390
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 4], 0x67452301
xor ecx, ebp
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
pop edi
mov dword [esi + 0x10], 0x10325476
pop esi
mov byte [ebx], 0x80
pop ebx
call fcn.10043277
mov esp, ebp
pop ebp
ret 4
Function at 0x1005655c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1005659b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005659b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005659b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1005659b
cmp dword [ecx + 0x74], 0xe
jbe 0x1005659b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1005b1e2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100785f8
push 0x100785f0
push str.FlsAlloc
push 0x1f
call fcn.1005b04d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005b216
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007538c]
call esi
jmp 0x1005b21c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005b260
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10078608
push 0x10078600
push str.FlsGetValue
push 0x21
call fcn.1005b04d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005b297
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007538c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005b29f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10078610
push 0x10078608
push str.FlsSetValue
push 0x22
call fcn.1005b04d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005b2d9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007538c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005de5a
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 0x1005def7
push ebx
push esi
call fcn.1005de23
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.1005ddb7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005dea4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005def6
push edi
push eax
call fcn.10059258
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005dec4
call fcn.1005921e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005def5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005ddb7
add esp, 0x20
test eax, eax
jne 0x1005dee3
push edi
call fcn.1005921e
jmp 0x1005deeb
push ebx
call fcn.1005921e
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 0x1005defa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005df0b
pop esi
ret
push ebx
push edi
push esi
call fcn.1005de23
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10059258
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005df33
push ebx
push esi
push edi
call fcn.10044e10
add esp, 0xc
push 0
call fcn.1005921e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1005e305
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005df4a

Function at 0x10060ed6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005786e
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 0x10060f45
cmp esi, dword [ebp - 4]
je 0x10060f40
cmp dword [ebp + 0xc], 0
je 0x10060f40
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10060f1d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10060a28
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10060f47
xor eax, eax
inc eax
jmp 0x10060f47
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10060fac
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10089040]
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.1005786e
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.1005786e
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 0x10061023
cmp word [ecx], dx
je 0x10061023
mov eax, dword [0x10078a7c]
push edi
dec eax
push eax
push 0x10078968
call fcn.10060f4b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10061096
cmp word [eax], dx
je 0x10061096
mov eax, dword [edi]
test eax, eax
je 0x10061047
cmp word [eax], dx
je 0x10061047
lea eax, [ebp - 0x10]
push eax
call fcn.1006092e
jmp 0x10061050
lea eax, [ebp - 0x10]
push eax
call fcn.100609c9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100610c0
mov eax, dword [0x10078964]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10078658
call fcn.10060f4b
add esp, 0xc
test al, al
je 0x100610c0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1006108b
cmp word [eax], di
je 0x1006108b
lea eax, [ebp - 0x10]
push eax
call fcn.1006092e
pop ecx
jmp 0x100610c2
lea eax, [ebp - 0x10]
push eax
call fcn.100609c9
jmp 0x10061088
mov eax, dword [edi]
test eax, eax
je 0x100610ad
cmp word [eax], dx
je 0x100610ad
lea eax, [ebp - 0x10]
push eax
call fcn.100608e3
pop ecx
jmp 0x100610c0
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 0x1006118b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10060dd0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1006118b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1006118b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1006118b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10061118
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005b47b
test ebx, ebx
je 0x10061186
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005b47b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006118b
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 0x1006118b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100655c9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1006118d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043277
leave
ret