Function at 0x180002260
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x8a0
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rsp + 0x880], rax
movsxd r12, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r15, rax
test rax, rax
jne 0x1800022a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
movzx r10d, word [0x180155b74]
lea rbp, [0x180000000]
lea rcx, [rbp + 0x157090]
imul r10, r10, 0x3c
add rcx, r10
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1800022c3
xor r14d, r14d
movsxd r8, eax
mov edx, r14d
test eax, eax
jle 0x180002309
lea rcx, [rsp + 0x40]
mov rax, r10
lea r9, [rbp + 0x157090]
sub rax, rcx
add r9, rax
nop
lea rcx, [rsp + 0x40]
add rcx, rdx
inc rdx
movzx eax, byte [rcx + r9]
xor al, 0x18
mov byte [rcx], al
cmp rdx, r8
jl 0x1800022f0
mov rcx, qword [0x180239a38]
lea rax, [r8 + r10]
lea rdx, [rsp + 0x40]
movzx eax, byte [rax + rbp + 0x157090]
mov r9d, 1
mov byte [rsp + r8 + 0x40], al
lea r8, [0x180120864]
call fcn.18001ec80
mov rcx, rax
mov qword [0x1802395c8], rax
call fcn.180021f70
mov ebx, eax
test eax, eax
jne 0x18000287b
mov qword [rsp + 0x8e0], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], r14d
mov rsi, rax
test r15, r15
je 0x180002773
mov rcx, r15
mov qword [rsp + 0x898], rdi
call fcn.180016190
mov ecx, eax
mov ebx, eax
call fcn.180006414
mov r9d, ebx
mov rdx, r15
mov rdi, rax
lea rax, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18000275e
cmp dword [0x180155ca4], 2
mov rbp, qword [rsp + 0x30]
mov qword [rsp + 0x890], r13
mov eax, r14d
mov edx, r14d
mov r11d, r14d
jbe 0x180002473
test ebp, ebp
je 0x1800025b8
lea rsi, [0x180155b10]
lea r13, [0x180156970]
nop
add eax, 0x61
cmp eax, ebp
jae 0x1800025b8
nop dword [rax + rax]
cmp edx, ebp
jae 0x1800025b8
mov ebx, edx
mov r10d, 0x61
mov r9, rsi
mov r8, r13
cmp dword [r8], r14d
jne 0x180002426
movzx eax, byte [r9]
mov ecx, edx
cmp byte [rcx + rdi], al
jne 0x180002442
inc edx
add r8, 4
inc r9
dec r10d
jne 0x180002416
inc r11d
cmp r11d, 1
je 0x180002453
lea edx, [rbx + 1]
jmp 0x180002400
mov eax, 1
lea edx, [rbx + 1]
cmp ebp, eax
ja 0x1800023f0
jmp 0x1800025b8
test ebx, ebx
je 0x1800025b8
lea rdx, [0x180000000]
lea rcx, [r15 + rbx]
mov qword [rdx + r12*8 + 0x239598], rcx
jmp 0x1800025b8
test ebp, ebp
je 0x1800024e8
lea r13, [0x180155cb0]
nop
add eax, 0xe1
cmp eax, ebp
jae 0x1800024e8
nop dword [rax]
cmp edx, ebp
jae 0x1800024e8
mov ebx, edx
mov r10d, 0xe1
mov r9, r13
lea r8, [0x1802395d0]
cmp dword [r8], r14d
jne 0x1800024b6
movzx eax, byte [r9]
mov ecx, edx
cmp byte [rcx + rdi], al
jne 0x1800024d2
inc edx
add r8, 4
inc r9
dec r10d
jne 0x1800024a6
inc r11d
cmp r11d, 1
je 0x1800024e0
lea edx, [rbx + 1]
jmp 0x180002490
mov eax, 1
lea edx, [rbx + 1]
cmp ebp, eax
ja 0x180002480
jmp 0x1800024e8
test ebx, ebx
jne 0x18000256e
mov eax, r14d
mov edx, r14d
mov r11d, r14d
test ebp, ebp
je 0x1800025b8
lea r13, [0x180157420]
add eax, 0xe1
cmp eax, ebp
jae 0x1800025b8
nop dword [rax]
cmp edx, ebp
jae 0x1800025b8
mov ebx, edx
mov r10d, 0xe1
mov r9, r13
lea r8, [0x1802395d0]
nop word [rax + rax]
cmp dword [r8], r14d
jne 0x180002540
movzx eax, byte [r9]
mov ecx, edx
cmp byte [rcx + rdi], al
jne 0x18000255c
inc edx
add r8, 4
inc r9
dec r10d
jne 0x180002530
inc r11d
cmp r11d, 1
je 0x18000256a
lea edx, [rbx + 1]
jmp 0x180002510
mov eax, 1
lea edx, [rbx + 1]
cmp ebp, eax
ja 0x180002500
jmp 0x1800025b8
test ebx, ebx
je 0x1800025b8
add rbx, r15
je 0x1800025b8
lea rax, [rsp + 0x38]
mov r9d, 0x40
mov r8d, 0xe1
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [0x180157e90]
mov r9d, 0xe1
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rbp, qword [rsp + 0x30]
mov eax, r14d
mov edx, r14d
mov r11d, r14d
test ebp, ebp
je 0x180002643
lea rsi, [0x180155d98]
lea r13, [0x1801568d0]
add eax, 0x1e
cmp eax, ebp
jae 0x180002643
nop
cmp edx, ebp
jae 0x180002643
mov ebx, edx
mov r10d, 0x1e
mov r9, rsi
mov r8, r13
cmp dword [r8], r14d
jne 0x180002602
movzx eax, byte [r9]
mov ecx, edx
cmp byte [rcx + rdi], al
jne 0x18000261e
inc edx
add r8, 4
inc r9
dec r10d
jne 0x1800025f2
inc r11d
cmp r11d, 1
je 0x18000262c
lea edx, [rbx + 1]
jmp 0x1800025e0
mov eax, 1
lea edx, [rbx + 1]
cmp ebp, eax
ja 0x1800025d7
jmp 0x180002643
test ebx, ebx
je 0x180002643
lea rdx, [0x180000000]
lea rcx, [r15 + rbx]
mov qword [rdx + r12*8 + 0x2399f8], rcx
mov eax, r14d
mov edx, r14d
mov r11d, r14d
test ebp, ebp
je 0x1800026d3
lea rsi, [0x180156948]
lea r13, [0x180239ab0]
add eax, 0x28
cmp eax, ebp
jae 0x1800026d3
nop dword [rax]
cmp edx, ebp
jae 0x1800026d3
mov ebx, edx
mov r10d, 0x28
mov r9, rsi
mov r8, r13
cmp dword [r8], r14d
jne 0x180002692
movzx eax, byte [r9]
mov ecx, edx
cmp byte [rcx + rdi], al
jne 0x1800026ae
inc edx
add r8, 4
inc r9
dec r10d
jne 0x180002682
inc r11d
cmp r11d, 1
je 0x1800026bc
lea edx, [rbx + 1]
jmp 0x180002670
mov eax, 1
lea edx, [rbx + 1]
cmp ebp, eax
ja 0x180002662
jmp 0x1800026d3
test ebx, ebx
je 0x1800026d3
lea rdx, [0x180000000]
lea rcx, [r15 + rbx]
mov qword [rdx + r12*8 + 0x2395a8], rcx
mov eax, r14d
mov r11d, r14d
test ebp, ebp
je 0x18000274f
lea rsi, [0x1801556f0]
lea r13, [0x180239a40]
nop dword [rax + rax]
lea ecx, [r14 + 0x10]
cmp ecx, ebp
jae 0x18000274f
cmp eax, ebp
jae 0x18000274f
mov ebx, eax
mov r10d, setsockopt
mov r9, rsi
mov r8, r13
nop word [rax + rax]
cmp dword [r8], 0
jne 0x180002721
movzx ecx, byte [r9]
mov edx, eax
cmp byte [rdx + rdi], cl
jne 0x180002741
inc eax
add r8, 4
inc r9
dec r10d
jne 0x180002710
inc r11d
cmp r11d, 1
je 0x18000285b
lea eax, [rbx + 1]
jmp 0x1800026f8
mov r14d, 1
lea eax, [rbx + 1]
cmp ebp, r14d
ja 0x1800026f0
lea rbp, [0x180000000]
mov r13, qword [rsp + 0x890]
test rdi, rdi
je 0x18000276b
mov rcx, rdi
call fcn.180005840
mov rdi, qword [rsp + 0x898]
call fcn.180016250
call fcn.180018780
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180018cb0
mov rsi, qword [rsp + 0x8e0]
lea rbx, [r12*8]
lea rcx, [rbx + 0x239598]
add rcx, rbp
cmp qword [rcx], 0
je 0x1800027b7
lea rdx, [0x180003350]
call fcn.180017d70
lea rcx, [rbx + 0x2399f8]
add rcx, rbp
cmp qword [rcx], 0
je 0x1800027d4
mov rdx, qword [rbx + rbp + 0x239ba0]
call fcn.180017d70
lea rcx, [rbx + 0x2395a8]
add rcx, rbp
cmp qword [rcx], 0
je 0x1800027f0
lea rdx, [0x1800028c0]
call fcn.180017d70
lea rcx, [rbx + 0x239a08]
add rcx, rbp
cmp qword [rcx], 0
je 0x18000280d
mov rdx, qword [rbx + rbp + 0x239aa0]
call fcn.180017d70
lea rcx, [rbx + 0x2399e8]
add rcx, rbp
cmp qword [rcx], 0
je 0x18000282a
mov rdx, qword [rbx + rbp + 0x2395b8]
call fcn.180017d70
call fcn.180018800
mov rcx, qword [0x1802395c8]
call fcn.18001c910
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.180005860
add rsp, 0x8a0
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
test ebx, ebx
je 0x18000274f
lea rbp, [0x180000000]
lea rcx, [r15 + rbx]
mov qword [rbp + r12*8 + 0x2399e8], rcx
jmp 0x180002756
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.180001450
lea r8, str.CatiaV5_RLM_License_Error
lea rdx, [rsp + 0x80]
mov r9d, setsockopt
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, ebx
call fcn.1800077f4
int3