Function at 0x46d3f8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push edi
lea eax, [ebp - 0x10]
mov edi, ecx
push eax
mov dword [ebp - 0x1c], edi
call fcn.0046c8ad
test eax, eax
je 0x46d8b8
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0046c8ad
test eax, eax
je 0x46d8b8
lea eax, [ebp - 0x60]
push eax
mov ecx, edi
call fcn.0046c8ad
test eax, eax
je 0x46d8b8
lea eax, [ebp - 0x58]
push eax
mov ecx, edi
call fcn.0046c8ad
test eax, eax
je 0x46d8b8
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.0046c813
test eax, eax
je 0x46d8b8
mov eax, dword [ebp - 0x44]
and eax, 7
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0046c813
test eax, eax
je 0x46d8b8
mov eax, dword [ebp - 0x28]
mov ecx, eax
and ecx, 1
push ebx
mov dword [ebp - 0x38], ecx
mov ebx, eax
mov ecx, eax
shr eax, 4
shr ecx, 3
and eax, 7
and ecx, 1
mov dword [ebp - 0x50], eax
shr ebx, 1
lea eax, [ebp - 8]
mov dword [ebp - 0x30], ecx
and ebx, 3
push eax
mov ecx, edi
mov dword [ebp - 0x3c], ebx
call fcn.0046c8ad
test eax, eax
je 0x46d8b7
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.0046c8ad
test eax, eax
je 0x46d8b7
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.0046c8ad
test eax, eax
je 0x46d8b7
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.0046c8ad
test eax, eax
je 0x46d8b7
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0046c86c
test eax, eax
je 0x46d8b7
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0046c86c
test eax, eax
je 0x46d8b7
cmp dword [ebp - 0x10], 0
je 0x46d8b7
cmp dword [ebp - 0xc], 0
je 0x46d8b7
mov ecx, 0x7fffffff
xor edx, edx
mov eax, ecx
div dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jae 0x46d8b7
cmp dword [ebp - 4], 0
je 0x46d8b7
xor edx, edx
mov eax, ecx
div dword [ebp - 4]
cmp dword [ebp - 8], eax
jae 0x46d8b7
cmp dword [ebp + 0x1c], 1
jne 0x46d8b7
mov eax, dword [ebp + 0x18]
push esi
push dword [eax]
mov ecx, edi
call fcn.0046c53f
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x54], esi
call dword [eax + 4]
cmp eax, 2
jne 0x46d8b6
mov eax, dword [esi + 8]
and dword [ebp - 0x2c], 0
xor ecx, ecx
inc ecx
cmp eax, ecx
jbe 0x46d5a4
inc dword [ebp - 0x2c]
add ecx, ecx
cmp ecx, eax
jb 0x46d59b
cmp dword [ebp - 0x38], 0
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
jne 0x46d5cd
push 0
push ebx
mov ecx, edi
call fcn.0046c600
mov ecx, dword [edi + 0x54]
call fcn.0046f776
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor esi, esi
cmp eax, esi
pop ecx
je 0x46d5f0
push dword [ebp - 0xc]
mov ecx, eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0046aca5
mov dword [ebp + 0x18], eax
jmp 0x46d5f3
mov dword [ebp + 0x18], esi
test byte [ebp - 0x28], 0x80
mov ecx, dword [ebp + 0x18]
je 0x46d603
call fcn.0046ae63
jmp 0x46d608
call fcn.0046ae48
cmp dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
je 0x46d6d7
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x46d633
push dword [ebp - 4]
mov ecx, eax
push dword [ebp - 8]
push esi
call fcn.0046aca5
mov dword [ebp - 0x24], eax
jmp 0x46d636
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
call fcn.0046ae48
cmp dword [ebp - 4], esi
mov dword [ebp + 0x1c], esi
jbe 0x46d6d7
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], esi
mov dword [ebp + 8], esi
jbe 0x46d6c0
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
neg ebx
mov edi, ecx
mov eax, dword [ebp - 0x48]
lea edx, [esi + eax]
mov eax, 0xffffff00
test eax, edx
jle 0x46d697
mov edx, esi
sar edx, 8
cmp edx, dword [ebp - 0x10]
jge 0x46d697
mov edx, dword [ebp - 0x4c]
add edx, edi
test eax, edx
jle 0x46d697
mov eax, edi
sar eax, 8
cmp eax, dword [ebp - 0xc]
jl 0x46d6a8
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.0046ac41
mov ecx, dword [ebp - 0x34]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add esi, dword [ebp - 0x18]
add edi, ebx
cmp eax, dword [ebp - 8]
jb 0x46d66b
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x1c]
xor esi, esi
mov eax, dword [ebp - 0x14]
inc dword [ebp + 0x1c]
add dword [ebp - 0x28], eax
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0x34], ecx
jb 0x46d659
mov esi, dword [ebp - 4]
imul esi, dword [ebp - 8]
shl esi, 2
push esi
call dword [sym.imp.msvcrt.dll_malloc]
push esi
push 0
push eax
mov dword [ebp + 8], eax
call sub.msvcrt.dll_memset
xor eax, eax
inc eax
add esp, 0x10
cmp eax, ebx
sbb eax, eax
or dword [ebp - 0x70], 0xffffffff
or dword [ebp - 0x6c], 0xffffffff
add eax, 3
mov dword [ebp - 0x80], eax
push 0xfffffffffffffffe
pop eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x7c], 0xfffffffd
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x2c], eax
js 0x46d7bc
push 0xffffffffffffffff
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x30]
push 0
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x38]
call fcn.0046b43d
xor edi, edi
and dword [ebp + 0x1c], edi
cmp dword [ebp - 4], edi
mov dword [ebp - 0x34], eax
jbe 0x46d7a3
xor ebx, ebx
cmp dword [ebp - 8], ebx
jbe 0x46d795
push dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
mov esi, dword [eax + edi*4]
push ebx
call fcn.0046abf5
mov ecx, esi
and ecx, 1
xor eax, ecx
lea ecx, [esi + esi]
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + edi*4], eax
inc edi
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x46d76a
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 4]
jb 0x46d763
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x46d7b0
mov eax, dword [ecx]
push 1
call dword [eax]
dec dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
jns 0x46d733
xor eax, eax
cmp dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x1c], eax
jbe 0x46d84e
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], esi
xor ebx, ebx
cmp dword [ebp - 8], ebx
jbe 0x46d834
cmp dword [ebp - 0x30], 0
je 0x46d7f6
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.0046abf5
test eax, eax
jne 0x46d81f
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x2c]
mov eax, edi
sar eax, 8
push eax
mov eax, esi
sar eax, 8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0xc]
push dword [ecx + eax*4]
mov ecx, dword [ebp + 0x18]
call fcn.0046af78
add esi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x14]
inc dword [ebp - 0x2c]
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x46d7e0
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
inc dword [ebp + 0x1c]
add esi, dword [ebp - 0x14]
add edi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
jb 0x46d7d9
mov edi, dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46d865
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [ebp + 0xc], 0
je 0x46d8ab
cmp dword [edi + 0x2c], 0xffffffff
mov esi, dword [ebp - 0x58]
jne 0x46d88a
mov eax, dword [ebp - 0xc]
add eax, esi
cmp eax, dword [edi + 0x30]
jbe 0x46d88a
push dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
push eax
call fcn.0046adc9
push dword [ebp - 0x5c]
mov ecx, dword [edi + 0x38]
push esi
push dword [ebp - 0x60]
mov esi, dword [ebp + 0x18]
push esi
call fcn.0046af78
test esi, esi
je 0x46d8b6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x46d8b6
push dword [ebp + 0x18]
mov ecx, dword [edi + 0x40]
call fcn.0046fb5f
pop esi
pop ebx
pop edi
leave
ret 0x18