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

Disassembly:
sub esp, 0x54
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
mov eax, dword [esi]
xor ebx, ebx
push edi
mov edi, ecx
cmp eax, ebx
je 0x461a6a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], ebx
mov ecx, ebx
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
lea ebp, [ecx + 4]
cmp ebp, eax
lea edx, [esi + 0x388]
jg 0x461a8e
mov eax, dword [esi + 0xc]
add eax, ecx
mov ecx, dword [eax]
mov dword [edx], ecx
add dword [esi + 0x14], 4
jmp 0x461aa5
sub eax, ecx
mov ebp, eax
mov eax, dword [esi + 0xc]
push ebp
add eax, ecx
push eax
push edx
call fcn.0049ff10
add esp, 0xc
add dword [esi + 0x14], ebp
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea ebp, [ecx + 4]
cmp ebp, eax
lea edx, [esi + 0x38c]
jg 0x461ac7
mov eax, dword [esi + 0xc]
add eax, ecx
mov ecx, dword [eax]
mov dword [edx], ecx
add dword [esi + 0x14], 4
jmp 0x461ade
sub eax, ecx
mov ebp, eax
mov eax, dword [esi + 0xc]
push ebp
add eax, ecx
push eax
push edx
call fcn.0049ff10
add esp, 0xc
add dword [esi + 0x14], ebp
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + 4]
cmp edx, eax
mov edx, dword [esi + 0xc]
lea ebp, [esi + 0x390]
jg 0x461b02
mov eax, dword [edx + ecx]
add edx, ecx
mov dword [ebp], eax
add dword [esi + 0x14], 4
jmp 0x461b1c
sub eax, ecx
push eax
add edx, ecx
push edx
push ebp
mov dword [esp + 0x20], eax
call fcn.0049ff10
mov eax, dword [esp + 0x20]
add esp, 0xc
add dword [esi + 0x14], eax
mov ecx, dword [esi + 0xc]
add ecx, 0xc
cmp byte [ecx], 0x54
jne 0x461b74
cmp byte [ecx + 1], 0x69
jne 0x461b74
cmp byte [ecx + 2], 0x6e
jne 0x461b74
cmp byte [ecx + 3], 0x6b
jne 0x461b74
mov eax, 4
mov edi, edi
mov edx, dword [edi + 0xec]
mov dl, byte [edx + ebx]
xor byte [ecx + eax], dl
mov edx, ebx
sub edx, dword [edi + 0xf0]
inc eax
neg edx
sbb edx, edx
and edx, ebx
inc edx
cmp eax, 0xe1f
mov ebx, edx
jl 0x461b40
mov al, 0x67
mov byte [ecx], 0x4f
mov byte [ecx + 1], al
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x53
lea eax, [esp + 0x28]
push eax
push esi
mov ecx, edi
call fcn.00460d90
test eax, eax
jne 0x461b9a
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049ef0f
add esp, 0x54
ret 4
mov ecx, dword [esi + 0x388]
test ecx, ecx
jne 0x461bb9
cmp dword [esi + 0x38c], ecx
jne 0x461bb9
cmp dword [ebp], ecx
jne 0x461bb9
mov dword [esi + 0x384], ecx
jmp 0x461bc3
mov dword [esi + 0x384], 1
cmp dword [esi + 0x384], 0
jne 0x461dd6
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 + 0x10c], eax
add eax, 0x1000
push eax
call fcn.00409bc0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push eax
push 0
push ecx
call fcn.0049e7a0
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 [0x4ed3dc]
mov dword [esp + 0x54], eax
mov word [esp + 0x32], dx
mov edx, dword [edi + 0x10c]
add esp, 0xc
lea eax, [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [0x4ed3e4]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x4ed3e8]
mov dword [esp + 0x44], edx
mov edx, dword [0x4ed3e0]
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.004610e0
mov eax, dword [esi]
push 2
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x24]
push edx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
call fcn.0049e7a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.0049ff10
mov edx, dword [esp + 0x28]
mov eax, dword [esi]
mov ecx, dword [eax]
add esp, 0x18
push ebx
push ebx
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
cmp dword [edi + 0x108], ebx
jne 0x461d6f
lea ecx, [esi + 0x318]
push ecx
push ebx
push esi
push 0x404550
jmp 0x461d7d
lea edx, [esi + 0x318]
push edx
push ebx
push esi
push 0x404550
push ebx
push ebx
call fcn.0049f592
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x28], eax
xor dword [edi + 0x108], 1
mov dword [esi + 0x320], ecx
xor edx, edx
mov eax, ecx
div dword [edi + 0x10c]
mov dword [esi + 0x328], ecx
mov eax, ecx
add esp, 0x18
mov dword [esi + 0x320], edx
xor edx, edx
div dword [edi + 0x10c]
mov eax, dword [esi + 0x324]
sub eax, ecx
push eax
mov ecx, esi
mov dword [esi + 0x328], edx
call fcn.004610e0
jmp 0x461ff2
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 0x461e01
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 + 0x10c], edx
mov eax, dword [esi + 0x310]
add eax, 0x1000
push eax
call fcn.00409bc0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
push 0
push edx
call fcn.0049e7a0
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 [0x4ed3dc]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x10c]
add esp, 0xc
mov word [esp + 0x24], cx
mov dword [esp + 0x44], eax
mov eax, dword [0x4ed3e0]
mov dword [esp + 0x50], edx
mov edx, dword [0x4ed3e8]
lea ecx, [esp + 0x18]
push 0
mov dword [esp + 0x50], ecx
mov ecx, dword [0x4ed3e4]
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.00461200
mov eax, dword [esi]
push 2
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x24]
push edx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
call fcn.0049e7a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.0049ff10
mov edx, dword [esp + 0x28]
mov eax, dword [esi]
mov ecx, dword [eax]
add esp, 0x18
push ebx
push ebx
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
cmp dword [edi + 0x108], ebx
jne 0x461fa0
lea ecx, [esi + 0x318]
push ecx
push ebx
push esi
push 0x404550
jmp 0x461fae
lea edx, [esi + 0x318]
push edx
push ebx
push esi
push 0x404550
push ebx
push ebx
call fcn.0049f592
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x28], eax
xor dword [edi + 0x108], 1
mov dword [esi + 0x328], ecx
mov eax, ecx
mov dword [esi + 0x320], ecx
xor edx, edx
div dword [edi + 0x10c]
mov eax, dword [esi + 0x324]
sub eax, ecx
add esp, 0x18
push eax
mov ecx, esi
mov dword [esi + 0x328], edx
call fcn.00461200
mov eax, dword [edi + 0x10c]
mov ecx, dword [esp + 0x60]
cdq
sub eax, edx
sar eax, 1
pop edi
mov dword [esi + 0x330], eax
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0049ef0f
add esp, 0x54
ret 4