Function at 0x471160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9d94
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5569c0]
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 + 8]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 1
call fcn.004721e0
mov byte [ebp - 0x5c], al
mov ecx, edi
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00470a70
push esi
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00471c70
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00472380
test al, al
je 0x471aa1
mov edi, dword [ebp - 0x70]
mov ecx, 0
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x3c], esi
sub edi, esi
je 0x471244
mov ebx, dword [ebp - 0x88]
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea eax, [edx + edx*4]
sub eax, ecx
mov al, byte [eax + ebx + 4]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jb 0x471220
mov esi, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], esi
mov edi, 0x4eebb4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], edi
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
jne 0x471a08
mov ecx, dword [ebp - 0x70]
mov eax, 0xcccccccd
sub ecx, esi
mov dword [ebp - 0x78], 1
mul ecx
shr edx, 2
cmp edx, 1
jbe 0x4719ed
mov dword [ebp - 0x4c], 5
push 5
call fcn.004b259f
mov dword [ebp - 0x68], eax
or dword [ebp - 0x50], 2
mov dword [eax], 0
lea ecx, [eax + 5]
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ecx
movzx edx, byte [eax - 2]
movzx ecx, byte [eax]
movzx edi, byte [eax - 4]
movzx esi, byte [eax - 3]
or edi, 0x100
movzx eax, byte [eax - 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
and edx, 7
lea ecx, [ecx*2 + 8]
sub ecx, edx
mov eax, ecx
shr eax, 8
movzx eax, al
movzx ebx, byte [eax + 0x4ee4e8]
movzx eax, cl
movzx eax, byte [eax + 0x4ee4e8]
shl eax, 8
or ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
shl ebx, 8
movzx eax, byte [eax + 0x4ee4e8]
movzx edx, byte [ecx + 0x4ee4e8]
or ebx, eax
mov eax, ebx
mov dword [ebp - 0x34], ebx
shl eax, 8
or edx, eax
mov eax, edi
and eax, 7
mov ebx, edx
shr ebx, 0x13
mov al, byte [eax + 0x4ee4e0]
xor al, byte [esi + 0x4ee3e0]
mov esi, edi
movzx ecx, al
and edi, 1
mov eax, edx
shl edi, 8
shr eax, 1
xor edi, ecx
xor eax, edx
mov dword [ebp - 0x2c], edi
movzx ecx, byte [ecx + 0x4ee4e8]
shr eax, 3
xor eax, edx
shr esi, 1
shr eax, 7
xor eax, ebx
movzx eax, al
add ecx, eax
mov edi, eax
shl edi, 0x18
or edi, dword [ebp - 0x34]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
and eax, 7
mov al, byte [eax + 0x4ee4e0]
xor al, byte [esi + 0x4ee3e0]
mov esi, ecx
and ecx, 1
movzx edx, al
shl ecx, 8
shr esi, 1
xor ecx, edx
mov dword [ebp - 0x2c], ecx
mov eax, edi
shr eax, 3
mov ecx, edi
xor eax, edi
shr ecx, 0x13
shr eax, 7
xor eax, ebx
mov dword [ebp - 0x44], ecx
xor eax, ecx
shr edi, 8
movzx ecx, al
movzx eax, byte [edx + 0x4ee4e8]
mov ebx, ecx
add eax, ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
shr edx, 8
add edx, eax
shl ebx, 0x18
mov eax, ecx
mov dword [ebp - 0x48], edx
and eax, 7
or ebx, edi
mov al, byte [eax + 0x4ee4e0]
xor al, byte [esi + 0x4ee3e0]
mov esi, ecx
movzx edx, al
and ecx, 1
shl ecx, 8
mov eax, ebx
shr eax, 3
xor ecx, edx
xor eax, ebx
mov dword [ebp - 0x2c], ecx
shr eax, 7
mov ecx, ebx
xor eax, dword [ebp - 0x44]
shr ecx, 0x13
xor eax, ecx
mov dword [ebp - 0x40], ecx
movzx ecx, al
movzx eax, byte [edx + 0x4ee4e8]
mov edi, ecx
mov edx, dword [ebp - 0x48]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
shr edx, 8
add edx, eax
shr esi, 1
mov eax, ecx
shr ebx, 8
and eax, 7
shl edi, 0x18
or edi, ebx
mov dword [ebp - 0x44], edx
mov al, byte [eax + 0x4ee4e0]
xor al, byte [esi + 0x4ee3e0]
mov esi, ecx
movzx edx, al
and ecx, 1
shl ecx, 8
mov eax, edi
shr eax, 3
xor ecx, edx
xor eax, edi
mov dword [ebp - 0x2c], ecx
shr eax, 7
mov ecx, edi
xor eax, dword [ebp - 0x40]
shr ecx, 0x13
xor eax, ecx
mov dword [ebp - 0x38], ecx
movzx ecx, al
movzx eax, byte [edx + 0x4ee4e8]
mov ebx, ecx
mov edx, dword [ebp - 0x44]
shl ebx, 0x18
shr edi, 8
shr esi, 1
or ebx, edi
add eax, ecx
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
and ecx, 7
shr edx, 8
add edx, eax
movzx eax, byte [esi + 0x4ee3e0]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x40], edx
movzx ecx, byte [ecx + 0x4ee4e0]
xor ecx, eax
mov eax, ebx
shr eax, 0xa
mov dl, byte [ecx + 0x4ee4e8]
mov ecx, ebx
shr ecx, 0x13
xor cl, al
shr ebx, 7
xor cl, bl
mov ebx, dword [ebp - 0x40]
xor cl, byte [ebp - 0x38]
movzx eax, cl
shr ebx, 8
add ebx, eax
movzx eax, dl
add ebx, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], ebx
mov cl, byte [edi + eax + 3]
movzx eax, byte [edi + eax + 4]
mov dh, byte [eax + str.3s_ckv_6n.f]
xor dh, bl
mov ebx, dword [ebp - 0x4c]
xor dh, cl
mov byte [esi + 4], dh
movzx eax, byte [edi + ebx + 3]
mov ch, byte [eax + str.3s_ckv_6n.f]
xor ch, byte [ebp - 0x40]
xor ch, byte [edi + ebx + 2]
mov byte [esi + 3], ch
movzx eax, byte [edi + ebx + 2]
mov cl, byte [edi + ebx + 1]
mov bl, byte [eax + str.3s_ckv_6n.f]
mov eax, dword [ebp - 0x4c]
xor bl, cl
xor bl, byte [ebp - 0x44]
mov byte [esi + 2], bl
mov cl, byte [edi + eax]
movzx eax, byte [edi + eax + 1]
mov dl, byte [eax + str.3s_ckv_6n.f]
mov eax, dword [ebp - 0x4c]
xor dl, cl
xor dl, byte [ebp - 0x48]
mov byte [esi + 1], dl
movzx eax, byte [edi + eax]
mov cl, byte [eax + str.3s_ckv_6n.f]
xor cl, byte [ebp - 0x34]
xor cl, dh
movzx eax, dh
mov byte [esi], cl
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [ebp - 0x38]
xor al, ch
mov byte [esi + 4], al
movzx eax, byte [esi + 3]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, bl
xor al, byte [ebp - 0x40]
mov byte [esi + 3], al
movzx eax, byte [esi + 2]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, dl
xor al, byte [ebp - 0x44]
mov byte [esi + 2], al
movzx eax, byte [esi + 1]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, cl
xor al, byte [ebp - 0x48]
mov byte [esi + 1], al
movzx eax, cl
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [ebp - 0x34]
mov byte [esi], al
mov eax, dword [ebp - 0x74]
push 5
mov byte [ebp - 4], 4
mov dword [ebp - 0x7c], eax
call fcn.004b259f
mov dword [ebp - 0x3c], eax
add esp, 8
or dword [ebp - 0x50], 4
mov dword [eax], 0
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x68]
movzx edi, byte [esi]
movzx esi, byte [esi + 1]
or edi, 0x100
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 4]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
and edx, 7
lea ecx, [ecx*2 + 8]
sub ecx, edx
mov eax, ecx
shr eax, 8
movzx eax, al
movzx ebx, byte [eax + 0x4ee4e8]
movzx eax, cl
movzx eax, byte [eax + 0x4ee4e8]
shl eax, 8
or ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
shl ebx, 8
movzx eax, byte [eax + 0x4ee4e8]
movzx edx, byte [ecx + 0x4ee4e8]
or ebx, eax
mov eax, ebx
mov dword [ebp - 0x38], ebx
shl eax, 8
or edx, eax
mov eax, edi
and eax, 7
mov ebx, edx
shr ebx, 0x13
mov al, byte [eax + 0x4ee4e0]
xor al, byte [esi + 0x4ee3e0]
mov esi, edi
movzx ecx, al
and edi, 1
mov eax, edx
shl edi, 8
shr eax, 1
xor edi, ecx
xor eax, edx
mov dword [ebp - 0x2c], edi
movzx ecx, byte [ecx + 0x4ee4e8]
shr eax, 3
xor eax, edx
shr esi, 1
shr eax, 7
xor eax, ebx
movzx eax, al
add ecx, eax
mov edi, eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
and eax, 7
shl edi, 0x18
or edi, dword [ebp - 0x38]
mov al, byte [eax + 0x4ee4e0]
xor al, byte [esi + 0x4ee3e0]
mov esi, ecx
shr esi, 1
movzx edx, al
and ecx, 1
shl ecx, 8
mov eax, edi
shr eax, 3
xor ecx, edx
xor eax, edi
mov dword [ebp - 0x2c], ecx
shr eax, 7
mov ecx, edi
shr ecx, 0x13
xor eax, ecx
mov dword [ebp - 0x38], ecx
xor eax, ebx
shr edi, 8
movzx ecx, al
movzx eax, byte [edx + 0x4ee4e8]
mov ebx, ecx
add eax, ecx
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
shr edx, 8
add edx, eax
shl ebx, 0x18
mov eax, ecx
mov dword [ebp - 0x44], edx
and eax, 7
or ebx, edi
mov al, byte [eax + 0x4ee4e0]
xor al, byte [esi + 0x4ee3e0]
mov esi, ecx
movzx edx, al
and ecx, 1
shl ecx, 8
mov eax, ebx
xor ecx, edx
shr eax, 3
xor eax, ebx
mov dword [ebp - 0x2c], ecx
shr eax, 7
mov ecx, ebx
shr ecx, 0x13
xor eax, ecx
mov dword [ebp - 0x34], ecx
xor eax, dword [ebp - 0x38]
movzx ecx, al
movzx eax, byte [edx + 0x4ee4e8]
mov edi, ecx
mov edx, dword [ebp - 0x44]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
shr edx, 8
add edx, eax
shr esi, 1
mov eax, ecx
shr ebx, 8
and eax, 7
shl edi, 0x18
or edi, ebx
mov dword [ebp - 0x48], edx
mov al, byte [eax + 0x4ee4e0]
xor al, byte [esi + 0x4ee3e0]
mov esi, ecx
movzx edx, al
and ecx, 1
shl ecx, 8
mov eax, edi
shr eax, 3
xor ecx, edx
xor eax, edi
mov dword [ebp - 0x2c], ecx
shr eax, 7
mov ecx, edi
xor eax, dword [ebp - 0x34]
shr ecx, 0x13
xor eax, ecx
mov dword [ebp - 0x38], ecx
movzx ecx, al
mov ebx, ecx
shr esi, 1
shl ebx, 0x18
movzx eax, byte [edx + 0x4ee4e8]
add eax, ecx
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
and ecx, 7
shr edx, 8
add edx, eax
shr edi, 8
movzx eax, byte [esi + 0x4ee3e0]
or ebx, edi
mov esi, dword [ebp - 0x7c]
movzx ecx, byte [ecx + 0x4ee4e0]
xor ecx, eax
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edx
mov eax, ebx
shr eax, 0xa
mov dl, byte [ecx + 0x4ee4e8]
mov ecx, ebx
shr ecx, 0x13
xor cl, al
shr ebx, 7
xor cl, bl
mov ebx, dword [ebp - 0x34]
xor cl, byte [ebp - 0x38]
shr ebx, 8
movzx eax, cl
add ebx, eax
movzx eax, dl
add ebx, eax
movzx eax, byte [esi + 4]
mov dword [ebp - 0x38], ebx
mov dh, byte [eax + str.3s_ckv_6n.f]
xor dh, byte [esi + 3]
xor dh, bl
mov byte [edi + 4], dh
movzx eax, byte [esi + 3]
mov ch, byte [eax + str.3s_ckv_6n.f]
xor ch, byte [ebp - 0x34]
xor ch, byte [esi + 2]
mov byte [edi + 3], ch
movzx eax, byte [esi + 2]
mov bl, byte [eax + str.3s_ckv_6n.f]
xor bl, byte [ebp - 0x48]
xor bl, byte [esi + 1]
mov byte [edi + 2], bl
movzx eax, byte [esi + 1]
mov dl, byte [eax + str.3s_ckv_6n.f]
xor dl, byte [ebp - 0x44]
xor dl, byte [esi]
mov byte [edi + 1], dl
movzx eax, byte [esi]
mov cl, byte [eax + str.3s_ckv_6n.f]
xor cl, dh
movzx eax, dh
xor cl, byte [ebp - 0x40]
mov byte [edi], cl
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, ch
xor al, byte [ebp - 0x38]
mov byte [edi + 4], al
movzx eax, byte [edi + 3]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [ebp - 0x34]
xor al, bl
mov ebx, dword [ebp - 0x68]
mov byte [edi + 3], al
movzx eax, byte [edi + 2]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [ebp - 0x48]
xor al, dl
mov byte [edi + 2], al
movzx eax, byte [edi + 1]
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, cl
xor al, byte [ebp - 0x44]
mov byte [edi + 1], al
movzx eax, cl
mov al, byte [eax + str.3s_ckv_6n.f]
xor al, byte [ebp - 0x40]
mov byte [edi], al
mov edi, dword [ebp - 0x60]
sub edi, ebx
cmp edi, 5
je 0x4718b1
push 5
push dword [ebp - 0x3c]
call fcn.004b25cf
add esp, 8
jmp 0x471920
mov eax, dword [ebp - 0x3c]
mov esi, edi
mov edx, ebx
sub esi, 4
jb 0x4718d1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4718d6
add edx, 4
add eax, 4
sub esi, 4
jae 0x4718c0
cmp esi, 0xfffffffc
je 0x471909
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x471903
cmp esi, 0xfffffffd
je 0x471909
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x471903
cmp esi, 0xfffffffe
je 0x471909
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x471903
cmp esi, 0xffffffff
je 0x471909
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x471909
mov byte [ebp - 0x2d], 0
jmp 0x47190d
mov byte [ebp - 0x2d], 1
push 5
push dword [ebp - 0x3c]
call fcn.004b25cf
add esp, 8
cmp byte [ebp - 0x2d], 0
jne 0x47198d
mov byte [ebp - 4], 2
cmp edi, 0x1000
jb 0x471944
mov ecx, dword [ebx - 4]
mov edi, 0x28
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x471ad5
mov ebx, ecx
push edi
push ebx
call fcn.004b25cf
mov ecx, dword [ebp - 0x70]
mov eax, 0xcccccccd
mov esi, dword [ebp - 0x74]
add esp, 8
mov ebx, dword [ebp - 0x78]
sub ecx, esi
add dword [ebp - 0x4c], 5
inc ebx
mul ecx
mov dword [ebp - 0x68], 0
shr edx, 2
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x3c], esi
cmp ebx, edx
jb 0x471284
jmp 0x4719e7
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x68]
cmp ecx, eax
je 0x47199e
push edi
push ebx
call fcn.00451ec0
mov byte [ebp - 4], 2
cmp edi, 0x1000
jb 0x4719c2
mov ecx, dword [ebx - 4]
mov edi, 0x28
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x471ad5
mov ebx, ecx
push edi
push ebx
call fcn.004b25cf
mov esi, dword [ebp - 0x74]
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x3c], esi
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
add edi, 5
add ecx, 5
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], ecx
cmp ecx, 0x9b
jb 0x471253
test esi, esi
je 0x471a4e
mov ecx, dword [ebp - 0x6c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x471a2f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471ad5
push ecx
push esi
call fcn.004b25cf
add esp, 8
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x88]
test edx, edx
je 0x471a81
mov ecx, dword [ebp - 0x80]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x471a77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471ad5
push ecx
push edx
call fcn.004b25cf
add esp, 8
mov eax, ebx
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.004b25dd
mov esp, ebp
pop ebp
ret 8
push 0x3d
lea eax, [ebp - 0x28]
push str.authentication_failed__authentication_success_flag__ASF__is_0
push eax
call fcn.0043c590
add esp, 0xc
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.00446130
push 0x543bbc
lea eax, [ebp - 0x98]
push eax
call fcn.004b3d03
call fcn.004b789f
int3