Function at 0x100f31a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov ecx, dword [eax]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x44]
cmp ebp, eax
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
je 0x100f31fe
mov edi, dword [ebp]
mov ebx, edi
shl ebx, 4
cmp ecx, eax
push eax
mov dword [esp + 0x34], edi
push ebx
je 0x100f31e2
mov eax, ecx
call fcn.100a41a0
jmp 0x100f31e7
call fcn.100a3b10
mov esi, eax
add esp, 8
test esi, esi
je 0x100f3206
push ebx
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
jmp 0x100f3206
xor edi, edi
mov dword [esp + 0x30], edi
xor esi, esi
test edi, edi
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov word [ecx], di
mov dword [esp + 0x1c], esi
mov dword [edx], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], esi
jle 0x100f34ad
mov dword [esp + 0x28], 0
jmp 0x100f3244
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x45], 0
jne 0x100f34ad
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + edx]
test eax, eax
lea esi, [ecx + edx]
je 0x100f3287
mov ecx, dword [eax + 4]
test ecx, 0x1000
je 0x100f3287
test ecx, 0x40000
je 0x100f3280
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
jmp 0x100f3283
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x100f3263
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x100f32d8
cmp byte [eax], 0x7a
jne 0x100f329b
mov eax, dword [eax + 0x10]
cmp byte [eax], 0x7a
je 0x100f3293
mov dl, byte [eax]
cmp dl, 0x98
jne 0x100f32cb
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x100f32cb
movsx eax, word [eax + 0x20]
test eax, eax
jge 0x100f32b9
movsx eax, word [ecx + 0x20]
test eax, eax
jl 0x100f32c4
mov edx, dword [ecx + 4]
shl eax, 4
mov ecx, dword [eax + edx]
jmp 0x100f32d8
mov ecx, str.rowid
jmp 0x100f32d8
cmp dl, 0x37
jne 0x100f32d5
mov ecx, dword [eax + 8]
jmp 0x100f32d8
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x14]
push ecx
push 0x1014e694
call fcn.100a5af0
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0
je 0x100f343d
mov esi, dword [esp + 0x44]
test esi, esi
je 0x100f3342
mov cl, byte [ebx]
xor eax, eax
test cl, cl
mov edx, ebx
je 0x100f3330
movzx ecx, cl
movzx ecx, byte [ecx + 0x10148030]
lea edi, [eax*8]
xor ecx, edi
add edx, 1
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x100f3312
xor edx, edx
div dword [esp + 0x38]
mov ebp, dword [esi + edx*8 + 4]
mov edi, dword [esi + edx*8]
lea eax, [esi + edx*8]
jmp 0x100f334a
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x100f343d
movzx edx, byte [ebx]
movzx eax, byte [edx + 0x10148030]
mov dword [esp + 0x34], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx]
movzx eax, dl
movzx eax, byte [eax + 0x10148030]
sub edi, 1
sub eax, dword [esp + 0x34]
jne 0x100f33ae
mov esi, ebx
sub esi, ecx
lea esp, [esp]
test dl, dl
je 0x100f33aa
movzx eax, byte [esi + ecx + 1]
movzx ebx, byte [eax + 0x10148030]
mov dl, byte [ecx + 1]
add ecx, 1
movzx eax, dl
movzx eax, byte [eax + 0x10148030]
sub eax, ebx
mov ebx, dword [esp + 0x20]
je 0x100f3380
jmp 0x100f33ae
test eax, eax
je 0x100f33ba
test edi, edi
mov ebp, dword [ebp]
jne 0x100f3360
jmp 0x100f343d
cmp dword [ebp + 8], 0
je 0x100f343d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100f33c5
sub eax, edx
and eax, 0x3fffffff
mov ecx, eax
jle 0x100f33fc
lea eax, [ecx - 1]
test eax, eax
jle 0x100f33f4
movzx edx, byte [eax + ebx]
test byte [edx + 0x10148130], 4
je 0x100f33f4
sub eax, 1
test eax, eax
jg 0x100f33e0
cmp byte [eax + ebx], 0x3a
jne 0x100f33fc
mov ecx, eax
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
add esi, 1
push esi
push ebx
push ecx
push str._.z:_u
mov dword [esp + 0x34], esi
call fcn.100a5af0
add esp, 0x10
cmp esi, 3
mov ebx, eax
mov dword [esp + 0x20], ebx
jbe 0x100f3435
lea eax, [esp + 0x24]
push eax
push 4
call fcn.100a5d40
add esp, 8
test ebx, ebx
jne 0x100f3300
test ebx, ebx
mov esi, dword [esp + 0x2c]
mov dword [esi], ebx
je 0x100f3488
push ebx
mov eax, esi
lea ecx, [esp + 0x3c]
call fcn.100a7ef0
add esp, 4
cmp eax, esi
jne 0x100f3488
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x45], 0
jne 0x100f3488
cmp byte [eax + 0x46], 0
jne 0x100f3488
cmp dword [eax + 0xa4], 0
mov byte [eax + 0x45], 1
jle 0x100f3481
mov dword [eax + 0xf8], 1
add dword [eax + 0x100], 1
mov eax, dword [esp + 0x18]
add dword [esp + 0x28], 0x18
add esi, 0x10
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x100f3240
lea ecx, [esp + 0x38]
push ecx
call fcn.100a7c00
mov ecx, dword [esp + 0x18]
add esp, 4
cmp byte [ecx + 0x45], 0
je 0x100f364b
cmp dword [esp + 0x18], 0
jle 0x100f358e
mov ebp, dword [esp + 0x18]
mov ebx, esi
mov edi, ecx
mov esi, dword [ebx]
test esi, esi
je 0x100f357c
cmp dword [edi + 0x1c8], 0
je 0x100f34fc
mov eax, esi
mov ecx, edi
call fcn.100a3e80
jmp 0x100f357c
cmp esi, dword [edi + 0x120]
jb 0x100f3523
cmp esi, dword [edi + 0x124]
jae 0x100f3523
mov edx, dword [edi + 0x11c]
mov dword [esi], edx
add dword [edi + 0x108], 0xffffffff
mov dword [edi + 0x11c], esi
jmp 0x100f357c
cmp dword [0x10170158], 0
je 0x100f3572
mov eax, dword [0x10186ab0]
test eax, eax
je 0x100f353f
push eax
call dword [0x101701b0]
add esp, 4
push esi
call dword [0x1017018c]
sub dword [0x10186900], eax
sub dword [0x10186924], 1
add esp, 4
push esi
call dword [0x10170184]
mov eax, dword [0x10186ab0]
add esp, 4
test eax, eax
je 0x100f357c
push eax
call dword [0x101701b8]
jmp 0x100f3579
push esi
call dword [0x10170184]
add esp, 4
add ebx, 0x10
sub ebp, 1
jne 0x100f34db
mov esi, dword [esp + 0x1c]
mov ecx, edi
test esi, esi
je 0x100f362b
cmp dword [ecx + 0x1c8], 0
je 0x100f35ab
mov eax, esi
call fcn.100a3e80
jmp 0x100f362b
cmp esi, dword [ecx + 0x120]
jb 0x100f35d2
cmp esi, dword [ecx + 0x124]
jae 0x100f35d2
mov eax, dword [ecx + 0x11c]
mov dword [esi], eax
add dword [ecx + 0x108], 0xffffffff
mov dword [ecx + 0x11c], esi
jmp 0x100f362b
cmp dword [0x10170158], 0
je 0x100f3621
mov eax, dword [0x10186ab0]
test eax, eax
je 0x100f35ee
push eax
call dword [0x101701b0]
add esp, 4
push esi
call dword [0x1017018c]
sub dword [0x10186900], eax
sub dword [0x10186924], 1
add esp, 4
push esi
call dword [0x10170184]
mov eax, dword [0x10186ab0]
add esp, 4
test eax, eax
je 0x100f362b
push eax
call dword [0x101701b8]
jmp 0x100f3628
push esi
call dword [0x10170184]
add esp, 4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [ecx], 0
mov word [edx], 0
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret