joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx eax, byte [0x1400490f8]
test al, al
je 0x1400142ff
cmp edx, 3
je 0x140014187
test edx, edx
jne 0x1400142ff
mov rbx, qword [0x140049100]
test rbx, rbx
je 0x1400142ff
xor r14d, r14d
jmp 0x1400141a9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400141dd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001434a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400141a0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140039aa4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1400141a0
test r14b, 1
je 0x1400142ff
mov rbx, qword [0x140049100]
test rbx, rbx
je 0x1400142ff
xor r14d, r14d
jmp 0x140014209
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001423d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001434a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140014200
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140039aa4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140014200
test r14b, 1
je 0x1400142ff
mov rbx, qword [0x140049100]
test rbx, rbx
je 0x1400142ff
xor r14d, r14d
jmp 0x140014269
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001429d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001434a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140014260
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140039aa4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140014260
test r14b, 1
je 0x1400142ff
mov rbx, qword [0x140049100]
test rbx, rbx
je 0x1400142ff
xor r14d, r14d
jmp 0x1400142c9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400142f9
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001434a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400142c0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140039aa4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1400142c0
test r14b, 1
jne 0x14001430b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x140049100]
jmp 0x140014318
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400142ff
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x14001434a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140014314
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140039aa4
mov rcx, rdi
call r14
jmp 0x140014314
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
lea r8, str.library_std_src_syswindows_thread_local_key.rs
mov edx, 0x2b
call dbg.panic
ud2
Function at 0x1400150e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x14003c078]
test ecx, ecx
je 0x140015110
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140015129
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140015129
add rdi, 0x10
jmp 0x14001521d
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400150fd
mov ecx, dword [0x14003c078]
test ecx, ecx
je 0x1400151fe
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001521b
mov rsi, rax
test rax, rax
jne 0x1400151ce
mov qword [rsp + 0x30], 0
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140049040]
mov rcx, qword [0x1400490f0]
test rcx, rcx
jne 0x140015190
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140015237
mov rcx, rax
mov qword [0x1400490f0], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140015237
mov rsi, rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x14003c078]
test ecx, ecx
je 0x140015227
dec ecx
mov rdx, rsi
call fcn.140039aa4
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x14001521d
test rcx, rcx
je 0x14001521d
lock dec qword [rcx]
jne 0x14001521d
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x14001521d
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140015148
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
jmp 0x1400151c6
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400154b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140015535
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140015576
cmp dword [rsp + 0x2c], 0
je 0x14001555a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015590
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140049100]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140049100], rsi
jne 0x140015510
mov byte [0x1400490f8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14001556c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400155dc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001555f
mov edi, dword [rsp + 0x28]
jmp 0x14001556c
mov edi, dword [rsi + 0x18]
jmp 0x14001556a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call dbg.panic_fmt
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<u32, u32>
ud2

Function at 0x140015b60
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x30], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140015b79
dec ecx
jmp 0x140015b83
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140039aa4
mov rdi, qword [rsp + 0x30]
cmp qword [rdi + 8], 0
je 0x140015bb1
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140015bb1
lock dec qword [rax]
jne 0x140015bb1
mov rcx, qword [rdi + 0x18]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rcx, qword [0x1400490f0]
xor edx, edx
mov r8, rdi
call fcn.140039b44
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140015bcd
dec ecx
jmp 0x140015bd7
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140039aa4
Function at 0x140017230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003c058]
test ecx, ecx
je 0x14001725d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140017276
cmp qword [rax + 8], 0
je 0x140017276
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14001724c
mov ecx, dword [0x14003c058]
test ecx, ecx
je 0x140017321
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001733e
mov rsi, rax
test rax, rax
jne 0x140017303
movzx eax, byte [0x140049040]
mov rcx, qword [0x1400490f0]
test rcx, rcx
jne 0x1400172c8
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140017356
mov rcx, rax
mov qword [0x1400490f0], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140017356
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003c058]
test ecx, ecx
je 0x140017346
dec ecx
mov rdx, rsi
call fcn.140039aa4
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140017295
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x1400172fb
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2

Function at 0x1400173d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400173e7
dec ecx
jmp 0x1400173f1
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140039aa4
mov rcx, qword [0x1400490f0]
xor edx, edx
mov r8, rdi
call fcn.140039b44
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140017417
dec ecx
jmp 0x140017421
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140039aa4

