Function at 0x50d950
Capabilities:
Encrypt data using camellia
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov ebp, dword [rdx]
xor ebp, dword [rcx + 0xc0]
lea r14, [0x0077d1a0]
lea r10, [0x0077dda0]
mov edi, dword [rdx + 4]
mov r12d, dword [rdx + 8]
mov dword [rdx], ebp
mov r9d, ebp
xor edi, dword [rcx + 0xc4]
shr r9d, 0x18
movzx r8d, bpl
mov rax, rbp
mov ebx, dword [r10 + r9*4]
xor ebx, dword [r14 + r8*4]
mov r8d, ebp
lea r9, [0x0077d9a0]
shr r8d, 0x10
movzx esi, ah
mov dword [rdx + 4], edi
movzx r8d, r8b
xor ebx, dword [rcx + 0xb8]
xor ebx, dword [r9 + r8*4]
lea r8, [0x0077d5a0]
movzx r11d, dil
mov r11d, dword [r10 + r11*4]
mov rax, rdi
xor ebx, dword [r8 + rsi*4]
mov esi, edi
shr esi, 0x18
xor r11d, dword [r9 + rsi*4]
mov esi, edi
shr esi, 0x10
xor r11d, dword [rcx + 0xbc]
movzx esi, sil
xor r11d, dword [r8 + rsi*4]
movzx esi, ah
xor r11d, dword [r14 + rsi*4]
xor r11d, ebx
ror ebx, 8
xor r12d, r11d
xor ebx, r11d
xor ebx, dword [rdx + 0xc]
mov esi, r12d
movzx r11d, r12b
mov dword [rdx + 8], r12d
shr esi, 0x18
mov rax, r12
mov esi, dword [r10 + rsi*4]
xor esi, dword [r14 + r11*4]
mov r11d, r12d
shr r11d, 0x10
mov dword [rdx + 0xc], ebx
mov r13d, ebx
xor esi, dword [rcx + 0xb0]
movzx r11d, r11b
shr r13d, 0x18
xor esi, dword [r9 + r11*4]
movzx r11d, bl
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r13*4]
mov r13d, ebx
shr r13d, 0x10
xor r11d, dword [rcx + 0xb4]
xor esi, dword [r8 + rax*4]
movzx r13d, r13b
movzx eax, bh
xor r11d, dword [r8 + r13*4]
xor r11d, dword [r14 + rax*4]
xor r11d, esi
ror esi, 8
xor ebp, r11d
xor esi, edi
mov edi, ebp
xor esi, r11d
movzx r11d, bpl
shr edi, 0x18
mov dword [rdx], ebp
mov dword [rdx + 4], esi
mov edi, dword [r10 + rdi*4]
xor edi, dword [r14 + r11*4]
mov r11d, ebp
shr r11d, 0x10
xor edi, dword [rcx + 0xa8]
mov r13d, esi
movzx r11d, r11b
shr r13d, 0x18
mov rax, rbp
xor edi, dword [r9 + r11*4]
movzx r11d, sil
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r13*4]
mov r13d, esi
shr r13d, 0x10
xor edi, dword [r8 + rax*4]
xor r11d, dword [rcx + 0xac]
movzx r13d, r13b
mov rax, rsi
xor r11d, dword [r8 + r13*4]
movzx eax, ah
xor r11d, dword [r14 + rax*4]
xor r11d, edi
ror edi, 8
xor r12d, r11d
xor edi, ebx
mov ebx, r12d
xor edi, r11d
movzx r11d, r12b
shr ebx, 0x18
mov dword [rdx + 8], r12d
mov r13d, edi
mov ebx, dword [r10 + rbx*4]
xor ebx, dword [r14 + r11*4]
mov r11d, r12d
shr r11d, 0x10
mov dword [rdx + 0xc], edi
xor ebx, dword [rcx + 0xa0]
movzx r11d, r11b
shr r13d, 0x18
mov rax, r12
xor ebx, dword [r9 + r11*4]
movzx r11d, dil
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r13*4]
mov r13d, edi
shr r13d, 0x10
xor r11d, dword [rcx + 0xa4]
xor ebx, dword [r8 + rax*4]
movzx r13d, r13b
mov rax, rdi
xor r11d, dword [r8 + r13*4]
movzx eax, ah
xor r11d, dword [r14 + rax*4]
xor r11d, ebx
ror ebx, 8
xor ebp, r11d
xor ebx, esi
mov esi, ebp
xor ebx, r11d
movzx r11d, bpl
shr esi, 0x18
mov dword [rdx], ebp
mov dword [rdx + 4], ebx
mov esi, dword [r10 + rsi*4]
xor esi, dword [r14 + r11*4]
mov r11d, ebp
shr r11d, 0x10
xor esi, dword [rcx + 0x98]
mov r13d, ebx
movzx r11d, r11b
shr r13d, 0x18
mov rax, rbp
xor esi, dword [r9 + r11*4]
movzx r11d, bl
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r13*4]
mov r13d, ebx
shr r13d, 0x10
xor r11d, dword [rcx + 0x9c]
xor esi, dword [r8 + rax*4]
movzx r13d, r13b
movzx eax, bh
xor r11d, dword [r8 + r13*4]
xor r11d, dword [r14 + rax*4]
xor r11d, esi
ror esi, 8
xor r12d, r11d
xor esi, edi
mov edi, r12d
xor esi, r11d
movzx r11d, r12b
shr edi, 0x18
mov dword [rdx + 8], r12d
mov dword [rdx + 0xc], esi
mov edi, dword [r10 + rdi*4]
xor edi, dword [r14 + r11*4]
mov r11d, r12d
shr r11d, 0x10
xor edi, dword [rcx + 0x90]
mov r13d, esi
movzx r11d, r11b
shr r13d, 0x18
mov rax, r12
xor edi, dword [r9 + r11*4]
movzx r11d, sil
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r13*4]
mov r13d, esi
shr r13d, 0x10
xor edi, dword [r8 + rax*4]
xor r11d, dword [rcx + 0x94]
movzx r13d, r13b
mov rax, rsi
xor r11d, dword [r8 + r13*4]
movzx eax, ah
xor r11d, dword [r14 + rax*4]
xor r11d, edi
ror edi, 8
xor edi, ebx
xor ebp, r11d
xor edi, r11d
mov dword [rdx], ebp
mov r13d, ebp
mov dword [rdx + 4], edi
mov ebx, dword [rcx + 0x88]
and ebx, ebp
ror ebx, 0x1f
xor ebx, edi
mov dword [rdx + 4], ebx
mov ebp, dword [rcx + 0x8c]
or ebp, ebx
xor ebp, r13d
mov dword [rdx], ebp
mov r13d, dword [rcx + 0x84]
movzx r11d, bpl
mov rax, rbp
or r13d, esi
xor r13d, r12d
mov dword [rdx + 8], r13d
mov edi, dword [rcx + 0x80]
and edi, r13d
ror edi, 0x1f
xor edi, esi
mov esi, ebp
shr esi, 0x18
mov dword [rdx + 0xc], edi
mov r12d, dword [r10 + rsi*4]
xor r12d, dword [r14 + r11*4]
mov r11d, ebp
shr r11d, 0x10
xor r12d, dword [rcx + 0x78]
movzx esi, ah
movzx r11d, r11b
xor r12d, dword [r9 + r11*4]
movzx r11d, bl
xor r12d, dword [r8 + rsi*4]
mov esi, ebx
mov r11d, dword [r10 + r11*4]
shr esi, 0x18
xor r11d, dword [r9 + rsi*4]
mov esi, ebx
shr esi, 0x10
xor r11d, dword [rcx + 0x7c]
movzx esi, sil
xor r11d, dword [r8 + rsi*4]
movzx esi, bh
xor r11d, dword [r14 + rsi*4]
xor r11d, r12d
ror r12d, 8
xor r13d, r11d
xor r12d, r11d
mov esi, r13d
movzx r11d, r13b
xor r12d, edi
shr esi, 0x18
mov dword [rdx + 8], r13d
mov dword [rdx + 0xc], r12d
mov esi, dword [r10 + rsi*4]
xor esi, dword [r14 + r11*4]
mov r11d, r13d
shr r11d, 0x10
xor esi, dword [rcx + 0x70]
mov rax, r13
movzx r11d, r11b
movzx edi, ah
mov rax, r12
xor esi, dword [r9 + r11*4]
movzx r11d, r12b
xor esi, dword [r8 + rdi*4]
mov edi, r12d
mov r11d, dword [r10 + r11*4]
shr edi, 0x18
xor r11d, dword [r9 + rdi*4]
mov edi, r12d
shr edi, 0x10
xor r11d, dword [rcx + 0x74]
movzx edi, dil
xor r11d, dword [r8 + rdi*4]
movzx edi, ah
xor r11d, dword [r14 + rdi*4]
xor r11d, esi
ror esi, 8
xor ebp, r11d
xor esi, ebx
mov ebx, ebp
xor esi, r11d
movzx r11d, bpl
shr ebx, 0x18
mov dword [rdx], ebp
mov dword [rdx + 4], esi
mov edi, dword [r10 + rbx*4]
xor edi, dword [r14 + r11*4]
mov r11d, ebp
shr r11d, 0x10
xor edi, dword [rcx + 0x68]
mov rax, rbp
movzx r11d, r11b
movzx ebx, ah
mov rax, rsi
xor edi, dword [r9 + r11*4]
movzx r11d, sil
xor edi, dword [r8 + rbx*4]
mov ebx, esi
mov r11d, dword [r10 + r11*4]
shr ebx, 0x18
xor r11d, dword [r9 + rbx*4]
mov ebx, esi
shr ebx, 0x10
xor r11d, dword [rcx + 0x6c]
movzx ebx, bl
xor r11d, dword [r8 + rbx*4]
movzx ebx, ah
xor r11d, dword [r14 + rbx*4]
xor r11d, edi
ror edi, 8
xor r13d, r11d
xor edi, r12d
mov ebx, r13d
xor edi, r11d
movzx r11d, r13b
shr ebx, 0x18
mov dword [rdx + 8], r13d
mov r12d, edi
mov ebx, dword [r10 + rbx*4]
xor ebx, dword [r14 + r11*4]
mov r11d, r13d
shr r11d, 0x10
mov dword [rdx + 0xc], edi
xor ebx, dword [rcx + 0x60]
movzx r11d, r11b
shr r12d, 0x18
mov rax, r13
xor ebx, dword [r9 + r11*4]
movzx r11d, dil
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r12*4]
mov r12d, edi
shr r12d, 0x10
xor r11d, dword [rcx + 0x64]
xor ebx, dword [r8 + rax*4]
movzx r12d, r12b
mov rax, rdi
xor r11d, dword [r8 + r12*4]
movzx eax, ah
xor r11d, dword [r14 + rax*4]
xor r11d, ebx
ror ebx, 8
xor ebp, r11d
xor ebx, esi
mov esi, ebp
xor ebx, r11d
movzx r11d, bpl
shr esi, 0x18
mov dword [rdx], ebp
mov dword [rdx + 4], ebx
mov esi, dword [r10 + rsi*4]
xor esi, dword [r14 + r11*4]
mov r11d, ebp
shr r11d, 0x10
xor esi, dword [rcx + 0x58]
mov r12d, ebx
movzx r11d, r11b
shr r12d, 0x18
mov rax, rbp
xor esi, dword [r9 + r11*4]
movzx r11d, bl
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r12*4]
mov r12d, ebx
shr r12d, 0x10
xor r11d, dword [rcx + 0x5c]
xor esi, dword [r8 + rax*4]
movzx r12d, r12b
movzx eax, bh
xor r11d, dword [r8 + r12*4]
xor r11d, dword [r14 + rax*4]
xor r11d, esi
ror esi, 8
xor r13d, r11d
xor esi, edi
mov edi, r13d
xor esi, r11d
movzx r11d, r13b
shr edi, 0x18
mov dword [rdx + 8], r13d
mov dword [rdx + 0xc], esi
mov edi, dword [r10 + rdi*4]
xor edi, dword [r14 + r11*4]
mov r11d, r13d
shr r11d, 0x10
xor edi, dword [rcx + 0x50]
mov r12d, esi
movzx r11d, r11b
shr r12d, 0x18
mov rax, r13
xor edi, dword [r9 + r11*4]
movzx r11d, sil
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r12*4]
mov r12d, esi
shr r12d, 0x10
xor edi, dword [r8 + rax*4]
xor r11d, dword [rcx + 0x54]
movzx r12d, r12b
mov rax, rsi
xor r11d, dword [r8 + r12*4]
movzx eax, ah
xor r11d, dword [r14 + rax*4]
xor r11d, edi
ror edi, 8
xor edi, ebx
xor ebp, r11d
xor edi, r11d
mov dword [rdx], ebp
mov r12d, ebp
mov dword [rdx + 4], edi
mov ebx, dword [rcx + 0x48]
and ebx, ebp
ror ebx, 0x1f
xor ebx, edi
mov dword [rdx + 4], ebx
mov ebp, dword [rcx + 0x4c]
or ebp, ebx
xor ebp, r12d
mov dword [rdx], ebp
mov r12d, dword [rcx + 0x44]
movzx r11d, bpl
mov rax, rbp
movzx eax, ah
or r12d, esi
xor r12d, r13d
mov r13d, ebx
mov dword [rdx + 8], r12d
mov edi, dword [rcx + 0x40]
and edi, r12d
ror edi, 0x1f
xor edi, esi
mov esi, ebp
shr esi, 0x18
mov dword [rdx + 0xc], edi
mov esi, dword [r10 + rsi*4]
xor esi, dword [r14 + r11*4]
mov r11d, ebp
shr r11d, 0x10
xor esi, dword [rcx + 0x38]
movzx r11d, r11b
xor esi, dword [r9 + r11*4]
movzx r11d, bl
xor esi, dword [r8 + rax*4]
shr r13d, 0x18
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r13*4]
mov r13d, ebx
movzx eax, bh
shr r13d, 0x10
xor r11d, dword [rcx + 0x3c]
movzx r13d, r13b
xor r11d, dword [r8 + r13*4]
xor r11d, dword [r14 + rax*4]
xor r11d, esi
ror esi, 8
xor r12d, r11d
xor esi, r11d
xor esi, edi
mov edi, r12d
movzx r11d, r12b
shr edi, 0x18
mov dword [rdx + 8], r12d
mov dword [rdx + 0xc], esi
mov r13d, dword [r10 + rdi*4]
xor r13d, dword [r14 + r11*4]
mov r11d, r12d
shr r11d, 0x10
xor r13d, dword [rcx + 0x30]
mov rax, r12
movzx r11d, r11b
movzx edi, ah
mov rax, rsi
xor r13d, dword [r9 + r11*4]
movzx r11d, sil
xor r13d, dword [r8 + rdi*4]
mov edi, esi
mov r11d, dword [r10 + r11*4]
shr edi, 0x18
xor r11d, dword [r9 + rdi*4]
mov edi, esi
shr edi, 0x10
xor r11d, dword [rcx + 0x34]
movzx edi, dil
xor r11d, dword [r8 + rdi*4]
movzx edi, ah
xor r11d, dword [r14 + rdi*4]
xor r11d, r13d
ror r13d, 8
xor ebp, r11d
xor r13d, ebx
mov ebx, ebp
xor r13d, r11d
movzx r11d, bpl
shr ebx, 0x18
mov dword [rdx], ebp
mov dword [rdx + 4], r13d
mov edi, dword [r10 + rbx*4]
xor edi, dword [r14 + r11*4]
mov r11d, ebp
shr r11d, 0x10
xor edi, dword [rcx + 0x28]
mov rax, rbp
movzx r11d, r11b
movzx ebx, ah
mov rax, r13
xor edi, dword [r9 + r11*4]
movzx r11d, r13b
xor edi, dword [r8 + rbx*4]
mov ebx, r13d
mov r11d, dword [r10 + r11*4]
shr ebx, 0x18
xor r11d, dword [r9 + rbx*4]
mov ebx, r13d
shr ebx, 0x10
xor r11d, dword [rcx + 0x2c]
movzx ebx, bl
xor r11d, dword [r8 + rbx*4]
movzx ebx, ah
xor r11d, dword [r14 + rbx*4]
xor r11d, edi
ror edi, 8
xor r12d, r11d
xor edi, esi
mov ebx, r12d
xor edi, r11d
movzx r11d, r12b
shr ebx, 0x18
mov dword [rdx + 8], r12d
mov rax, r12
mov esi, dword [r10 + rbx*4]
xor esi, dword [r14 + r11*4]
mov r11d, r12d
shr r11d, 0x10
mov dword [rdx + 0xc], edi
xor esi, dword [rcx + 0x20]
movzx r11d, r11b
movzx ebx, ah
mov rax, rdi
xor esi, dword [r9 + r11*4]
movzx r11d, dil
xor esi, dword [r8 + rbx*4]
mov ebx, edi
mov r11d, dword [r10 + r11*4]
shr ebx, 0x18
xor r11d, dword [r9 + rbx*4]
mov ebx, edi
shr ebx, 0x10
xor r11d, dword [rcx + 0x24]
movzx ebx, bl
xor r11d, dword [r8 + rbx*4]
movzx ebx, ah
xor r11d, dword [r14 + rbx*4]
xor r11d, esi
ror esi, 8
xor ebp, r11d
xor esi, r13d
mov ebx, ebp
xor esi, r11d
movzx r11d, bpl
shr ebx, 0x18
mov dword [rdx], ebp
mov dword [rdx + 4], esi
mov ebx, dword [r10 + rbx*4]
xor ebx, dword [r14 + r11*4]
mov r11d, ebp
xor ebx, dword [rcx + 0x18]
shr r11d, 0x10
mov r13d, esi
movzx r11d, r11b
shr r13d, 0x18
mov rax, rbp
xor ebx, dword [r9 + r11*4]
movzx r11d, sil
movzx eax, ah
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r9 + r13*4]
mov r13d, esi
shr r13d, 0x10
xor ebx, dword [r8 + rax*4]
xor r11d, dword [rcx + 0x1c]
movzx r13d, r13b
mov rax, rsi
xor r11d, dword [r8 + r13*4]
movzx eax, ah
xor r11d, dword [r14 + rax*4]
xor r11d, ebx
ror ebx, 8
xor r12d, r11d
xor ebx, edi
xor ebx, r11d
mov r11d, r12d
movzx edi, r12b
shr r11d, 0x18
mov dword [rdx + 8], r12d
mov dword [rdx + 0xc], ebx
mov r11d, dword [r10 + r11*4]
xor r11d, dword [r14 + rdi*4]
mov edi, r12d
shr edi, 0x10
xor r11d, dword [rcx + 0x10]
mov rax, r12
movzx edi, dil
movzx r13d, bl
xor r11d, dword [r9 + rdi*4]
movzx edi, ah
mov r10d, dword [r10 + r13*4]
xor r11d, dword [r8 + rdi*4]
mov edi, ebx
shr edi, 0x18
xor r10d, dword [r9 + rdi*4]
mov r9d, ebx
movzx edi, bh
shr r9d, 0x10
xor r10d, dword [rcx + 0x14]
movzx r9d, r9b
xor r10d, dword [r8 + r9*4]
xor r10d, dword [r14 + rdi*4]
xor r10d, r11d
ror r11d, 8
xor r11d, esi
xor ebp, r10d
xor r11d, r10d
mov dword [rdx], ebp
mov dword [rdx + 4], r11d
xor r12d, dword [rcx]
mov dword [rdx + 8], r12d
xor ebx, dword [rcx + 4]
mov dword [rdx], r12d
mov dword [rdx + 8], ebp
mov dword [rdx + 0xc], r11d
mov dword [rdx + 4], ebx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret