joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x46ebb8], 0
jne 0x41137e
call fcn.00423d10
cmp byte [0x46ebc2], 0
je 0x41139c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00424120
add esp, 0x10
ret
jmp fcn.0040f6d0

Function at 0x413920
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4512bd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x46b140]
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 esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x413996
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x413996
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x4139b4
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.00427895
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.00408fa0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00413a80
push 0x469080
lea eax, [ebp - 0x50]
push eax
call fcn.00429008
int3

Function at 0x413e80
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451519
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x46b140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x46eed4]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x46dab8]
cmp eax, dword [ecx + 4]
jg 0x413ef8
push esi
push dword [ebp + 0xc]
push dword [0x46dab4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x413f3f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427895
mov esp, ebp
pop ebp
ret 8
push 0x46dab8
call fcn.00427e33
add esp, 4
cmp dword [0x46dab8], 0xffffffff
jne 0x413ec8
mov ecx, 0x46dab4
mov dword [ebp - 4], 0
call fcn.00413920
push 0x451eb0
call fcn.00427b20
push 0x46dab8
mov dword [ebp - 4], 0xffffffff
call fcn.00427de2
add esp, 8
jmp 0x413ec8
push 0x454208
lea ecx, [ebp - 0x28]
call fcn.00408fa0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.00413a80
push 0x469080
lea eax, [ebp - 0x50]
push eax
call fcn.00429008
int3
Function at 0x413f70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451569
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x46b140]
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 edi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x60], ebx
test ebx, ebx
jne 0x413fb2
xor esi, esi
jmp 0x413fbd
push ebx
call fcn.00416280
add esp, 4
mov esi, eax
mov dword [ebp - 0x5c], esi
push 1
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040d3a0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], vtable.CryptoPP::NonblockingRng.0
call fcn.00413920
mov eax, dword fs:[0x2c]
mov ecx, dword [0x46eed4]
mov byte [ebp - 4], 1
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x46dab8]
cmp eax, dword [ecx + 4]
jg 0x414074
push esi
push ebx
push dword [0x46dab4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4140bc
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0
mov dword [ebp - 0x58], vtable.CryptoPP::NonblockingRng.0
test eax, eax
je 0x414031
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [edi]
mov ecx, edi
push ebx
push esi
call dword [eax + 0x10]
mov dword [ebp - 4], 5
test esi, esi
je 0x414056
xor al, al
mov edi, esi
mov ecx, ebx
rep stosb byte es:[edi], al
push esi
call fcn.004162e0
add esp, 4
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.00427895
mov esp, ebp
pop ebp
ret 8
push 0x46dab8
call fcn.00427e33
add esp, 4
cmp dword [0x46dab8], 0xffffffff
jne 0x414000
mov ecx, 0x46dab4
mov byte [ebp - 4], 2
call fcn.00413920
push 0x451eb0
call fcn.00427b20
push 0x46dab8
mov byte [ebp - 4], 1
call fcn.00427de2
add esp, 8
jmp 0x414000
push 0x454208
lea ecx, [ebp - 0x28]
call fcn.00408fa0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x50]
call fcn.00413a80
push 0x469080
lea eax, [ebp - 0x50]
push eax
call fcn.00429008
int3
Function at 0x4229e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
cmp eax, 4
jb 0x422a14
mov esi, eax
shr esi, 2
nop dword [eax]
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [edx]
add edi, 4
or ebx, ecx
add edx, 4
sub esi, 1
jne 0x422a00
mov esi, ebx
mov ecx, ebx
shr esi, 8
xor ebp, ebp
or esi, ebx
shr ecx, 0x10
and esi, 0xff00
or esi, ecx
movzx ecx, bl
shr esi, 8
or esi, ecx
test eax, eax
je 0x422af4
mov ebx, edi
sub ebx, edx
cmp eax, 8
jb 0x422ad3
mov ecx, eax
xorps xmm4, xmm4
and ecx, 0xfffffff8
xorps xmm3, xmm3
mov dword [esp + 0x1c], ecx
lea ecx, [edx + 4]
nop dword [eax]
movd xmm2, dword [edi + ebp]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 0xc]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add ebp, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [ecx - 8]
orps xmm4, xmm2
movd xmm2, dword [ebx + ecx - 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp ebp, dword [esp + 0x1c]
jb 0x422a60
orps xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd ecx, xmm3
or esi, ecx
cmp ebp, eax
jae 0x422af4
lea edi, [edx + ebp]
sub eax, ebp
nop dword [eax + eax]
movzx edx, byte [ebx + edi]
lea edi, [edi + 1]
movzx ecx, byte [edi - 1]
xor edx, ecx
or esi, edx
sub eax, 1
jne 0x422ae0
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
ret
Function at 0x422b00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x24
test eax, eax
je 0x422ca8
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x30]
push edi
cmp eax, 4
jb 0x422b43
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x422b28
mov dword [esp + 0x40], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
test eax, eax
je 0x422ca4
cmp eax, 8
jb 0x422c89
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x422b79
cmp edi, ebx
jae 0x422c89
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x422b8a
cmp edi, edx
jae 0x422c89
cmp eax, 0x40
jb 0x422c3e
mov edi, eax
mov ecx, eax
mov eax, edx
and edi, 0x3f
sub eax, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], eax
sub ecx, edi
mov eax, esi
mov dword [esp + 0x2c], ecx
sub eax, ebx
lea edi, [esi + 0x20]
mov dword [esp + 0x20], eax
lea ecx, [ebx + 0x10]
mov ebx, dword [esp + 0x20]
mov eax, edx
sub eax, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
lea eax, [edx + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
movups xmm1, xmmword [edx + ebp]
mov edx, dword [esp + 0x24]
lea ecx, [ecx + 0x40]
movups xmm0, xmmword [ecx - 0x50]
lea edi, [edi + 0x40]
xorps xmm1, xmm0
movups xmmword [edi - 0x60], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [esi + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ebx + ecx - 0x40], xmm1
movups xmm1, xmmword [edx + edi - 0x40]
mov edx, dword [esp + 0x28]
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [edx + ebp]
mov edx, dword [esp + 0x10]
add ebp, 0x40
movups xmm0, xmmword [ecx - 0x20]
xorps xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ebp, dword [esp + 0x2c]
jb 0x422bd5
cmp dword [esp + 0x30], 8
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
jb 0x422c85
and eax, 0xfffffff8
lea ecx, [ebx + ebp]
mov dword [esp + 0x30], eax
sub edx, ebx
mov edi, dword [esp + 0x30]
mov eax, esi
sub eax, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov eax, edx
mov edx, dword [esp + 0x28]
movq xmm1, qword [ecx + eax]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add ebp, 8
xorps xmm1, xmm0
movq qword [edx + ecx - 8], xmm1
cmp ebp, edi
jb 0x422c60
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
cmp ebp, eax
jae 0x422ca4
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [esi + edi - 1], cl
sub eax, 1
jne 0x422c92
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x4263fb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x426422
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x426425
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
push eax
push dword [esi]
call fcn.004263d7
pop esi
leave
ret 8

Function at 0x428668
Capabilities:
Parse pe header

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

Function at 0x43f251
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x43f26b
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x43f282
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x43f2da
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00446ea2
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x43f2da
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x43f2da
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x43f2da
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x43f2d4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x43f2d6
xor bl, bl
mov al, bl
jmp 0x43f2dc
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x442c8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004288c0
mov eax, dword [0x46b140]
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.0043f062
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x442ccd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x442e44
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044f510
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46f5d0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00443acb
mov ecx, dword [esi*4 + 0x46f5d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x442e3d
cmp eax, dword [edi + ecx + 0x24]
jne 0x442e3d
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x442e3d
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00443acb
add esp, 0x14
cmp edx, esi
jl 0x442e3d
jg 0x442d98
cmp eax, esi
jb 0x442e3d
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x442e3d
jl 0x442dba
cmp dword [ebp - 0x1008], eax
ja 0x442e3d
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x442ddf
cmp ebx, esi
je 0x442e24
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x442e24
mov al, byte [ecx]
cmp al, 0xd
jne 0x442e05
lea eax, [edi - 1]
cmp ecx, eax
jae 0x442e11
cmp byte [ecx + 1], 0xa
jne 0x442e11
inc ecx
jmp 0x442e11
movzx eax, al
movsx eax, byte [eax + 0x46b400]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x442deb
cmp edx, ebx
jne 0x442deb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x442e42
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00427895
leave
ret
Function at 0x442f57
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46f5d0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x442f99
cmp byte [ebx], 0xa
jne 0x442f99
or byte [edi + eax + 0x28], 4
jmp 0x442f9e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4430a1
mov cl, byte [eax]
cmp cl, 0x1a
je 0x44307c
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x442fcd
mov eax, dword [ebp - 8]
jmp 0x442fed
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x443009
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x442fe7
add eax, 2
mov cl, 0xa
jmp 0x442fea
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x442faf
jmp 0x4430a1
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 0x443077
cmp dword [ebp - 0x10], 0
je 0x443077
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x46f5d0]
test byte [eax + edi + 0x28], 0x48
je 0x443056
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x443046
mov byte [esi], 0xa
jmp 0x4430a0
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x46f5d0]
mov byte [eax + edi + 0x2a], cl
jmp 0x4430a0
cmp byte [ebp - 1], 0xa
jne 0x443060
cmp esi, ebx
je 0x443041
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00443ae9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4430a1
mov byte [esi], 0xd
jmp 0x4430a0
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x46f5d0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x44309e
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4430a1
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4430aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x46f5d0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4430ee
push 0xa
pop esi
cmp word [ebx], si
jne 0x4430ee
or byte [eax + edi + 0x28], 4
jmp 0x4430f3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x44325e
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x443236
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x443140
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x44316a
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x443189
push 0xa
pop ebx
cmp word [edx], bx
jne 0x443157
push ebx
add eax, 4
pop edx
jmp 0x44315f
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x443105
jmp 0x44325e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x443231
cmp dword [ebp - 0x14], 0
je 0x443231
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x46f5d0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x44320d
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4431d5
mov word [esi], ax
jmp 0x44325b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x46f5d0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x46f5d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46f5d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x44325b
cmp word [ebp - 4], ax
jne 0x443217
cmp esi, ebx
je 0x4431cd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00443ae9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44325e
push 0xd
pop eax
jmp 0x4431cd
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x46f5d0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x443258
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x44325e
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4463da
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 0x446477
push ebx
push esi
call fcn.004463a3
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.00443ddd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x446424
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x446476
push edi
push eax
call fcn.00441580
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x446444
call fcn.00440660
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x446475
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00443ddd
add esp, 0x20
test eax, eax
jne 0x446463
push edi
call fcn.00440660
jmp 0x44646b
push ebx
call fcn.00440660
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 0x448e9d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043f6d1
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 0x448f0c
cmp esi, dword [ebp - 4]
je 0x448f07
cmp dword [ebp + 0xc], 0
je 0x448f07
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x448ee4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004489f2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x448f0e
xor eax, eax
inc eax
jmp 0x448f0e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x448f79
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46b140]
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.0043f6d1
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.0043f6d1
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 0x448ff0
cmp word [ecx], dx
je 0x448ff0
mov eax, dword [0x45ffcc]
push edi
dec eax
push eax
push 0x45feb8
call fcn.00448f12
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x449063
cmp word [eax], dx
je 0x449063
mov eax, dword [edi]
test eax, eax
je 0x449014
cmp word [eax], dx
je 0x449014
lea eax, [ebp - 0x10]
push eax
call fcn.004488f8
jmp 0x44901d
lea eax, [ebp - 0x10]
push eax
call fcn.00448993
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44908d
mov eax, dword [0x45feb4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x45fba8
call fcn.00448f12
add esp, 0xc
test al, al
je 0x44908d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x449058
cmp word [eax], di
je 0x449058
lea eax, [ebp - 0x10]
push eax
call fcn.004488f8
pop ecx
jmp 0x44908f
lea eax, [ebp - 0x10]
push eax
call fcn.00448993
jmp 0x449055
mov eax, dword [edi]
test eax, eax
je 0x44907a
cmp word [eax], dx
je 0x44907a
lea eax, [ebp - 0x10]
push eax
call fcn.004488ad
pop ecx
jmp 0x44908d
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 0x449158
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00448d97
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x449158
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x449158
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
test eax, eax
je 0x449158
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4490e5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00441208
test ebx, ebx
je 0x449153
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00441208
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x449158
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 0x449158
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044e22a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44915a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427895
leave
ret