Function at 0x140019f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r11d, byte [rdx + 0x38]
cmp r11b, 1
ja 0x140019ff8
movzx r10d, byte [rdx + 0x10]
movzx r8d, byte [rdx + 0x3a]
xor eax, eax
movzx r9d, r10b
test r8b, r8b
jne 0x14001a146
cmp r10b, 5
jb 0x14001a146
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor esi, esi
test r11b, r11b
jne 0x140019fe8
cmp r9b, 6
je 0x140019fe8
mov esi, 2
cmp rax, 2
jb 0x14001a1f8
cmp rsi, rax
jne 0x14001a109
xor eax, eax
jmp 0x14001a146
xor eax, eax
xor r8d, r8d
xor r10d, r10d
add rax, r10
lea r8, [0x1400424d8]
mov ecx, 2
mov rdx, rax
call dbg.slice_start_index_len_fail
ud2
Function at 0x14003a600
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14003a670
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140049204]
mov rbx, rcx
test esi, esi
jle 0x14003a7a0
mov rax, qword [0x140049208]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003a6bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14003a745
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14003a6a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14003a7c2
mov rax, qword [0x140049208]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140049208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14003a7a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14003a73e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14003a750
add dword [0x140049204], 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 [0x140049208]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003a73e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14003a6c8
mov rax, qword [0x140049208]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14003ad30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140049260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140049240]
test rbx, rbx
je 0x14003ad8c
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 0x14003ad83
test rsi, rsi
je 0x14003ad83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14003ad68
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 0x14003afa0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14003afb8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14003afc0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14003afd0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14003b01d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14003b014
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14003b01f
add rax, 0x28
cmp rax, r9
jne 0x14003b000
xor eax, eax
ret

Function at 0x14003b020
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14003b0b0
mov rdx, qword [0x140043df0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14003b09e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14003b09e
cmp word [rax + 0x18], 0x20b
jne 0x14003b09e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14003b0b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14003b089
add rbx, 0x28
cmp rbx, rdi
je 0x14003b0b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14003b080
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14003b0c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140043df0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14003b0e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14003b0e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003b0e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003b13d
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 0x14003b134
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14003b0e0
add rax, 0x28
cmp rax, r9
jne 0x14003b120
xor eax, eax
ret

Function at 0x14003b140
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140043df0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14003b15f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14003b168
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14003b15f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14003b180
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140043df0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14003b1a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14003b1a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14003b1a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14003b1f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14003b1e7
test rcx, rcx
je 0x14003b1a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14003b1d8
xor eax, eax
ret

Function at 0x14003b200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140043df0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003b21f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14003b228
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14003b240
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140043df0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14003b260
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14003b268
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003b260
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14003b260
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14003b2b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14003b2c0
add rdx, 0x28
cmp r9, rdx
jne 0x14003b2a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14003b2d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140043df0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14003b2f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14003b300
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003b2f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14003b2f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14003b2f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14003b355
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14003b368
add rdx, 0x28
cmp rdx, r10
jne 0x14003b340
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14003b377
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14003b387
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14003b35e
test ecx, ecx
jg 0x14003b370
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x100001000
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate process modules
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
sub rsp, 0x11f8
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x48]
mov edx, 0xfa0
lea r8, [rsp + 0xfe8]
call qword [sym.imp.kernel32.dll_K32EnumProcesses]
test al, al
je 0x100001196
mov esi, dword [rsp + 0xfe8]
mov ecx, 0x43a
xor rdx, rdx
mov r8d, dword [rsp + rsi + 0x44]
call qword [sym.imp.kernel32.dll_OpenProcess]
test rax, rax
je 0x100001093
mov rbp, rax
mov rcx, rbp
xor rdx, rdx
lea r8, [rsp + 0xfe8]
mov r9d, 0x100
call qword [sym.imp.kernel32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x10000108a
lea rcx, [rsp + 0xfe8]
lea rdx, [0x100006110]
call qword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x1000010ba
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
sub esi, 4
jne 0x100001038
xor rcx, rcx
lea rdx, [0x100006144]
lea r8, [0x100006140]
mov r9d, 0x10040
call qword [sym.imp.user32.dll_MessageBoxW]
jmp 0x1000011b3
mov rcx, rbp
xor rdx, rdx
mov r8d, 0xf6e8
mov r9d, 0x1000
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
test rax, rax
je 0x10000118d
mov rsi, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
sub qword [sym.imp.kernel32.dll_LoadLibraryA], rax
sub qword [sym.imp.kernel32.dll_GetProcAddress], rax
mov rcx, rbp
mov rdx, rsi
lea r8, [entry0]
mov r9d, 0xf6e8
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test al, al
je 0x100001175
mov rcx, rbp
xor rdx, rdx
mov r8d, 0x1000
lea r9, [rsi + 0x1ce]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rdx
call qword [sym.imp.kernel32.dll_CreateRemoteThread]
test rax, rax
je 0x100001175
mov rcx, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1000011b3
mov rcx, rbp
mov rdx, rsi
mov r8d, 0xf6e8
mov r9d, 0x4000
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
xor rcx, rcx
lea rdx, [0x100006174]
lea r8, [0x100006140]
mov r9d, 0x10010
call qword [sym.imp.user32.dll_MessageBoxW]
xor rcx, rcx
call qword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x416540
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4166cb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00675f88]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4165a5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4165b4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4165d3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4165e3
cmp rbx, 0x1000
jae 0x4165ab
jmp 0x41664d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4165f5
xor edx, edx
jmp 0x416644
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00675f88]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4165d9
jmp 0x4165c8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00675f88]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x00531fa8]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0053254b]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x00534992]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS