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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x18
movzx eax, byte [rdx + 1]
movzx ecx, byte [rdx]
movzx ebp, byte [rdx + 4]
movzx esi, byte [rdx + 8]
movzx r14d, byte [rdx + 0xc]
movzx edi, byte [rdx + 0x10]
movzx r15d, byte [rdx + 0x14]
movzx ebx, byte [rdx + 0x18]
shl ecx, 8
xor ecx, eax
shl ebp, 8
movzx eax, byte [rdx + 2]
shl esi, 8
shl r14d, 8
shl edi, 8
shl r15d, 8
shl ecx, 8
xor ecx, eax
shl ebx, 8
movzx eax, byte [rdx + 3]
shl ecx, 8
xor ecx, eax
movzx eax, byte [rdx + 5]
xor ebp, eax
mov dword [rsp], ecx
movzx eax, byte [rdx + 6]
shl ebp, 8
xor ebp, eax
mov dword [r8], ecx
movzx eax, byte [rdx + 7]
shl ebp, 8
xor ebp, eax
movzx eax, byte [rdx + 9]
xor esi, eax
mov dword [rsp + 4], ebp
movzx eax, byte [rdx + 0xa]
shl esi, 8
xor esi, eax
mov dword [r8 + 4], ebp
movzx eax, byte [rdx + 0xb]
shl esi, 8
xor esi, eax
movzx eax, byte [rdx + 0xd]
xor r14d, eax
mov dword [rsp + 8], esi
movzx eax, byte [rdx + 0xe]
shl r14d, 8
xor r14d, eax
mov dword [r8 + 8], esi
movzx eax, byte [rdx + 0xf]
shl r14d, 8
xor r14d, eax
movzx eax, byte [rdx + 0x11]
xor edi, eax
mov dword [rsp + 0xc], r14d
movzx eax, byte [rdx + 0x12]
shl edi, 8
xor edi, eax
mov dword [r8 + 0xc], r14d
movzx eax, byte [rdx + 0x13]
shl edi, 8
xor edi, eax
movzx eax, byte [rdx + 0x15]
xor r15d, eax
mov dword [rsp + 0x68], edi
movzx eax, byte [rdx + 0x16]
shl r15d, 8
xor r15d, eax
movzx eax, byte [rdx + 0x17]
shl r15d, 8
xor r15d, eax
movzx eax, byte [rdx + 0x19]
xor ebx, eax
mov r13d, r15d
movzx eax, byte [rdx + 0x1a]
shl ebx, 8
xor ebx, eax
movzx eax, byte [rdx + 0x1b]
shl ebx, 8
xor ebx, eax
mov r12d, ebx
movzx eax, byte [rdx + 0x1d]
lea r9, [0x140004270]
movzx r11d, byte [rdx + 0x1c]
xor edi, ecx
shl r11d, 8
xor r15d, ebp
xor r11d, eax
mov r8d, edi
movzx eax, byte [rdx + 0x1e]
xor ebx, esi
shl r11d, 8
xor r11d, eax
movzx eax, byte [rdx + 0x1f]
shl r11d, 8
xor r11d, eax
mov eax, 0xa09e667f
xor r8, rax
mov dword [rsp + 0x78], r11d
mov rax, r8
xor r11d, r14d
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r10d, dword [r9 + rdx*4 + 0x800]
xor r10d, dword [r9 + rcx*4 + 0xc00]
xor r10d, dword [r9 + rax*4]
movzx eax, r8b
mov r8d, r15d
xor r8, 0x3bcc908b
xor r10d, dword [r9 + rax*4 + 0x400]
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r9d, dword [r9 + rdx*4 + 0xc00]
lea rdx, [0x140004270]
xor r9d, dword [rdx + rcx*4 + 0x400]
xor r9d, dword [rdx + rax*4 + 0x800]
movzx eax, r8b
xor r9d, dword [rdx + rax*4]
mov eax, r10d
shl eax, 0x18
xor r9d, r10d
shr r10d, 8
xor ebx, r9d
add eax, r10d
mov r8d, ebx
xor eax, r9d
lea r9, [0x140004270]
xor r11d, eax
mov eax, 0xb67ae858
xor r8, rax
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r10d, dword [r9 + rdx*4 + 0x800]
xor r10d, dword [r9 + rcx*4 + 0xc00]
xor r10d, dword [r9 + rax*4]
movzx eax, r8b
mov r8d, r11d
xor r8, 0x4caa73b2
xor r10d, dword [r9 + rax*4 + 0x400]
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov r9d, dword [r9 + rdx*4 + 0xc00]
mov rax, r8
shr rax, 0x18
lea rdx, [0x140004270]
xor r9d, dword [rdx + rcx*4 + 0x400]
xor r9d, dword [rdx + rax*4 + 0x800]
movzx eax, r8b
xor r9d, dword [rdx + rax*4]
mov eax, dword [rsp]
xor r9d, r10d
xor eax, r9d
xor edi, eax
mov eax, r10d
shl eax, 0x18
shr r10d, 8
add eax, r10d
mov r8d, edi
xor eax, ebp
lea rbp, [0x140004270]
xor eax, r9d
xor r15d, eax
mov eax, 0xc6ef372f
xor r8, rax
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r10d, dword [rbp + rdx*4 + 0x800]
xor r10d, dword [rbp + rcx*4 + 0xc00]
xor r10d, dword [rbp + rax*4]
movzx eax, r8b
mov r8d, r15d
xor r10d, dword [rbp + rax*4 + 0x400]
mov eax, 0xe94f82be
xor r8, rax
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r9d, dword [rbp + rdx*4 + 0xc00]
xor r9d, dword [rbp + rcx*4 + 0x400]
xor r9d, dword [rbp + rax*4 + 0x800]
movzx eax, r8b
xor r9d, dword [rbp + rax*4]
mov eax, esi
xor r9d, r10d
lea rsi, [0x140004270]
xor eax, r9d
xor ebx, eax
mov eax, r10d
shl eax, 0x18
mov ebp, ebx
shr r10d, 8
add eax, r10d
mov r8d, ebx
xor eax, r14d
xor r8, 0x54ff53a5
xor eax, r9d
xor r11d, eax
mov rax, r8
shr rax, 0x10
mov r14d, r11d
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r10d, dword [rsi + rdx*4 + 0x800]
xor r10d, dword [rsi + rcx*4 + 0xc00]
xor r10d, dword [rsi + rax*4]
movzx eax, r8b
xor r10d, dword [rsi + rax*4 + 0x400]
mov r8d, r11d
mov eax, 0xf1d36f1c
xor r8, rax
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r9d, dword [rsi + rdx*4 + 0xc00]
xor r9d, dword [rsi + rcx*4 + 0x400]
xor r9d, dword [rsi + rax*4 + 0x800]
movzx eax, r8b
xor r9d, dword [rsi + rax*4]
mov eax, r10d
shl eax, 0x18
xor r9d, r10d
xor edi, r9d
shr r10d, 8
add eax, r10d
mov esi, edi
xor eax, r9d
lea r9, [0x140004270]
xor r15d, eax
mov eax, esi
xor eax, dword [rsp + 0x68]
mov edi, r15d
mov r8d, eax
xor r15d, r13d
mov dword [rsp + 0x60], eax
xor r8, 0x10e527fa
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r10d, dword [r9 + rdx*4 + 0x800]
xor r10d, dword [r9 + rcx*4 + 0xc00]
xor r10d, dword [r9 + rax*4]
movzx eax, r8b
mov r8d, r15d
xor r10d, dword [r9 + rax*4 + 0x400]
mov eax, 0xde682d1d
xor r8, rax
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r9d, dword [r9 + rdx*4 + 0xc00]
lea rdx, [0x140004270]
xor r9d, dword [rdx + rcx*4 + 0x400]
xor r9d, dword [rdx + rax*4 + 0x800]
movzx eax, r8b
xor r9d, dword [rdx + rax*4]
xor r9d, r10d
mov eax, r9d
xor eax, r12d
xor ebx, eax
mov eax, r10d
shl eax, 0x18
shr r10d, 8
add eax, r10d
mov r8d, ebx
xor eax, r9d
xor eax, dword [rsp + 0x78]
xor r11d, eax
mov eax, 0xb05688c2
xor r8, rax
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
lea r9, [0x140004270]
mov r10d, dword [r9 + rdx*4 + 0x800]
movzx ecx, al
mov rax, r8
shr rax, 0x18
xor r10d, dword [r9 + rcx*4 + 0xc00]
xor r10d, dword [r9 + rax*4]
movzx eax, r8b
mov r8d, r11d
xor r10d, dword [r9 + rax*4 + 0x400]
mov eax, 0xb3e6c1fd
xor r8, rax
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r8
shr rax, 0x18
mov r9d, dword [r9 + rdx*4 + 0xc00]
lea rdx, [0x140004270]
xor r9d, dword [rdx + rcx*4 + 0x400]
xor r9d, dword [rdx + rax*4 + 0x800]
movzx eax, r8b
mov r8, qword [rsp + 0x70]
xor r9d, dword [rdx + rax*4]
mov eax, r10d
mov edx, dword [rsp + 0x60]
xor r9d, r10d
shl eax, 0x18
xor edx, r9d
mov ecx, edx
mov dword [r8 + 0x10], edx
shl edx, 0x1e
mov dword [r8 + 0x18], ebx
mov dword [r8 + 0x1c], r11d
shr ecx, 2
shr r10d, 8
add eax, r10d
xor eax, r9d
xor r15d, eax
mov eax, r15d
mov dword [r8 + 0x14], r15d
shr eax, 2
or edx, eax
shl r15d, 0x1e
mov eax, ebx
mov dword [r8 + 0x50], edx
shr eax, 2
or r15d, eax
shl ebx, 0x1e
mov eax, r11d
mov dword [r8 + 0x54], r15d
shr eax, 2
or ebx, eax
shl r11d, 0x1e
or r11d, ecx
mov dword [r8 + 0x58], ebx
mov eax, r15d
mov dword [r8 + 0x5c], r11d
shr eax, 2
mov ecx, edx
shl edx, 0x1e
or edx, eax
shl r15d, 0x1e
mov eax, ebx
shr ecx, 2
shr eax, 2
or r15d, eax
shl ebx, 0x1e
mov eax, r11d
mov dword [r8 + 0xa0], edx
shr eax, 2
or ebx, eax
shl r11d, 0x1e
or r11d, ecx
mov dword [r8 + 0xa4], r15d
mov dword [r8 + 0xac], r11d
mov dword [r8 + 0xa8], ebx
mov ecx, r15d
mov eax, ebx
shr eax, 0xd
shr ecx, 0xd
shl r15d, 0x13
or eax, r15d
shl ebx, 0x13
mov r15d, dword [rsp + 0x78]
mov dword [r8 + 0x100], eax
mov eax, r11d
shr eax, 0xd
or eax, ebx
shl r11d, 0x13
mov dword [r8 + 0x104], eax
mov eax, edx
shr eax, 0xd
or r11d, eax
shl edx, 0x13
or edx, ecx
mov dword [r8 + 0x108], r11d
mov dword [r8 + 0x10c], edx
mov ecx, r13d
mov edx, dword [rsp + 0x68]
mov r8d, r15d
mov eax, edx
shr r8d, 0x11
shr eax, 0x11
shl edx, 0xf
shr ecx, 0x11
or ecx, edx
shl r15d, 0xf
or r15d, eax
shl r13d, 0xf
mov eax, ecx
mov edx, r12d
shr eax, 0x11
mov r10d, r15d
shr edx, 0x11
or edx, r13d
shl r12d, 0xf
or r8d, r12d
shr r10d, 0x11
mov r12, qword [rsp + 0x70]
mov ebx, edx
mov r11d, r8d
shr ebx, 0x11
shr r11d, 0x11
mov dword [r12 + 0x20], ecx
mov dword [r12 + 0x24], edx
shl edx, 0xf
or r11d, edx
shl ecx, 0xf
or ebx, ecx
mov dword [r12 + 0x28], r8d
shl r8d, 0xf
mov edx, r11d
or r10d, r8d
mov dword [r12 + 0x2c], r15d
shl r15d, 0xf
mov r8d, ebx
or r15d, eax
shl r8d, 0x1e
shl edx, 0x1e
mov eax, r11d
shr eax, 2
mov r9d, ebx
or r8d, eax
shr r9d, 2
mov eax, r10d
mov dword [r12 + 0x40], ebx
shr eax, 2
mov ecx, r10d
or edx, eax
shl ecx, 0x1e
mov eax, r15d
mov dword [r12 + 0x44], r11d
shr eax, 2
or ecx, eax
mov dword [r12 + 0x48], r10d
mov dword [r12 + 0x4c], r15d
mov dword [r12 + 0x90], r8d
mov dword [r12 + 0x94], edx
mov r8d, r14d
shl r14d, 0xf
mov edx, ebp
shr edx, 0x11
mov eax, r15d
shl eax, 0x1e
or eax, r9d
mov dword [r12 + 0x98], ecx
mov dword [r12 + 0x9c], eax
mov r9d, edi
shr r9d, 0x11
mov eax, esi
shr eax, 0x11
or r14d, eax
shr r8d, 0x11
mov dword [r12 + 0x3c], r14d
shl edi, 0xf
or edx, edi
shl esi, 0xf
or r9d, esi
mov dword [r12 + 0x34], edx
mov eax, edx
mov dword [r12 + 0x30], r9d
shr eax, 2
mov ecx, r9d
shr ecx, 2
shl r9d, 0x1e
or r9d, eax
shl edx, 0x1e
shl ebp, 0xf
or r8d, ebp
mov dword [r12 + 0x70], r9d
mov eax, r8d
mov dword [r12 + 0x38], r8d
shr eax, 2
or edx, eax
shl r8d, 0x1e
mov eax, r14d
mov dword [r12 + 0x74], edx
shr eax, 2
or r8d, eax
shl r14d, 0x1e
or r14d, ecx
mov dword [r12 + 0xc0], edx
mov ecx, edx
mov dword [r12 + 0x7c], r14d
shr ecx, 0xf
mov eax, r8d
shr eax, 0xf
shl edx, 0x11
or eax, edx
mov dword [r12 + 0xc8], r14d
mov edx, dword [rsp + 4]
mov dword [r12 + 0xe0], eax
mov eax, r14d
shr eax, 0xf
mov dword [r12 + 0xcc], r9d
shl r14d, 0x11
mov dword [r12 + 0xd0], r10d
mov dword [r12 + 0x78], r8d
mov dword [r12 + 0xc4], r8d
shl r8d, 0x11
or eax, r8d
mov dword [r12 + 0xd4], r15d
mov dword [r12 + 0xe4], eax
mov eax, r9d
shr eax, 0xf
or r14d, eax
shl r9d, 0x11
mov eax, dword [rsp + 8]
or r9d, ecx
mov ecx, edx
mov dword [r12 + 0xd8], ebx
mov r10d, eax
shr ecx, 0x13
shr r10d, 0x13
shl edx, 0xd
mov dword [r12 + 0xdc], r11d
mov dword [r12 + 0xe8], r14d
mov dword [r12 + 0xec], r9d
mov r11d, dword [rsp + 0xc]
or r10d, edx
mov ebx, dword [rsp]
mov r9d, r11d
shl eax, 0xd
mov r8d, r10d
shr r9d, 0x13
or r9d, eax
shl r11d, 0xd
mov eax, ebx
shr r8d, 0x11
shr eax, 0x13
mov edx, r9d
or r11d, eax
shr edx, 0x11
shl ebx, 0xd
mov eax, r10d
or ebx, ecx
shl eax, 0xf
or edx, eax
mov dword [r12 + 0x60], r10d
mov dword [r12 + 0x80], edx
mov eax, r9d
shl eax, 0xf
mov ecx, r11d
shr ecx, 0x11
mov edx, r11d
or ecx, eax
shr edx, 0x1e
mov dword [r12 + 0x84], ecx
mov eax, ebx
shr eax, 0x11
mov ecx, r11d
shl ecx, 0xf
or ecx, eax
mov dword [r12 + 0x64], r9d
mov dword [r12 + 0x88], ecx
mov eax, ebx
shl eax, 0xf
mov ecx, ebx
or eax, r8d
shr ecx, 0x1e
mov dword [r12 + 0x8c], eax
lea eax, [r11*4]
or ecx, eax
mov dword [r12 + 0x68], r11d
mov dword [r12 + 0xf0], ecx
mov eax, r10d
shr eax, 0x1e
lea ecx, [rbx*4]
or ecx, eax
mov dword [r12 + 0x6c], ebx
mov dword [r12 + 0xf4], ecx
lea eax, [r10*4]
mov ecx, r9d
mov dword [r12 + 0xb0], r9d
shr ecx, 0x1e
or ecx, eax
mov dword [r12 + 0xb4], r11d
lea eax, [r9*4]
mov dword [r12 + 0xb8], ebx
or eax, edx
mov dword [r12 + 0xbc], r10d
mov dword [r12 + 0xfc], eax
mov eax, 4
mov dword [r12 + 0xf8], ecx
add rsp, 0x18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret