joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004f10
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp edx, 1
jne 0x180004f97
call fcn.180004ab0
test eax, eax
je 0x180004f97
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x10]
mov qword [0x180012790], rax
call fcn.180004760
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x180003560]
mov rsi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call rsi
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rax
call rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x180002cf0]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call rsi
mov rcx, rax
call rdi
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x180006870
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x180012480]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x18000699d
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1800068cd
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x1800068cd
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x1800069e2
cmp qword [rdi + 0x80], 0
je 0x1800069a1
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x180006907
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x1800069a8
mov byte [rsp + 0x5f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x5f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x1800069c1
mov r15, qword [rsp + 0x48]
sub r15, r14
je 0x18000698d
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x1800069e0
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rbx
mov eax, 0xffffffff
jmp 0x1800069db
xor esi, esi
jmp 0x1800069e2
mov esi, 0xffffffff
jmp 0x1800069e2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x1800069e2
cmp eax, 3
jne 0x1800069e0
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18000acc0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180006e50
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x180006e8b
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x180006e92
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
xor esi, esi
jmp 0x180006f89
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180006ee5
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x180006ee5
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x180006ef6
jmp 0x180006f86
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x180006f86
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x180006f22
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop dword [rax]
cmp r14, 0x1000
jb 0x180006f61
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x180006f30
jmp 0x180006f86
test r14, r14
je 0x180006f83
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
jmp 0x180006f86
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x180006fa0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x180006fd6
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180007023
test rsi, rsi
jle 0x180007023
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x180007023
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x18000702b
jmp 0x18000704b
mov r14, rsi
test r14, r14
jle 0x18000704b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x18000704b
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180007440
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x180012480]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x1800074ea
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x1800074ea
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800074e8
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x180007501
cmp eax, 1
je 0x1800074b7
test eax, eax
jne 0x1800074e8
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x1800074de
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1800074e8
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x1800074ea
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000acc0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x1800074ea

Function at 0x18000b54c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18000b586
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18000b58b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18000b5d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18000da10]
cmp byte [rcx + rax], 0
je 0x18000b5d4
dec r8
sub rdx, 1
jne 0x18000b5ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001f70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov rdi, rcx
mov rcx, rax
lea rdx, [0x140039bc8]
call fcn.140010bd8
mov rsi, rax
test rax, rax
jne 0x140001fb1
lea rcx, str.Failed_to_open_file
call fcn.1400110cc
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbx
mov r8d, 2
mov rcx, rsi
call fcn.140011474
mov rcx, rsi
call fcn.140010a38
mov rcx, rsi
movsxd rbx, eax
call fcn.1400148b0
mov rcx, rbx
call fcn.140015780
mov qword [rdi], rax
test rax, rax
jne 0x140002010
lea rcx, str.Failed_to_allocate_buffer
call fcn.1400110cc
mov rcx, rsi
call fcn.140010ef8
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140015290
cmp rax, rbx
je 0x140001ff5
lea rcx, str.Failed_to_read_file
call fcn.1400110cc
mov rcx, rsi
call fcn.140010ef8
mov rcx, qword [rdi]
call fcn.140014d50
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002060
Capabilities:
Enumerate pe sections

Disassembly:
push r12
push r14
sub rsp, 0x38
mov rax, qword [rcx]
mov r12, rcx
movsxd r14, dword [rax + 0x3c]
add r14, rax
jne 0x14000209b
mov ecx, 2
call fcn.140010d04
mov rcx, rax
lea rdx, str.Failed_to_get_NT_Headers_n
call fcn.140001150
xor eax, eax
add rsp, 0x38
pop r14
pop r12
ret
movzx edx, word [r14 + 0x14]
movzx r9d, word [r14 + 6]
add rdx, 0x18
mov qword [rsp + 0x50], rbx
add rdx, r14
mov qword [rsp + 0x30], rdi
xor edi, edi
mov r8d, edi
test r9d, r9d
je 0x1400021d1
lea rbx, str..reloc
nop dword [rax + rax]
mov rax, rdi
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rbx + rax - 1]
jne 0x1400021c1
cmp rax, 7
jne 0x1400020d3
add dword [rdx + 8], 0x1000
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r13
movsxd r13, dword [rdx + 0x10]
mov qword [rsp + 0x20], r15
lea eax, [r13 + 0x1000]
mov dword [rdx + 0x10], eax
add dword [r14 + 0x50], 0x1000
mov ecx, dword [r14 + 0x50]
call fcn.140015780
mov r8d, dword [r14 + 0x54]
mov rcx, rax
mov rdx, qword [r12]
mov r15, rax
call fcn.14002c360
movzx esi, word [r14 + 0x14]
mov ebp, edi
add rsi, 0x18
add rsi, r14
cmp di, word [r14 + 6]
jae 0x14000220f
mov rcx, rdi
movzx eax, byte [rsi + rcx]
inc rcx
cmp al, byte [rbx + rcx - 1]
jne 0x1400021e6
cmp rcx, 7
jne 0x140002153
mov ecx, 0x1000
call fcn.140015780
mov edx, 0xcc
mov r8d, 0x1000
mov rcx, rax
mov rdi, rax
call fcn.14002ca00
mov ecx, dword [rsi + 0x14]
mov r8, r13
mov rdx, qword [r12]
add rdx, rcx
add rcx, r15
call fcn.14002c360
mov ecx, dword [rsi + 0x14]
mov r8d, 0x1000
add rcx, r13
mov rdx, rdi
add rcx, r15
call fcn.14002c360
xor edi, edi
lea rbx, str..reloc
jmp 0x1400021fc
add rdx, 0x28
inc r8d
cmp r8d, r9d
jl 0x1400020d0
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop r12
ret
mov ecx, dword [rsi + 0x14]
mov rdx, qword [r12]
mov r8d, dword [rsi + 0x10]
add rdx, rcx
add rcx, r15
call fcn.14002c360
movzx ecx, word [r14 + 6]
add rsi, 0x28
inc ebp
cmp ebp, ecx
jl 0x140002150
mov rcx, qword [r12]
call fcn.140014d50
mov rsi, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x30]
mov qword [r12], r15
mov r15, qword [rsp + 0x20]
add rsp, 0x38
pop r14
pop r12
ret
Function at 0x140002250
Capabilities:
Encode data using xor

Disassembly:
push r12
push r15
sub rsp, 0x48
mov rax, qword [rcx]
mov r15d, r8d
movaps xmmword [rsp + 0x30], xmm6
mov r12, rcx
movd xmm6, r8d
pshufd xmm6, xmm6, 0
movsxd r9, dword [rax + 0x3c]
add r9, rax
jne 0x1400022a2
mov ecx, 2
call fcn.140010d04
mov rcx, rax
lea rdx, str.Failed_to_get_NT_Headers_n
call fcn.140001150
xor al, al
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop r15
pop r12
ret
movzx r8d, word [r9 + 6]
mov qword [rsp + 0x60], rbx
movzx ebx, word [r9 + 0x14]
add rbx, 0x18
mov qword [rsp + 0x78], rdi
xor edi, edi
add rbx, r9
mov edx, edi
test r8d, r8d
je 0x140002430
lea r9, [0x140039c98]
mov rax, rdi
movzx ecx, byte [rbx + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140002421
cmp rax, 6
jne 0x1400022d4
mov qword [rsp + 0x68], rbp
movsxd rbp, dword [rbx + 0x10]
mov qword [rsp + 0x70], rsi
mov rcx, rbp
mov qword [rsp + 0x40], r14
mov r14, rbp
call fcn.140015780
mov ebx, dword [rbx + 0x14]
mov r8, rbp
add rbx, qword [r12]
mov rcx, rax
mov rdx, rbx
mov rsi, rax
call fcn.14002c360
mov ecx, edi
test ebp, ebp
jle 0x1400023cd
cmp ebp, 0x10
jb 0x1400023cd
mov eax, ebp
and eax, 0x8000000f
jge 0x140002345
dec eax
or eax, 0xfffffff0
inc eax
andps xmm6, xmmword [0x140039dc0]
sub ebp, eax
packuswb xmm6, xmm6
mov rdx, rsi
packuswb xmm6, xmm6
mov r8, rsi
movdqa xmmword [rsp + 0x20], xmm6
mov eax, dword [rsp + 0x20]
movsxd r9, ebp
nop dword [rax]
movd xmm1, dword [rsi + rdi]
lea rdx, [rdx + 0x10]
movd xmm0, eax
lea r8, [r8 + 0x10]
xorps xmm1, xmm0
add ecx, 0x10
movd dword [rsi + rdi], xmm1
movd xmm2, dword [rdx - 0xc]
movd xmm0, eax
xorps xmm2, xmm0
movd xmm0, eax
movd dword [r8 - 0xc], xmm2
movd xmm1, dword [rsi + rdi + 8]
xorps xmm1, xmm0
movd xmm2, eax
movd dword [rsi + rdi + 8], xmm1
movd xmm0, dword [rsi + rdi + 0xc]
xorps xmm2, xmm0
movd dword [rsi + rdi + 0xc], xmm2
add rdi, 0x10
cmp rdi, r9
jl 0x140002370
mov rbp, qword [rsp + 0x68]
movsxd r8, ecx
cmp r8, r14
jge 0x1400023fd
mov rdx, r14
lea rax, [r8 + rsi]
sub rdx, r8
nop dword [rax]
nop dword [rax + rax]
xor byte [rax], r15b
lea rax, [rax + 1]
sub rdx, 1
jne 0x1400023f0
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.14002c360
mov rcx, rsi
call fcn.140014d50
mov r14, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x70]
jmp 0x140002432
add rbx, 0x28
inc edx
cmp edx, r8d
jl 0x1400022d1
xor al, al
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop r15
pop r12
ret
Function at 0x140002980
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x130
mov ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140002a09
nop dword [rax]
lea rcx, [rsp + 0x4c]
mov r8, rdi
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x1400029f3
inc rcx
test eax, eax
jne 0x1400029e0
mov rcx, rbx
test edx, edx
je 0x140002a35
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400029d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000a650
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140002a14

