Function at 0x46aa5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x518
mov edi, dword [ebp + 8]
mov dword [esp + 0x188], 0x60676665
xor eax, eax
nop
movzx ecx, byte [esp + eax + 0x188]
mov edx, eax
and edx, 1
mov esi, eax
and esi, 0xfffffffe
add esi, 0xff319399
xor esi, edx
lea esi, [esi + edx*2]
mov ebx, esi
and ebx, ecx
add ebx, ebx
mov edx, ebx
xor edx, esi
not esi
and esi, ebx
add esi, esi
sub edx, esi
add edx, ecx
mov ecx, edx
and ecx, 2
xor edx, 2
lea ecx, [edx + ecx*2]
inc cl
mov byte [esp + eax + 0x188], cl
inc eax
cmp eax, 4
jne 0x46aa5f0
mov eax, dword [esp + 0x188]
mov ecx, dword [0x46b91f4]
test ecx, ecx
je 0x46aa69a
xor edx, edx
mov esi, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x89c57e52
je 0x46aa670
inc edx
cmp ecx, edx
jne 0x46aa660
jmp 0x46aa69a
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x46aa69a
lea eax, [esp + 0x10]
push 2
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x1c
push ecx
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x28
test eax, eax
js 0x46aa936
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 0x188], 0x60676665
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x188]
mov eax, ecx
and eax, 1
mov esi, ecx
and esi, 0xfffffffe
add esi, 0xff319399
xor esi, eax
lea eax, [esi + eax*2]
mov ebx, eax
and ebx, edx
add ebx, ebx
mov esi, ebx
xor esi, eax
not eax
and eax, ebx
add eax, eax
sub esi, eax
add esi, edx
mov eax, esi
and eax, 2
xor esi, 2
lea eax, [esi + eax*2]
inc al
mov byte [esp + ecx + 0x188], al
inc ecx
cmp ecx, 4
jne 0x46aa6c0
mov esi, dword [esp + 0x188]
mov ecx, dword [0x46b91f4]
test ecx, ecx
je 0x46aa74c
xor eax, eax
mov edx, dword [0x46b91f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + eax*8], 0xc3cdc4a6
je 0x46aa740
inc eax
cmp ecx, eax
jne 0x46aa730
jmp 0x46aa74c
mov eax, dword [edx + eax*8 + 4]
cmp eax, esi
jne 0x46aa942
mov dword [esp], esi
mov eax, dword [esp + 0x190]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 0xc], eax
mov dword [esp + 0x68], 0x60676665
xor ecx, ecx
nop
movzx edx, byte [esp + ecx + 0x68]
mov eax, ecx
and eax, 1
mov ebx, ecx
and ebx, 0xfffffffe
add ebx, 0xff319399
xor ebx, eax
lea ebx, [ebx + eax*2]
mov esi, ebx
and esi, edx
add esi, esi
mov eax, esi
xor eax, ebx
not ebx
and ebx, esi
add ebx, ebx
sub eax, ebx
add eax, edx
mov edx, eax
and edx, 2
xor eax, 2
lea eax, [eax + edx*2]
inc al
mov byte [esp + ecx + 0x68], al
inc ecx
cmp ecx, 4
jne 0x46aa770
mov ecx, dword [0x46b91f4]
test ecx, ecx
mov esi, dword [esp]
je 0x46aa7fd
mov edx, dword [esp + 0x68]
xor eax, eax
mov ebx, dword [0x46b91f8]
nop
nop
cmp dword [ebx + eax*8], 0xb62b8d10
je 0x46aa7e0
inc eax
cmp ecx, eax
jne 0x46aa7d0
jmp 0x46aa7fd
mov eax, dword [ebx + eax*8 + 4]
cmp eax, edx
je 0x46aa7fd
push dword [esp + 4]
push 4
push eax
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x10
test esi, esi
js 0x46aa936
lea eax, [esp + 0x188]
push 0x20
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.046aa3d0
add esp, 0x10
test eax, eax
js 0x46aa936
lea eax, [esp + 0x10]
push 0x20
push eax
push dword [esp + 0x1ac]
push dword [esp + 0x1ac]
call fcn.046aa3d0
add esp, 0x10
test eax, eax
js 0x46aa936
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a4]
add eax, 0x10
mov dword [esp], eax
adc ecx, 0
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
jmp 0x46aa8ad
cmp cx, dx
je 0x46aa975
push esi
call fcn.046a6140
add esp, 4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, ecx
xor edx, dword [esp + 8]
mov esi, eax
xor esi, dword [esp]
or esi, edx
je 0x46aa936
push 0x68
lea edx, [esp + 0x6c]
push edx
push ecx
push eax
call fcn.046aa3d0
add esp, 0x10
test eax, eax
js 0x46aa936
movzx eax, word [esp + 0xc2]
push eax
call fcn.046a5ff0
add esp, 4
mov esi, eax
movzx eax, word [esp + 0xc2]
push eax
push esi
push dword [esp + 0xd4]
push dword [esp + 0xd4]
call fcn.046aa3d0
add esp, 0x10
test eax, eax
js 0x46aa889
xor eax, eax
nop
nop
nop
nop
nop
movzx ecx, word [edi + eax]
lea edx, [ecx - 0x41]
cmp dx, 0x1a
jae 0x46aa910
or ecx, 0x20
movzx edx, word [esi + eax]
lea ebx, [edx - 0x41]
cmp bx, 0x1a
jae 0x46aa920
or edx, 0x20
test cx, cx
je 0x46aa880
add eax, 2
cmp cx, dx
je 0x46aa900
jmp 0x46aa880
xor eax, eax
xor edx, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x188]
push 0
push 0x30
push ecx
push 0
push dword [esp + 0x14]
push 0x14
push eax
push dword [0x46b91fc]
call fcn.046a8f20
add esp, 0x20
mov dword [esp], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
jmp 0x46aa74f
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
push esi
call fcn.046a6140
mov edx, ebx
mov eax, edi
add esp, 4
jmp 0x46aa93a