Function at 0x4668e0
Capabilities:
Create thread
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x522d80]
xor eax, esp
mov dword [esp + 0x50], eax
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0xc], ebp
cmp dword [edi + 0x68], ebp
jne 0x466918
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00497565
add esp, 0x54
ret 4
mov eax, dword [esi]
cmp eax, ebp
je 0x466928
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], ebp
push ebx
lea ebx, [esi + 0xc]
lea eax, [esi + 0x388]
push 4
push eax
mov ecx, ebx
mov dword [ebx + 8], ebp
call fcn.00464980
lea eax, [esi + 0x38c]
push 4
push eax
mov ecx, ebx
call fcn.00464980
push 4
lea ebp, [esi + 0x390]
push ebp
mov ecx, ebx
call fcn.00464980
mov eax, dword [ebx]
add eax, 0xc
cmp byte [eax], 0x54
jne 0x4669bb
cmp byte [eax + 1], 0x69
jne 0x4669bb
cmp byte [eax + 2], 0x6e
jne 0x4669bb
cmp byte [eax + 3], 0x6b
jne 0x4669bb
mov ecx, 4
mov edx, dword [esp + 0x10]
mov ebx, dword [edi + 0x100]
mov bl, byte [ebx + edx]
xor byte [eax + ecx], bl
mov ebx, edx
sub ebx, dword [edi + 0x104]
inc ecx
neg ebx
sbb ebx, ebx
and ebx, edx
inc ebx
cmp ecx, 0xe1f
mov dword [esp + 0x10], ebx
jl 0x466980
mov cl, 0x67
mov byte [eax], 0x4f
mov byte [eax + 1], cl
mov byte [eax + 2], cl
mov byte [eax + 3], 0x53
lea eax, [esp + 0x28]
push eax
push esi
mov ecx, edi
call fcn.00465c10
test eax, eax
jne 0x4669e1
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00497565
add esp, 0x54
ret 4
mov ecx, dword [esi + 0x388]
test ecx, ecx
jne 0x466a00
cmp dword [esi + 0x38c], ecx
jne 0x466a00
cmp dword [ebp], ecx
jne 0x466a00
mov dword [esi + 0x384], ecx
jmp 0x466a0a
mov dword [esi + 0x384], 1
cmp dword [esi + 0x384], 0
jne 0x466c1d
movzx ecx, word [esp + 0x34]
mov eax, ecx
imul eax, dword [esp + 0x2c]
lea edx, [eax + eax*2]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
mov eax, ebx
xor edx, edx
div ecx
lea ebp, [esi + 0x18]
mov ecx, ebp
sub ebx, edx
lea eax, [ebx + ebx*2]
mov dword [edi + 0x12c], eax
add eax, 0x1000
push eax
call fcn.0040c4b0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push eax
push 0
push ecx
call fcn.00496bf0
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x36]
mov word [esp + 0x26], ax
movzx eax, word [esp + 0x40]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x3c]
mov word [esp + 0x30], ax
xor eax, eax
mov edx, 1
mov word [esp + 0x24], dx
mov dx, word [esp + 0x42]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4df90c]
mov dword [esp + 0x54], eax
mov word [esp + 0x32], dx
mov edx, dword [edi + 0x12c]
add esp, 0xc
lea eax, [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [0x4df914]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x4df918]
mov dword [esp + 0x44], edx
mov edx, dword [0x4df910]
push 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esi + 0x32c], ebx
mov eax, dword [edi + 0x68]
push esi
mov dword [esp + 0x5c], edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x24
mov dword [esp + 0x48], 0x18182
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push eax
call edx
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.00465f60
mov eax, dword [esi]
push 2
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push ebx
push edx
call fcn.00496bf0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.00498550
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
mov ecx, dword [eax]
add esp, 0x18
push ebx
push ebx
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
cmp dword [edi + 0x128], ebx
jne 0x466bb6
lea ecx, [esi + 0x318]
push ecx
push ebx
push esi
push 0x405cc0
jmp 0x466bc4
lea edx, [esi + 0x318]
push edx
push ebx
push esi
push 0x405cc0
push ebx
push ebx
call fcn.00497ab8
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
xor dword [edi + 0x128], 1
mov dword [esi + 0x320], ecx
xor edx, edx
mov eax, ecx
div dword [edi + 0x12c]
mov dword [esi + 0x328], ecx
mov eax, ecx
add esp, 0x18
mov dword [esi + 0x320], edx
xor edx, edx
div dword [edi + 0x12c]
mov eax, dword [esi + 0x324]
sub eax, ecx
push eax
mov ecx, esi
mov dword [esi + 0x328], edx
call fcn.00465f60
jmp 0x466e39
movzx eax, word [esp + 0x34]
mov edx, eax
imul edx, ecx
mov ecx, dword [esi + 0x38c]
imul ecx, eax
mov dword [esi + 0x38c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x388], edx
cmp dword [ebp], ecx
jae 0x466c48
mov dword [ebp], ecx
mov ecx, dword [ebp]
imul ecx, eax
mov eax, 0xaaaaaaab
mul ecx
mov ebx, edx
mov eax, ecx
xor edx, edx
shr ebx, 1
div ebx
mov dword [ebp], ecx
lea ebp, [esi + 0x18]
mov ecx, ebp
sub ebx, edx
lea edx, [ebx + ebx*2]
mov dword [edi + 0x12c], edx
mov eax, dword [esi + 0x310]
add eax, 0x1000
push eax
call fcn.0040c4b0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
push 0
push edx
call fcn.00496bf0
movzx ecx, word [esp + 0x36]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, 1
mov word [esp + 0x24], ax
mov ax, word [esp + 0x42]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3c]
mov word [esp + 0x32], ax
xor eax, eax
mov word [esp + 0x26], cx
movzx ecx, word [esp + 0x40]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], edx
mov edx, dword [0x4df90c]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x12c]
add esp, 0xc
mov word [esp + 0x24], cx
mov dword [esp + 0x44], eax
mov eax, dword [0x4df910]
mov dword [esp + 0x50], edx
mov edx, dword [0x4df918]
lea ecx, [esp + 0x18]
push 0
mov dword [esp + 0x50], ecx
mov ecx, dword [0x4df914]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], edx
mov dword [esi + 0x32c], ebx
mov eax, dword [edi + 0x68]
push esi
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0x24
mov dword [esp + 0x48], 0x18182
mov dword [esp + 0x60], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.00466080
mov eax, dword [esi]
push 2
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push ebx
push edx
call fcn.00496bf0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.00498550
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
mov ecx, dword [eax]
add esp, 0x18
push ebx
push ebx
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
cmp dword [edi + 0x128], ebx
jne 0x466de7
lea ecx, [esi + 0x318]
push ecx
push ebx
push esi
push 0x405cc0
jmp 0x466df5
lea edx, [esi + 0x318]
push edx
push ebx
push esi
push 0x405cc0
push ebx
push ebx
call fcn.00497ab8
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
xor dword [edi + 0x128], 1
mov dword [esi + 0x328], ecx
mov eax, ecx
mov dword [esi + 0x320], ecx
xor edx, edx
div dword [edi + 0x12c]
mov eax, dword [esi + 0x324]
sub eax, ecx
add esp, 0x18
push eax
mov ecx, esi
mov dword [esi + 0x328], edx
call fcn.00466080
mov eax, dword [edi + 0x12c]
mov ecx, dword [esp + 0x60]
cdq
sub eax, edx
pop ebx
sar eax, 1
pop edi
mov dword [esi + 0x330], eax
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00497565
add esp, 0x54
ret 4