Function at 0x461340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov ebx, eax
mov edi, dword [eax + 0xb4]
mov eax, dword [edx + 0xb4]
mov dword [ebp - 0x7c], eax
mov esi, edx
mov eax, dword [edi + 4]
mov dword [ebp - 0x94], ecx
cmp dword [eax + 4], 5
je 0x461380
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
cmp dword [eax + 4], 5
jne 0x46136e
mov eax, dword [ebx + 0xac]
mov edx, dword [esi + 0xac]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
jne 0x46136e
push ecx
push ecx
push ebx
push edi
call fcn.0044b5c0
mov ebx, dword [ebp - 0x7c]
mov dword [ebp - 0x48], eax
pop eax
pop edx
push esi
push ebx
call fcn.0044b5c0
add esp, 0x10
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x48], 0xfffffeff
je 0x46136e
cmp eax, 0xfffffeff
je 0x46136e
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0xa0]
mov dword [ebp - 0x90], ecx
xor edx, edx
mov eax, dword [eax + 0x1ac]
mov ebx, dword [ebp - 0x90]
mov ecx, dword [eax + 0x178]
xor eax, eax
mov al, byte [ecx + 5]
push edx
push eax
mov ecx, dword [ebx + 0x7c]
push ecx
mov edx, dword [ebx + 0x78]
push edx
call fcn.0049b400
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov esi, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
add esp, 0x10
mov esi, dword [esi + 0xa0]
xor edx, edx
mov eax, dword [eax + 0x1ac]
mov dword [ebp - 0x8c], esi
mov ecx, dword [eax + 0x178]
xor eax, eax
mov al, byte [ecx + 5]
push edx
push eax
mov eax, dword [esi + 0x7c]
push eax
mov eax, dword [esi + 0x78]
push eax
call fcn.0049b400
mov ebx, dword [ebp - 0x74]
add esp, 0x10
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
or ebx, dword [ebp - 0x78]
je 0x46136e
or edx, eax
je 0x46136e
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x68], 0
mov esi, dword [esi + 0x324]
mov dword [ebp - 0x60], esi
mov esi, dword [eax + 0x324]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x461b36
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], esi
test eax, eax
je 0x4618cd
mov dword [ebp - 0x64], 0
test esi, esi
je 0x4618cd
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x46164d
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x46164d
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
add ecx, 0x18
mov dword [ebp - 0x20], 0
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], 0
or edx, eax
je 0x461544
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add edx, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x34]
adc ecx, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x48]
shrd edx, ecx, 1
shr ecx, 1
lea eax, [edx + edx]
add eax, edx
lea eax, [ebx + eax*8]
cmp esi, dword [eax + 0x10]
jb 0x461628
jbe 0x461b22
add edx, 1
adc ecx, 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x9c]
cmp dword [ebp - 0x1c], ecx
jb 0x4614f2
jbe 0x461639
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
add ecx, 0x18
mov dword [ebp - 0x40], 0
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], 0
or edx, eax
je 0x4615d2
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
add edx, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0x24]
adc ecx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0x44]
shrd edx, ecx, 1
shr ecx, 1
lea eax, [edx + edx]
add eax, edx
lea ebx, [ebx + eax*8]
mov dword [ebp - 0x88], ebx
cmp esi, dword [ebx + 0x10]
jb 0x46161a
jbe 0x4616e2
add edx, 1
adc ecx, 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0xa4]
cmp dword [ebp - 0x3c], eax
jb 0x461582
jbe 0x461609
xor ebx, ebx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4615ea
sub esp, 0xc
mov eax, dword [ebp - 0x68]
push eax
call fcn.004a3a08
add esp, 0x10
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x461370
sub esp, 0xc
mov edi, dword [ebp - 0x64]
push edi
call fcn.004a3a08
add esp, 0x10
jmp 0x461370
mov edx, dword [ebp - 0xa8]
cmp dword [ebp - 0x40], edx
jb 0x461582
jmp 0x4615d2
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], ecx
jmp 0x4615c5
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], ecx
jmp 0x461533
mov ebx, dword [ebp - 0xa0]
cmp dword [ebp - 0x20], ebx
jb 0x4614f2
jmp 0x461544
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
shld edx, eax, 3
shl eax, 3
push ecx
push ecx
push edx
push eax
call fcn.0040c040
mov dword [ebp - 0x58], eax
pop eax
mov eax, dword [ebp - 0x70]
pop edx
mov edx, dword [ebp - 0x6c]
shld edx, eax, 3
shl eax, 3
push edx
push eax
call fcn.0040c040
mov esi, dword [ebp - 0x58]
add esp, 0x10
mov dword [ebp - 0x54], eax
test esi, esi
je 0x461896
test eax, eax
je 0x461896
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x68]
shl eax, 5
mov dword [ebp - 0x18], 0
add edx, eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x68], edx
jae 0x46193a
mov ecx, dword [ebp - 0x68]
jmp 0x4616c7
add ecx, 0x20
cmp edx, ecx
jbe 0x46193a
mov ebx, dword [ebp - 0x48]
cmp ebx, dword [ecx + 0x18]
jne 0x4616bc
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x58]
mov dword [esi + eax*8], ecx
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0
jmp 0x4616bc
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x4c]
or edx, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
je 0x4615d2
mov esi, ebx
or esi, ecx
je 0x4615d2
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
xor edx, ebx
xor eax, ecx
or edx, eax
jne 0x4615d2
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
shld esi, ebx, 3
shl ebx, 3
push eax
push eax
push esi
push ebx
call fcn.0040c040
pop ecx
mov dword [ebp - 0x58], eax
pop eax
push esi
push ebx
call fcn.0040c040
mov edx, dword [ebp - 0x58]
add esp, 0x10
mov dword [ebp - 0x54], eax
test edx, edx
je 0x461896
test eax, eax
je 0x461896
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x84], esi
shl esi, 3
mov ebx, dword [ecx]
mov dword [ebp - 0x80], esi
add esi, ebx
mov dword [ebp - 0x38], esi
cmp ebx, esi
jae 0x46179b
mov esi, dword [ebp - 0x58]
mov dword [esi], ebx
push eax
mov eax, dword [ebx]
add ebx, 8
push eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x80]
push eax
push edi
call fcn.00457910
add esp, 0x10
mov dword [esi + 4], eax
add esi, 8
cmp dword [ebp - 0x38], ebx
ja 0x461771
mov edx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x80]
mov ebx, dword [edx]
add edi, ebx
cmp ebx, edi
jae 0x4617db
mov esi, dword [ebp - 0x54]
mov dword [esi], ebx
push eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x8c]
push eax
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ecx + 0x80]
add ebx, 8
push ecx
push edx
call fcn.00457910
add esp, 0x10
mov dword [esi + 4], eax
add esi, 8
cmp edi, ebx
ja 0x4617af
mov eax, dword [ebp - 0x84]
push 0x460c20
push 8
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.msvcrt.dll_qsort
mov eax, dword [ebp - 0x84]
push 0x460c20
push 8
push eax
mov eax, dword [ebp - 0x54]
push eax
call sub.msvcrt.dll_qsort
mov ebx, dword [ebp - 0x4c]
add esp, 0x20
or ebx, dword [ebp - 0x50]
je 0x461adc
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov eax, dword [esi]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
cmp ax, word [edx + 4]
jne 0x461896
mov ecx, esi
mov edi, dword [ebp - 0x54]
xor ebx, ebx
xor esi, esi
jmp 0x461880
add ebx, 1
mov edx, dword [ebp - 0x4c]
adc esi, 0
mov eax, dword [ebp - 0x50]
xor edx, esi
xor eax, ebx
or edx, eax
je 0x461adc
lea eax, [ebx*8]
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
add ecx, eax
add edi, eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + ebx*8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + ebx*8]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 4]
cmp ax, word [edx + 4]
jne 0x461896
push eax
push eax
mov eax, dword [edi + 4]
push eax
mov edi, dword [ecx + 4]
push edi
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
je 0x461836
xor ebx, ebx
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x4618ae
sub esp, 0xc
mov eax, dword [ebp - 0x58]
push eax
call fcn.004a3a08
add esp, 0x10
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4615d4
sub esp, 0xc
mov eax, dword [ebp - 0x54]
push eax
call fcn.004a3a08
add esp, 0x10
jmp 0x4615d4
mov eax, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x70]
add eax, 0x58
mov ecx, dword [ebp - 0x7c]
push esi
push 0
push 0
push 0
push 0
push ebx
push eax
push ecx
call fcn.0044cfa0
add esp, 0x20
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4615d2
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x46164d
mov ecx, dword [ebp - 0x94]
test byte [ecx + 4], 2
jne 0x4614ac
mov esi, dword [ebp - 0x7c]
mov ecx, eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
mov ebx, dword [esi + 0xa0]
call fcn.00461090
mov dword [ebp - 0x5c], eax
mov dword [ebx + 0x324], eax
jmp 0x4614ac
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x64]
shl eax, 5
add edx, eax
cmp dword [ebp - 0x64], edx
jae 0x461896
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
jmp 0x46196e
add ecx, 0x20
cmp edx, ecx
jbe 0x461998
mov eax, dword [ebp - 0x44]
cmp eax, dword [ecx + 0x18]
jne 0x461967
mov ebx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0xac], ebx
mov dword [esi + ebx*8], ecx
add dword [ebp - 0xb8], 1
adc dword [ebp - 0xb4], 0
jmp 0x461967
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x18]
je 0x461896
mov edx, dword [ebp - 0xb4]
or edx, dword [ebp - 0xb8]
je 0x461896
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xb8]
xor edx, ebx
xor eax, ecx
or edx, eax
jne 0x461896
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x58]
push eax
mov esi, dword [ebp - 0x90]
mov eax, dword [ecx + ebx*8]
mov eax, dword [eax + 0x10]
push eax
mov esi, dword [esi + 0x80]
push esi
push edi
call fcn.00457910
mov edx, dword [ebp - 0x58]
add dword [ebp - 0x30], 1
adc dword [ebp - 0x2c], 0
mov dword [edx + ebx*8 + 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
xor edx, ebx
xor eax, ecx
add esp, 0x10
or edx, eax
jne 0x4619e2
xor esi, esi
xor edi, edi
mov ecx, dword [ebp - 0x54]
push eax
mov eax, dword [ecx + esi*8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x80]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00457910
mov edx, dword [ebp - 0x54]
mov dword [edx + esi*8 + 4], eax
add esi, 1
adc edi, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
xor edx, edi
xor eax, esi
add esp, 0x10
or edx, eax
jne 0x461a2d
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x58]
push 0x460c20
push 8
push esi
push ebx
call sub.msvcrt.dll_qsort
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x54]
push 0x460c20
push 8
push ecx
push edx
call sub.msvcrt.dll_qsort
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add esp, 0x20
mov eax, dword [edx]
mov edx, dword [ecx]
mov eax, dword [eax + 0x14]
cmp ax, word [edx + 0x14]
jne 0x461896
mov edi, dword [ebp - 0x58]
xor ebx, ebx
xor esi, esi
push eax
push eax
mov eax, dword [ecx + 4]
push eax
mov ecx, dword [edi + 4]
push ecx
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x461896
add ebx, 1
adc esi, 0
cmp esi, dword [ebp - 0x14]
jb 0x461aeb
jbe 0x461ae6
mov ebx, 1
jmp 0x461898
cmp ebx, dword [ebp - 0x18]
jae 0x461adc
lea eax, [ebx*8]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add edi, eax
add ecx, eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + ebx*8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + ebx*8]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x14]
cmp ax, word [edx + 0x14]
je 0x461ab5
jmp 0x461896
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x34], eax
jmp 0x461552
push eax
mov eax, dword [ebp - 0x78]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 0x90]
add eax, 0x58
push eax
push edi
call fcn.0044cfa0
add esp, 0x20
mov dword [ebp - 0x68], eax
test eax, eax
je 0x461b8e
mov edx, dword [ebp - 0x94]
test byte [edx + 4], 2
jne 0x46148f
mov ecx, eax
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
mov ebx, dword [edi + 0xa0]
call fcn.00461090
mov dword [ebp - 0x60], eax
mov dword [ebx + 0x324], eax
jmp 0x46148f
mov dword [ebp - 0x64], 0
jmp 0x4615d2