Function at 0xee6520
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ebx, dword [esp + 0xc0]
mov esi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xcc]
test ebp, ebp
je 0xee6873
mov dword [ebx], ebp
mov eax, 1
test esi, esi
je 0xee6692
mov dword [esp], ebp
call fcn.00f051e0
cmp eax, 0x80
jg 0xee66c1
cmp eax, dword [esp + 0xc8]
jl 0xee66f2
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x1c], eax
cmp eax, 0x80
ja 0xee6800
lea edi, [ebx + 0x50]
cmp eax, 4
jae 0xee6667
xor edx, edx
test al, 2
jne 0xee6652
test al, 1
jne 0xee6647
mov eax, dword [esp + 0xc8]
mov dword [ebx + 0x4c], eax
cmp dword [esp + 0x1c], 0x80
je 0xee65f0
mov edx, pe_nt_image_headers32
sub edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
lea edi, [ebx + eax + 0x50]
cmp edx, 4
jae 0xee684f
test dl, 2
jne 0xee683c
and edx, 1
jne 0xee6834
lea esi, [esi]
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebx + eax + 0x50]
xor edx, 0x36363636
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0x80
jne 0xee6600
lea esi, [ebx + 0x1c]
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.00ef8910
test eax, eax
jne 0xee6760
xor eax, eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov al, byte [esi + edx]
mov byte [edi + edx], al
jmp 0xee65aa
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0xee65aa
jmp 0xee6647
test edi, 1
jne 0xee687c
test edi, 2
jne 0xee6892
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor edx, edx
test al, 2
je 0xee65a2
jmp 0xee6652
test eax, eax
jne 0xee65f0
lea esi, [ebx + 0x1c]
mov dword [esp + 4], esi
add ebx, 4
mov dword [esp], ebx
call fcn.00ef8f20
test eax, eax
setne al
and eax, 0xff
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.j____int_sizeof_ctx__key_
mov dword [esp + 4], 0x52
mov dword [esp], str.hmac.c
mov dword [esp + 0x18], eax
call fcn.00ef99a0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0xc8]
jge 0xee6576
lea edi, [ebx + 4]
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.00ef8910
test eax, eax
je 0xee663a
mov eax, dword [esp + 0xc8]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00ef8c20
test eax, eax
je 0xee663a
lea eax, [ebx + 0x4c]
mov dword [esp + 8], eax
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00ef8c30
test eax, eax
je 0xee663a
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x1c], eax
jmp 0xee65b4
mov dword [esp], ebp
call fcn.00f051e0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00ef8c20
test eax, eax
mov eax, 0
je 0xee663c
lea esi, [esi]
mov edx, dword [ebx + eax + 0x50]
xor edx, 0x5c5c5c5c
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0x80
jne 0xee6790
lea edi, [ebx + 0x34]
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.00ef8910
test eax, eax
je 0xee663a
mov dword [esp], ebp
call fcn.00f051e0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00ef8c20
test eax, eax
je 0xee663a
jmp 0xee669d
mov dword [esp + 8], str.len_0__len__int_sizeof_ctx__key_
mov dword [esp + 4], 0x5f
mov dword [esp], str.hmac.c
call fcn.00ef99a0
mov eax, dword [esp + 0xc8]
lea edi, [ebx + 0x50]
cmp eax, 4
jb 0xee6598
jmp 0xee6667
mov byte [edi], 0
jmp 0xee65f0
mov word [edi], 0
add edi, 2
and edx, 1
je 0xee65f0
jmp 0xee6834
test edi, 1
jne 0xee68b3
test edi, 2
jne 0xee68a6
mov ecx, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
test dl, 2
je 0xee65e1
jmp 0xee683c
mov ebp, dword [ebx]
xor eax, eax
jmp 0xee654e
mov al, byte [esi]
mov byte [ebx + 0x50], al
lea edi, [ebx + 0x51]
inc esi
mov eax, dword [esp + 0xc8]
dec eax
jmp 0xee6673
mov dx, word [esi]
mov word [edi], dx
add edi, 2
add esi, 2
sub eax, 2
jmp 0xee667f
mov word [edi], 0
add edi, 2
sub edx, 2
jmp 0xee685f
mov byte [edi], 0
inc edi
dec edx
jmp 0xee6857