Function at 0x4c7dc0
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 0x4c80f4
mov dword [ebx], ebp
test esi, esi
je 0x4c7e90
mov dword [esp], ebp
call fcn.004d9dd0
cmp eax, 0x80
jg 0x4c8020
cmp eax, dword [esp + 0xc8]
jl 0x4c7fb2
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x1c], eax
cmp eax, 0x80
ja 0x4c8084
lea edi, [ebx + 0x50]
cmp eax, 4
jae 0x4c8056
xor edx, edx
test al, 2
jne 0x4c7eee
test al, 1
jne 0x4c7ee3
mov eax, dword [esp + 0xc8]
mov dword [ebx + 0x4c], eax
cmp dword [esp + 0x1c], 0x80
je 0x4c7e90
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 0x4c80d0
test dl, 2
jne 0x4c80bd
and edx, 1
jne 0x4c80b5
lea esi, [esi]
lea edi, [edi]
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 0x4c7ea0
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.004d1650
test eax, eax
jne 0x4c7f03
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 0x4c7e45
mov dx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0x4c7e45
jmp 0x4c7ee3
mov dword [esp], ebp
call fcn.004d9dd0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004d1950
test eax, eax
je 0x4c7ed6
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebx + eax + 0x50]
xor edx, 0x5c5c5c5c
mov dword [esp + eax + 0x20], edx
add eax, 4
cmp eax, 0x80
jne 0x4c7f30
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.004d1650
test eax, eax
je 0x4c7ed6
mov dword [esp], ebp
call fcn.004d9dd0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004d1950
test eax, eax
je 0x4c7ed6
mov dword [esp + 4], esi
add ebx, 4
mov dword [esp], ebx
call fcn.004d1d20
test eax, eax
setne al
and eax, 0xff
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.004d1650
test eax, eax
je 0x4c7ed6
mov eax, dword [esp + 0xc8]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004d1950
test eax, eax
je 0x4c7ed6
lea eax, [ebx + 0x4c]
mov dword [esp + 8], eax
lea eax, [ebx + 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004d1960
test eax, eax
je 0x4c7ed6
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x1c], eax
jmp 0x4c7e4f
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.004d2910
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0xc8]
jge 0x4c7e11
jmp 0x4c7fb2
test edi, 1
jne 0x4c8106
test edi, 2
jne 0x4c811c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor edx, edx
test al, 2
je 0x4c7e3d
jmp 0x4c7eee
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.004d2910
mov eax, dword [esp + 0xc8]
lea edi, [ebx + 0x50]
cmp eax, 4
jb 0x4c7e33
jmp 0x4c8056
mov byte [edi], 0
jmp 0x4c7e90
mov word [edi], 0
add edi, 2
and edx, 1
je 0x4c7e90
jmp 0x4c80b5
test edi, 1
jne 0x4c813d
test edi, 2
jne 0x4c8130
mov ecx, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
test dl, 2
je 0x4c7e7c
jmp 0x4c80bd
mov ebp, dword [ebx]
test esi, esi
jne 0x4c7df1
lea esi, [ebx + 0x1c]
jmp 0x4c7f8e
mov al, byte [esi]
mov byte [ebx + 0x50], al
lea edi, [ebx + 0x51]
inc esi
mov eax, dword [esp + 0xc8]
dec eax
jmp 0x4c8062
mov dx, word [esi]
mov word [edi], dx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x4c806e
mov word [edi], 0
add edi, 2
sub edx, 2
jmp 0x4c80e0
mov byte [edi], 0
inc edi
dec edx
jmp 0x4c80d8