joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425f30
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0xc], eax
push edi
cmp edx, esi
je 0x425f75
nop dword [eax + eax]
movsx eax, byte [edx]
inc edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor ebx, eax
rol ebx, 0xd
add ebx, 0xfaddaf14
lea ebx, [ebx + ebx*4]
cmp edx, esi
jne 0x425f50
mov esi, dword [ecx + 4]
mov eax, 0x4e25
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ecx]
shr eax, 0x1e
sub esi, edx
imul eax, eax, 0x7fffd8ee
sar esi, 3
sub ebx, eax
add ebx, 0x2710
test esi, esi
jle 0x425fcc
mov dword [ebp - 4], edx
mov eax, esi
shr eax, 1
lea edi, [edx + eax*8]
mov dword [ebp - 8], edi
cmp dword [edi + 4], ebx
jge 0x425fc4
or ecx, 0xffffffff
lea edx, [edi + 8]
sub ecx, eax
mov dword [ebp - 4], edx
add esi, ecx
jmp 0x425fc8
jle 0x425fe3
mov esi, eax
test esi, esi
jg 0x425fa6
mov eax, edx
mov ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, edx
mov dword [edx], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edx
test eax, eax
je 0x426015
nop dword [eax]
mov edi, eax
shr edi, 1
cmp dword [ecx + edi*8 + 4], ebx
lea edx, [ecx + edi*8]
jge 0x426009
lea ecx, [edx + 8]
or edx, 0xffffffff
sub edx, edi
add eax, edx
jmp 0x42600b
mov eax, edi
test eax, eax
jg 0x425ff0
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
shl esi, 3
lea eax, [edi + 8]
sub esi, eax
add esi, edx
sar esi, 3
test esi, esi
jle 0x425fd0
mov edi, esi
shr edi, 1
cmp ebx, dword [eax + edi*8 + 4]
lea edx, [eax + edi*8]
jge 0x426037
mov esi, edi
jmp 0x426041
lea eax, [edx + 8]
or edx, 0xffffffff
sub edx, edi
add esi, edx
test esi, esi
jg 0x426026
mov edx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [edx + 4], eax
mov eax, edx
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4260d0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ecx, edx
je 0x426105
movsx eax, byte [ecx]
inc ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
rol esi, 0xd
add esi, 0xfaddaf14
lea esi, [esi + esi*4]
cmp ecx, edx
jne 0x4260e0
mov eax, 0x4e25
mov ecx, esi
mul esi
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1e
imul ecx, ecx, 0x7fffd8ee
sub esi, ecx
lea eax, [esi + 0x2710]
pop esi
pop ebp
ret

