Function at 0x46bc60
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4c929b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4eadc8]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eadc8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
mov esi, ecx
push esi
mov edi, edx
mov dword [esp + 0x2c], ebp
call fcn.0046d340
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esi + 0x54]
call fcn.004024d0
push 4
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
mov dword [esp + 0x34], 0x494e41
mov byte [esp + 0x23], 3
call fcn.004777d1
mov ecx, 0x4e0d20
lea eax, [esp + 0x2c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46bcf5
test dl, dl
je 0x46bcf1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46bcf5
add eax, 2
add ecx, 2
test dl, dl
jne 0x46bcd5
xor eax, eax
jmp 0x46bcfa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46bd17
push 0x4e0d38
push 0x4dcc88
call fcn.00476f98
add esp, 8
xor al, al
jmp 0x46c053
push 1
lea ecx, [esp + 0x1f]
push ecx
mov ecx, ebp
call fcn.004777d1
push 1
push esi
mov ecx, ebp
call fcn.004777d1
lea eax, [esi + 1]
push 1
push eax
mov ecx, ebp
call fcn.004777d1
lea eax, [esi + 2]
push 1
push eax
mov ecx, ebp
call fcn.004777d1
lea eax, [esi + 3]
push 1
push eax
mov ecx, ebp
call fcn.004777d1
cmp byte [esp + 0x1b], 6
jne 0x46bd6b
push 4
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.004777d1
push 2
lea edi, [esi + 6]
push edi
mov ecx, ebp
call fcn.004777d1
push 2
lea eax, [esi + 8]
push eax
mov ecx, ebp
call fcn.004777d1
push 2
lea ecx, [esi + 0xa]
push ecx
mov ecx, ebp
call fcn.004777d1
push 1
lea edx, [esi + 4]
push edx
mov ecx, ebp
call fcn.004777d1
push 0xe
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.004777d1
movsx ecx, word [edi]
movzx edx, byte [esi]
push ecx
push edx
call fcn.0046d280
push 0x20
lea eax, [esi + 0xc]
push eax
mov ecx, ebp
call fcn.004777d1
mov al, byte [esp + 0x1b]
cmp al, 3
jne 0x46bde6
movsx ecx, word [edi]
mov edx, dword [esi + 0x30]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
mov ecx, ebp
call fcn.004777d1
jmp 0x46be0b
cmp al, 4
jb 0x46be0b
xor eax, eax
xor ebx, ebx
cmp ax, word [edi]
jge 0x46be0b
mov ecx, dword [esi + 0x30]
lea eax, [ecx + ebx*8]
push 8
push eax
mov ecx, ebp
call fcn.004777d1
movsx edx, word [edi]
inc ebx
cmp ebx, edx
jl 0x46bdf3
xor eax, eax
xor ebx, ebx
cmp ax, word [edi]
jge 0x46be3c
jmp 0x46be20
mov ecx, dword [esi + 0x30]
movzx edx, word [ecx + ebx*8 + 2]
mov ecx, dword [0x68910c]
push edx
call fcn.0046d6f0
movsx eax, word [edi]
inc ebx
cmp ebx, eax
jl 0x46be20
cmp byte [esi], 0
mov dword [esp + 0x24], 0
jbe 0x46bfa5
lea edi, [esi + 0x34]
mov dword [esp + 0x20], edi
cmp dword [edi - 0x28], 0
je 0x46bf8a
xor ecx, ecx
xor ebx, ebx
cmp cx, word [esi + 6]
jge 0x46bf8a
lea esp, [esp]
mov edx, dword [edi]
cmp dword [edx + ebx*4], 0
lea eax, [edx + ebx*4]
je 0x46bf1b
mov ebp, dword [eax]
test ebp, ebp
je 0x46bf17
xor ecx, ecx
xor eax, eax
mov word [ebp + 2], cx
xor edx, edx
mov word [ebp + 6], cx
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov byte [ebp], al
mov word [ebp + 4], dx
mov word [ebp + 8], dx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x46bec7
call fcn.0047de20
mov eax, dword [esp + 0x1c]
push eax
call fcn.0048d634
add esp, 4
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x46bee9
call fcn.0047de20
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0048d634
add esp, 4
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x46bf0b
call fcn.0047de20
mov edx, dword [esp + 0x1c]
push edx
call fcn.0048d634
add esp, 4
xor eax, eax
push ebp
mov dword [ebp + 0x10], eax
call fcn.0048d634
add esp, 4
mov ebp, dword [esp + 0x28]
mov eax, dword [edi]
push 0x20
mov dword [eax + ebx*4], 0
call fcn.0048d65a
add esp, 4
xor ecx, ecx
cmp eax, ecx
je 0x46bf59
xor edx, edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov byte [eax], cl
mov word [eax + 2], dx
mov word [eax + 4], dx
mov word [eax + 6], dx
mov word [eax + 8], dx
mov dword [eax + 0x14], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
jmp 0x46bf5b
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov ecx, dword [edi]
mov dword [ecx + ebx*4], eax
movzx edx, byte [esi + 1]
mov eax, dword [edi]
mov ecx, dword [eax + ebx*4]
push edx
mov edi, ebp
call fcn.0046f8d0
movsx ecx, word [esi + 6]
mov edi, dword [esp + 0x20]
inc ebx
cmp ebx, ecx
jl 0x46be70
mov eax, dword [esp + 0x24]
movzx edx, byte [esi]
inc eax
add edi, 4
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jl 0x46be54
cmp byte [esp + 0x1b], 4
jb 0x46bfe3
push 4
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.004777d1
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jge 0x46bfe3
mov edx, 0x14ad
lea esp, [esp]
mov ecx, dword [esi + 0x30]
xor dword [ecx + eax*8 + 4], edx
lea ecx, [ecx + eax*8]
movsx ecx, word [esi + 6]
inc eax
cmp eax, ecx
jl 0x46bfd0
mov al, byte [esi + 3]
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x46c02e
jbe 0x46c051
movsx ebx, word [esi + 6]
movzx edi, byte [esi + 2]
jmp 0x46c000
cmp ecx, ebx
jge 0x46c021
mov eax, dword [esi + 0x30]
lea eax, [eax + ecx*8 + 4]
jmp 0x46c010
mov ebp, dword [eax]
add dword [esi + 0x2c], ebp
movsx ebp, word [esi + 6]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x46c010
movzx eax, byte [esi + 3]
inc edx
cmp edx, eax
mov ecx, edi
jl 0x46c000
jmp 0x46c051
cmp dx, word [esi + 6]
jge 0x46c051
mov eax, dword [esi + 0x30]
add eax, 4
lea ebx, [ebx]
mov edx, dword [eax]
add dword [esi + 0x2c], edx
movsx edx, word [esi + 6]
inc ecx
add eax, 8
cmp ecx, edx
jl 0x46c040
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0048d5a8
add esp, 0x3c
ret 4