Function at 0x1000bc10
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x1c]
add edx, 0xfffff0a5
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, 0x3932
push esi
push edi
lea eax, [ebp - 0x44b]
lea esi, [ebp - 0x1d51]
mov dword [esp + 0x10], eax
xor ebp, 0x1d51
mov dword [esp + 0x1c], ebp
lea eax, [ebp + 0x1d51]
cmp edx, eax
jg 0x1000bfa0
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x18], edx
nop
mov ecx, dword [eax + 0xf4]
xor ecx, dword [eax + 0xfc]
mov ebx, dword [eax + 0xbc]
sub ecx, 2
xor dword [eax + 0xa0], ecx
mov ecx, dword [eax + 0x88]
mov edi, dword [eax]
mov esi, dword [eax + 0x10c]
mov ebp, dword [edx + ecx]
mov ecx, ebx
mov edx, dword [eax + 0xac]
xor ecx, 1
imul ecx, dword [eax + 0x118]
sub edx, dword [eax + 0xb0]
xor edx, dword [eax + 0x40]
xor edx, 0xffefb20a
mov dword [eax + 0x40], edx
mov dword [eax + 0x118], ecx
mov ecx, dword [eax + 0xe8]
sub ecx, edi
sub edi, esi
xor ecx, 0x63ea9
sub edi, ebx
sub dword [eax + 0x110], ecx
mov ecx, dword [eax + 0x64]
add ecx, edx
mov ebx, dword [eax + 0x50]
mov edx, dword [eax + 0x34]
xor ecx, 1
sub dword [eax + 0x7c], ecx
add edx, 0xffe7527f
mov ecx, dword [eax + 0x70]
add ecx, edx
imul ebx, ebp
or ecx, esi
mov dword [eax + 0x10c], ecx
mov ecx, dword [eax + 0x94]
sub ecx, dword [eax + 0x74]
xor ecx, 0x1495a6
mov dword [esp + 0x28], ebx
imul ecx, dword [eax + 0xfc]
shr ebx, 8
mov dword [eax + 0xfc], ecx
mov ecx, edi
lea edx, [ecx + 0x63eaa]
imul edx, ecx
mov ecx, dword [eax + 0x8c]
mov dword [eax], edx
mov edx, dword [eax + 0x54]
mov byte [edx + ecx], bl
inc dword [eax + 0x54]
mov edx, dword [eax]
mov esi, dword [eax + 0x54]
xor edx, 0xfff9c157
add dword [eax], edx
mov ecx, dword [eax + 0x8c]
mov edx, dword [esp + 0x28]
mov byte [esi + ecx], dl
mov ecx, dword [eax + 0x120]
mov edx, dword [esp + 0x18]
xor ecx, 1
imul ecx, dword [eax + 0x20]
add edx, 4
inc dword [eax + 0x54]
mov esi, dword [eax + 0x54]
mov dword [esp + 0x18], edx
mov dword [eax + 0x20], ecx
cmp edx, 0x14130
jl 0x1000bc60
mov ecx, dword [eax + 0x7c]
cmp dword [eax + 0x74], ecx
ja 0x1000bd8e
add ecx, 0xc27f3ebf
mov dword [eax + 0x50], ecx
jmp 0x1000bd97
mov ecx, dword [eax + 0x40]
sub dword [eax + 0xa0], ecx
mov edx, dword [eax + 0xac]
xor ebp, ebp
mov ebx, dword [eax + 0x120]
mov dword [eax + 0x88], 0x10017b38
jmp 0x1000bdb5
mov esi, dword [esp + 0x18]
sub edx, ebx
mov ecx, 0x101d6a
sub ecx, dword [eax + 0x7c]
add dword [eax + 0xbc], ecx
or dword [eax], edx
mov ecx, dword [eax + 0x88]
movzx edx, byte [eax + 0x50]
movzx ebx, byte [ecx + ebp]
add ebp, 4
mov ecx, dword [eax + 0x8c]
imul ebx, edx
mov byte [esi + ecx], bl
inc dword [eax + 0x54]
mov ecx, dword [eax + 0x54]
mov esi, dword [eax + 0x94]
mov edx, esi
xor edx, dword [eax]
mov ebx, dword [eax + 0x120]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0xf4]
sub ecx, dword [eax + 0xf0]
dec ecx
add dword [eax + 0xa0], ecx
mov ecx, 0xffee1b1e
sub ecx, edx
mov edx, dword [eax + 0x40]
add dword [eax + 0x7c], ecx
add edx, 0xffffffef
mov ecx, dword [eax + 0xa4]
xor ecx, esi
mov esi, ebx
sub esi, dword [eax]
mov dword [eax + 0x94], ecx
sub esi, 0x63ea9
or esi, dword [eax + 0x3c]
mov ecx, dword [eax + 0xd4]
add ecx, edx
mov edx, dword [eax + 0xac]
imul esi, ecx
mov ecx, dword [eax + 0xcc]
xor ecx, edx
sub dword [eax + 0x118], ecx
mov dword [eax + 0x3c], esi
cmp ebp, 0x28260
jl 0x1000bdb1
mov ecx, dword [eax + 0xf4]
add ecx, 0x14b2a7bd
add ecx, dword [eax + 0x110]
cmp dword [eax + 0x64], 0x2b9e
mov dword [eax + 0x50], ecx
jne 0x1000bea3
mov edx, dword [eax + 0xfc]
mov ecx, dword [eax + 0x34]
xor ecx, edx
add ecx, 0x8fab
add ecx, edx
mov dword [eax + 0xfc], ecx
jmp 0x1000bead
mov dword [eax + 0x88], 0x10040a70
xor edi, edi
nop
mov ecx, dword [eax + 0xfc]
mov ebx, dword [eax + 0x50]
sub ecx, 3
add dword [eax + 0xa4], ecx
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0xa4]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + ecx]
add edi, 4
xor dword [eax + 0x34], edx
imul ebx, ecx
mov ecx, dword [eax + 0x8c]
mov edx, ebx
shr edx, 0x10
mov byte [esi + ecx], dl
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0xf0]
sub ecx, 0x344a2
xor dword [eax + 0x120], ecx
xor dword [eax + 0x104], edx
mov ecx, dword [eax + 0xb0]
sub ecx, dword [eax + 0x104]
inc dword [eax + 0x54]
sub ecx, 0x104df5
mov esi, dword [eax + 0x54]
imul ecx, edx
mov edx, ebx
shr edx, 8
mov dword [eax + 0xf0], ecx
mov ecx, dword [eax + 0xa4]
add ecx, dword [eax + 0x3c]
add dword [eax + 0xbc], ecx
mov ecx, dword [eax + 0x8c]
mov byte [esi + ecx], dl
inc dword [eax + 0x54]
mov edx, dword [eax + 0x54]
mov ecx, dword [eax + 0x8c]
mov byte [edx + ecx], bl
inc dword [eax + 0x54]
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0xcc]
inc ecx
add ecx, dword [eax + 0x118]
imul ecx, dword [eax + 0x74]
mov dword [eax + 0x74], ecx
cmp edi, 0xa8d0
jl 0x1000beb0
mov ecx, dword [eax + 0x64]
sub ecx, dword [eax + 0x10c]
mov ebp, dword [esp + 0x1c]
add ecx, 0x72cfe72d
pop edi
pop esi
mov dword [eax + 0x50], ecx
lea eax, [ebp + 0x176a]
pop ebp
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x124]
or eax, 0x176a
cmp dword [edi + 0x118], eax
jbe 0x1000c041
mov ecx, dword [edi + 0x110]
mov eax, ecx
xor eax, edx
xor ecx, esi
sub eax, 0x1aeb
or ecx, 0x27f3
xor dword [edi + 0xa8], eax
cmp dword [esp + 0x10], ecx
jb 0x1000c097
mov ecx, dword [edi + 0x7c]
mov eax, ebx
push 0
or eax, 0x1dda
xor ecx, esi
push edi
push eax
mov eax, ebp
xor ecx, 0x27f3
sub eax, esi
push eax
push ecx
call sym.bsga671te18.dll_LSr991
mov edx, dword [edi + 0xa8]
add esp, 0x14
mov ecx, dword [edi + 0xcc]
mov esi, eax
or ecx, edx
sub ecx, 0x1906
push ecx
mov ecx, dword [edi + 0x9c]
imul ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
and ebx, esi
lea eax, [ebp + 0x176a]
mov dword [edi + 0xa8], ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x110]
and eax, dword [edi + 0x9c]
mov ecx, dword [edi + 0x34]
cmp ecx, eax
jb 0x1000c097
imul eax, edx, 0x1c11
xor ecx, 0xfffff906
and ecx, 0x16fd
push eax
mov eax, dword [edi + 0x48]
or eax, dword [edi + 0x3c]
xor eax, dword [edi + 0x80]
push eax
mov eax, dword [edi + 0x94]
add eax, ebp
push ecx
push eax
mov eax, dword [edi + 0xe8]
sub eax, dword [edi + 0x5c]
add eax, dword [edi + 0x118]
push eax
push edi
call fcn.10001f80
add esp, 0x18
pop edi
pop esi
lea eax, [ebp + 0x176a]
pop ebp
pop ebx
pop ecx
ret