joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140034930]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140034940]
mov dword [rax], 1
mov rax, qword [0x140034950]
mov dword [rax], 1
mov rax, qword [0x140034920]
mov dword [rax], 1
mov rax, qword [0x1400347d0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140034910]
mov dword [0x14003a00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400348c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400348a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140034760]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140004743
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.strlen
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0x14], eax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x14000ecf4
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140012285
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x140032398]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_6
call sym.nimErrorFlag_5
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xb4d
lea rcx, [0x14003a120]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0x12
lea rax, str._home_syahrul_.choosenim_toolchains_nim_2.2.0_lib_system_iterators.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0x13
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x1400123e2
mov qword [rbp - 0x50], 0xb4e
lea rax, [0x140032398]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x140012346
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x14001235f
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x14001246d
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x50], 0xb65
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x70]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9077
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14001246c
mov qword [rbp - 0x50], 0xd
lea rax, str._home_syahrul_.choosenim_toolchains_nim_2.2.0_lib_system_iterators.nim
mov qword [rbp - 0x48], rax
add qword [rbp - 8], 1
jmp 0x140012314
nop
mov qword [rbp - 0x50], 0xb69
lea rax, [0x140032398]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rcx, [0x140032389]
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xb6a
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xb6e
lea rcx, [0x14003a120]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001246d
nop
call sym.popFrame_6
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001b921
Capabilities:
Hash data with md5

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
lea rax, str.md5Init
mov qword [rbp - 0x38], rax
lea rax, str._home_syahrul_.nimble_pkgs2_checksums_0.2.1_d3c7a1d0c0dee8fa089bd7f4d474e005877b608a_checksums_md5.nim
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
mov word [rbp - 0x20], 0
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.nimFrame_13
call sym.nimErrorFlag_10
mov qword [rbp - 8], rax
mov qword [rbp - 0x30], 0x118
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x67452301
mov qword [rbp - 0x30], 0x119
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0xefcdab89
mov qword [rbp - 0x30], 0x11a
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x98badcfe
mov qword [rbp - 0x30], 0x11b
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0x10325476
mov qword [rbp - 0x30], 0x11c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], 0
mov qword [rbp - 0x30], 0x11d
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], 0
mov qword [rbp - 0x30], 0x11e
mov rcx, qword [rbp + 0x10]
call sym.clearBuffer__pkgZchecksumsZmd5_u269
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
nop
call sym.popFrame_13
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140029090
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140029100
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14003a2f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400292b0
mov rax, qword [0x14003a2f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14002914c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400291d7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140029130
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14002930d
mov rax, qword [0x14003a2f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14003a2f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400292f2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400291d0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140029260
add dword [0x14003a2f4], 1
cmp ebx, 8
jae 0x140029208
test bl, 4
jne 0x1400292c0
test ebx, ebx
je 0x1400291f9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400292e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400291f9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14002923a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14003a2f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400291d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140029157
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400291f9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400291f9
mov rax, qword [0x14003a2f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140029820
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14003a360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003a340]
test rbx, rbx
je 0x140029874
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14002986b
test r12, r12
je 0x14002986b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140029850
lea rcx, [0x14003a360]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140029aa0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140029ab0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140029ac0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140029b05
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140029afc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140029b07
add rax, 0x28
cmp rax, r9
jne 0x140029ae8
xor eax, eax
ret

Function at 0x140029bb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400347d0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140029c29
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140029c29
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140029c26
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140029c1d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140029c29
add r8, 0x28
cmp r8, r9
jne 0x140029c08
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140029d10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400347d0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140029d7f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140029d7f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140029d7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140029d74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140029d88
add rax, 0x28
cmp rax, r9
jne 0x140029d60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140029da0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400347d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140029e18
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140029e18
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140029e18
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140029e18
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140029e0c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140029e20
add rdx, 0x28
cmp rdx, r10
jne 0x140029df8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140029e30
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140029e3e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140029e15
test r8d, r8d
jg 0x140029e28
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x140029f90
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x14003a3e0], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14003a3e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140029fe0
lea rdx, [0x140029ea0]
mov dword [0x14003a3d8], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x140029fe8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140029fd7
call sym.abort
nop
nop
Function at 0x140029ff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x140034750]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x14002a030
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14002a098
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x14002a0b0
mov r13d, dword [0x14003a3d8]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x14002a128
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x14002a170
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x14002a019
mov rcx, r12
call fcn.140029ef0
mov qword [r13 + rsi*8 + 8], rax
jmp 0x14002a019
call fcn.140029ef0
mov qword [r12 + 0x10], rax
jmp 0x14002a019
mov r10d, dword [r13]
test r10d, r10d
je 0x14002a1d2
mov r9d, dword [0x1400303c0]
test r9d, r9d
je 0x14002a200
lock add dword [0x14003a3e0], 1
jne 0x14002a234
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x14002a1e0
mov eax, dword [r13]
test eax, eax
je 0x14002a039
mov eax, 0xffffffff
lock xadd dword [0x14003a3e0], eax
sub eax, 1
js 0x14002a039
mov rcx, qword [0x14003a3e8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14002a039
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sym.calloc
mov r13, rax
test rax, rax
je 0x14002a25b
mov qword [rax], rbx
mov ecx, dword [0x14003a3d8]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14002a077
call rdi
jmp 0x14002a077
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sym.realloc
mov r13, rax
test rax, rax
je 0x14002a25b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sym.memset
jmp 0x14002a149
call fcn.140029f90
mov dword [0x1400303c0], 1
mov edx, dword [r13]
test edx, edx
jne 0x14002a0cd
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x14002a039
mov rax, qword [0x14003a3d0]
lea rsi, [rax + 1]
mov qword [0x14003a3d0], rsi
mov qword [r12 + 0x10], rsi
jmp 0x14002a0e9
lock add dword [0x1400303c4], 1
je 0x14002a1b7
mov r8d, dword [0x1400303c0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x1400303c0]
test r8d, r8d
jne 0x14002a1c6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x14002a228
jmp 0x14002a1c6
mov rcx, qword [0x14003a3e8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14002a0db
lock sub dword [0x14003a3e0], 1
jmp 0x14002a0db
call sym.abort
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140006410
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
sub rsp, 0x320
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ad280]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rdi, rcx
mov qword [rbp], rcx
mov dword [rbp + 0x60], 0x101
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140006470
lea rdx, [rbp + 0xc0]
jmp 0x140006638
movabs rax, 0x349ae900263b251
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x34d27fa69312b75a
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xf37773cd1182e117
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0xf9d34b6e45661d53
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xa8f15d1f820067b6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rcx, 0x869037c04774d386
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
movabs rax, 0x369aef5020bb205
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
movabs rax, 0x34b67fd49373b712
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
movabs rax, 0xf30573bf11c7e137
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x90], rax
movabs rax, 0xf9954b4e45141d3c
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x98], rax
movabs rax, 0xa8955d71827567d9
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa0], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
vmovdqu ymm0, ymmword [rbp + 0x20]
vpxor ymm1, ymm0, ymmword [rbp + 0x80]
vmovdqa ymmword [rbp + 0x20], ymm1
vmovdqa xmm0, xmmword [rbp + 0x40]
vxorps xmm0, xmm0, xmmword [rbp + 0xa0]
vmovdqa xmmword [rbp + 0x40], xmm0
lea rdx, [rbp + 0x20]
vzeroupper
call fcn.14001cd80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140014030
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rbp + 8], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rbp]
call fcn.14001fc10
mov rcx, qword [rax]
mov r8, qword [rcx + 0x60]
mov dl, 0xa
mov rcx, rax
call r8
movzx esi, ax
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14000661e
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x14000661e
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, si
mov rcx, rbx
call fcn.140021840
mov rcx, rbx
call fcn.14001b9f0
lea rdx, [0x1400999bc]
mov rcx, rdi
call fcn.140016ab0
mov rax, rdi
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14004e350
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400069a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1400ad280]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rbx, qword [rsp + 0x80]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov dword [rsp + 0x30], 1
cmp rbx, qword [rsp + 0x88]
jae 0x140006b2d
nop
mov r9d, 0x30
lea r8, [rsp + 0x48]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x140006b18
cmp dword [rsp + 0x68], 0x1000
jne 0x140006b0c
mov eax, dword [rsp + 0x6c]
cmp eax, 0x40
je 0x140006a61
cmp eax, 4
jne 0x140006b0c
mov rcx, qword [rsp + 0x60]
call fcn.14004e6e8
mov rbp, rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8, rbp
mov rdx, qword [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140006b04
mov rbx, r12
cmp qword [rsp + 0xa8], rsi
je 0x140006b04
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbx + rbp]
mov r8, rsi
mov rdx, r14
call fcn.140081ac0
test eax, eax
jne 0x140006af1
mov rcx, qword [rsp + 0x48]
add rcx, rbx
mov qword [rsp + 0x38], rcx
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140006ae4
mov qword [rdx], rcx
add qword [rdi + 8], 8
jmp 0x140006af1
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.140025fc0
inc rbx
mov rax, qword [rsp + 0xa8]
sub rax, rsi
cmp rbx, rax
jb 0x140006ab0
mov rcx, rbp
call fcn.14004e370
mov rbx, qword [rsp + 0x48]
add rbx, qword [rsp + 0x60]
jmp 0x140006b1f
mov ecx, dword [rsp + 0x7c]
add rbx, rcx
cmp rbx, qword [rsp + 0x88]
jb 0x140006a20
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14004e350
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140006b60
Capabilities:
Enumerate processes