Function at 0x140002a80
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push rbp
push rdi
sub rsp, 0x48
movsxd rax, dword [r8 + 0x3c]
mov rdi, r8
mov rbp, rdx
cmp dword [rax + r8 + 0x94], 0
je 0x140002bcc
mov qword [rsp + 0x78], r14
mov r14d, dword [rax + r8 + 0x90]
add r14, 0xc
add r14, r8
mov eax, dword [r14]
test eax, eax
je 0x140002bc7
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x40], r15
nop word [rax + rax]
mov ebx, eax
lea rcx, str.kernel32.dll
add rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x140039ca0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], r12b
jne 0x140002b10
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov r9, 0xffffffffffffffff
nop
inc r9
cmp byte [rbx + r9], r12b
jne 0x140002b40
inc r9
mov qword [rsp + 0x20], r12
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r12
mov r9, r15
mov dword [rsp + 0x28], r12d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [r14 + 0x14]
add r14, 0x14
test eax, eax
jne 0x140002ae0
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
add rsp, 0x48
pop rdi
pop rbp
ret
Function at 0x140003430
Capabilities:
Create process on windows
Create process suspended
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x210
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
mov dword [rsp + 0xe4], eax
mov dword [rsp + 0x80], 0x68
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000359d
call fcn.140006600
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140004600
mov rdi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rsp + 0x50]
call fcn.1400064c0
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov dl, 0xa
mov rcx, rax
call r8
movzx esi, al
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003582
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140003582
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rdi
call fcn.140007c20
mov rcx, rdi
call fcn.140006120
mov ebp, 1
jmp 0x1400035a1
mov ebp, dword [rsp + 0x70]
lea rdx, [0x140039bc8]
lea rcx, [rsp + 0xf0]
call fcn.140010bd8
mov rdi, rax
test rax, rax
jne 0x1400035cb
lea rcx, str.Failed_to_open_file
call fcn.1400110cc
jmp 0x140003615
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.140011474
mov rcx, rdi
call fcn.140010a38
movsxd rbx, eax
mov rcx, rdi
call fcn.1400148b0
mov rsi, rbx
mov rcx, rbx
call fcn.140015780
mov rbx, rax
test rax, rax
jne 0x140003657
lea rcx, str.Failed_to_allocate_buffer
call fcn.1400110cc
mov rcx, rdi
call fcn.140010ef8
mov qword [rsp + 0x50], rbx
lea r8, [rsp + 0xf0]
mov edx, ebp
lea rcx, [rsp + 0x50]
call fcn.140002be0
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14000a650
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rbx
call fcn.140015290
cmp rax, rsi
je 0x14000360d
lea rcx, str.Failed_to_read_file
call fcn.1400110cc
mov rcx, rdi
call fcn.140010ef8
mov rcx, rbx
call fcn.140014d50
jmp 0x140003615
Function at 0x140009944
Capabilities:
Read file on windows

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
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140009972
xor eax, eax
jmp 0x140009a58
cmp qword [rcx + 0x68], 0
je 0x140009983
call fcn.140009a74
jmp 0x140009a58
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000999a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000999c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400099ce
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002c360
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140009a52
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009a05
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140009a2e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140015290
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140009a52
cmp rsi, rbx
ja 0x140009a0c
test rsi, rsi
je 0x140009a52
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140015290
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14000b4fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b546
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b546
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b546
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b546
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b546
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b548
xor al, al
add rsp, 0x28
ret