Function at 0x91b504
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x91bbbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0091ae6c
test al, al
jne 0x91b582
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407368
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [0xa3ffa8]
call fcn.0040d834
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
pop edx
call fcn.00425ad0
mov edx, dword [ebp - 0x2c]
mov eax, 3
call fcn.0091acd8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x14]
cmp eax, 8
ja case.default.0x91b59e
jmp dword [eax*4 + 0x91b5a5]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x91b5fe
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.00404b78
jmp 0x91b5fe
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x24]
jge 0x91b5e1
cmp dword [ebp + 8], 0
jle case.default.0x91b59e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
call fcn.00404b78
jmp case.default.0x91b59e
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
call fcn.00919538
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x14]
call fcn.00919538
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x24]
jge 0x91b648
cmp dword [ebp + 8], 0
jle case.default.0x91b59e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.00919538
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.00919538
jmp case.default.0x91b59e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
jmp 0x91b75f
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.00919538
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x24]
jge 0x91b71e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
cmp dword [ebp + 8], 0
jle case.default.0x91b59e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.00919538
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.00919538
jmp case.default.0x91b59e
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.00404b78
mov eax, dword [ebp + 8]
dec eax
test eax, eax
jl case.default.0x91b59e
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x24]
jne 0x91b882
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x20]
cmp byte [eax + edx], 0xff
jae 0x91b83f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x20]
inc byte [eax + edx]
jmp 0x91b855
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx], 0
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 8
jne 0x91b822
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
inc dword [eax + 0x40]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44]
mov ecx, dword [ebp - 0x24]
xor al, byte [edx + ecx]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx], al
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x91b80a
jmp case.default.0x91b59e
cmp dword [ebp + 8], 0
jle case.default.0x91b59e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
xor al, byte [edx]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
dec ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
inc eax
call fcn.00404b78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx]
mov byte [eax + edx - 1], cl
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x91b8ca
jmp case.default.0x91b59e
cmp dword [ebp + 8], 0
jle case.default.0x91b59e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
xor al, byte [edx]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
dec ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
inc eax
call fcn.00404b78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x2c]
mov cl, byte [ecx]
mov byte [eax + edx - 1], cl
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x91b94d
jmp case.default.0x91b59e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
call fcn.00919538
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.00919538
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x24]
jge 0x91b9c9
cmp dword [ebp + 8], 0
jle case.default.0x91b59e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.00919538
jmp case.default.0x91b59e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
call fcn.00919538
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x24]
jge 0x91ba7f
cmp dword [ebp + 8], 0
jle case.default.0x91b59e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.00919538
jmp case.default.0x91b59e
cmp dword [ebp + 8], 0
jle case.default.0x91b59e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
call fcn.00404b78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
dec ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
inc eax
call fcn.00404b78
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
xor al, byte [edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
mov byte [edx + ecx - 1], al
inc dword [ebp - 0x10]
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x91bb31
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x91bbc2
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00409184
lea eax, [ebp - 0x2c]
call fcn.00409124
ret