Disassembly:
push rbx
push rdi
sub rsp, 0x2b8
mov rax, qword [0x1400ad280]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006bae
lea rdx, [0x1400999bc]
mov rcx, rbx
call fcn.140016ab0
jmp 0x140006cbc
mov qword [rsp + 0x2d8], rbp
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x2e0], rsi
mov rcx, rdi
mov qword [rsp + 0x2b0], r14
mov dword [rsp + 0x50], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140006c8c
movabs rbp, 0x369aeb4025fb242
movabs rsi, 0x34b67fd49373b712
movabs r14, 0x369aef5020bb205
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x30]
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rsi
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r14
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x20], rsi
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x298], rax
movdqa xmm0, xmmword [rsp + 0x290]
xorps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.1400504ec
mov rcx, rdi
test rax, rax
jne 0x140006cd9
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006c10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1400999bc]
mov rcx, rbx
call fcn.140016ab0
mov rsi, qword [rsp + 0x2e0]
mov rbp, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x2b0]
mov rax, rbx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14004e350
add rsp, 0x2b8
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x7c]
jmp 0x140006c9c
Function at 0x14000df70
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x4a], 0
je 0x14000df93
xor eax, eax
nop dword [rax]
lea ecx, [rax + 0xe]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x49
jb 0x14000df80
mov byte [rdx + 0x4a], 0
lea rcx, [0x1400b2200]
call fcn.14001d090
lea rax, [0x1400b2200]
add rsp, 0x28
ret