joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14025a014
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140233ecc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140233ecc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14025a164
cmp rax, 0xffffffffffffffff
je 0x14025a164
xor edi, edi
test rbp, rbp
jle 0x14025a10f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140246594
mov rbx, rax
test rax, rax
jne 0x14025a09c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14025a105
mov edx, 0x8000
mov ecx, r14d
call fcn.14023fa10
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1402436a8
cmp eax, 0xffffffff
je 0x14025a0e5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14025a0ac
mov edx, r15d
mov ecx, r14d
call fcn.14023fa10
jmp 0x14025a105
cmp byte [rsi + 0x38], dil
je 0x14025a0fc
cmp dword [rsi + 0x34], 5
jne 0x14025a0fc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14025a105
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140246614
jmp 0x14025a178
jns 0x14025a178
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140233ecc
cmp rax, 0xffffffffffffffff
jne 0x14025a130
cmp byte [rsi + 0x30], dil
je 0x14025a178
mov edi, dword [rsi + 0x2c]
jmp 0x14025a178
mov ecx, r14d
call fcn.14024e51c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14025a178
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14025a178
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14025a171
mov eax, dword [rsi + 0x2c]
jmp 0x14025a176
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140233ecc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14025df68
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402e4100]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14025dfb2
call fcn.14022fad8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14022faf8
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14022afe4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401de720
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14025dfbd
lea eax, [rbx + 1]
jmp 0x14025df9f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14025df9d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14025df9f
Function at 0x14025f07c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401f16f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14025f106
cmp byte [rbp - 0x21], r15b
je 0x14025f101
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14025f13c
call fcn.140247348
test eax, eax
jne 0x14025f128
cmp byte [rbp - 0x21], r15b
je 0x14025f120
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14025f13c
cmp byte [rbp - 0x21], r15b
je 0x14025f139
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14022e560
test eax, eax
jne 0x14025f1dc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401f16f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14025f17b
cmp byte [rbp - 0x21], r15b
je 0x14025f1b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14025f1b0
call fcn.140247348
test eax, eax
jne 0x14025f19c
cmp byte [rbp - 0x21], r15b
je 0x14025f195
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14025f1b0
cmp byte [rbp - 0x21], r15b
je 0x14025f1ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14022e560
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14025f1dc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14025f1df
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14025f1ed
mov rcx, rdi
call fcn.140246614
cmp byte [rbp + 0x3f], r15b
je 0x14025f1fc
mov rcx, qword [rbp + 0x27]
call fcn.140246614
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140261800
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140261828
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140261828
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001390
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [section..data]
test ecx, ecx
js 0x1800013a6
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x18001a004], 0
jl 0x1800013cd
mov ecx, 1
lock xadd dword [0x18001aab4], ecx
inc ecx
movsxd rdx, ecx
mov ecx, dword [0x18001a004]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
add rsp, 0x28
ret
Function at 0x180001740
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x180001825
nop dword [rax]
cmp rbx, qword [0x18001a008]
jb 0x18000178e
cmp rbx, qword [0x18001a010]
ja 0x18000178e
sub rbx, 0x8000000
jmp 0x18000181c
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180001825
cmp dword [rsp + 0x40], 0x10000
jne 0x180001800
cmp qword [rsp + 0x38], 0x10000
jb 0x180001800
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180001827
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x180001825
sub rbx, 0x10000
jmp 0x18000181c
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180001770
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180001840
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180001862
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180001927
nop dword [rax + rax]
cmp rbx, qword [0x18001a008]
jb 0x18000188e
cmp rbx, qword [0x18001a010]
ja 0x18000188e
add rbx, 0x8000000
jmp 0x18000191e
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180001927
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180001903
cmp rcx, 0x10000
jb 0x180001903
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180001929
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x180001927
add rbx, 0x10000
jmp 0x18000191e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x18000191e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180001870
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180001940
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x18000195e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x18000197a
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180001991
cmp byte [rcx + 1], 0x25
jne 0x1800019d5
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x18000199d
cmp al, 0xe9
jne 0x1800019d5
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x1800019c0
cmp rcx, 0xffffffff80000000
jae 0x1800019b7
lea rdi, [rcx + 0x7ff80000]
jmp 0x1800019d5
mov rdi, 0xfffffffffff80000
jmp 0x1800019d5
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1800019d5
mov ebx, 0x80000
mov rax, qword [0x18001aed0]
mov rcx, qword [0x18001aec8]
test rax, rax
jne 0x1800019f7
test rcx, rcx
je 0x180001a0e
mov rax, rcx
mov qword [0x18001aed0], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x180001a0e
cmp rdx, rbx
jb 0x180001a0e
cmp rdx, rdi
jbe 0x180001ab9
mov qword [0x18001aed0], rcx
mov rax, rcx
test rcx, rcx
je 0x180001a49
test rcx, rcx
je 0x180001a39
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x180001a39
cmp rcx, rbx
jb 0x180001a39
cmp rcx, rdi
jbe 0x180001ab9
mov rax, qword [rax + 8]
mov qword [0x18001aed0], rax
test rax, rax
jne 0x180001a22
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.180001b10
test rax, rax
je 0x180001afc
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18001aed0], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18001aec8]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18001aec8], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x180001aa1
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x180001afc
cmp rdx, rdi
ja 0x180001afc
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x180010350]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180001e30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x180001e5d
xor al, al
jmp 0x180001e9f
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x180001e6e
xor al, al
jmp 0x180001e9f
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180001e95
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180001e95
mov al, 1
jmp 0x180001e9f
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180002420
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001aee0], eax
je 0x18000244d
mov eax, 0x10dd
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov eax, dword [0x18001aee4]
test eax, eax
jne 0x180002582
test rbp, rbp
jne 0x18000246e
lea eax, [rbp + 0x57]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
test rsi, rsi
je 0x18000248a
cmp qword [rsi], 0
jne 0x18000249a
mov dword [0x18001aee4], 6
mov qword [0x18001aee8], rsi
mov eax, 6
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0x30
mov qword [rsp + 0x38], rdi
call fcn.180004048
mov rbx, rax
test rax, rax
jne 0x1800024be
lea edi, [rax + 8]
jmp 0x180002557
mov rcx, qword [rsi]
xor edx, edx
call fcn.180002370
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.180002370
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x180002549
mov edx, ecx
cmp rcx, 0x1e
ja 0x180002549
cmp qword [rdi + 0x50], rax
jne 0x180002549
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000251a
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x180002557
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [0x18001aef8]
mov qword [rbx], rax
xor eax, eax
mov qword [0x18001aef8], rbx
jmp 0x180002578
cmp dword [0x18001aed8], 0
mov edi, 9
jne 0x180002562
mov dword [0x18001aee4], edi
test rbx, rbx
je 0x18000256f
mov edx, 0x30
mov rcx, rbx
call fcn.180004084
mov qword [0x18001aee8], rsi
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x1800025a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18001aee0], 0
jne 0x180002645
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18001aee0], ecx
jne 0x180002645
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x18001aec8]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x18001aef8], rdi
mov qword [0x18001aef0], rdi
mov qword [0x18001aee8], rdi
test rbx, rbx
je 0x18000262e
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x180002627
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180002600
jmp 0x18000262e
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18001aee4], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180002c40
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18001aee4]
mov rdi, rcx
test eax, eax
jne 0x180002ce0
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x180002c69
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180004048
mov rbx, rax
test rax, rax
jne 0x180002c85
lea edi, [rax + 8]
jmp 0x180002ca6
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180002cc4
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180004084
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18001aee4], edi
mov qword [0x18001aee8], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18001aef0]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18001aef0], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180002db0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x30
mov r9, rcx
test rcx, rcx
jne 0x180002dc6
call sub.KERNEL32.dll_GetModuleHandleW
mov r9, rax
mov eax, 0x5a4d
cmp word [r9], ax
je 0x180002de2
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180002eb8
movsxd r10, dword [r9 + 0x3c]
add r10, r9
cmp dword [r10], 0x4550
je 0x180002e03
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180002eb8
movzx eax, word [r10 + 0x14]
test ax, ax
jne 0x180002e1e
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180002eb8
lea r11, [r10 + 0x18]
add r11, rax
xor r8d, r8d
lea rbx, str..detour
mov dword [rsp + 0x20], r8d
movzx eax, word [r10 + 6]
cmp r8d, eax
jae 0x180002e9e
lea rcx, [r8 + r8*4]
lea rdx, [r11 + rcx*8]
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rbx + rcx - 1]
jne 0x180002e99
cmp rcx, 8
jne 0x180002e50
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x180002e9e
cmp dword [rdx + 0x10], 0
je 0x180002e9e
lea rbx, [r9 + rax]
mov eax, dword [rbx]
cmp eax, 0x40
jb 0x180002e9e
cmp dword [rbx + 4], 0x727444
jne 0x180002e9e
cmp dword [rbx + 8], 0
jne 0x180002e8d
mov dword [rbx + 8], eax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, rbx
jmp 0x180002eb8
inc r8d
jmp 0x180002e2f
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180002eb8
add rsp, 0x30
pop rbx
ret
Function at 0x180002ec0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rbx, [rcx + 0x10000]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov edi, 0x5a4d
nop dword [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180002f13
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
cmp dword [rsp + 0x40], 0x1000
jne 0x180002f5d
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x180002f5d
bt eax, 8
jb 0x180002f5d
cmp word [rbx], di
jne 0x180002f56
mov eax, dword [rbx + 0x3c]
cmp rax, qword [rsp + 0x38]
ja 0x180002f56
cmp eax, 0x40
jb 0x180002f56
cdqe
cmp dword [rax + rbx], 0x4550
jne 0x180002f5d
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, rbx
jmp 0x180002f08
jmp 0x180002f5d
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x180002ef0

Function at 0x1800030b0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800030ee
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18000317a
cmp dword [rsp + 0x40], 0x1000
jne 0x180003160
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x180003160
bt eax, 8
jb 0x180003160
mov rbx, qword [rsp + 0x28]
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x180003123
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18000317a
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x18000313e
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18000317a
cmp word [rax + rbx + 0x14], 0
jne 0x180003154
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18000317a
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, rbx
jmp 0x18000317a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18000317a
add rsp, 0x50
pop rbx
ret

Function at 0x18003b84c
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp], r11
push rdi
mov r11d, 0x2f117496
mov edi, 0x3e8ccc03
call fcn.18004579b

