Function at 0x1000bcd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2394
call fcn.100c66e0
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
mov edx, dword [ebx + 0x174]
push 0
lea ecx, [ebp - 0x236c]
push ecx
push edx
mov ecx, ebx
mov dword [ebp - 0x2380], ebx
mov dword [ebp - 0x2388], esi
mov dword [ebp - 0x2394], eax
call fcn.1000b4c0
mov ecx, dword [ebx + 0x120]
test ecx, ecx
je 0x1000bd6f
lea eax, [ebp - 0x2374]
push eax
mov eax, dword [ebp - 0x2268]
imul eax, dword [ebp + 0xc]
xor edx, edx
div dword [ebx + 0x184]
push eax
push esi
call fcn.10003cd0
mov dword [ebp - 0x2384], eax
test eax, eax
je 0x1000c062
cmp eax, 0x16
je 0x1000c062
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x145], 7
jne 0x1000becd
cmp dword [ebp - 0x226c], 2
jne 0x1000becd
mov esi, dword [ebp - 0x2268]
lea esi, [esi + esi*8]
push 0
add esi, esi
add esi, esi
push esi
push 1
lea ecx, [ebp - 0x244]
push ecx
mov ecx, dword [ebx + 0x110]
mov dword [ebp - 0x2370], esi
call fcn.100726c0
mov dword [ebp - 0x2384], eax
test eax, eax
jne 0x1000c470
mov edi, dword [ebp - 0x2268]
cmp edi, 1
jne 0x1000be03
mov edx, dword [ebx + 0xec]
push edi
push 0x40
push esi
push edi
push edx
lea eax, [ebp - 0x244]
push eax
call fcn.1002c3c0
mov edi, dword [ebp - 0x2268]
mov dword [ebp - 0x2384], eax
mov eax, edi
add esp, 0x18
shl eax, 7
mov dword [ebp - 0x2374], eax
jmp 0x1000c068
cmp edi, 2
jne 0x1000be3f
mov ecx, dword [ebx + 0xec]
push 0x40
push esi
push 1
push ecx
lea edx, [ebp - 0x244]
push edx
call fcn.1002c6e0
mov edi, dword [ebp - 0x2268]
mov dword [ebp - 0x2384], eax
mov eax, edi
add esp, 0x14
shl eax, 7
mov dword [ebp - 0x2374], eax
jmp 0x1000c068
mov eax, esi
cdq
idiv edi
xor esi, esi
mov dword [ebp - 0x2390], eax
test edi, edi
jle 0x1000bebd
mov eax, dword [ebp - 0x2370]
cdq
idiv edi
xor ecx, ecx
mov dword [ebp - 0x238c], eax
test eax, eax
jle 0x1000be87
lea edx, [ebp + esi*2 - 0x244]
lea esp, [esp]
mov ax, word [edx]
mov word [ebp + ecx*2 - 0x2244], ax
inc ecx
lea edx, [edx + edi*2]
cmp ecx, dword [ebp - 0x238c]
jl 0x1000be70
mov ecx, dword [ebp - 0x2390]
mov edx, dword [ebx + 0xec]
push edi
push 0x40
push ecx
push 1
lea eax, [edx + esi*2]
push eax
lea ecx, [ebp - 0x2244]
push ecx
call fcn.1002c3c0
mov edi, dword [ebp - 0x2268]
inc esi
add esp, 0x18
mov dword [ebp - 0x2384], eax
cmp esi, edi
jl 0x1000be50
mov eax, edi
shl eax, 7
mov dword [ebp - 0x2374], eax
jmp 0x1000c068
mov ecx, dword [ebx + 0x124]
test ecx, ecx
je 0x1000bf21
mov eax, dword [ebp - 0x2268]
imul eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2374]
push edx
xor edx, edx
div dword [ebx + 0x184]
push eax
push esi
call fcn.10003cd0
mov dword [ebp - 0x2384], eax
test eax, eax
je 0x1000c062
cmp eax, 0x16
je 0x1000c062
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0x128]
xor edx, edx
test ecx, ecx
je 0x1000bf56
lea eax, [ebp - 0x2374]
push eax
mov eax, dword [ebp - 0x2268]
imul eax, dword [ebp + 0xc]
div dword [ebx + 0x184]
push eax
push esi
call fcn.10003cd0
mov dword [ebp - 0x2384], eax
jmp 0x1000c062
mov eax, dword [ebp + 0xc]
div dword [ebx + 0x184]
lea ecx, [ebp - 0x2374]
push ecx
mov ecx, dword [ebx + 0x110]
imul eax, dword [ebp - 0x2268]
push eax
push 1
push esi
call fcn.100726c0
mov dword [ebp - 0x2384], eax
test eax, eax
je 0x1000bf8f
cmp eax, 0x16
jne 0x1000c470
cmp dword [ebp - 0x226c], 1
mov edi, dword [ebp - 0x2374]
jne 0x1000bfda
mov ecx, edi
shr ecx, 3
mov eax, esi
mov dl, 0x80
test ecx, ecx
je 0x1000bfcd
jmp 0x1000bfb0
xor byte [eax], dl
xor byte [eax + 1], dl
xor byte [eax + 2], dl
xor byte [eax + 3], dl
xor byte [eax + 4], dl
xor byte [eax + 5], dl
xor byte [eax + 6], dl
xor byte [eax + 7], dl
add eax, 8
dec ecx
jne 0x1000bfb0
mov ecx, edi
and ecx, 7
je 0x1000bfda
xor byte [eax], dl
inc eax
dec ecx
jne 0x1000bfd4
test byte [ebx + 0x14d], 1
je 0x1000c062
mov eax, dword [ebp - 0x226c]
cmp eax, 2
jne 0x1000c01c
mov edx, edi
xor ecx, ecx
shr edx, 1
je 0x1000c062
jmp 0x1000c000
movzx eax, word [esi + ecx*2]
mov di, ax
shr di, 8
shl eax, 8
or di, ax
mov word [esi + ecx*2], di
inc ecx
cmp ecx, edx
jb 0x1000c000
jmp 0x1000c062
cmp eax, 5
jne 0x1000c062
mov eax, edi
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x238c], eax
je 0x1000c062
nop
mov eax, dword [esi + ecx*4]
mov edx, eax
shl edx, 0x10
mov edi, eax
and edi, 0xff00
or edx, edi
movzx edi, byte [esi + ecx*4 + 3]
shl edx, 8
shr eax, 8
or edx, edi
and eax, 0xff00
or edx, eax
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, dword [ebp - 0x238c]
jb 0x1000c030
mov edi, dword [ebp - 0x2268]
mov ecx, dword [ebx + 0x184]
cmp edi, ecx
jge 0x1000c45c
mov ebx, dword [ebx + 0x145]
mov eax, dword [ebp - 0x226c]
cmp ebx, 7
jne 0x1000c095
cmp eax, ebx
jne 0x1000c095
cmp ecx, 2
jne 0x1000c09f
lea esi, [ebx - 3]
jmp 0x1000c0c9
cmp eax, 6
jne 0x1000c09f
lea esi, [eax - 4]
jmp 0x1000c0c9
cmp ebx, 8
jne 0x1000c0ad
cmp eax, 2
jne 0x1000c0ad
mov esi, eax
jmp 0x1000c0c9
cmp eax, 8
je 0x1000c0c4
cmp eax, 9
je 0x1000c0c4
mov eax, dword [ebp - 0x2258]
cdq
idiv edi
mov esi, eax
jmp 0x1000c0c9
mov esi, 0x10
mov eax, dword [ebp - 0x2388]
mov edx, dword [ebp - 0x2374]
mov ebx, esi
imul ebx, edi
sub eax, ebx
add eax, edx
mov dword [ebp - 0x2378], eax
mov eax, edx
xor edx, edx
div edi
xor edx, edx
sub eax, esi
imul eax, ecx
add eax, dword [ebp - 0x2388]
mov dword [ebp - 0x237c], eax
mov eax, dword [ebp - 0x2374]
div ebx
cmp esi, 1
jne 0x1000c1ad
cmp edi, esi
jne 0x1000c153
test eax, eax
jle 0x1000c43b
mov edx, dword [ebp - 0x2378]
mov esi, dword [ebp - 0x237c]
mov edi, eax
mov eax, dword [ebp - 0x2380]
mov edi, edi
dec ecx
js 0x1000c13c
dec ecx
mov bl, byte [edx]
mov byte [ecx + esi + 1], bl
jns 0x1000c133
mov ecx, dword [eax + 0x184]
dec edx
sub esi, ecx
dec edi
jne 0x1000c130
mov edi, dword [ebp - 0x2268]
jmp 0x1000c43b
test eax, eax
jle 0x1000c43b
mov edx, dword [ebp - 0x2378]
mov esi, dword [ebp - 0x237c]
mov dword [ebp - 0x2370], eax
lea ecx, [ecx]
dec ecx
lea eax, [edi - 1]
js 0x1000c190
cmp ecx, eax
jle 0x1000c180
mov byte [ecx + esi], 0
jmp 0x1000c187
mov bl, byte [eax + edx]
mov byte [ecx + esi], bl
dec eax
dec ecx
jns 0x1000c176
mov edi, dword [ebp - 0x2268]
mov eax, dword [ebp - 0x2380]
mov ecx, dword [eax + 0x184]
sub edx, edi
sub esi, ecx
dec dword [ebp - 0x2370]
jne 0x1000c170
jmp 0x1000c43b
cmp esi, 2
jne 0x1000c25d
mov esi, dword [ebp - 0x2378]
mov edx, dword [ebp - 0x237c]
cmp edi, 1
jne 0x1000c209
test eax, eax
jle 0x1000c43b
mov edi, dword [ebp - 0x2380]
dec ecx
js 0x1000c1eb
jmp 0x1000c1e0
dec ecx
mov bx, word [esi]
mov word [edx + ecx*2 + 2], bx
jns 0x1000c1e0
mov ecx, dword [edi + 0x184]
mov ebx, ecx
neg ebx
sub esi, 2
dec eax
lea edx, [edx + ebx*2]
jne 0x1000c1d5
mov edi, dword [ebp - 0x2268]
jmp 0x1000c43b
test eax, eax
jle 0x1000c43b
mov ebx, eax
dec ecx
lea eax, [edi - 1]
js 0x1000c23b
lea esp, [esp]
cmp ecx, eax
jle 0x1000c228
xor edi, edi
jmp 0x1000c22d
mov di, word [esi + eax*2]
dec eax
dec ecx
mov word [edx + ecx*2 + 2], di
jns 0x1000c220
mov edi, dword [ebp - 0x2268]
mov eax, dword [ebp - 0x2380]
mov ecx, edi
neg ecx
lea esi, [esi + ecx*2]
mov ecx, dword [eax + 0x184]
mov eax, ecx
neg eax
dec ebx
lea edx, [edx + eax*2]
jne 0x1000c213
jmp 0x1000c43b
cmp esi, 4
jne 0x1000c305
mov esi, dword [ebp - 0x2378]
mov edx, dword [ebp - 0x237c]
cmp edi, 1
jne 0x1000c2b0
test eax, eax
jle 0x1000c43b
nop
dec ecx
js 0x1000c28c
dec ecx
mov edi, dword [esi]
mov dword [edx + ecx*4 + 4], edi
jns 0x1000c283
mov ecx, dword [ebp - 0x2380]
mov ecx, dword [ecx + 0x184]
mov edi, ecx
neg edi
sub esi, 4
dec eax
lea edx, [edx + edi*4]
jne 0x1000c280
mov edi, dword [ebp - 0x2268]
jmp 0x1000c43b
test eax, eax
jle 0x1000c43b
mov ebx, eax
lea ebx, [ebx]
dec ecx
lea eax, [edi - 1]
js 0x1000c2e3
cmp ecx, eax
jle 0x1000c2d3
mov dword [edx + ecx*4], 0
jmp 0x1000c2da
mov edi, dword [esi + eax*4]
mov dword [edx + ecx*4], edi
dec eax
dec ecx
jns 0x1000c2c6
mov edi, dword [ebp - 0x2268]
mov ecx, dword [ebp - 0x2380]
mov ecx, dword [ecx + 0x184]
mov eax, edi
neg eax
lea esi, [esi + eax*4]
mov eax, ecx
neg eax
dec ebx
lea edx, [edx + eax*4]
jne 0x1000c2c0
jmp 0x1000c43b
cmp edi, 1
jne 0x1000c37e
test eax, eax
jle 0x1000c43b
mov dword [ebp - 0x2370], eax
lea ebx, [ecx - 1]
test ebx, ebx
js 0x1000c34e
mov edi, ebx
imul edi, esi
mov eax, esi
neg eax
add edi, dword [ebp - 0x237c]
mov dword [ebp - 0x2388], eax
mov ecx, dword [ebp - 0x2378]
push esi
push ecx
push edi
call fcn.100c6090
add edi, dword [ebp - 0x2388]
add esp, 0xc
dec ebx
jns 0x1000c334
mov edx, dword [ebp - 0x2380]
mov ecx, dword [edx + 0x184]
sub dword [ebp - 0x2378], esi
mov eax, ecx
imul eax, esi
sub dword [ebp - 0x237c], eax
dec dword [ebp - 0x2370]
jne 0x1000c318
mov edi, dword [ebp - 0x2268]
jmp 0x1000c43b
test eax, eax
jle 0x1000c43b
mov dword [ebp - 0x238c], eax
lea esp, [esp]
lea edx, [edi - 1]
dec ecx
mov dword [ebp - 0x2390], edx
mov dword [ebp - 0x2370], ecx
js 0x1000c40d
mov eax, esi
neg eax
mov dword [ebp - 0x2388], eax
mov eax, ecx
mov edi, eax
imul edi, esi
add edi, dword [ebp - 0x237c]
mov ebx, edx
imul ebx, esi
add ebx, dword [ebp - 0x2378]
push esi
cmp eax, dword [ebp - 0x2390]
jle 0x1000c3da
push 0
push edi
call fcn.100c6660
add esp, 0xc
jmp 0x1000c3f0
push ebx
push edi
call fcn.100c6090
dec dword [ebp - 0x2390]
add esp, 0xc
add ebx, dword [ebp - 0x2388]
mov eax, dword [ebp - 0x2370]
add edi, dword [ebp - 0x2388]
dec eax
mov dword [ebp - 0x2370], eax
test eax, eax
jns 0x1000c3c4
mov edi, dword [ebp - 0x2268]
mov ecx, dword [ebp - 0x2380]
mov ecx, dword [ecx + 0x184]
mov eax, esi
mov edx, ecx
imul eax, edi
sub dword [ebp - 0x2378], eax
imul edx, esi
sub dword [ebp - 0x237c], edx
dec dword [ebp - 0x238c]
jne 0x1000c390
mov eax, dword [ebp - 0x2380]
mov eax, dword [eax + 0x184]
imul eax, dword [ebp - 0x2374]
xor edx, edx
div edi
mov ecx, dword [ebp - 0x2394]
mov dword [ecx], eax
jmp 0x1000c46a
mov edx, dword [ebp - 0x2394]
mov eax, dword [ebp - 0x2374]
mov dword [edx], eax
mov eax, dword [ebp - 0x2384]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c5f50
mov esp, ebp
pop ebp
ret 0xc