Function at 0x10018950
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x148
mov ecx, dword [esp + 0x150]
push ebx
push ebp
push esi
lea eax, [esp + 0x4c]
push edi
push eax
push 0x10
push ecx
call sym.cgm2hpgl2.dll__aes_enc_key_12
mov ebp, dword [esp + 0x15c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea eax, [esi + 0x10]
push eax
mov dword [esp + 0x30], eax
call fcn.100f0c67
mov edx, dword [esp + 0x168]
mov ebx, eax
push 0x10
push ebx
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], ebp
lea edi, [esp + 0x40]
call fcn.10018f60
add esp, 0x10
cmp esi, 0x10
jge 0x10018a77
test esi, esi
jle 0x100189d2
mov eax, ebx
sub ebp, ebx
mov edi, esi
mov cl, byte [eax + ebp]
mov dl, byte [eax]
xor cl, dl
mov byte [eax + 0x10], cl
inc eax
dec edi
jne 0x100189c4
lea edx, [esp + 0x50]
push edx
push ebx
push ebx
call sym.cgm2hpgl2.dll__aes_enc_blk_12
lea eax, [esi + 3]
and al, 0xfc
cmp esi, eax
jne 0x10018a0f
lea ecx, [esp + 0x50]
add esi, ebx
push ecx
push esi
push esi
call sym.cgm2hpgl2.dll__aes_enc_blk_12
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x148
ret
add esi, ebx
mov edx, esi
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x50]
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call sym.cgm2hpgl2.dll__aes_enc_blk_12
mov edx, dword [esp + 0x14]
pop edi
mov dword [esi], edx
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x164]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], edx
mov dword [eax], ecx
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x148
ret
mov ecx, ebx
lea edx, [esp + 0x30]
xor eax, eax
sub ecx, edx
lea ebp, [esp + eax + 0x30]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + ebp]
mov byte [ebp], dl
jl 0x10018a81
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ebx
push ecx
call sym.cgm2hpgl2.dll__aes_enc_blk_12
test esi, esi
lea eax, [ebx + 0x10]
jle 0x10018bc3
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x15c]
lea ebx, [esp + 0x30]
sub ebx, eax
mov eax, dword [esp + 0x10]
mov ebp, 0x10
sub edi, eax
mov dl, byte [edi + eax]
mov cl, byte [eax]
xor dl, cl
mov byte [ebx + eax], dl
inc eax
dec ebp
jne 0x10018ac8
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x50]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call sym.cgm2hpgl2.dll__aes_enc_blk_12
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edi, eax
sub esi, 0x10
add ecx, 0x10
sub ebx, 0x10
add eax, 0x10
cmp esi, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jl 0x10018b17
test esi, esi
jle 0x10018bbf
jmp 0x10018abd
mov ebp, edi
lea ecx, [esp + 0x30]
xor eax, eax
lea ebx, [edi + esi]
sub ebp, ecx
lea ecx, [esp + eax + 0x30]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + ebp]
mov byte [ecx], dl
jl 0x10018b24
test esi, esi
jle 0x10018b54
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x40]
sub ecx, edi
mov eax, edi
sub ebp, edi
mov edi, esi
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec edi
mov byte [ecx + eax - 1], dl
jne 0x10018b47
lea eax, [esi + 3]
and al, 0xfc
cmp esi, eax
jne 0x10018b6f
lea ecx, [esp + 0x50]
lea edx, [esp + esi + 0x30]
push ecx
push ebx
push edx
call sym.cgm2hpgl2.dll__aes_enc_blk_12
jmp 0x10018bbf
lea eax, [esp + esi + 0x30]
mov ecx, dword [esp + esi + 0x30]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x50]
mov dword [esp + 0x20], edx
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call sym.cgm2hpgl2.dll__aes_enc_blk_12
mov eax, dword [esp + 0x14]
mov dword [ebx], eax
mov ecx, dword [esp + 0x18]
mov dword [ebx + 4], ecx
mov edx, dword [esp + 0x1c]
mov dword [ebx + 8], edx
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], eax
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x168]
mov edx, dword [esp + 0x2c]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x148
ret