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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, dword [ebx + 8]
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
test edi, edi
jle 0x43ba63
cmp edi, 2
jb 0x43b9dd
lea eax, [edi - 1]
lea eax, [edx + eax*4]
cmp ecx, eax
ja 0x43b93e
lea eax, [edi - 1]
add eax, ecx
cmp eax, edx
jae 0x43b9dd
movaps xmm0, xmmword [0x5baef0]
mov eax, edi
movaps xmm2, xmmword [0x5baea0]
and eax, 0xfffffffe
movaps xmm3, xmmword [0x5bad40]
mov edi, edx
mov dword [ebp - 0xc], eax
movaps xmmword [ebp - 0x20], xmm0
movsd xmm1, qword [edi + esi*4]
xorps xmm0, xmm0
movsd xmm0, xmm2
mulps xmm1, xmm0
xorps xmm0, xmm0
movsd xmm0, xmm3
addps xmm1, xmm0
cvtps2pd xmm0, xmm1
call fcn.0047bd10
movzx eax, word [ebp - 0x20]
mov ecx, dword [ebp - 8]
movaps xmm2, xmmword [0x5baea0]
movaps xmm3, xmmword [0x5bad40]
cvttpd2dq xmm0, xmm0
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x5bac10]
movd xmm0, eax
packuswb xmm1, xmm1
paddb xmm1, xmm0
movd eax, xmm1
mov word [esi + ecx], ax
add esi, 2
mov eax, esi
cmp esi, dword [ebp - 0xc]
jl 0x43b961
mov edi, dword [ebx + 8]
cmp eax, edi
jge 0x43ba63
mov edx, dword [ebp - 4]
movss xmm6, dword [0x5ba9d0]
movss xmm7, dword [0x5ba6ec]
movsd xmm5, qword [0x5ba9e0]
nop word [eax + eax]
movss xmm0, dword [edx + esi*4]
movaps xmm1, xmm5
movsd xmm3, qword [0x5baa60]
mulss xmm0, xmm6
addss xmm0, xmm7
cvtps2pd xmm4, xmm0
andps xmm3, xmm4
movaps xmm0, xmm4
xorps xmm0, xmm3
movaps xmm2, xmm4
cmpltsd xmm0, xmm5
andps xmm1, xmm0
orps xmm1, xmm3
addsd xmm2, xmm1
subsd xmm2, xmm1
movsd xmm1, qword [0x5ba840]
movaps xmm0, xmm2
subsd xmm0, xmm4
cmpnlesd xmm0, xmm3
andps xmm0, xmm1
subsd xmm2, xmm0
cvttsd2si eax, xmm2
add al, 0x7f
mov byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x43ba00
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44fa10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
nop
mov ebx, dword [ebx + 8]
mov dword [ebp - 8], ebx
cmp dword [ebx + 0x34], 0
je 0x44fb7e
mov esi, dword [ebx + 0x2c]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 8]
add edi, dword [ebx + 4]
mov edx, dword [esi + 0xc]
lea eax, [ecx + 0x1b]
add edx, eax
sub edi, eax
mov eax, dword [esi + 0x10]
add eax, dword [ebx + 0x1c]
push ecx
push eax
lea eax, [edi + 0x1b]
mov dword [ebp - 4], edx
push eax
call fcn.00459900
mov dword [edi], 0x5367674f
add esp, 0xc
mov byte [edi + 4], 0
movzx eax, byte [esi + 0x18]
mov byte [edi + 5], al
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov byte [edi + 6], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 7], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 8], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 9], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xa], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xb], cl
shrd ecx, eax, 8
mov byte [edi + 0xc], cl
shr eax, 8
shrd ecx, eax, 8
mov byte [edi + 0xd], cl
mov eax, dword [ebx]
mov byte [edi + 0xe], al
sar eax, 8
mov byte [edi + 0xf], al
sar eax, 8
mov byte [edi + 0x10], al
sar eax, 8
mov byte [edi + 0x11], al
mov eax, dword [esi + 0x1c]
mov byte [edi + 0x12], al
sar eax, 8
mov byte [edi + 0x13], al
sar eax, 8
mov byte [edi + 0x14], al
sar eax, 8
mov byte [edi + 0x15], al
movzx eax, byte [esi + 0x14]
xor esi, esi
mov byte [edi + 0x1a], al
xor eax, eax
mov dword [edi + 0x16], eax
cmp dword [ebp - 4], eax
jle 0x44fb1d
mov ebx, dword [ebp - 4]
nop
movzx edx, byte [esi + edi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x5b5580]
cmp esi, ebx
jl 0x44fb00
mov ebx, dword [ebp - 8]
mov ecx, eax
mov byte [edi + 0x16], al
shr ecx, 8
mov byte [edi + 0x17], cl
mov ecx, eax
shr eax, 0x18
mov byte [edi + 0x19], al
shr ecx, 0x10
mov byte [edi + 0x18], cl
dec dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
shl eax, 5
push eax
lea eax, [ecx + 0x20]
push eax
push ecx
call fcn.00459900
mov ebx, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
mov eax, dword [ebx + 0x1a0]
mov esi, dword [ebx + 0x6c]
mov ecx, esi
push edi
push dword [eax]
call dword [0x48013c]
call esi
add esp, 0xc
test eax, eax
je 0x44fa20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
test edx, edx
push edi
mov edi, ecx
mov ecx, 3
cmovns ecx, edx
mov dword [ebp - 0x10], ecx
cmp ecx, 0x14
jg 0x4543ba
lea eax, [ecx - 1]
cmp eax, 1
ja 0x454266
mov eax, dword [ebp + 0x10]
test dword [eax], ecx
jne 0x4543ba
push ebx
test esi, esi
mov ebx, 0x4878cc
mov ecx, edi
cmovne ebx, esi
mov dword [ebp - 0xc], ebx
call fcn.00454830
mov edx, ebx
mov dword [ebp - 4], eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x454283
sub edx, esi
mov dword [ebp - 8], 0
lea ecx, [edx + 0x2a]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4542af
mov eax, dword [ebp + 0xc]
pop ebx
pop edi
pop esi
mov dword [eax], 0xffffffe2
xor eax, eax
mov esp, ebp
pop ebp
ret
lea esi, [ecx + 0x10000]
mov ebx, ecx
push esi
push 0
call fcn.00460937
mov edi, eax
add esp, 8
test edi, edi
je 0x45430e
push dword [ebp - 4]
mov ecx, esi
mov dword [ebp - 8], edi
sub ecx, ebx
lea eax, [edi + ebx]
push ecx
push 1
push eax
call fcn.00465a96
add ebx, eax
add esp, 0x10
cmp ebx, esi
jb 0x454356
cmp esi, 0xffffffff
je 0x454333
cmp esi, 0x7fffffff
jbe 0x4542f9
or esi, 0xffffffff
jmp 0x4542fe
add esi, esi
or esi, 1
push esi
push edi
call fcn.00460937
mov edi, eax
add esp, 8
test edi, edi
jne 0x4542c8
push dword [ebp - 4]
call fcn.004607d1
push dword [ebp - 8]
call fcn.0046187c
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [eax], 0xffffffef
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call fcn.004607d1
push edi
call fcn.0046187c
mov eax, dword [ebp + 0xc]
add esp, 8
pop ebx
pop edi
mov dword [eax], 0xffffffe0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call fcn.0046612c
push dword [ebp - 4]
mov esi, eax
call fcn.004607d1
add esp, 8
test esi, esi
je 0x45438a
push edi
call fcn.0046187c
mov eax, dword [ebp + 0xc]
add esp, 4
pop ebx
pop edi
mov dword [eax], 0xffffffe0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x45432a
push dword [ebp + 0x10]
mov edx, ebx
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00453b70
push edi
mov esi, eax
call fcn.0046187c
add esp, 0x18
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], 0xffffffe0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x454ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
cmp edi, 8
jl 0x454b5f
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 3]
shl edx, 8
or edx, eax
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x5b7180]
xor edx, dword [eax*4 + 0x5b6d80]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x5b7580]
movzx eax, byte [esi + 6]
xor edx, dword [eax*4 + 0x5b5d80]
movzx eax, byte [esi + 5]
xor edx, dword [eax*4 + 0x5b6180]
movzx eax, byte [esi + 4]
xor edx, dword [eax*4 + 0x5b6580]
movzx eax, byte [esi + 7]
add esi, 8
xor edx, dword [eax*4 + 0x5b5980]
movzx eax, cl
xor edx, dword [eax*4 + 0x5b6980]
mov ecx, edx
sub ebx, 1
jne 0x454ad0
pop ebx
test edi, edi
je 0x454b7f
movzx eax, byte [esi]
lea esi, [esi + 1]
mov edx, ecx
shl ecx, 8
shr edx, 0x18
xor edx, eax
xor ecx, dword [edx*4 + 0x5b5980]
sub edi, 1
jne 0x454b63
pop edi
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x458645
Capabilities:
Parse pe header

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

Function at 0x465680
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0047a320
mov eax, dword [section..data]
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.004614df
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4656c2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46581e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047a170
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 + 0x5c4270]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046e794
mov ecx, dword [esi*4 + 0x5c4270]
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 0x465817
cmp eax, dword [ecx + edi + 0x24]
jne 0x465817
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 0x465817
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046e794
add esp, 0x14
test edx, edx
jl 0x465817
jg 0x46578d
test eax, eax
jb 0x465817
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x465817
jl 0x4657a7
cmp dword [ebp - 0x1008], eax
ja 0x465817
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4657c5
test ebx, ebx
je 0x4657fe
cmp ecx, edi
jae 0x4657fe
mov al, byte [ecx]
cmp al, 0xd
jne 0x4657df
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4657eb
cmp byte [ecx + 1], 0xa
jne 0x4657eb
inc ecx
jmp 0x4657eb
movzx eax, al
movsx eax, byte [eax + 0x5c3258]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4657c5
cmp edx, ebx
jne 0x4657c5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46581c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00457d6e
leave
ret

Function at 0x469f1b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x482750
push 0x482748
push str.FlsAlloc
push 0x1f
call fcn.00469d06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x469f4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x48013c]
call esi
jmp 0x469f55
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x469f99
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x482760
push 0x482758
push str.FlsGetValue
push 0x21
call fcn.00469d06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x469fd0
push dword [ebp + 8]
mov ecx, esi
call dword [0x48013c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x469fd8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x482768
push 0x482760
push str.FlsSetValue
push 0x22
call fcn.00469d06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46a012
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48013c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46e810
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 + 0x5c4270]
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 0x46e850
cmp byte [ebx], 0xa
jne 0x46e850
or byte [edi + eax + 0x28], 4
jmp 0x46e855
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 0x46e954
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46e937
inc eax
cmp dl, 0xd
je 0x46e881
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46e8a7
cmp eax, ecx
jae 0x46e8b5
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 0x46e869
jmp 0x46e954
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 0x46e932
cmp dword [ebp - 0x10], 0
je 0x46e932
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5c4270]
test byte [eax + edi + 0x28], 0x48
je 0x46e90c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46e8f7
mov byte [esi], dl
jmp 0x46e908
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5c4270]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46e954
cmp byte [ebp - 1], 0xa
jne 0x46e91b
cmp esi, ebx
jne 0x46e91b
mov byte [esi], 0xa
jmp 0x46e953
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046e7b2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46e954
mov byte [esi], 0xd
jmp 0x46e953
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5c4270]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46e951
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46e954
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46e95d
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 + 0x5c4270]
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 0x46e9a3
cmp word [ebx], dx
jne 0x46e9a3
or byte [eax + edi + 0x28], 4
jmp 0x46e9a8
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 0x46eb0b
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 0x46eaeb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46e9e9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46ea1f
cmp eax, edx
jae 0x46ea2d
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 0x46e9c4
jmp 0x46eb0b
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 0x46eae6
cmp dword [ebp - 0x18], 0
je 0x46eae6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5c4270]
test byte [eax + edi + 0x28], 0x48
je 0x46eabc
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 0x46ea80
mov word [esi], cx
jmp 0x46eab7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5c4270]
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 + 0x5c4270]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5c4270]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46eb0b
pop eax
cmp word [ebp - 4], ax
jne 0x46eacc
cmp esi, ebx
jne 0x46eacc
mov word [esi], ax
jmp 0x46eb08
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046e7b2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46eb0b
push 0xd
pop eax
jmp 0x46eac7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5c4270]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46eb05
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46eb0b
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 0x4708b1
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00470833
Function at 0x471b8e
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 0x471c2b
push ebx
push esi
call fcn.00471b57
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.00471aeb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x471bd8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x471c2a
push edi
push eax
call fcn.0046a6af
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x471bf8
call fcn.004699f3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x471c29
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00471aeb
add esp, 0x20
test eax, eax
jne 0x471c17
push edi
call fcn.004699f3
jmp 0x471c1f
push ebx
call fcn.004699f3
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 0x4743a4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0046be94
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 0x474413
cmp esi, dword [ebp - 4]
je 0x47440e
cmp dword [ebp + 0xc], 0
je 0x47440e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4743eb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00473ef6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x474415
xor eax, eax
inc eax
jmp 0x474415
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x47447a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
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.0046be94
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.0046be94
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 0x4744f1
cmp word [ecx], dx
je 0x4744f1
mov eax, dword [0x4842dc]
push edi
dec eax
push eax
push 0x4841c8
call fcn.00474419
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x474564
cmp word [eax], dx
je 0x474564
mov eax, dword [edi]
test eax, eax
je 0x474515
cmp word [eax], dx
je 0x474515
lea eax, [ebp - 0x10]
push eax
call fcn.00473dfc
jmp 0x47451e
lea eax, [ebp - 0x10]
push eax
call fcn.00473e97
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x47458e
mov eax, dword [0x4841c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x483eb8
call fcn.00474419
add esp, 0xc
test al, al
je 0x47458e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x474559
cmp word [eax], di
je 0x474559
lea eax, [ebp - 0x10]
push eax
call fcn.00473dfc
pop ecx
jmp 0x474590
lea eax, [ebp - 0x10]
push eax
call fcn.00473e97
jmp 0x474556
mov eax, dword [edi]
test eax, eax
je 0x47457b
cmp word [eax], dx
je 0x47457b
lea eax, [ebp - 0x10]
push eax
call fcn.00473db1
pop ecx
jmp 0x47458e
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 0x474659
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0047429e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x474659
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x474659
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x474659
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4745e6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0046a118
test ebx, ebx
je 0x474654
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0046a118
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x474659
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 0x474659
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004705b6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x47465b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457d6e
leave
ret