Function at 0x5f80f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2b4
push ebx
push ebp
push esi
push edi
push 0x6781f8
mov dword [esp + 0x2c], ecx
lea esi, [ecx + 0x20]
call fcn.005fbf70
add esp, 4
push eax
push esi
call fcn.005f7020
add esp, 8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6781c0
xor bl, bl
call fcn.005fbf70
add esp, 4
push eax
push 0x80000001
call dword [0x635024]
test eax, eax
jne 0x5f828f
mov eax, dword [esp + 0x24]
mov edi, dword [fcn.0063524c]
cmp eax, 2
jne 0x5f8201
lea edx, [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
push 0
push 0
push 0x6781ac
mov dword [esp + 0x28], 0x40
call fcn.005fbf70
mov ecx, dword [esp + 0x2c]
mov ebp, dword [fcn.00635010]
add esp, 4
push eax
push ecx
call ebp
push 0x677aa0
lea edx, [esp + 0x84]
push 0x6781a8
push edx
call edi
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x5f81d6
lea eax, [esp + 0x80]
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [0x63516c]
test eax, eax
jne 0x5f81d6
mov bl, 1
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x678198
mov dword [esp + 0x28], 4
call fcn.005fbf70
mov ecx, dword [esp + 0x2c]
add esp, 4
push eax
push ecx
call ebp
push 0x677aa0
lea edx, [esp + 0x44]
push 0x6781a8
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call dword [fcn.00635064]
inc eax
lea ecx, [esp + 0x40]
push eax
push ecx
push 1
push 0
push 0x678184
mov dword [esp + 0x28], eax
call fcn.005fbf70
mov edx, dword [esp + 0x2c]
mov edi, dword [fcn.0063500c]
add esp, 4
push eax
push edx
call edi
test bl, bl
mov dword [esp + 0x14], 4
je 0x5f825c
inc dword [esp + 0x10]
jmp 0x5f8264
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x678198
call fcn.005fbf70
mov ecx, dword [esp + 0x2c]
add esp, 4
push eax
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call dword [fcn.00635008]
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x5f86da
cmp eax, 5
ja 0x5f86da
test bl, bl
je 0x5f82b6
cmp dword [0x681594], 9
jge 0x5f86da
push 0x678174
call fcn.005fbf70
add esp, 4
push eax
push esi
call fcn.005f7020
mov eax, dword [esi]
add esp, 8
cmp eax, 0xffffffff
je 0x5f8409
lea edi, [esi + 0x101c]
push edi
call dword [fcn.00635090]
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x5f82fe
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x677468
ja 0x5f8303
mov eax, 0x67f140
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x677410
lea ebp, [esi + 0x1c]
call fcn.005fbf00
add esp, 4
push eax
push ebp
call fcn.005fce85
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x5f83a5
test ecx, ecx
jle 0x5f83d3
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x1030]
add edx, 2
mov dword [esi + 0x1030], edx
mov bl, byte [eax]
add dl, 0x43
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [edi + eax]
cmp edx, ecx
jl 0x5f8383
jmp 0x5f83d3
test ecx, ecx
jle 0x5f83d3
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
mov bl, byte [eax]
add dl, 0x65
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x5f83b2
cmp dword [esi + 0x1034], 0x3e7
je 0x5f83f1
lea eax, [esp + 0x20]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [fcn.006350f8]
mov edx, dword [esi]
push edx
call dword [0x6350f4]
mov eax, dword [esi]
push eax
call dword [fcn.006350d4]
mov dword [esi], 0xffffffff
mov ecx, 0x681380
call fcn.005fa6e0
test eax, eax
jne 0x5f8437
push 0x678164
call fcn.005fbf70
add esp, 4
mov ecx, 0x681380
push eax
call fcn.005fa4d0
test eax, eax
je 0x5f86da
push 0x678150
call fcn.005fbf70
add esp, 4
mov ecx, 0x681380
push eax
call fcn.005fa6e0
push eax
call fcn.005f9470
push 0x678138
mov esi, eax
call fcn.005fbf70
add esp, 4
mov ecx, 0x681380
push eax
call fcn.005fa6e0
push eax
call fcn.005f9470
push 0x678120
mov edi, eax
call fcn.005fbf70
add esp, 4
mov ecx, 0x681380
push eax
call fcn.005fa6e0
push eax
call fcn.005f9470
push 0x678110
mov ebp, eax
call fcn.005fbf70
add esp, 4
mov ecx, 0x681380
push eax
call fcn.005fa6e0
push eax
call fcn.005f9470
test esi, esi
mov dword [esp + 0x20], eax
je 0x5f86da
test edi, edi
je 0x5f86da
test ebp, ebp
je 0x5f86da
test eax, eax
je 0x5f86da
push 0
push 0
push 0
push 0
push 0x678104
call fcn.005fbf00
add esp, 4
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x5f86da
push 0
push 0x8000000
push 1
push 0x6780d0
call fcn.005fbf70
add esp, 4
push eax
push 0x6780c4
call fcn.005fbf00
add esp, 4
push eax
push 0x17ac
push 0x6780b0
call fcn.005fbf00
add esp, 4
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x5f854a
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x140]
mov edi, 0x80
push ecx
push edx
mov byte [esp + 0x148], 0
mov dword [esp + 0x24], edi
call dword [0x635168]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc0]
push eax
push ecx
mov byte [esp + 0xc8], 0
mov dword [esp + 0x24], edi
call dword [0x635020]
lea edx, [esp + 0x2c]
push edx
call dword [fcn.00635090]
mov eax, dword [0x681594]
cmp eax, 1
jne 0x5f85a9
push 0x6780a4
jmp 0x5f860e
cmp eax, 2
jne 0x5f85b5
push 0x678098
jmp 0x5f860e
cmp eax, 3
jne 0x5f85c1
push 0x678090
jmp 0x5f860e
cmp eax, 4
jne 0x5f85cd
push 0x678084
jmp 0x5f860e
cmp eax, 5
jne 0x5f85d9
push 0x678078
jmp 0x5f860e
cmp eax, 6
jne 0x5f85e5
push 0x678068
jmp 0x5f860e
cmp eax, 7
jne 0x5f85f1
push 0x67805c
jmp 0x5f860e
cmp eax, 8
jne 0x5f85fd
push 0x678050
jmp 0x5f860e
cmp eax, 9
jne 0x5f8609
push 0x678044
jmp 0x5f860e
push 0x67803c
call fcn.005fbf00
mov ecx, dword [esp + 0x3e]
mov edx, dword [esp + 0x3c]
add esp, 4
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3a]
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3e]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x3e]
push ecx
mov ecx, dword [esp + 0x40]
and edx, 0xffff
and ecx, 0xffff
push edx
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + 0x1228]
add ecx, 0x1200
push edx
lea edx, [esp + 0xe0]
push edx
lea edx, [esp + 0x164]
push edx
mov edx, dword [0x6815c4]
mov edx, dword [edx + 0x10]
push edx
push eax
push 0x2f
push ecx
push 0x677fe0
call fcn.005fbf70
add esp, 4
push eax
lea eax, [esp + 0x1fc]
push 0x104
push eax
call fcn.005ff1bd
add esp, 0x44
lea ecx, [esp + 0x1c0]
push 0
push 0x4000002
push ecx
push 0x681274
push esi
call dword [esp + 0x34]
call dword [fcn.0063513c]
push ebx
call ebp
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret