Function at 0x100f1830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
mov ebx, ecx
mov dword [esp + 0x14], 0
mov ecx, dword [edx + 0x14]
push esi
mov esi, dword [edx]
mov eax, dword [ebx]
inc esi
push edi
mov dword [esp + 0x3c], eax
xor edi, edi
mov eax, dword [edx + 4]
push esi
push dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
call fcn.1004aa90
mov ecx, dword [esp + 0x38]
add esp, 8
mov ebx, eax
mov dword [esp + 0x10], ebx
mov ecx, dword [ecx + 0xc]
push esi
push ecx
test ebx, ebx
jne 0x100f18b2
call fcn.1004ace0
sub eax, 5
add esp, 8
neg eax
sbb eax, eax
and eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1004a640
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov ecx, dword [ecx + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x40]
push ebx
mov edx, dword [eax + 0x14]
call fcn.100db090
add esp, 0x14
test eax, eax
jne 0x100f2062
mov ebx, dword [ebp + 0x20]
jmp 0x100f18f7
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c], 0xffffffff
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x5c]
push dword [esp + 0x58]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x100f1fbc
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp edi, edx
jl 0x100f18f3
cmp dword [esp + 0x34], eax
jne 0x100f1c9b
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
sub eax, ebx
mov dword [esp + 0x40], eax
lea eax, [ebx + ecx]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, ebx
or eax, dword [esp + 0xc]
je 0x100f1b17
mov eax, ebx
mov dword [esp + 0x38], esi
and eax, 1
or eax, esi
jne 0x100f19b6
nop
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, ebx
and ecx, dword [esp + 0xc]
or edx, ecx
je 0x100f1990
mov dword [esp + 0x38], esi
mov edi, dword [ebp + 0x10]
xor edx, edx
dec edi
xor ecx, ecx
mov eax, edi
xor ebx, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0xc]
or edx, ecx
jne 0x100f1a0a
mov esi, dword [esp + 0x14]
dec edi
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
inc ebx
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, esi
and ecx, dword [esp + 0xc]
or edx, ecx
je 0x100f19e3
mov esi, dword [esp + 0x38]
sub esi, ebx
mov eax, esi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test edi, edi
jle 0x100f1b07
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x44]
push dword [esp + 0x3c]
mov edx, dword [eax + 0x14]
call fcn.100db090
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100f2050
add edi, dword [ebp + 0x10]
mov ebx, dword [esp + 0x54]
nop
cmp dword [esp + 0x28], edi
jge 0x100f1aaa
lea eax, [esp + 0x28]
mov dword [esp + 0x58], 0
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], 0
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x4c]
push ebx
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
je 0x100f1a60
mov eax, dword [esp + 0x38]
push ebx
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test esi, esi
je 0x100f1ac4
cmp esi, 0x65
jne 0x100f2050
mov edx, dword [esp + 0x18]
xor eax, eax
mov edi, dword [esp + 0x1c]
cmp esi, 0x65
mov ecx, dword [esp + 0x10]
sete al
sub eax, dword [ebp + 0x10]
add eax, dword [esp + 0x28]
test eax, eax
jle 0x100f1b13
movq xmm1, qword [esp + 0x68]
add edx, eax
movd xmm0, eax
psrlq xmm1, xmm0
movq qword [esp + 0x68], xmm1
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], eax
jmp 0x100f1b17
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
xor esi, esi
mov ebx, dword [esp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], 1
test edx, edx
jg 0x100f1be8
cmp dword [ebp + 8], esi
jg 0x100f1be8
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x100f1c7e
jns 0x100f1b5e
mov ebx, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f1b55
sub ebx, ecx
mov edi, dword [ebp + 0x20]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f1bb5
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x40], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.100ca320
test eax, eax
jne 0x100f1fb2
push dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
push esi
call fcn.1001e950
add esp, 8
test eax, eax
je 0x100f1fb2
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
mov edx, dword [esp + 0x10]
push ebx
push edx
lea eax, [edi + esi]
push eax
call fcn.1012b000
mov edx, dword [esp + 0x24]
lea eax, [esi + ebx]
mov ebx, dword [ebp + 0x20]
add esp, 0xc
mov byte [edi + eax], 0
xor esi, esi
mov edi, dword [esp + 0x1c]
mov dword [ebx + 4], eax
jmp 0x100f1c81
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f1bf0
mov edi, dword [ebp + 0x20]
sub ebx, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f1c50
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x40], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.100ca320
test eax, eax
jne 0x100f1fb2
push dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
push esi
call fcn.1001e950
add esp, 8
test eax, eax
je 0x100f1fb2
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
push ebx
push dword [ebp + 0x1c]
lea eax, [edi + esi]
push eax
call fcn.1012b000
mov edx, dword [esp + 0x24]
lea eax, [esi + ebx]
mov ebx, dword [ebp + 0x20]
add esp, 0xc
mov byte [eax + edi], 0
xor esi, esi
mov edi, dword [esp + 0x1c]
mov dword [ebx + 4], eax
jmp 0x100f1c81
mov ebx, dword [ebp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
cmp edi, edx
jl 0x100f18f0
jmp 0x100f1c9e
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
add eax, edx
cmp edi, eax
jge 0x100f1f43
mov eax, edi
mov dword [esp + 0x38], 1
sub eax, edx
xor ecx, ecx
xor edx, edx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0xc]
or edx, ecx
jne 0x100f1ce0
mov dword [esp + 0x38], 0
mov ebx, dword [ebp + 0x20]
cmp edi, dword [esp + 0x18]
jle 0x100f1d0f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
sub eax, ecx
push eax
lea edx, [edx + ecx]
mov ecx, ebx
call fcn.100f1770
mov esi, eax
add esp, 4
test esi, esi
jne 0x100f1f2e
cmp dword [esp + 0x38], 0
je 0x100f1dc0
mov ebx, dword [ebp + 0x14]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f1d20
mov edi, dword [ebp + 0x20]
sub ebx, ecx
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
inc ecx
mov dword [esp + 0x28], eax
add ecx, ebx
mov edx, dword [edi + 8]
cmp ecx, edx
jl 0x100f1d95
mov eax, edx
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x40], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.100ca320
test eax, eax
jne 0x100f1fb2
push dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
push esi
call fcn.1001e950
add esp, 8
test eax, eax
je 0x100f1fb2
lea ecx, [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], esi
lea eax, [edi + 4]
mov dword [esp + 0x20], ecx
jmp 0x100f1d99
mov dword [esp + 0x20], eax
mov esi, dword [eax]
mov edi, dword [edi]
push ebx
push dword [ebp + 0x14]
lea eax, [edi + esi]
push eax
call fcn.1012b000
mov ecx, dword [esp + 0x34]
lea eax, [esi + ebx]
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov byte [eax + edi], 0
mov dword [ecx], eax
jmp 0x100f1dc7
lea edx, [ebx + 4]
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
sub edi, ebx
lea eax, [ebx + eax]
mov dword [esp + 0x5c], eax
jns 0x100f1dec
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100f1de3
sub edi, ecx
mov ebx, dword [ebp + 0x20]
mov eax, dword [edx]
inc eax
add eax, edi
mov ecx, dword [ebx + 8]
mov dword [esp + 0x40], ecx
cmp eax, ecx
jl 0x100f1e59
mov eax, ecx
cdq
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
add esi, eax
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
adc ecx, edx
add esi, 0x64
mov dword [esp + 0x40], esi
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.100ca320
test eax, eax
jne 0x100f1fb2
push dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
push esi
call fcn.1001e950
add esp, 8
test eax, eax
je 0x100f1fb2
mov edx, dword [esp + 0x20]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov dword [ebx + 8], esi
mov dword [esp + 0x28], eax
jmp 0x100f1e5d
mov dword [esp + 0x28], edx
mov eax, dword [ebx]
mov esi, dword [edx]
push edi
push dword [esp + 0x60]
mov dword [esp + 0x28], eax
add eax, esi
push eax
call fcn.1012b000
mov eax, dword [esp + 0x34]
lea edx, [esi + edi]
mov ecx, dword [esp + 0x2c]
xor esi, esi
add esp, 0xc
mov dword [eax], edx
mov byte [edx + ecx], 0
cmp dword [esp + 0x38], esi
je 0x100f1f2e
mov edi, dword [ebp + 0x18]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100f1e98
sub edi, ecx
mov ecx, dword [esp + 0x40]
lea eax, [edi + 1]
add eax, edx
cmp eax, ecx
jl 0x100f1ef7
mov eax, ecx
cdq
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
add esi, eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100ca320
test eax, eax
jne 0x100f1fb2
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push esi
call fcn.1001e950
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x100f1fb2
mov dword [ebx], eax
mov dword [ebx + 8], esi
jmp 0x100f1efb
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
push edi
push dword [ebp + 0x18]
mov esi, dword [esi]
add eax, esi
push eax
call fcn.1012b000
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
add esp, 0xc
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
mov byte [eax + ecx], 0
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], edi
jmp 0x100f18f7
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], edi
test esi, esi
je 0x100f18f7
jmp 0x100f2050
cmp dword [ebp + 0xc], 0
je 0x100f2050
mov esi, dword [ebp + 0x1c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100f1f53
mov eax, dword [ebx + 8]
sub esi, ecx
mov ecx, dword [ebx + 4]
inc ecx
mov dword [esp + 0x40], esi
add ecx, esi
cmp ecx, eax
jl 0x100f1fa6
cdq
mov edi, eax
mov ecx, edx
mov eax, esi
mov esi, dword [ebx]
cdq
add edi, eax
adc ecx, edx
add edi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100ca320
test eax, eax
jne 0x100f1fb2
push dword [esp + 0x5c]
mov ecx, esi
push edi
call fcn.1001e950
add esp, 8
test eax, eax
je 0x100f1fb2
mov dword [ebx], eax
mov dword [ebx + 8], edi
push dword [esp + 0x40]
push dword [ebp + 0x1c]
jmp 0x100f2030
mov esi, 7
jmp 0x100f2050
cmp esi, 0x65
jne 0x100f2050
mov esi, dword [esp + 0x10]
add esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x100f1fd0
mov eax, dword [ebx + 8]
sub esi, ecx
mov ecx, dword [ebx + 4]
inc ecx
mov dword [esp + 0x40], esi
add ecx, esi
cmp ecx, eax
jl 0x100f2023
cdq
mov edi, eax
mov ecx, edx
mov eax, esi
mov esi, dword [ebx]
cdq
add edi, eax
adc ecx, edx
add edi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100ca320
test eax, eax
jne 0x100f1fb2
push dword [esp + 0x5c]
mov ecx, esi
push edi
call fcn.1001e950
add esp, 8
test eax, eax
je 0x100f1fb2
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0x10]
push dword [esp + 0x40]
add eax, dword [esp + 0x24]
push eax
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
lea eax, [edi + esi]
push eax
call fcn.1012b000
mov eax, dword [esp + 0x4c]
add esp, 0xc
add eax, esi
xor esi, esi
mov dword [ebx + 4], eax
mov byte [eax + edi], 0
mov eax, dword [esp + 0x48]
push dword [esp + 0x44]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret