Function at 0x4cf3c0
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 0x4cf620
mov edi, dword [ebx]
cmp edi, ebp
je 0x4cf610
test esi, esi
je 0x4cf42f
mov ecx, dword [esp + 0xc8]
test ecx, ecx
js 0x4cf42f
mov dword [ebx], ebp
mov dword [esp], ebp
call fcn.004fefb0
cmp eax, 0x80
jg 0x4cf4a0
cmp dword [esp + 0xc8], eax
jg 0x4cf440
cmp dword [esp + 0xc8], 0x80
jbe 0x4cf4e0
xor eax, eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
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.004f13f0
test eax, eax
je 0x4cf42f
mov eax, dword [esp + 0xc8]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004f16c0
test eax, eax
je 0x4cf42f
lea eax, [ebx + 0x4c]
mov dword [esp + 8], eax
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004f16d0
test eax, eax
je 0x4cf42f
mov eax, dword [ebx + 0x4c]
jmp 0x4cf50a
mov dword [esp + 0x1c], eax
mov dword [esp + 8], str.j____int_sizeof_ctx__key_
mov dword [esp + 4], 0x74
mov dword [esp], str.hmac.c
call fcn.004b73a0
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0xc8], eax
jle 0x4cf41e
jmp 0x4cf440
lea eax, [ebx + 0x50]
cmp dword [esp + 0xc8], 4
jae 0x4cf660
mov edx, dword [esp + 0xc8]
test edx, edx
jne 0x4cf6be
mov eax, dword [esp + 0xc8]
mov dword [ebx + 0x4c], eax
cmp eax, 0x80
je 0x4cf540
mov ecx, pe_nt_image_headers32
sub ecx, eax
lea eax, [ebx + eax + 0x50]
cmp ecx, 4
jae 0x4cf698
test ecx, ecx
je 0x4cf540
mov byte [eax], 0
test cl, 2
je 0x4cf540
mov word [eax + ecx - 2], 0
nop
lea esi, [esi]
mov edi, ebp
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 0x4cf550
lea esi, [ebx + 0x1c]
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004f13f0
test eax, eax
je 0x4cf42f
mov dword [esp], edi
call fcn.004fefb0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004f16c0
test eax, eax
je 0x4cf42f
xor eax, eax
mov edx, dword [ebx + eax + 0x50]
xor edx, 0x5c5c5c5c
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0x80
jne 0x4cf5b0
lea ebp, [ebx + 0x34]
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.004f13f0
test eax, eax
je 0x4cf42f
mov dword [esp], edi
call fcn.004fefb0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004f16c0
test eax, eax
jne 0x4cf635
jmp 0x4cf42f
test esi, esi
je 0x4cf542
jmp 0x4cf402
mov ebp, dword [ebx]
test ebp, ebp
je 0x4cf42f
test esi, esi
jne 0x4cf402
lea esi, [ebx + 0x1c]
mov dword [esp + 4], esi
add ebx, 4
mov dword [esp], ebx
call fcn.004f1cb0
test eax, eax
setne al
and eax, 0xff
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esi]
mov dword [ebx + 0x50], ecx
mov ecx, dword [esp + 0xc8]
mov ecx, dword [esi + ecx - 4]
mov edi, dword [esp + 0xc8]
mov dword [eax + edi - 4], ecx
lea edi, [ebx + 0x54]
and edi, 0xfffffffc
sub eax, edi
sub esi, eax
add eax, dword [esp + 0xc8]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x4cf500
mov dword [eax], 0
mov dword [eax + ecx - 4], 0
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
add ecx, eax
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, ebp
jmp 0x4cf542
mov cl, byte [esi]
mov byte [ebx + 0x50], cl
test byte [esp + 0xc8], 2
je 0x4cf500
mov ecx, dword [esp + 0xc8]
mov cx, word [esi + ecx - 2]
mov edi, dword [esp + 0xc8]
mov word [eax + edi - 2], cx
jmp 0x4cf500