Function at 0x100bd620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
mov edx, 3
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov ebx, ecx
mov ecx, edi
call fcn.100bd120
mov ebp, eax
lea ecx, [ebp - 1]
cmp ecx, 2
ja 0x100bdcca
cmp byte [ebx + 0x12], 0
lea esi, [ebx + 0x1c]
mov dword [esi], 0x8000
mov dword [esp + 0x10], esi
je 0x100bd671
mov edx, 1
mov ecx, edi
call fcn.100bd120
test eax, eax
jne 0x100bd6b2
lea eax, [ebx + 0x1c]
mov dword [esp + 0x10], eax
mov edx, 0x10
mov ecx, edi
call fcn.100bd120
cmp byte [ebx + 0x12], 0
mov dword [esi], eax
mov dword [esp + 0x14], esi
je 0x100bd699
cmp byte [ebx + 0x13], 0x10
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, esi
jb 0x100bd6b4
shl eax, 8
mov edx, 8
mov ecx, edi
mov dword [esi], eax
call fcn.100bd120
or dword [esi], eax
mov ecx, dword [esp + 0x14]
jmp 0x100bd6b4
mov ecx, esi
cmp ebp, 3
mov byte [ebx + 0xe], 0
sete al
mov byte [ebx + 0xd], al
jne 0x100bd75e
mov al, byte [ecx]
and al, 1
mov byte [ebx + 0xe], al
mov edx, dword [edi]
mov ecx, edx
mov esi, dword [edi + 4]
mov eax, edx
sar eax, 4
and ecx, 0xf
add ecx, 0x10
mov eax, dword [esi + eax*2]
rol eax, cl
shr eax, cl
test eax, eax
jne 0x100bdcca
add edx, 0x10
and edx, 0xfffffff0
mov dword [edi], edx
cmp edx, 0xfffffff0
jg 0x100bdcca
mov ecx, dword [edi + 8]
sar edx, 3
sub ecx, edx
add ecx, 0xfffffffe
mov dword [edi + 8], ecx
lea eax, [esi + edx]
mov dword [edi + 4], eax
cmp ecx, 0xc
jb 0x100bdcca
xor edx, edx
lea esi, [ebx + 0x68]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
add eax, 4
add dword [edi + 8], 0xfffffffc
mov dword [edi + 4], eax
test ecx, ecx
je 0x100bdcca
mov eax, dword [ebx + 4]
sub eax, 3
cmp ecx, eax
ja 0x100bdcca
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 3
jb 0x100bd722
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x50
ret 4
mov dword [ebx + 0x14], 0xffffffff
cmp ebp, 2
jne 0x100bd7b0
xor ebp, ebp
xor esi, esi
nop
mov edx, 3
mov ecx, edi
call fcn.100bd120
mov byte [esp + esi + 0x14], al
xor eax, 3
inc esi
or ebp, eax
cmp esi, 8
jb 0x100bd770
test ebp, ebp
je 0x100bd7b0
push 1
lea eax, [esp + 0x18]
mov dword [ebx + 0x14], 0xe
push eax
lea ecx, [ebx + 0x21b0]
call fcn.100bc780
test al, al
je 0x100bdcca
cmp dword [ebx + 0x14], 0xffffffff
lea ecx, [ebx + 0x3d]
jne 0x100bd7d6
mov eax, 3
nop
mov byte [ecx - 1], al
lea ecx, [ecx + 2]
mov byte [ecx - 2], al
inc eax
cmp eax, 0x11
jb 0x100bd7c0
mov eax, 0x11111111
jmp 0x100bd7f8
mov edx, 3
nop dword [eax + eax]
mov al, dl
lea ecx, [ecx + 2]
sub al, 3
inc edx
mov byte [ecx - 3], al
mov byte [ecx - 2], al
cmp edx, 0x11
jb 0x100bd7e0
mov eax, 0xe0e0e0e
mov dword [ebx + 0x58], eax
lea esi, [ebx + 0x2330]
mov dword [ebx + 0x5c], eax
lea ebp, [ebx + 0x2230]
mov dword [ebx + 0x60], eax
mov word [ebx + 0x64], ax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
push esi
push ebp
call fcn.100bd150
mov dword [edi], eax
cmp eax, 0xfffffff0
jg 0x100bdcca
mov ecx, dword [ebx + 0x18]
mov edx, dword [edi + 4]
add ecx, 0x2330
add ecx, ebx
push ecx
push esi
mov ecx, eax
call fcn.100bd150
mov dword [edi], eax
cmp eax, 0xfffffff0
jg 0x100bdcca
mov ecx, dword [ebx + 0x18]
mov eax, 0x290
add ecx, 0x100
sub eax, ecx
push eax
lea eax, [ebx + 0x2230]
add eax, ecx
push 0
push eax
call fcn.100f83e0
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
add esp, 0xc
lea ecx, [ebp + 2]
movups xmmword [esp + 0x1c], xmm0
mov edx, 0xa4
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x4c], xmm0
movzx eax, byte [ecx - 2]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x1c]
movzx eax, byte [ecx - 5]
inc dword [esp + eax*4 + 0x1c]
movzx eax, byte [ecx - 4]
inc dword [esp + eax*4 + 0x1c]
movzx eax, byte [ecx - 3]
inc dword [esp + eax*4 + 0x1c]
sub edx, 1
jne 0x100bd895
mov ecx, 1
mov eax, dword [esp + ecx*4 + 0x1c]
inc ecx
lea edx, [eax + edx*2]
cmp ecx, 0xb
jbe 0x100bd8c2
mov eax, dword [esp + 0x4c]
mov ecx, edx
mov dword [ebx + 0x130], edx
mov dword [ebx + 0x14c], edx
mov dword [esp + 0x4c], edx
add edx, eax
lea ecx, [eax + ecx*2]
mov eax, ecx
add ecx, ecx
shl eax, 4
mov dword [ebx + 0x134], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x150], eax
mov eax, dword [esp + 0x50]
add ecx, eax
mov dword [esp + 0x50], edx
add edx, eax
lea eax, [ecx*8]
add ecx, ecx
mov dword [ebx + 0x138], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x154], eax
mov eax, dword [esp + 0x54]
add ecx, eax
mov dword [esp + 0x54], edx
add edx, eax
lea eax, [ecx*4]
add ecx, ecx
mov dword [ebx + 0x13c], eax
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x158], eax
mov eax, dword [esp + 0x58]
add ecx, eax
add ecx, ecx
mov dword [esp + 0x58], edx
add edx, eax
mov dword [ebx + 0x140], ecx
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x15c], eax
mov eax, dword [esp + 0x5c]
add ecx, eax
mov dword [ebx + 0x144], ecx
mov dword [esp + 0x5c], edx
mov dword [ebx + 0x148], 0x10000
cmp ecx, 0x10000
jne 0x100bdcca
xor edi, edi
mov ebp, 1
nop word [eax + eax]
mov esi, dword [esp + ebp*4 + 0x1c]
mov ecx, 0xb
sub ecx, ebp
mov eax, edi
shr eax, cl
shl esi, cl
mov dword [esp + ebp*4 + 0x1c], eax
lea eax, [ebx + 0x160]
push esi
add eax, edi
push ebp
push eax
call fcn.100f83e0
inc ebp
add esp, 0xc
add edi, esi
cmp ebp, 0xb
jbe 0x100bd9a0
mov edi, dword [esp + 0x64]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop dword [eax]
movzx ebp, byte [ebx + ecx + 0x2230]
test ebp, ebp
je 0x100bda46
mov esi, dword [esp + ebp*4 + 0x1c]
lea eax, [esi + 1]
mov dword [esp + ebp*4 + 0x1c], eax
cmp ebp, 0xb
jb 0x100bda06
mov word [ebx + esi*2 + 0x960], dx
jmp 0x100bda46
mov ecx, 0xc
lea eax, [ebx + 0x960]
sub ecx, ebp
shl esi, cl
add eax, esi
mov esi, 1
shl esi, cl
add esi, eax
cmp ebp, 9
jb 0x100bda30
mov dword [eax], edx
mov dword [esi - 4], edx
jmp 0x100bda42
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
add eax, 0x10
cmp eax, esi
jne 0x100bda30
mov ecx, dword [esp + 0x10]
inc ecx
add edx, 0x10001
mov dword [esp + 0x10], ecx
cmp ecx, 0x290
jb 0x100bd9e0
mov edx, dword [edi + 4]
lea eax, [ebx + 0x25b9]
mov ecx, dword [edi]
lea esi, [ebx + 0x24c0]
push eax
push esi
mov dword [esp + 0x6c], esi
call fcn.100bd150
mov dword [edi], eax
cmp eax, 0xfffffff0
jg 0x100bdcca
xorps xmm0, xmm0
mov dword [esp + 0x5c], 0
lea ebp, [ebx + 0x1e68]
mov edx, 0x53
movups xmmword [esp + 0x1c], xmm0
lea ecx, [esi + 2]
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x4c], xmm0
nop dword [eax]
movzx eax, byte [ecx - 2]
lea ecx, [ecx + 3]
inc dword [esp + eax*4 + 0x1c]
movzx eax, byte [ecx - 4]
inc dword [esp + eax*4 + 0x1c]
movzx eax, byte [ecx - 3]
inc dword [esp + eax*4 + 0x1c]
sub edx, 1
jne 0x100bdab0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x28]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x2c]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x34]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x38]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x3c]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x40]
mov dword [ebp], edx
mov ecx, edx
mov dword [ebp + 0x28], edx
mov dword [esp + 0x40], edx
add edx, eax
lea ecx, [eax + ecx*2]
mov eax, ecx
add ecx, ecx
shl eax, 7
mov dword [ebp + 4], eax
mov eax, ecx
sub eax, edx
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x44]
add ecx, eax
mov dword [esp + 0x44], edx
add edx, eax
mov eax, ecx
add ecx, ecx
shl eax, 6
mov dword [ebp + 8], eax
mov eax, ecx
sub eax, edx
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x48], edx
add edx, eax
mov eax, ecx
add ecx, ecx
shl eax, 5
mov dword [ebp + 0xc], eax
mov eax, ecx
sub eax, edx
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0x4c]
add ecx, eax
mov dword [esp + 0x4c], edx
add edx, eax
mov eax, ecx
add ecx, ecx
shl eax, 4
mov dword [ebp + 0x10], eax
mov eax, ecx
sub eax, edx
mov dword [ebp + 0x38], eax
mov eax, dword [esp + 0x50]
add ecx, eax
mov dword [esp + 0x50], edx
add edx, eax
lea eax, [ecx*8]
add ecx, ecx
mov dword [ebp + 0x14], eax
mov eax, ecx
sub eax, edx
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + 0x54]
add ecx, eax
mov dword [esp + 0x54], edx
add edx, eax
lea eax, [ecx*4]
add ecx, ecx
mov dword [ebp + 0x18], eax
mov eax, ecx
sub eax, edx
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x58]
add ecx, eax
add ecx, ecx
mov dword [esp + 0x58], edx
add edx, eax
mov dword [ebp + 0x1c], ecx
mov eax, ecx
sub eax, edx
mov dword [ebp + 0x44], eax
mov eax, dword [esp + 0x5c]
add ecx, eax
mov dword [ebp + 0x20], ecx
mov dword [esp + 0x5c], edx
mov dword [ebp + 0x24], 0x10000
je 0x100bdcbe
cmp ecx, 0x10000
jne 0x100bdcca
xor ebx, ebx
mov edi, 1
mov esi, dword [esp + edi*4 + 0x1c]
mov ecx, 8
sub ecx, edi
mov eax, ebx
shr eax, cl
shl esi, cl
mov dword [esp + edi*4 + 0x1c], eax
lea eax, [ebp + 0x48]
push esi
add eax, ebx
push edi
push eax
call fcn.100f83e0
inc edi
add esp, 0xc
add ebx, esi
cmp edi, 8
jbe 0x100bdc05
mov eax, dword [esp + 0x64]
xor ebx, ebx
xor edi, edi
nop word [eax + eax]
movzx edx, byte [eax + edi]
test edx, edx
je 0x100bdcaf
mov esi, dword [esp + edx*4 + 0x1c]
lea eax, [esi + 1]
mov dword [esp + edx*4 + 0x1c], eax
cmp edx, 8
jb 0x100bdc61
mov byte [esi + ebp + 0x158], bl
jmp 0x100bdcab
mov ecx, 8
lea eax, [ebp + 0x158]
sub ecx, edx
shl esi, cl
add eax, esi
mov esi, 1
shl esi, cl
add esi, eax
cmp edx, 6
jb 0x100bdc90
movzx ecx, bx
mov word [eax], cx
mov word [esi - 2], cx
jmp 0x100bdcab
movzx ecx, bx
mov edx, ecx
mov word [eax], cx
mov word [eax + 2], dx
mov word [eax + 4], dx
mov word [eax + 6], dx
add eax, 8
cmp eax, esi
jne 0x100bdc90
mov eax, dword [esp + 0x64]
inc edi
add ebx, 0x101
cmp edi, 0xf9
jb 0x100bdc40
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x50
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 4