Function at 0x10001360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, edx
and eax, 0xfffffff7
cmp eax, 0x10
je 0x1000138a
mov eax, 3
cmp edx, 0x20
jne 0x100016f1
test edx, edx
lea eax, [edx + 7]
cmovns eax, edx
sar eax, 3
lea esi, [eax + eax + 6]
test ebx, ebx
je 0x100013aa
mov eax, 4
cmp ebx, esi
jne 0x100016f1
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x200], esi
mov ebx, dword [ecx]
bswap ebx
mov dword [eax], ebx
mov edi, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
bswap edi
mov dword [eax + 4], edi
mov edi, dword [ecx + 8]
bswap edi
mov dword [eax + 8], edi
mov edi, dword [ecx + 0xc]
bswap edi
mov dword [eax + 0xc], edi
cmp edx, 0x10
je 0x10001500
cmp edx, 0x18
je 0x10001700
cmp edx, 0x20
jne 0x10001585
mov edx, dword [ecx + 0x10]
mov ebx, dword [ebp + 0x14]
xor edi, edi
bswap edx
mov dword [ebx + 0x10], edx
mov edx, dword [ecx + 0x14]
bswap edx
mov dword [ebx + 0x14], edx
mov edx, dword [ecx + 0x18]
bswap edx
mov dword [ebx + 0x18], edx
mov edx, dword [ecx + 0x1c]
bswap edx
mov dword [ebx + 0x1c], edx
jmp 0x1000147a
mov ecx, 8
add eax, 0x20
ror edx, cl
mov esi, edx
movzx ecx, dl
shr esi, 0x18
mov ecx, dword [ecx*4 + 0x1001e440]
xor ecx, dword [esi*4 + str.cwko0]
mov esi, edx
xor ecx, dword [eax - 0x10]
movzx edx, dh
shr esi, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, esi
movzx esi, cl
mov ecx, dword [ebp - 0x10]
xor ecx, dword [esi*4 + 0x1001dc40]
xor ecx, dword [edx*4 + 0x1001e040]
mov edx, ecx
xor edx, dword [eax - 0xc]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
xor edx, dword [eax - 8]
mov dword [eax + 0x18], edx
xor ebx, edx
mov dword [eax + 0x1c], ebx
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax]
xor edx, dword [edi*4 + section..rdata]
add edi, 1
movzx ecx, bl
xor edx, dword [ecx*4 + 0x1001e440]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + str.cwko0]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x1001dc40]
movzx ecx, bh
xor edx, dword [ecx*4 + 0x1001e040]
mov dword [eax + 0x20], edx
xor edx, dword [eax + 4]
mov dword [eax + 0x24], edx
xor edx, dword [eax + 8]
mov dword [eax + 0x28], edx
xor edx, dword [eax + 0xc]
mov dword [eax + 0x2c], edx
cmp edi, 7
jne 0x10001420
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx + 0xe0]
add eax, 0xe0
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + 0x200]
jmp 0x10001585
xor ebx, ebx
jmp 0x1000150b
add eax, 0x10
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
xor edx, dword [ebx*4 + section..rdata]
add ebx, 1
movzx esi, cl
xor edx, dword [esi*4 + 0x1001e440]
mov esi, ecx
shr esi, 0x18
mov edi, dword [esi*4 + str.cwko0]
mov esi, ecx
shr esi, 0x10
xor edi, edx
mov edx, esi
movzx esi, dl
xor edi, dword [esi*4 + 0x1001dc40]
movzx esi, ch
mov edx, edi
xor edx, dword [esi*4 + 0x1001e040]
mov dword [eax + 0x10], edx
xor edx, dword [eax + 4]
mov dword [eax + 0x14], edx
xor edx, dword [eax + 8]
mov dword [eax + 0x18], edx
xor edx, ecx
mov dword [eax + 0x1c], edx
cmp ebx, 0xa
jne 0x10001508
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx + 0xa0]
add eax, 0xa0
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + 0x200]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x100], edi
mov edx, dword [eax + 4]
add ecx, 0x100
mov dword [ebx + 0x104], edx
mov edx, dword [eax + 8]
mov dword [ebx + 0x108], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x10c], edx
cmp esi, 1
jle 0x100016d7
mov ebx, 1
mov dword [ebp - 0x10], ebx
lea esi, [esi]
lea edi, [edi]
mov esi, dword [eax - 0x10]
add ecx, 0x10
sub eax, 0x10
add dword [ebp - 0x10], 1
mov ebx, esi
mov edx, esi
movzx edi, bl
shr edx, 0x18
mov edx, dword [edx*4 + 0x1001cc40]
xor edx, dword [edi*4 + 0x1001c040]
mov edi, esi
shr edi, 0x10
mov ebx, edi
movzx edi, bl
mov ebx, esi
movzx esi, bh
xor edx, dword [edi*4 + 0x1001c840]
xor edx, dword [esi*4 + 0x1001c440]
mov dword [ecx], edx
mov esi, dword [eax + 4]
mov ebx, esi
mov edx, esi
movzx edi, bl
shr edx, 0x18
mov edx, dword [edx*4 + 0x1001cc40]
xor edx, dword [edi*4 + 0x1001c040]
mov edi, esi
shr edi, 0x10
mov ebx, edi
movzx edi, bl
mov ebx, esi
movzx esi, bh
xor edx, dword [edi*4 + 0x1001c840]
xor edx, dword [esi*4 + 0x1001c440]
mov dword [ecx + 4], edx
mov esi, dword [eax + 8]
mov ebx, esi
mov edx, esi
movzx edi, bl
shr edx, 0x18
mov edx, dword [edx*4 + 0x1001cc40]
xor edx, dword [edi*4 + 0x1001c040]
mov edi, esi
shr edi, 0x10
mov ebx, edi
movzx edi, bl
mov ebx, esi
movzx esi, bh
xor edx, dword [edi*4 + 0x1001c840]
xor edx, dword [esi*4 + 0x1001c440]
mov dword [ecx + 8], edx
mov esi, dword [eax + 0xc]
mov ebx, esi
mov edx, esi
movzx edi, bl
shr edx, 0x18
mov edx, dword [edx*4 + 0x1001cc40]
xor edx, dword [edi*4 + 0x1001c040]
mov edi, esi
shr edi, 0x10
mov ebx, edi
movzx edi, bl
mov ebx, esi
movzx esi, bh
mov ebx, dword [ebp + 0x14]
xor edx, dword [edi*4 + 0x1001c840]
xor edx, dword [esi*4 + 0x1001c440]
mov edi, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
cmp dword [ebx + 0x200], edi
jg 0x100015d0
mov edx, dword [eax - 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [ecx + 0x14], edx
mov edx, dword [eax - 8]
mov dword [ecx + 0x18], edx
mov eax, dword [eax - 4]
mov dword [ecx + 0x1c], eax
xor eax, eax
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ecx + 0x10]
mov ebx, dword [ebp + 0x14]
bswap edx
mov dword [ebx + 0x10], edx
mov edx, dword [ecx + 0x14]
bswap edx
mov dword [ebx + 0x14], edx
xor ebx, ebx
jmp 0x1000172e
xor edx, dword [eax + 0x10]
add eax, 0x18
mov dword [eax + 0x10], edx
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 0x14]
mov edx, dword [eax]
xor edx, dword [ebx*4 + section..rdata]
add ebx, 1
movzx esi, cl
xor edx, dword [esi*4 + 0x1001e440]
mov esi, ecx
shr esi, 0x18
mov edi, dword [esi*4 + str.cwko0]
mov esi, ecx
shr esi, 0x10
xor edi, edx
mov edx, esi
movzx esi, dl
xor edi, dword [esi*4 + 0x1001dc40]
movzx esi, ch
mov edx, edi
xor edx, dword [esi*4 + 0x1001e040]
mov dword [eax + 0x18], edx
xor edx, dword [eax + 4]
mov dword [eax + 0x1c], edx
xor edx, dword [eax + 8]
mov dword [eax + 0x20], edx
xor edx, dword [eax + 0xc]
mov dword [eax + 0x24], edx
cmp ebx, 8
jne 0x10001720
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx + 0xc0]
add eax, 0xc0
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + 0x200]
jmp 0x10001585