Function at 0xf1c089
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x40]
mov ebx, ecx
mov dword [esp + 0x10], edx
mov al, byte [esi]
mov ecx, eax
test al, al
mov eax, dword [edx]
jne 0xf1c0c8
mov ebp, 0x1c
test eax, eax
jne 0xf1c5b5
mov al, 1
mov dword [esp + 4], 0
xor ebp, ebp
mov dword [esp + 0x14], eax
mov al, 1
jmp 0xf1c43e
xor ebp, ebp
test eax, eax
jne 0xf1c0da
mov dword [esp + 4], 0
mov dh, cl
jmp 0xf1c11e
cmp byte [eax], 0x78
jne 0xf1c0ce
cmp byte [eax + 1], 0x6d
mov dh, cl
je 0xf1c0f1
mov dword [esp + 4], 0
jmp 0xf1c11e
cmp byte [eax + 2], 0x6c
jne 0xf1c0e7
mov cl, byte [eax + 3]
cmp cl, 0x6e
jne 0xf1c115
cmp byte [eax + 4], 0x73
jne 0xf1c115
cmp byte [eax + 5], 0
jne 0xf1c115
mov ebp, 0x27
jmp 0xf1c5b5
test cl, cl
sete al
mov dword [esp + 4], eax
mov edi, 0xf156d0
mov ecx, 0xf156d0
mov al, byte [ebx + 0xe8]
mov dword [esp + 0x24], ebx
and edi, 1
xor edi, ecx
mov cl, 1
mov dword [esp + 0x14], ecx
mov cl, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
mov byte [esp + 0xf], al
mov al, 1
test al, 1
je 0xf1c279
cmp ebp, 0x24
ja 0xf1c279
cmp edi, 0xffffffff
movzx ecx, byte [0x116834b]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0xf1c26d
mov al, byte [0x116834b]
cmp edi, 0xffffffff
mov dl, 1
sete cl
not cl
and cl, 3
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0x116834b], dl
jne 0xf1c184
cmp edi, 0xffffffff
movzx eax, al
sete cl
not cl
and cl, 3
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0xf1c1d9
cmp edi, 0xffffffff
movzx ecx, byte [0x116834b]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jae 0xf1c1bb
jmp 0xf1c26d
mov byte [esp + 3], dh
xor edx, edx
cmp edi, 0xffffffff
sete dl
movzx ecx, byte [0x116834b]
xor edx, 0x32e973db
add edx, 0x840
mov eax, edx
and al, 7
movzx eax, al
bt ecx, eax
jb 0xf1c251
mov esi, 0x1168320
xor eax, eax
mov dword [esp + 0x18], ebp
mov edi, dword [esi]
mov ecx, eax
mov ebp, edx
inc eax
shl ebp, cl
xor cl, 0x1f
xor edi, edx
shr edx, cl
mov dword [esi], edi
or edx, ebp
not edi
add esi, 4
imul edx, edi
cmp eax, 0xa
jne 0xf1c20f
mov edi, dword [esp + 0x1c]
mov al, 1
mov esi, dword [esp + 0x40]
cmp edi, 0xffffffff
sete cl
not cl
and cl, 3
shl al, cl
or byte [0x116834b], al
mov ebp, dword [esp + 0x18]
cmp edi, 0xffffffff
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0x116834b], al
mov dh, byte [esp + 3]
cmp dh, byte [ebp + 0x1168320]
mov ecx, dword [esp + 4]
je 0xf1c281
mov dword [esp + 8], 0
test cl, cl
jne 0xf1c400
cmp byte [esp + 0x14], 0
je 0xf1c400
cmp ebp, 0x1d
ja 0xf1c3f8
mov edi, fcn.00f19ec0
mov ebx, fcn.00f19ec0
xor eax, eax
or edi, 2
xor ebx, 2
mov ecx, edi
add ecx, ebx
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
movzx ecx, byte [0x1168373]
bt ecx, eax
jb 0xf1c3e4
mov al, byte [0x1168373]
mov byte [esp + 3], dh
mov edx, edi
xor ecx, ecx
add edx, ebx
sete cl
mov edx, ecx
xor edx, 5
lea ecx, [edx + ecx*2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0x1168373], dl
jne 0xf1c2d7
mov edx, edi
xor ecx, ecx
movzx eax, al
add edx, ebx
sete cl
mov edx, ecx
xor edx, 5
lea ecx, [edx + ecx*2]
mov dh, byte [esp + 3]
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0xf1c340
mov ecx, edi
xor eax, eax
add ecx, ebx
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
movzx ecx, byte [0x1168373]
bt ecx, eax
jae 0xf1c31e
jmp 0xf1c3e4
mov ecx, edi
xor eax, eax
add ecx, ebx
sete al
mov ecx, eax
xor ecx, 0x624050f5
lea edx, [ecx + eax*2 + 0xa10]
movzx ecx, byte [0x1168373]
mov eax, edx
and al, 7
movzx eax, al
bt ecx, eax
jb 0xf1c3c4
mov dword [esp + 0x18], ebp
mov ebp, 0x1168350
xor eax, eax
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp]
mov ecx, eax
mov esi, edx
inc eax
shl esi, cl
xor cl, 0x1f
xor ebx, edx
shr edx, cl
mov dword [ebp], ebx
or edx, esi
not ebx
add ebp, 4
imul edx, ebx
cmp eax, 8
jne 0xf1c37a
mov ebx, dword [esp + 0x20]
mov ecx, edi
xor eax, eax
mov dl, 1
mov esi, dword [esp + 0x40]
add ecx, ebx
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [ecx + eax*2]
shl dl, cl
or byte [0x1168373], dl
mov ebp, dword [esp + 0x18]
xor eax, eax
add edi, ebx
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0x1168373], al
mov dh, byte [esp + 3]
cmp dh, byte [ebp + 0x1168350]
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
je 0xf1c400
mov dword [esp + 0x14], 0
cmp byte [esp + 0xf], 0
je 0xf1c429
cmp dh, byte [ebx + 0x1d4]
jne 0xf1c429
movsx ecx, dh
call fcn.00f1c5bf
mov ecx, dword [esp + 4]
test al, al
jne 0xf1c429
mov ebp, 2
jmp 0xf1c5b5
mov dh, byte [esi + ebp + 1]
inc ebp
cmp byte [esp + 8], 0
setne al
test dh, dh
jne 0xf1c151
mov edx, dword [esp + 4]
cmp ebp, 0x24
sete cl
and cl, al
movzx ecx, cl
movzx eax, dl
cmp eax, ecx
je 0xf1c464
xor eax, eax
test dl, dl
sete al
lea ebp, [eax + eax + 0x26]
jmp 0xf1c5b5
cmp byte [esp + 0x14], 0
mov eax, ebp
je 0xf1c47b
mov ebp, 0x28
cmp eax, 0x1d
je 0xf1c5b5
cmp byte [ebx + 0x1d4], 1
mov ecx, dword [ebx + 0x174]
mov ebp, eax
sbb ebp, 0xffffffff
test ecx, ecx
je 0xf1c4d5
cmp ebp, dword [ecx + 0x18]
mov esi, ebp
jle 0xf1c4ca
xor ebp, ebp
inc ebp
cmp esi, 0x7fffffe7
ja 0xf1c5b5
lea edi, [esi + 0x18]
push edi
push dword [ecx + 0x10]
mov dword [esp + 0x10], ecx
call dword [ebx + 0x10]
add esp, 8
test eax, eax
je 0xf1c5b5
mov ecx, dword [esp + 8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], edi
mov eax, dword [ecx + 4]
mov dword [ebx + 0x174], eax
jmp 0xf1c520
push 0x1c
call dword [ebx + 0xc]
add esp, 4
mov ecx, ebp
xor ebp, ebp
inc ebp
cmp ecx, 0x7fffffe7
ja 0xf1c5b5
test eax, eax
je 0xf1c5b5
mov esi, ecx
lea edi, [ecx + 0x18]
push edi
mov dword [esp + 0xc], eax
call dword [ebx + 0xc]
mov ecx, dword [esp + 0xc]
add esp, 4
test eax, eax
mov dword [ecx + 0x10], eax
jne 0xf1c51d
push ecx
call dword [ebx + 0x14]
add esp, 4
jmp 0xf1c5b5
mov dword [ecx + 0x18], edi
mov ebp, dword [esp + 0x40]
mov dword [ecx + 0x14], esi
push esi
push ebp
push dword [ecx + 0x10]
mov edi, ecx
call fcn.00dcc890
mov edx, edi
add esp, 0xc
mov al, byte [ebx + 0x1d4]
test al, al
je 0xf1c549
mov ecx, dword [edx + 0x10]
mov byte [ecx + esi - 1], al
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov dword [edx], ecx
mov dword [edx + 0xc], edi
mov ecx, dword [ecx + 4]
mov dword [edx + 8], ecx
cmp byte [ebp], 0
jne 0xf1c57b
mov ecx, 0x98
add ecx, dword [ebx + 0x160]
cmp ecx, dword [esp + 0x10]
jne 0xf1c57b
xor ecx, ecx
jmp 0xf1c57d
mov ecx, edx
mov esi, edx
mov edx, dword [esp + 0x10]
xor ebp, ebp
test edi, edi
mov dword [edx + 4], ecx
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dword [eax], esi
je 0xf1c5b5
mov eax, dword [ebx + 0x64]
test eax, eax
je 0xf1c5b5
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
mov ecx, dword [edx + 4]
test ecx, ecx
cmove edi, ecx
push edi
push dword [edx]
push dword [ebx + 4]
call eax
add esp, 0xc
mov eax, ebp
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret