Function at 0x4600b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2dd8
call fcn.004ac4d0
mov eax, dword [0x5080c0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov eax, edx
mov dword [ebp - 0x2db8], ecx
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x2d8c], eax
mov dword [ebp - 0x2da8], ecx
mov dword [ebp - 0x2dac], ecx
lea ecx, [ebp - 0x274]
push ecx
mov ecx, edi
mov dword [ebp - 0x2dbc], edi
movlpd qword [ebp - 0x2dcc], xmm0
movlpd qword [ebp - 0x2dc4], xmm0
call fcn.0045ff10
add esp, 4
test eax, eax
je 0x4608a7
mov ebx, dword [ebp - 0x254]
mov eax, ebx
mov ecx, dword [ebp - 0x250]
or eax, ecx
mov dword [ebp - 0x2d70], ebx
mov dword [ebp - 0x2d74], ecx
je 0x460891
test edi, edi
je 0x460184
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x460184
mov edx, dword [ebp - 0x2d8c]
cmp edx, dword [edi + 0x10]
jae 0x460184
cmp dword [edi + 0x14], 1
jne 0x460184
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edx*4]
add eax, dword [ecx]
je 0x460184
movzx ecx, word [eax + 0x1c]
test ecx, ecx
je 0x46017a
cmp byte [ecx + eax + 0x2d], 0x2f
je 0x460891
test byte [eax + 0x26], 0x10
jne 0x460891
test byte [ebp - 0x268], 0x21
jne 0x4608a7
mov ax, word [ebp - 0x266]
test ax, ax
je 0x4601a7
cmp ax, 8
jne 0x4608a7
push 0x1e
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x238]
mov eax, dword [edi + 0x38]
push dword [ebp - 0x23c]
push dword [edi + 0x44]
call eax
add esp, 0x14
cmp eax, 0x1e
jne 0x4608a7
cmp dword [ebp - 0x28], 0x4034b50
jne 0x4608a7
movzx eax, word [ebp - 0xe]
cdq
mov ecx, eax
mov dword [ebp - 0x2d6c], edx
movzx eax, word [ebp - 0xc]
cdq
add ecx, eax
mov eax, dword [ebp - 0x2d6c]
adc eax, edx
add ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x250]
adc eax, dword [ebp - 0x238]
add ecx, 0x1e
mov dword [ebp - 0x2d80], ecx
adc eax, 0
add ecx, ebx
mov dword [ebp - 0x2d6c], eax
adc eax, edx
cmp eax, dword [edi + 4]
ja 0x4608a7
jb 0x460231
cmp ecx, dword [edi]
ja 0x4608a7
mov eax, dword [edi + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4602a1
add eax, dword [ebp - 0x2d80]
mov ecx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x2db0], ecx
movlpd qword [ebp - 0x2d9c], xmm0
mov edx, dword [ebp - 0x2d9c]
mov dword [ebp - 0x2d68], ecx
mov dword [ebp - 0x2da4], ecx
mov dword [ebp - 0x2da0], ecx
mov dword [ebp - 0x2d7c], ecx
mov ecx, dword [ebp - 0x2d98]
mov dword [ebp - 0x2d78], eax
mov dword [ebp - 0x2d90], ebx
mov dword [ebp - 0x2d8c], ebx
mov dword [ebp - 0x2db0], ebx
mov dword [ebp - 0x2d88], ebx
mov dword [ebp - 0x2d84], ecx
jmp 0x460337
test edx, edx
ja 0x4602b3
jb 0x4602af
cmp ebx, 0x10000
jae 0x4602b3
mov eax, ebx
jmp 0x4602ba
mov eax, 0x10000
xor edx, edx
push eax
push 1
push dword [edi + 0x34]
mov dword [ebp - 0x2d90], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x2da4], edx
call eax
add esp, 0xc
mov dword [ebp - 0x2d78], eax
test eax, eax
je 0x4608a7
mov eax, dword [ebp - 0x250]
mov edx, ebx
mov ecx, eax
mov dword [ebp - 0x2d84], eax
mov ebx, ecx
mov dword [ebp - 0x2d8c], edx
mov eax, edx
mov dword [ebp - 0x2db0], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x2db0], eax
movlpd qword [ebp - 0x2dd4], xmm0
mov dword [ebp - 0x2d88], eax
mov eax, dword [ebp - 0x2dd0]
mov dword [ebp - 0x2da0], ebx
mov dword [ebp - 0x2d7c], ebx
mov ebx, dword [ebp - 0x2dd4]
mov dword [ebp - 0x2d68], eax
mov dword [ebp - 0x2d98], edx
cmp word [ebp - 0x266], si
je 0x4605f4
mov eax, dword [edi + 0x28]
push 0x8000
push 1
push dword [edi + 0x34]
mov dword [ebp - 0x2d64], esi
call eax
add esp, 0xc
mov dword [ebp - 0x2dac], eax
test eax, eax
jne 0x460374
or edi, 0xffffffff
jmp 0x460843
mov eax, dword [ebp - 0x2dcc]
mov ecx, dword [ebp - 0x2dc8]
mov edx, dword [ebp - 0x2d68]
mov dword [ebp - 0x2d7c], eax
mov eax, dword [ebp - 0x2dc0]
mov dword [ebp - 0x2d74], eax
mov eax, dword [ebp - 0x2dc4]
mov dword [ebp - 0x2db0], ecx
mov dword [ebp - 0x2d70], eax
nop word [eax + eax]
mov edi, dword [ebp - 0x2dac]
mov ecx, eax
and ecx, 0x7fff
mov eax, 0x8000
sub eax, ecx
add edi, ecx
mov dword [ebp - 0x2d88], eax
mov eax, ebx
or eax, edx
jne 0x4604a0
mov ecx, dword [ebp - 0x2dbc]
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4604a0
mov eax, dword [ebp - 0x2d84]
mov edx, dword [ebp - 0x2da4]
cmp edx, eax
ja 0x460418
jb 0x46040a
mov ebx, dword [ebp - 0x2d98]
cmp dword [ebp - 0x2d90], ebx
jae 0x46041e
mov ebx, dword [ebp - 0x2d90]
mov dword [ebp - 0x2d68], edx
jmp 0x460424
mov ebx, dword [ebp - 0x2d98]
mov dword [ebp - 0x2d68], eax
mov edx, dword [ebp - 0x2d6c]
mov eax, dword [ecx + 0x38]
push ebx
push dword [ebp - 0x2d78]
push edx
push dword [ebp - 0x2d80]
push dword [ecx + 0x44]
call eax
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
jne 0x46036c
mov edx, dword [ebp - 0x2d68]
cmp ecx, edx
jne 0x46036c
add dword [ebp - 0x2d80], ebx
xorps xmm0, xmm0
mov eax, dword [ebp - 0x2d98]
adc dword [ebp - 0x2d6c], edx
sub eax, ebx
movlpd qword [ebp - 0x2dcc], xmm0
mov ecx, dword [ebp - 0x2dc8]
sbb dword [ebp - 0x2d84], edx
mov dword [ebp - 0x2db0], ecx
mov ecx, dword [ebp - 0x2dcc]
mov dword [ebp - 0x2d98], eax
mov dword [ebp - 0x2d7c], ecx
jmp 0x4604ac
mov ecx, dword [ebp - 0x2d7c]
mov eax, dword [ebp - 0x2d98]
or eax, dword [ebp - 0x2d84]
mov dword [ebp - 0x2da0], ebx
je 0x4604c1
mov eax, 2
jmp 0x4604c3
xor eax, eax
mov edx, dword [ebp - 0x2d78]
push eax
lea eax, [ebp - 0x2d88]
push eax
push edi
push dword [ebp - 0x2dac]
lea eax, [ebp - 0x2da0]
lea edx, [ecx + edx]
push eax
lea ecx, [ebp - 0x2d64]
call fcn.0045d520
mov ecx, dword [ebp - 0x2da0]
add esp, 0x14
mov edx, dword [ebp - 0x2d68]
sub ebx, ecx
mov dword [ebp - 0x2da8], eax
mov eax, dword [ebp - 0x2d88]
sbb edx, 0
add dword [ebp - 0x2d7c], ecx
mov dword [ebp - 0x2d68], edx
adc dword [ebp - 0x2db0], 0
test eax, eax
je 0x4605d1
push dword [ebp - 0x2db8]
push eax
push 1
push edi
call fcn.004b5df0
mov ecx, dword [ebp - 0x2d88]
add esp, 0x10
cmp eax, ecx
jne 0x46036c
mov edx, ecx
test edi, edi
jne 0x460552
xor esi, esi
jmp 0x460592
not esi
test edx, edx
je 0x460590
mov al, byte [edi]
lea edi, [edi + 1]
movzx ecx, al
mov eax, ecx
shr ecx, 4
xor eax, esi
shr esi, 4
and eax, 0xf
xor esi, dword [eax*4 + 0x502270]
mov eax, esi
shr esi, 4
and eax, 0xf
xor ecx, eax
xor esi, dword [ecx*4 + 0x502270]
sub edx, 1
jne 0x460558
mov ecx, dword [ebp - 0x2d88]
not esi
mov eax, dword [ebp - 0x2d70]
add eax, ecx
mov ecx, dword [ebp - 0x2d74]
mov dword [ebp - 0x2d70], eax
adc ecx, 0
mov dword [ebp - 0x2d74], ecx
cmp ecx, dword [ebp - 0x248]
ja 0x46036c
jb 0x4605c9
cmp eax, dword [ebp - 0x24c]
ja 0x46036c
mov edx, dword [ebp - 0x2d68]
jmp 0x4605d7
mov eax, dword [ebp - 0x2d70]
mov edi, dword [ebp - 0x2da8]
cmp edi, 1
je 0x4603b0
cmp edi, 2
je 0x4603b0
jmp 0x4606a3
mov eax, dword [edi + 0x48]
cmp dword [eax + 0x48], esi
je 0x4606bc
cmp dword [ebp - 0x2da0], esi
ja 0x4608a7
jb 0x46061b
cmp dword [ebp - 0x2db0], 0xffffffff
ja 0x4608a7
push dword [ebp - 0x2db8]
mov eax, dword [ebp - 0x254]
mov ebx, dword [ebp - 0x2d78]
push eax
push 1
push ebx
call fcn.004b5df0
add esp, 0x10
xor ecx, ecx
cmp eax, dword [ebp - 0x2d88]
jne 0x46069a
cmp ecx, dword [ebp - 0x2d7c]
jne 0x46069a
mov edi, ebx
test ebx, ebx
jne 0x460655
xor esi, esi
jmp 0x4606a3
mov edx, dword [ebp - 0x2d8c]
or esi, 0xffffffff
test edx, edx
je 0x460694
mov al, byte [edi]
lea edi, [edi + 1]
movzx ecx, al
mov eax, ecx
shr ecx, 4
xor eax, esi
shr esi, 4
and eax, 0xf
xor esi, dword [eax*4 + 0x502270]
mov eax, esi
shr esi, 4
and eax, 0xf
xor ecx, eax
xor esi, dword [ecx*4 + 0x502270]
sub edx, 1
jne 0x460662
not esi
xor edi, edi
jmp 0x4606a3
or edi, 0xffffffff
mov dword [ebp - 0x2da8], edi
test edi, edi
jne 0x460843
mov edi, dword [ebp - 0x2d70]
mov eax, dword [ebp - 0x2d74]
jmp 0x460818
mov eax, edx
or eax, ecx
mov eax, dword [ebp - 0x2dc0]
je 0x460812
mov dword [ebp - 0x2d74], eax
mov eax, dword [ebp - 0x2dc4]
mov dword [ebp - 0x2d70], eax
nop
mov edi, dword [ebp - 0x2da4]
cmp edi, ecx
ja 0x460700
mov eax, dword [ebp - 0x2d90]
jb 0x4606f6
cmp eax, edx
jae 0x460700
mov ebx, eax
mov dword [ebp - 0x2d8c], edi
jmp 0x46070a
mov ebx, edx
mov dword [ebp - 0x2d8c], ecx
mov edi, ecx
mov edx, dword [ebp - 0x2d6c]
mov eax, dword [ebp - 0x2dbc]
push ebx
push dword [ebp - 0x2d78]
push edx
push dword [ebp - 0x2d80]
push dword [eax + 0x44]
mov eax, dword [eax + 0x38]
call eax
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
jne 0x46036c
cmp ecx, edi
jne 0x46036c
mov eax, dword [ebp - 0x2d78]
mov edx, ebx
mov edi, eax
test eax, eax
jne 0x460753
xor esi, esi
jmp 0x46079a
not esi
test edx, edx
je 0x460798
nop dword [eax]
mov al, byte [edi]
lea edi, [edi + 1]
movzx ecx, al
mov eax, ecx
shr ecx, 4
xor eax, esi
shr esi, 4
and eax, 0xf
xor esi, dword [eax*4 + 0x502270]
mov eax, esi
shr esi, 4
and eax, 0xf
xor ecx, eax
xor esi, dword [ecx*4 + 0x502270]
sub edx, 1
jne 0x460760
mov eax, dword [ebp - 0x2d78]
not esi
push dword [ebp - 0x2db8]
push ebx
push 1
push eax
call fcn.004b5df0
add esp, 0x10
xor ecx, ecx
cmp eax, ebx
jne 0x46036c
mov eax, dword [ebp - 0x2d8c]
cmp ecx, eax
jne 0x46036c
add dword [ebp - 0x2d80], ebx
mov edi, dword [ebp - 0x2d70]
adc dword [ebp - 0x2d6c], eax
add edi, ebx
mov edx, dword [ebp - 0x2d98]
adc dword [ebp - 0x2d74], eax
sub edx, ebx
mov ecx, dword [ebp - 0x2d84]
sbb ecx, eax
mov dword [ebp - 0x2d70], edi
mov eax, edx
mov dword [ebp - 0x2d98], edx
or eax, ecx
mov dword [ebp - 0x2d84], ecx
jne 0x4606e0
mov eax, dword [ebp - 0x2d74]
jmp 0x460818
mov edi, dword [ebp - 0x2dc4]
cmp edi, dword [ebp - 0x24c]
jne 0x46036c
cmp eax, dword [ebp - 0x248]
jne 0x46036c
cmp esi, dword [ebp - 0x25c]
je 0x46083d
or edi, 0xffffffff
jmp 0x460843
mov edi, dword [ebp - 0x2da8]
mov esi, dword [ebp - 0x2dbc]
mov eax, dword [esi + 0x48]
cmp dword [eax + 0x48], 0
jne 0x460863
push dword [ebp - 0x2d78]
mov eax, dword [esi + 0x2c]
push dword [esi + 0x34]
call eax
add esp, 8
mov eax, dword [ebp - 0x2dac]
test eax, eax
je 0x460879
push eax
push dword [esi + 0x34]
mov eax, dword [esi + 0x2c]
call eax
add esp, 8
xor eax, eax
test edi, edi
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004abb31
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004abb31
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004abb31
mov esp, ebp
pop ebp
ret