Function at 0x180051d08
Capabilities:
Encode data using base64

Disassembly:
adc r10, 4
xor eax, r11d
lea rdx, [rdi*2 - 0x45de98ff]
xor eax, 0x7f3d3334
inc eax
call fcn.180048563
Function at 0x14001123a
Capabilities:
Terminate process

Disassembly:
jmp 0x1400142c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112bc
Capabilities:
Create process on windows

Disassembly:
jmp 0x140012b60
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f040]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x14002524d]
call fcn.1400113d4
nop
lea rdx, str.__C:WindowsSystem32calc.exe
lea rcx, [rbp + 8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
mov qword [rbp + 0x38], 0
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x38]
call qword [sym.imp.ntdll.dll_RtlCreateProcessParametersEx]
nop
lea rax, [rbp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
mov qword [rbp + 0x60], 0x58
mov dword [rbp + 0x68], 0
call fcn.14001137a
mov rax, qword [rax + 0x60]
mov r8d, 0x20
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
mov qword [rax], 0x28
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rbp + 0xd8]
mov qword [rcx + rax + 8], 0x20005
mov eax, 0x20
imul rax, rax, 0
movzx ecx, word [rbp + 8]
mov rdx, qword [rbp + 0xd8]
mov qword [rdx + rax + 0x10], rcx
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0x10]
mov qword [rcx + rax + 0x18], rdx
mov qword [rbp + 0x118], 0
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1fffff
mov r8d, 0x1fffff
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0xf8]
call qword [sym.imp.ntdll.dll_NtCreateUserProcess]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, [0x14001be80]
call fcn.140011361
mov eax, edi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.1400111f4
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x1400112c6
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015600
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015620
xor al, al
jmp 0x1400156a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015633
xor al, al
jmp 0x1400156a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001565d
xor al, al
jmp 0x1400156a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015671
xor al, al
jmp 0x1400156a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015683
xor al, al
jmp 0x1400156a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001569f
xor al, al
jmp 0x1400156a1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400134f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113fc
movzx eax, al
test eax, eax
jne 0x140013510
mov ecx, 7
call fcn.14001136b
nop
mov byte [rsp + 0x20], 0
call fcn.14001137f
mov byte [rsp + 0x21], al
cmp dword [0x14001f9c8], 1
jne 0x140013534
mov ecx, 7
call fcn.14001136b
nop
jmp 0x14001358c
cmp dword [0x14001f9c8], 0
jne 0x140013587
mov dword [0x14001f9c8], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111e0
test eax, eax
je 0x140013568
mov eax, 0xff
jmp 0x140013691
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.140011375
mov dword [0x14001f9c8], 2
jmp 0x14001358c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011357
call fcn.1400112e9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400135e9
mov rcx, qword [rsp + 0x30]
call fcn.14001119a
movzx eax, al
test eax, eax
je 0x1400135e9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.140011320
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001361d
mov rcx, qword [rsp + 0x38]
call fcn.14001119a
movzx eax, al
test eax, eax
je 0x14001361d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113bb
nop
call fcn.140013740
mov dword [rsp + 0x28], eax
call fcn.1400112c6
movzx eax, al
test eax, eax
jne 0x14001363c
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001364b
call fcn.1400113c5
nop
xor edx, edx
mov cl, 1
call fcn.140011186
mov eax, dword [rsp + 0x28]
jmp 0x140013691
add rsp, 0x68
ret