Function at 0x477424
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.0063cb10
mov eax, dword [0x906648]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
xor ebp, ebp
call fcn.0041e860
test eax, eax
je 0x477354
test ebx, ebx
je 0x477354
push ebx
call fcn.0041e260
push eax
call fcn.00691460
add esp, 8
test eax, eax
je 0x477354
mov ebx, eax
call fcn.0041e860
test eax, eax
je 0x4773c9
test edi, edi
jne 0x477366
cmp dword [esi + 0x20], ebp
je 0x4773ae
test dword [esi + 0x24], 0x8000
jne 0x4773a5
push 0x59
push str..cryptohmachmac.c
push 0xa3
push 0xae
push 6
call fcn.00417d50
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0063c972
add esp, 0x8c
ret
test edi, edi
jne 0x4773c9
cmp dword [esi + 0x20], ebp
jne 0x4773c9
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x10]
push 0
push ebx
push ecx
push edx
push esi
call fcn.0069a210
add esp, 0x14
jmp 0x47738c
test ebx, ebx
je 0x4773f4
cmp ebx, dword [esi]
je 0x4773e4
cmp dword [esp + 0x10], ebp
je 0x47738a
mov edi, dword [esp + 0xa8]
test edi, edi
jge 0x4773eb
jmp 0x47738a
mov edi, dword [esp + 0xa8]
mov ebp, 1
mov dword [esi], ebx
jmp 0x477401
mov ebx, dword [esi]
test ebx, ebx
je 0x47738a
mov edi, dword [esp + 0xa8]
cmp dword [esp + 0x10], 0
je 0x4774d0
push ebx
call fcn.0041e250
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x477433
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.0040b010
add esp, 0xc
cmp ebp, edi
jge 0x477483
mov eax, dword [esp + 0x14]
push eax
lea ebp, [esi + 4]
push ebx
push ebp
call int.00409af0
add esp, 0xc
test eax, eax
je 0x47738a
mov ecx, dword [esp + 0x10]
push edi
push ecx
push ebp
call int.00409cf0
add esp, 0xc
test eax, eax
je 0x47738a
lea edi, [esi + 0x4c]
push edi
lea edx, [esi + 0x50]
push edx
push ebp
call fcn.00409d10
add esp, 0xc
test eax, eax
je 0x47738a
jmp 0x4774ad
cmp edi, 0x80
ja 0x47738a
mov eax, dword [esp + 0x10]
push edi
push eax
lea ecx, [esi + 0x50]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x4774d8
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4774d8
test ebp, ebp
je 0x477576
xor eax, eax
lea ebx, [ebx]
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x18], dl
inc eax
cmp eax, 0x80
jl 0x4774e0
mov edi, dword [esp + 0x14]
push edi
lea ebp, [esi + 0x1c]
push ebx
push ebp
call int.00409af0
add esp, 0xc
test eax, eax
je 0x47738a
push ebx
call fcn.0041e250
push eax
lea eax, [esp + 0x20]
push eax
push ebp
call int.00409cf0
add esp, 0x10
test eax, eax
je 0x47738a
xor eax, eax
lea esp, [esp]
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x477530
push edi
lea ebp, [esi + 0x34]
push ebx
push ebp
call int.00409af0
add esp, 0xc
test eax, eax
je 0x47738a
push ebx
call fcn.0041e250
push eax
lea edx, [esp + 0x20]
push edx
push ebp
call int.00409cf0
add esp, 0x10
test eax, eax
je 0x47738a
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.00409e80
add esp, 8
test eax, eax
je 0x47738a
mov eax, 1
jmp 0x47738c