Function at 0x42635b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00426337
pop esi
leave
ret 8
Function at 0x43c4f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf4
mov eax, dword [0x49e2f4]
xor eax, esp
mov dword [esp + 0xf0], eax
mov dword [esp], 0x48e113
mov dword [esp + 4], 0x4824f4
mov dword [esp + 8], 0x48f34c
mov dword [esp + 0xc], 0x4824f8
mov dword [esp + 0x10], 0x4824fc
mov dword [esp + 0x14], 0x48e7d4
mov dword [esp + 0x18], 0x480588
mov dword [esp + 0x1c], 0x482500
mov dword [esp + 0x20], 0x482504
mov dword [esp + 0x24], 0x482508
mov dword [esp + 0x28], 0x48250c
mov dword [esp + 0x2c], 0x482510
mov dword [esp + 0x30], 0x482514
mov dword [esp + 0x34], 0x48e680
mov dword [esp + 0x38], 0x48129c
mov dword [esp + 0x3c], 0x482518
mov dword [esp + 0x40], 0x48251c
mov dword [esp + 0x44], 0x482520
mov dword [esp + 0x48], str.bBfntxceEQXZGpPNKR
mov dword [esp + 0x4c], 0x482120
mov dword [esp + 0x50], 0x48252c
mov dword [esp + 0x54], 0x482530
mov dword [esp + 0x58], 0x48e113
mov dword [esp + 0x5c], 0x48e113
mov dword [esp + 0x60], 0x482534
mov dword [esp + 0x64], 0x482538
mov dword [esp + 0x68], str._n_:_
mov dword [esp + 0x6c], 0x482540
mov dword [esp + 0x70], 0x48114c
mov dword [esp + 0x74], 0x482124
mov dword [esp + 0x78], 0x482128
mov dword [esp + 0x7c], str.rwa
mov dword [esp + 0x80], 0x48212c
mov dword [esp + 0x84], 0x48e688
mov dword [esp + 0x88], 0x482130
mov dword [esp + 0x8c], 0x482134
mov dword [esp + 0x90], 0x482544
mov dword [esp + 0x94], 0x482548
mov dword [esp + 0x98], 0x482138
mov dword [esp + 0x9c], 0x48e113
mov dword [esp + 0xa0], 0x48e113
mov dword [esp + 0xa4], 0x48e113
mov dword [esp + 0xa8], 0x48e113
mov dword [esp + 0xac], 0x48e113
mov dword [esp + 0xb0], 0x48e113
mov dword [esp + 0xb4], 0x48e113
mov dword [esp + 0xb8], 0x48e113
mov dword [esp + 0xbc], 0x48213c
mov dword [esp + 0xc0], 0x482140
mov dword [esp + 0xc4], 0x482144
mov dword [esp + 0xc8], 0x48058c
mov dword [esp + 0xcc], 0x482148
mov dword [esp + 0xd0], 0x48214c
mov dword [esp + 0xd4], 0x48254c
mov dword [esp + 0xd8], 0x482150
mov dword [esp + 0xdc], 0x482154
mov dword [esp + 0xe0], 0x482158
mov dword [esp + 0xe4], 0x482550
mov dword [esp + 0xe8], 0x48215c
mov dword [esp + 0xec], 0x482160
cmp cl, 0x3c
jb 0x43c756
mov eax, 0x48e113
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0044fadf
add esp, 0xf4
ret
movzx eax, cl
mov ecx, dword [esp + 0xf0]
xor ecx, esp
mov eax, dword [esp + eax*4]
call fcn.0044fadf
add esp, 0xf4
ret
Function at 0x44f500
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f00d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x49e2f4]
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.004267b5
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 0x48058c
push eax
call fcn.00426c45
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
call fcn.0042729f
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.00426c90
add esp, 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x44f5e0
push eax
call fcn.00461a73
add esp, 4
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x44f5fb
push eax
call fcn.00461a73
add esp, 4
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x44f616
push eax
call fcn.00461a73
add esp, 4
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x44f631
push eax
call fcn.00461a73
add esp, 4
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x44f64c
push eax
call fcn.00461a73
add esp, 4
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x44f667
push eax
call fcn.00461a73
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
call fcn.0042680d
mov dword [esi], vtable.boost::program_options::detail::utf8_codecvt_facet.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 0x450a15
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486c18
push 0x486c10
push str.FlsAlloc
push 0x1f
call fcn.00469ef0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46a0b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x480178]
call esi
jmp 0x46a0bf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46a103
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486c28
push 0x486c20
push str.FlsGetValue
push 0x21
call fcn.00469ef0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46a13a
push dword [ebp + 8]
mov ecx, esi
call dword [0x480178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x46a142
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486c30
push 0x486c28
push str.FlsSetValue
push 0x22
call fcn.00469ef0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46a17c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x480178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46a8ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00450b80
mov eax, dword [0x49e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00466d72
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46a8f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46aa4c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00450550
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4a1d38]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046c262
mov ecx, dword [esi*4 + 0x4a1d38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x46aa45
cmp eax, dword [ecx + edi + 0x24]
jne 0x46aa45
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46aa45
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046c262
add esp, 0x14
test edx, edx
jl 0x46aa45
jg 0x46a9bb
test eax, eax
jb 0x46aa45
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46aa45
jl 0x46a9d5
cmp dword [ebp - 0x1008], eax
ja 0x46aa45
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46a9f3
test ebx, ebx
je 0x46aa2c
cmp ecx, edi
jae 0x46aa2c
mov al, byte [ecx]
cmp al, 0xd
jne 0x46aa0d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46aa19
cmp byte [ecx + 1], 0xa
jne 0x46aa19
inc ecx
jmp 0x46aa19
movzx eax, al
movsx eax, byte [eax + 0x49e5a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46a9f3
cmp edx, ebx
jne 0x46a9f3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46aa4a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044fadf
leave
ret
Function at 0x46b6fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4a1d38]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46b73a
cmp byte [ebx], 0xa
jne 0x46b73a
or byte [edi + eax + 0x28], 4
jmp 0x46b73f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46b83e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46b821
inc eax
cmp dl, 0xd
je 0x46b76b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46b791
cmp eax, ecx
jae 0x46b79f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46b753
jmp 0x46b83e
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b81c
cmp dword [ebp - 0x10], 0
je 0x46b81c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4a1d38]
test byte [eax + edi + 0x28], 0x48
je 0x46b7f6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46b7e1
mov byte [esi], dl
jmp 0x46b7f2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a1d38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46b83e
cmp byte [ebp - 1], 0xa
jne 0x46b805
cmp esi, ebx
jne 0x46b805
mov byte [esi], 0xa
jmp 0x46b83d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046c280
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46b83e
mov byte [esi], 0xd
jmp 0x46b83d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4a1d38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46b83b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46b83e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46b847
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4a1d38]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46b88d
cmp word [ebx], dx
jne 0x46b88d
or byte [eax + edi + 0x28], 4
jmp 0x46b892
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x46b9f5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x46b9d5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46b8d3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46b909
cmp eax, edx
jae 0x46b917
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x46b8ae
jmp 0x46b9f5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b9d0
cmp dword [ebp - 0x18], 0
je 0x46b9d0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4a1d38]
test byte [eax + edi + 0x28], 0x48
je 0x46b9a6
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46b96a
mov word [esi], cx
jmp 0x46b9a1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4a1d38]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4a1d38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4a1d38]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46b9f5
pop eax
cmp word [ebp - 4], ax
jne 0x46b9b6
cmp esi, ebx
jne 0x46b9b6
mov word [esi], ax
jmp 0x46b9f2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046c280
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46b9f5
push 0xd
pop eax
jmp 0x46b9b1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4a1d38]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46b9ef
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46b9f5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46fde3
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 0x46fe80
push ebx
push esi
call fcn.0046fdac
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.0046ea9f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x46fe2d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46fe7f
push edi
push eax
call fcn.00468a6f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46fe4d
call fcn.0046868b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46fe7e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046ea9f
add esp, 0x20
test eax, eax
jne 0x46fe6c
push edi
call fcn.0046868b
jmp 0x46fe74
push ebx
call fcn.0046868b
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 0x472652
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0046732f
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 0x4726c1
cmp esi, dword [ebp - 4]
je 0x4726bc
cmp dword [ebp + 0xc], 0
je 0x4726bc
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x472699
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004721a4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4726c3
xor eax, eax
inc eax
jmp 0x4726c3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x472728
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49e2f4]
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.0046732f
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.0046732f
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 0x47279f
cmp word [ecx], dx
je 0x47279f
mov eax, dword [0x487444]
push edi
dec eax
push eax
push 0x487330
call fcn.004726c7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x472812
cmp word [eax], dx
je 0x472812
mov eax, dword [edi]
test eax, eax
je 0x4727c3
cmp word [eax], dx
je 0x4727c3
lea eax, [ebp - 0x10]
push eax
call fcn.004720aa
jmp 0x4727cc
lea eax, [ebp - 0x10]
push eax
call fcn.00472145
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x47283c
mov eax, dword [0x48732c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x487020
call fcn.004726c7
add esp, 0xc
test al, al
je 0x47283c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x472807
cmp word [eax], di
je 0x472807
lea eax, [ebp - 0x10]
push eax
call fcn.004720aa
pop ecx
jmp 0x47283e
lea eax, [ebp - 0x10]
push eax
call fcn.00472145
jmp 0x472804
mov eax, dword [edi]
test eax, eax
je 0x472829
cmp word [eax], dx
je 0x472829
lea eax, [ebp - 0x10]
push eax
call fcn.0047205f
pop ecx
jmp 0x47283c
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 0x472907
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0047254c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x472907
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x472907
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x472907
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x472894
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0046a282
test ebx, ebx
je 0x472902
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0046a282
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x472907
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 0x472907
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00476a37
add esp, 0x10
xor eax, eax
inc eax
jmp 0x472909
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fadf
leave
ret