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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.1006a6b0
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2d10], ecx
test ecx, ecx
je 0x1003597d
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.100362b0
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 0x10035941
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.10045770
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 0x1003593a
push 0x3e8
lea eax, [ebp - 0x5ec]
push esi
push eax
call fcn.10045770
mov edx, dword [ebp - 0x2ce4]
lea eax, [ebp - 0x5ec]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0x2cfc]
call fcn.1003ed10
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 0x10035929
mov cl, byte [esi + eax]
test cl, cl
je 0x10035929
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x10035910
test edx, edx
lea ecx, [eax - 1]
cmovne ecx, eax
xor esi, esi
mov byte [ecx], 0
test edx, edx
jne 0x1003595e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x10
jl 0x10035830
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043637
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.10043637
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
ret
Function at 0x10036320
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 0x10073cf7
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 0x100364c7
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 0x100364a7
mov edi, dword [ebx + 8]
test edi, edi
je 0x100364a7
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.10045770
add esp, 0xc
mov byte [ebp - 0x6c], 0x80
lea ecx, [ebp - 0xc8]
push edi
push dword [ebp - 0xd0]
call fcn.1003ef40
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc8]
call fcn.1003f020
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.10043637
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.100013a0
int3
Function at 0x10037510
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073ec7
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], 0x1007f85c
mov dword [esi], 0x1007f854
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.100230c0
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.10043cc1
add esp, 4
mov esi, eax
push 1
mov byte [ebp - 4], 6
call fcn.1006969f
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10023370
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 0x10039870
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074116
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 0x10039aa3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x1007f8d8
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 0x10039a5a
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10039aad
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.10045770
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 0x100399e1
mov eax, dword [ebp - 0x238]
cmp eax, 1
je 0x100399cf
cmp eax, 2
jne 0x100399e1
cmp dword [ebp - 0x220], 0
jne 0x100399e1
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1004f049
add esp, 8
test eax, eax
je 0x10039a32
test esi, esi
je 0x10039a32
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039a04
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 0x10039a4d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x234]
mov esi, 1
jmp 0x10039a5c
xor esi, esi
test eax, eax
je 0x10039a67
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 0x10039a83
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.10043637
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
int3
Function at 0x10039ac0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007414d
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 0x10039b06
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 0x10039b70
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 0x10039b5c
mov ecx, 0x1008c0f8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039b40
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 0x1003a650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100742e6
mov eax, dword fs:[0]
push eax
sub esp, 8
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 0x1003a7d2
push 0xc
call fcn.10043cc1
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea ebx, [esi + 4]
mov dword [esi], vtable.CURLDEF.0
mov dword [ebp - 0x10], ebx
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1003a7e6
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 0x1003a6e3
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 - 0x10], edi
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1003a7e6
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 0x1003a728
push 0x16
push str.https:__apis.pdfxd.com
mov ecx, edi
call fcn.10005d10
mov byte [ebp - 4], 4
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008ade8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008c338]
cmp eax, dword [ecx + 4]
jle 0x1003a7a7
push 0x1008c338
call fcn.100440d0
add esp, 4
cmp dword [0x1008c338], 0xffffffff
jne 0x1003a7a7
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.10034f30
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
mov dword [0x1008c33c], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003a796
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1008c338
mov byte [ebp - 4], 4
call fcn.1004407f
add esp, 4
cmp dword [0x1008c33c], 0
je 0x1003a7cc
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 0x1003e9c0
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 0x1003ea6c
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], 0x1003ec40
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 0x1003ea76
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 0x1003f020
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 0x1003f040
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.1003ef40
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.1003ef40
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 0x1003f0b0
push 0x9c
push edi
push esi
call fcn.10045770
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.10043637
mov esp, ebp
pop ebp
ret 4
Function at 0x1005693c
Capabilities:
Parse pe header

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

Function at 0x1005b5c2
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.1005b42d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005b5f6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007538c]
call esi
jmp 0x1005b5fc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005b640
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.1005b42d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005b677
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 0x1005b67f
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.1005b42d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005b6b9
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 0x1005e23a
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 0x1005e2d7
push ebx
push esi
call fcn.1005e203
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.1005e197
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005e284
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005e2d6
push edi
push eax
call fcn.10059638
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005e2a4
call fcn.100595fe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005e2d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005e197
add esp, 0x20
test eax, eax
jne 0x1005e2c3
push edi
call fcn.100595fe
jmp 0x1005e2cb
push ebx
call fcn.100595fe
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 0x1005e2da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005e2eb
pop esi
ret
push ebx
push edi
push esi
call fcn.1005e203
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10059638
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005e313
push ebx
push esi
push edi
call fcn.100451f0
add esp, 0xc
push 0
call fcn.100595fe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1005e6e3
Capabilities:
Set environment variable

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

Function at 0x100612b4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10057c4e
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 0x10061323
cmp esi, dword [ebp - 4]
je 0x1006131e
cmp dword [ebp + 0xc], 0
je 0x1006131e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100612fb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10060e06
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10061325
xor eax, eax
inc eax
jmp 0x10061325
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1006138a
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.10057c4e
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.10057c4e
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 0x10061401
cmp word [ecx], dx
je 0x10061401
mov eax, dword [0x10078a7c]
push edi
dec eax
push eax
push 0x10078968
call fcn.10061329
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10061474
cmp word [eax], dx
je 0x10061474
mov eax, dword [edi]
test eax, eax
je 0x10061425
cmp word [eax], dx
je 0x10061425
lea eax, [ebp - 0x10]
push eax
call fcn.10060d0c
jmp 0x1006142e
lea eax, [ebp - 0x10]
push eax
call fcn.10060da7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1006149e
mov eax, dword [0x10078964]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10078658
call fcn.10061329
add esp, 0xc
test al, al
je 0x1006149e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10061469
cmp word [eax], di
je 0x10061469
lea eax, [ebp - 0x10]
push eax
call fcn.10060d0c
pop ecx
jmp 0x100614a0
lea eax, [ebp - 0x10]
push eax
call fcn.10060da7
jmp 0x10061466
mov eax, dword [edi]
test eax, eax
je 0x1006148b
cmp word [eax], dx
je 0x1006148b
lea eax, [ebp - 0x10]
push eax
call fcn.10060cc1
pop ecx
jmp 0x1006149e
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 0x10061569
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100611ae
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10061569
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10061569
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10061569
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100614f6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005b85b
test ebx, ebx
je 0x10061564
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005b85b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10061569
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 0x10061569
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100659a9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1006156b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043637
leave
ret