Function at 0x15d9520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [ebp + 8]
add eax, dword [ecx + 0x60]
mov word [esp + 8], 0x1b19
mov byte [esp + 0xa], 0xa
mov dword [esp + 0xb], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
cmp edx, 7
ja 0x15d95a1
nop
nop
nop
nop
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
movzx esi, byte [esp + esi + 8]
lea edi, [edx - 0x26cb7f56]
add edx, 0xaa
or edx, edi
and edx, esi
or edi, esi
sub edi, edx
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x20]
add dl, 0x5a
mov esi, dword [esp + 0x10]
mov byte [esp + esi + 8], dl
inc dword [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp edx, 8
jb 0x15d9560
mov dword [esp + 0x10], 0x8e908cfa
mov word [esp + 0x14], 0xe5ee
mov dword [esp + 0x16], 0
mov word [esp + 0x1a], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xb
ja 0x15d961c
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 0x10]
mov edi, edx
and edi, 0x1a6fc03c
xor edx, 0x9a6fc03c
lea edx, [edx + edi*2]
lea edi, [edx + esi]
and edx, esi
add edx, edx
sub edi, edx
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x20]
mov esi, edx
xor esi, 0x5b
and edx, 0x5b
lea edx, [esi + edx*2]
inc dl
mov esi, dword [esp]
mov byte [esp + esi + 0x10], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xc
jb 0x15d95d0
mov dword [esp + 0x20], 0x16106c6d
mov dword [esp + 0x24], 0x1212607c
mov dword [esp + 0x28], 0xf3a307d
mov dword [esp + 0x2c], 0xa370e33
mov dword [esp + 0x30], 0x72073332
mov dword [esp + 0x34], 0x38655f59
mov dword [esp + 0x38], 0x53f0d06
mov dword [esp + 0x3c], 0x65a4008
mov dword [esp + 0x40], 0xd0103
mov dword [esp + 0x44], 0x80f010d
mov dword [esp + 0x48], 0x2d6a4316
mov dword [esp + 0x4c], 0x52131f13
mov dword [esp + 0x50], 0x22162024
mov dword [esp + 0x54], 0x2618654f
mov dword [esp + 0x58], 0x99b7dce5
mov byte [esp + 0x5c], 0x7c
mov dword [esp + 0x5d], 0
mov dword [esp + 0x60], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x43
ja 0x15d9709
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x20]
lea edi, [edx - 0x66686638]
lea ebx, [edx + 0xc8]
or edi, ebx
and ebx, esi
and edi, esi
add edi, ebx
add edx, esi
add edx, 0x999799c8
sub edx, edi
mov dword [esp], edx
mov edx, dword [esp]
add dl, 0x88
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x20], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0x44
jb 0x15d96c0
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esp + 0x20]
mov edx, eax
test bl, bl
je 0x15d972b
lea edi, [esp + 0x21]
mov edx, eax
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x15d9720
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x15d974b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x15d9740
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx ebx, byte [esp + 0x10]
test bl, bl
je 0x15d976b
lea edi, [esp + 0x11]
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x15d9760
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x15d978b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x15d9780
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x15d97ab
lea esi, [esp + 9]
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x15d97a0
mov byte [edx], 0
sub edx, eax
add dword [ecx + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc