Function at 0x1ffb2350
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4b0
push ebx
push esi
mov ebx, dword [esp + 0x4c0]
push edi
push ebp
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4d0]
and eax, 1
mov dword [esp + 0x14], eax
je 0x1ffb23ac
lea eax, [esp + 0x10]
push 4
mov esi, dword [esp + 0x4c8]
push eax
push esi
call dword [esi + 4]
add esp, 0xc
cmp eax, 4
je 0x1ffb239f
mov eax, 0xfffffffb
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x1ffb23fd
mov eax, 1
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x1ffb23fd
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x1ffe5274
push ecx
call edi
lea ecx, [esp + 0x78]
lea eax, [esp + 0x24]
add esp, 0xc
push ecx
push str._s_r_n
push eax
call edi
lea ecx, [esp + 0x24]
mov esi, dword [esp + 0x4d0]
add esp, 0xc
mov ebp, eax
push ebp
push ecx
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, ebp
cmp eax, 1
sbb eax, eax
and eax, 6
sub eax, 5
cmp eax, 1
jne 0x1ffb26dc
cmp dword [esp + 0x14], 0
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
je 0x1ffb2427
lea eax, [esp + 0x10]
push 4
push eax
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, 4
jmp 0x1ffb2460
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
push 0x1ffe5274
push ecx
call edi
lea ecx, [esp + 0x78]
lea edx, [esp + 0x24]
add esp, 0xc
push ecx
push str._s_r_n
push edx
call edi
lea ecx, [esp + 0x24]
add esp, 0xc
mov ebp, eax
push ebp
push ecx
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, ebp
cmp eax, 1
sbb eax, eax
and eax, 6
sub eax, 5
cmp eax, 1
jne 0x1ffb26dc
cmp dword [esp + 0x14], 0
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
je 0x1ffb2495
lea eax, [esp + 0x10]
push 4
push eax
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, 4
jmp 0x1ffb24ce
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
push 0x1ffe5274
push ecx
call edi
lea ecx, [esp + 0x78]
lea edx, [esp + 0x24]
add esp, 0xc
push ecx
push str._s_r_n
push edx
call edi
lea ecx, [esp + 0x24]
add esp, 0xc
mov ebp, eax
push ebp
push ecx
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, ebp
cmp eax, 1
sbb eax, eax
and eax, 6
sub eax, 5
cmp eax, 1
jne 0x1ffb26dc
cmp dword [esp + 0x14], 0
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x10], eax
je 0x1ffb2503
lea eax, [esp + 0x10]
push 4
push eax
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, 4
jmp 0x1ffb253c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
push 0x1ffe5274
push ecx
call edi
lea ecx, [esp + 0x78]
lea edx, [esp + 0x24]
add esp, 0xc
push ecx
push str._s_r_n
push edx
call edi
lea ecx, [esp + 0x24]
add esp, 0xc
mov ebp, eax
push ebp
push ecx
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, ebp
cmp eax, 1
sbb eax, eax
and eax, 6
sub eax, 5
cmp eax, 1
jne 0x1ffb26dc
cmp dword [esp + 0x14], 0
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
je 0x1ffb2571
lea eax, [esp + 0x10]
push 4
push eax
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, 4
jmp 0x1ffb25aa
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
push 0x1ffe5274
push ecx
call edi
lea ecx, [esp + 0x78]
lea edx, [esp + 0x24]
add esp, 0xc
push ecx
push str._s_r_n
push edx
call edi
lea ecx, [esp + 0x24]
add esp, 0xc
mov edi, eax
push edi
push ecx
push esi
call dword [esi + 4]
add esp, 0xc
sub eax, edi
cmp eax, 1
sbb eax, eax
and eax, 6
sub eax, 5
cmp eax, 1
jne 0x1ffb26dc
mov eax, dword [ebx + 0x14]
push eax
call sub.LTKRN13N.dll_Ordinal_282
mov edi, eax
test edi, edi
jne 0x1ffb25d7
mov eax, 0xffffffff
jmp 0x1ffb26dc
cmp dword [ebx + 0x10], 8
jg 0x1ffb2639
lea eax, [esp + 0xc0]
mov ecx, dword [ebx + 0x24]
push eax
mov edx, dword [ebx + 0x28]
push ecx
push 0
push edx
call sub.LTKRN13N.dll_Ordinal_169
mov ebp, dword [ebx + 0x24]
lea eax, [esp + 0xc0]
shl ebp, 2
cmp dword [esp + 0x14], 0
push ebp
push eax
push esi
je 0x1ffb2620
call dword [esi + 4]
add esp, 0xc
sub eax, ebp
cmp eax, 1
sbb ebp, ebp
and ebp, 6
sub ebp, 5
jmp 0x1ffb2627
call fcn.1ffb2050
mov ebp, eax
cmp ebp, 1
je 0x1ffb2639
push edi
call sub.LTKRN13N.dll_Ordinal_283
mov eax, ebp
jmp 0x1ffb26dc
push ebx
call sub.LTKRN13N.dll_Ordinal_173
cmp dword [ebx + 0xc], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x18], 0
jle 0x1ffb26c6
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edi
push ebx
call sub.LTKRN13N.dll_Ordinal_129
cmp dword [esp + 0x4cc], 0
je 0x1ffb268b
mov ebp, dword [ebx + 0x14]
mov edx, edi
mov al, 0x55
test ebp, ebp
je 0x1ffb268b
test edi, edi
je 0x1ffb268b
test ebp, ebp
je 0x1ffb268b
mov cl, byte [edx]
inc edx
xor cl, al
dec ebp
mov al, cl
mov byte [edx - 1], cl
jne 0x1ffb267e
cmp dword [esp + 0x14], 0
mov ebp, dword [ebx + 0x14]
push ebp
push edi
push esi
je 0x1ffb26ad
call dword [esi + 4]
add esp, 0xc
sub eax, ebp
cmp eax, 1
sbb ebp, ebp
and ebp, 6
sub ebp, 5
jmp 0x1ffb26b4
call fcn.1ffb2050
mov ebp, eax
cmp ebp, 1
jne 0x1ffb26e9
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp dword [ebx + 0xc], eax
jg 0x1ffb2651
mov eax, dword [esp + 0x6c]
push eax
push ebx
call sub.LTKRN13N.dll_Ordinal_156
push edi
call sub.LTKRN13N.dll_Ordinal_283
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4b0
ret 0x10
mov eax, dword [esp + 0x6c]
push eax
push ebx
call sub.LTKRN13N.dll_Ordinal_156
push edi
call sub.LTKRN13N.dll_Ordinal_283
mov eax, ebp
jmp 0x1ffb26dc