Function at 0x418960
Capabilities:
Encode data using xor

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 0x49d19e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x4b8040]
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, ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], 1
call fcn.004440e0
mov esi, eax
test esi, esi
jne 0x418a87
movaps xmm1, xmmword [0x4b0cb0]
mov dword [ebp - 0x54], 0x383f273f
movd xmm0, dword [ebp - 0x54]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x50]
xorps xmm1, xmm0
andps xmm1, xmmword [0x4b0d40]
push ecx
push eax
packuswb xmm1, xmm1
lea eax, [ebp - 0x54]
packuswb xmm1, xmm1
mov ecx, edi
push eax
movd dword [ebp - 0x54], xmm1
call fcn.0041fcb0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x418a3d
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418a33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a81
push ecx
push edx
call fcn.004431bb
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0xf
jbe 0x418fa1
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418f97
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418f97
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 3
lea eax, [ebx + 0x20]
cmp dword [ebx + 0x34], 0xf
cmova eax, dword [ebx + 0x20]
push eax
push 0x2712
push esi
call fcn.00447060
add esp, 0xc
push 1
push 0x51
push esi
call fcn.00447060
add esp, 0xc
push str.keyauth.win
push 0x27c1
push esi
call fcn.00447060
add esp, 0xc
push 1
push 0x40
push esi
call fcn.00447060
add esp, 0xc
push 1
push 0xac
push esi
call fcn.00447060
add esp, 0xc
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0xf
cmova eax, dword [ebx + 8]
push eax
push 0x271f
push esi
call fcn.00447060
add esp, 0xc
push 0x4038c0
push 0x4e2b
push esi
call fcn.00447060
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x2711
push esi
call fcn.00447060
add esp, 0xc
push 0x415430
push 0x4e6f
push esi
call fcn.00447060
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push 0x272d
push esi
call fcn.00447060
add esp, 0xc
push esi
call fcn.00444140
add esp, 4
test eax, eax
je 0x418bf5
push eax
call fcn.00447c30
mov edx, eax
mov dword [ebp - 0x68], 0
mov ecx, edx
mov dword [ebp - 0x64], 0
xorps xmm0, xmm0
add esp, 4
movups xmmword [ebp - 0x78], xmm0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418ba7
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.0040e0d0
xor ecx, ecx
int 0x29
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x418bf2
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418be8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a81
push ecx
push edx
call fcn.004431bb
add esp, 8
mov edi, dword [ebp - 0x58]
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.0040d3d0
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebx + 0x20]
mov dword [ebp - 0xb8], esp
mov ecx, esp
push eax
call fcn.0040d3d0
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebx + 8]
mov ecx, esp
push eax
call fcn.0040d3d0
mov byte [ebp - 4], 3
call fcn.00419620
lea eax, [ebp - 0x48]
push eax
push 0x400022
push esi
call fcn.004440c0
add esp, 0x54
test eax, eax
jne 0x418e9b
mov ecx, dword [ebp - 0x48]
xor esi, esi
xor dl, dl
mov dword [ebp - 0x5c], esi
mov byte [ebp - 0x49], dl
cmp dword [ecx], esi
jle 0x418e0d
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
movaps xmm2, xmmword [0x4b0d40]
movaps xmm0, xmmword [0x4b0dc0]
nop dword [eax]
mov eax, dword [ecx + 4]
mov esi, dword [eax + esi*4]
test esi, esi
je 0x418df6
nop
movd eax, xmm0
movaps xmm1, xmmword [0x4b0cb0]
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x1000b17
mov word [ebp - 0x64], 0x16
mov byte [ebp - 0x62], 1
movd xmm0, eax
mov eax, 0x10
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x74]
andps xmm1, xmm2
punpcklbw xmm0, xmm0
packuswb xmm1, xmm1
punpcklwd xmm0, xmm0
packuswb xmm1, xmm1
psrad xmm0, 0x18
movd dword [ebp - 0x78], xmm1
movaps xmm1, xmmword [0x4b0cc0]
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x70]
punpcklbw xmm0, xmm0
andps xmm1, xmm2
punpcklwd xmm0, xmm0
packuswb xmm1, xmm1
psrad xmm0, 0x18
packuswb xmm1, xmm1
movd dword [ebp - 0x74], xmm1
movaps xmm1, xmmword [0x4b0cd0]
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x6c]
punpcklbw xmm0, xmm0
andps xmm1, xmm2
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
packuswb xmm1, xmm1
xorps xmm0, xmmword [0x4b0ce0]
andps xmm0, xmm2
packuswb xmm1, xmm1
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movd dword [ebp - 0x70], xmm1
movd dword [ebp - 0x6c], xmm0
nop word [eax + eax]
lea ecx, [eax + 0x51]
xor byte [ebp + eax - 0x78], cl
inc eax
cmp eax, 0x15
jb 0x418d60
lea eax, [ebp - 0x78]
mov byte [ebp - 0x62], 0
push eax
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x418dc2
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x7327371d
mov dword [ebp - 0x84], 0x36127626
mov dword [ebp - 0x80], 0x2c22283a
mov word [ebp - 0x7c], 0x29
mov byte [ebp - 0x7a], 1
call fcn.0041c3a0
lea eax, [ebp - 0x88]
push eax
push dword [esi]
call edi
add esp, 8
test eax, eax
je 0x418dc9
mov dl, 1
mov byte [ebp - 0x49], dl
jmp 0x418dcc
mov dl, byte [ebp - 0x49]
mov esi, dword [esi + 4]
movaps xmm2, xmmword [0x4b0d40]
movaps xmm0, xmmword [0x4b0dc0]
test esi, esi
jne 0x418c90
mov ecx, dword [ebp - 0x48]
movaps xmm2, xmmword [0x4b0d40]
movaps xmm0, xmmword [0x4b0dc0]
mov esi, dword [ebp - 0x5c]
inc esi
mov dword [ebp - 0x5c], esi
cmp esi, dword [ecx]
jl 0x418c80
test dl, dl
jne 0x418e98
movaps xmm0, xmmword [0x4b0e90]
lea ecx, [ebp - 0xb0]
movups xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x90], 0x10161b17
movaps xmm0, xmmword [0x4b0e00]
movups xmmword [ebp - 0xa0], xmm0
mov word [ebp - 0x8c], 0x100
call fcn.0041c200
push ecx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x78]
call fcn.0041fcb0
xor ecx, ecx
int 0x29
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x418e98
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418e8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418e8e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004431bb
add esp, 8
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x30]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov eax, 0xf
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x2c]
mov byte [ebp - 0x2c], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
cmp ecx, eax
jbe 0x418f09
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418efc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a81
push ecx
push edx
call fcn.004431bb
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp eax, 0xf
jbe 0x418f4e
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x418f44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a81
push ecx
push edx
call fcn.004431bb
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x418a3d
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418a33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a81
jmp 0x418a33
push ecx
push edx
call fcn.004431bb
add esp, 8
mov eax, edi
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.0044317d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret