Function at 0x140004040
Capabilities:
Copy file
Create process on windows
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xe90]
mov eax, 0xf90
call fcn.14000c460
sub rsp, rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0xa70]
mov r8d, 0x20a
call fcn.14000d2c0
mov r8d, 0x104
lea rcx, [rbp + 0xa70]
mov rdx, rbx
call fcn.140012f9c
xor edx, edx
lea rcx, [rbp + 0x230]
mov r8d, 0x20a
call fcn.14000d2c0
mov r8d, 0x104
lea rcx, [rbp + 0x230]
mov rdx, rbx
call fcn.140012f9c
lea rdx, str.updater.ini
lea rcx, [rbp + 0x230]
call fcn.140008ac0
test eax, eax
je 0x140004443
lea rax, [rbp + 0x230]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rdx, str.ExeRelPath
mov dword [rsp + 0x20], 0x105
lea rcx, [0x14002f480]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140004443
lea rax, [rbp + 0x230]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x860]
lea rdx, [0x14002f4a0]
mov dword [rsp + 0x20], 0x105
lea rcx, [0x14002f480]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140004443
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
lea r9, [rbp]
lea r8, [0x14002f4b0]
mov dword [rsp + 0x20], 0xa
lea rdx, [0x14002f4c0]
lea rcx, [0x14002f480]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140004443
lea rdx, [0x14002e858]
lea rcx, [rbp + 0x20]
call fcn.14000d71c
test rax, rax
jne 0x140004443
lea rdx, [0x14002f4d4]
lea rcx, [rbp + 0x20]
call fcn.14000d71c
test rax, rax
jne 0x140004443
lea rdx, str.k_j_
lea rcx, [rbp + 0x20]
call fcn.14000d71c
test rax, rax
jne 0x140004443
lea rdx, [0x14002f4e4]
lea rcx, [rbp + 0x20]
call fcn.14000d71c
test rax, rax
jne 0x140004443
movzx ecx, word [rbp + 0x20]
lea eax, [rcx - 0x2e]
cmp ax, 1
jbe 0x140004443
cmp cx, 0x5c
je 0x140004443
xor edx, edx
lea rcx, [rbp + 0x440]
mov r8d, 0x20a
call fcn.14000d2c0
mov r8d, 0x104
lea rcx, [rbp + 0x440]
mov rdx, rbx
call fcn.140012f9c
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x440]
call fcn.140008ac0
test eax, eax
je 0x140004443
lea rcx, [rbp + 0x440]
call fcn.1400088c0
test al, al
je 0x140004443
lea r8, [0x14002f4e8]
lea rdx, [rbp + 0x440]
lea rcx, [rbp + 0xc80]
call fcn.140008b20
test eax, eax
je 0x140004443
xor edx, edx
lea rcx, [rbp + 0x650]
mov r8d, 0x20a
call fcn.14000d2c0
mov r8d, 0x104
lea rcx, [rbp + 0x650]
mov rdx, rdi
call fcn.140012f9c
lea rdx, [0x14002f510]
lea rcx, [rbp + 0x650]
call fcn.140008ac0
test eax, eax
je 0x140004443
xor eax, eax
lea rdx, [0x14002f528]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x68], eax
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0xd]
call fcn.140012f9c
mov rax, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov rbx, rax
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x1400042f0
lea rcx, [rbp + 0x860]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004301
add rbx, rax
lea rcx, [rbx + rbx + 2]
call fcn.1400109e8
mov rdi, rax
test rax, rax
je 0x140004443
mov r8, rbx
mov qword [rsp + 0xfa0], rsi
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140012f9c
lea rcx, [rdi - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140004340
lea r8, [rbp + 0x860]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140004360
xor r8d, r8d
lea rdx, [rbp + 0xc80]
lea rcx, [rbp + 0x650]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
xor eax, eax
mov dword [rbp - 0x70], 0x68
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
xor ecx, ecx
lea rax, [0x14002e634]
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x60], rax
xor r9d, r9d
xor eax, eax
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x80], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xa70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x440]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne sil
call fcn.1400109d4
test ebx, ebx
je 0x140004435
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rsi, qword [rsp + 0xfa0]
jmp 0x140004445
xor al, al
lea r11, [rsp + 0xf90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret