Function at 0x10018be0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x160
mov ecx, dword [esp + 0x16c]
push ebx
push esi
lea eax, [esp + 0x60]
push edi
push eax
push 0x10
push ecx
call sym.cgm2hpgl2.dll__aes_dec_key_12
mov esi, dword [esp + 0x174]
lea ebx, [esi - 0x10]
lea edx, [ebx + 1]
push edx
call fcn.100f0c67
mov edi, eax
add esp, 4
cmp esi, 0x20
mov dword [esp + 0x28], edi
mov byte [edi + ebx], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0x10
jge 0x10018d11
test esi, esi
jle 0x10018c55
mov ecx, esi
mov esi, dword [esp + 0x170]
mov eax, ecx
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
lea ecx, [ebx + 3]
and ecx, 0xfffffffc
cmp ebx, ecx
jne 0x10018c71
lea edx, [esp + 0x64]
lea eax, [esp + ebx + 0x30]
push edx
push eax
push eax
call sym.cgm2hpgl2.dll__aes_dec_blk_12
jmp 0x10018cc1
lea esi, [esp + ebx + 0x30]
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x64]
mov dword [esp + 0x18], edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call sym.cgm2hpgl2.dll__aes_dec_blk_12
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x64]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call sym.cgm2hpgl2.dll__aes_dec_blk_12
xor eax, eax
test ebx, ebx
jle 0x10018d05
mov cl, byte [esp + eax + 0x40]
mov dl, byte [esp + eax + 0x30]
xor dl, cl
mov byte [esp + eax + 0x30], dl
inc eax
cmp eax, ebx
jl 0x10018cdb
test ebx, ebx
jle 0x10018d05
lea ecx, [esp + 0x30]
mov eax, edi
sub ecx, edi
mov esi, ebx
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x10018cfc
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x160
ret
mov esi, dword [esp + 0x170]
lea eax, [esp + 0xc]
mov ecx, esi
mov dword [esp + 0x20], eax
push ebp
lea ebp, [esp + 0x58]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x10]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], eax
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call sym.cgm2hpgl2.dll__aes_dec_blk_12
test ebx, ebx
lea edx, [esi + 0x10]
jle 0x10018ed8
lea eax, [esp + 0x34]
sub eax, edi
mov dword [esp + 0x20], eax
jmp 0x10018d71
mov edx, dword [esp + 0x54]
cmp ebx, 0x10
jge 0x10018def
test ebx, ebx
mov ecx, ebx
jle 0x10018d8e
mov eax, ecx
mov esi, edx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
sub ebx, 0x10
add edx, 0x10
cmp ebx, 0x10
mov dword [esp + 0x54], edx
jge 0x10018e5d
mov edi, ebp
lea ecx, [esp + 0x34]
xor eax, eax
sub edi, ecx
lea esi, [esp + eax + 0x34]
inc eax
cmp eax, 0x10
mov cl, byte [edi + esi]
mov byte [esi], cl
jl 0x10018dab
test ebx, ebx
jle 0x10018dd4
mov ecx, ebx
mov esi, edx
mov edx, ecx
lea edi, [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx + 3]
and al, 0xfc
cmp ebx, eax
jne 0x10018df6
lea ecx, [esp + 0x68]
lea eax, [esp + ebx + 0x34]
push ecx
push eax
push eax
call sym.cgm2hpgl2.dll__aes_dec_blk_12
jmp 0x10018e37
mov ecx, 0x10
jmp 0x10018d7c
lea esi, [esp + ebx + 0x34]
mov eax, ebp
mov edx, esi
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x68]
push eax
push ebp
push ebp
call sym.cgm2hpgl2.dll__aes_dec_blk_12
mov ecx, dword [ebp]
mov dword [esi], ecx
mov edx, dword [ebp + 4]
mov dword [esi + 4], edx
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
xor eax, eax
test ebx, ebx
jle 0x10018e50
mov dl, byte [esp + eax + 0x34]
mov cl, byte [esp + eax + 0x44]
xor cl, dl
mov byte [esp + eax + 0x44], cl
inc eax
cmp eax, ebx
jl 0x10018e3d
add ebx, 0x10
lea ebp, [esp + 0x34]
mov dword [esp + 0x30], ebx
xor ebx, ebx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebp
call sym.cgm2hpgl2.dll__aes_dec_blk_12
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x34]
xor esi, esi
sub edi, edx
mov dl, byte [esp + esi + 0x34]
lea eax, [esp + esi + 0x34]
mov cl, byte [edi + eax]
xor dl, cl
inc esi
cmp esi, 0x10
mov byte [eax], dl
jl 0x10018e79
mov esi, dword [esp + 0x30]
test esi, esi
jle 0x10018ea9
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
inc eax
dec esi
mov cl, byte [edx + eax - 1]
mov byte [eax - 1], cl
jne 0x10018e9a
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, 0x10
add edx, eax
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], ebp
test ebx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
mov ebp, eax
jg 0x10018d6d
mov edi, dword [esp + 0x2c]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x160
ret