Function at 0x462320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eab67
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x677000]
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 eax, dword [0x74e2f0]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
xor eax, eax
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], ebx
mov word [ebp - 0x428], ax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
push 0x3fe
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.005bb1c0
mov ecx, dword [0x74e2f4]
add esp, 0xc
lea eax, [ebp - 0x440]
push eax
push esi
push edi
lea ecx, [ecx + 0x2c]
call fcn.00414ba0
mov ecx, dword [ebp - 0x440]
test al, al
mov eax, dword [ebp - 0x43c]
je 0x462607
mov esi, ecx
cmp ecx, eax
je 0x462607
jmp 0x462420
mov eax, dword [ebp - 0x430]
mov edi, ebx
cmp ebx, eax
je 0x462460
lea esp, [esp]
cmp dword [edi + 0x14], 8
jb 0x462446
push dword [edi]
call fcn.0049500b
mov eax, dword [ebp - 0x430]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
add edi, 0x18
cmp edi, eax
jne 0x462430
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
mov dword [ebp - 0x430], ebx
call fcn.00461cb0
cmp dword [ebp - 0x414], 8
mov ebx, dword [ebp - 0x434]
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
cmp word [eax], 0x25
jne 0x4625f8
mov eax, dword [ebp - 0x418]
push 1
dec eax
push eax
lea ecx, [ebp - 0x428]
call fcn.00406540
push 1
push 0
lea ecx, [ebp - 0x428]
call fcn.00406540
mov ecx, dword [ebp - 0x430]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jb 0x4625df
cmp dword [ebx + 0x14], 8
jb 0x4624f4
mov eax, dword [ebx]
jmp 0x4624f6
mov eax, ebx
push eax
push 0x63b034
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push 0x200
push eax
call fcn.005b8769
mov ax, word [ebp - 0x410]
add esp, 0x14
xor ecx, ecx
test ax, ax
je 0x46254e
lea eax, [ebp - 0x410]
jmp 0x462530
xor word [eax], 2
lea ecx, [ecx + 1]
lea eax, [ebp - 0x410]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x462530
mov ax, word [ebp - 0x410]
xor ecx, ecx
mov dword [ebp - 0x448], 7
mov dword [ebp - 0x44c], 0
mov word [ebp - 0x45c], cx
test ax, ax
je 0x46258f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462580
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x45c]
call fcn.00406400
lea eax, [ebp - 0x45c]
push eax
mov byte [ebp - 4], 4
mov ecx, dword [0x74e2f4]
lea eax, [ebp - 0x428]
push eax
add ecx, 0xc
call fcn.00409f70
mov byte [ebp - 4], 3
cmp dword [ebp - 0x448], 8
jb 0x4625f8
push dword [ebp - 0x45c]
call fcn.0049500b
add esp, 4
jmp 0x4625f8
test eax, eax
jne 0x4625f8
mov ecx, dword [0x74e2f4]
lea eax, [ebp - 0x428]
push eax
add ecx, 0xc
call fcn.0040a590
add esi, 0x24
cmp esi, dword [ebp - 0x43c]
jne 0x462420
cmp dword [ebp - 0x414], 8
jb 0x46261e
push dword [ebp - 0x428]
call fcn.0049500b
add esp, 4
xor eax, eax
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
test ebx, ebx
je 0x462683
mov edi, dword [ebp - 0x430]
mov esi, ebx
cmp ebx, edi
je 0x46267a
jmp 0x462650
cmp dword [esi + 0x14], 8
jb 0x462660
push dword [esi]
call fcn.0049500b
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x462650
push ebx
call fcn.0049500b
add esp, 4
mov esi, dword [ebp - 0x440]
test esi, esi
je 0x4626aa
push dword [ebp - 0x444]
mov edx, dword [ebp - 0x43c]
push ecx
mov ecx, esi
call fcn.00416f10
push esi
call fcn.0049500b
add esp, 0xc
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.005b7f8f
mov esp, ebp
pop ebp
ret 8