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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009800]
mov dword [rax], 1
mov rax, qword [0x140009810]
mov dword [rax], 1
mov rax, qword [0x1400097a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097e0]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400098c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400098a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009750]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400018d0
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 0x140001940
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d104]
mov rbx, rcx
test esi, esi
jle 0x140001a70
mov rax, qword [0x14000d108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000198b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001970
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a92
mov rax, qword [0x14000d108]
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 [0x14000d108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a20
add dword [0x14000d104], 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 [0x14000d108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a0e
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 0x140001998
mov rax, qword [0x14000d108]
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 0x140002000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d140]
test rbx, rbx
je 0x14000205c
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 0x140002053
test rsi, rsi
je 0x140002053
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002038
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 0x140002270
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002288
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002290
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400022a0
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 0x1400022ed
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 0x1400022e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022ef
add rax, 0x28
cmp rax, r9
jne 0x1400022d0
xor eax, eax
ret

Function at 0x1400022f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002380
mov rdx, qword [0x1400097a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000236e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000236e
cmp word [rax + 0x18], 0x20b
jne 0x14000236e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002380
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002359
add rbx, 0x28
cmp rbx, rdi
je 0x140002380
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002350
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 0x140002390
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000242f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002438
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000242f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400097a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002470
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002478
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002470
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024b7
test rcx, rcx
je 0x140002470
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024a8
xor eax, eax
ret
Function at 0x1400024d0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400097a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002530
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002538
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002530
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002530
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 0x140002584
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002590
add rdx, 0x28
cmp r9, rdx
jne 0x140002570
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400097a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025c2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025c2
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 0x140002625
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002638
add rdx, 0x28
cmp rdx, r10
jne 0x140002610
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002647
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002657
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000262e
test ecx, ecx
jg 0x140002640
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020504]
cmp r15, 1
jne 0x140004953
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205e4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205e4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205e4]
call fcn.14000dd0c
mov rcx, qword [0x1400205e4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205ec]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f180]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
xor al, 0xd0
lahf
sbb eax, 0x4e2cd5e7
sub al, 0x4e
insd dword [rdi], dx
pop rdi
add al, 0xde
and edx, ebp
movabs byte [0xcde5e70f2b83998e], al
sbb dl, dl
add edi, esp
cmp ah, dl
invalid
nop
jne 0x14003f6b9
invalid
push rax
adc ecx, r11d
mov bl, 0xb0
invalid
invalid
sub byte [rax + 0x3058ae1c], ch
or r9b, byte [rbx]
invalid
test al, 0x1c
scasb al, byte [rdi]
pop rax
xor byte [rsi + 0xa], al
or eax, dword [rdx + 0x57e40cda]
push rdi
invalid
imul esi, edi, 0x5b
xchg edx, eax
invalid
movabs dword [0x2d1d9c69f745304a], eax
mov edx, 0x22d8978b
mov dl, 0x91
invalid
xchg esp, eax
sbb eax, 0x6de63c42
sbb byte [rbx], 0xf1
sti
push rbp
mov bh, 0xc2
invalid
invalid
ret 0xc90e
Function at 0x140001380
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x178
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x170], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x170], rax
jne 0x1400013c1
lea rcx, str.Failed_to_create_process_snapshot
call fcn.1400014f0
jmp 0x1400014e1
mov dword [rsp + 0x40], 0x130
mov rcx, qword [rsp + 0x170]
lea rdx, [rsp + 0x40]
call sub.KERNEL32.dll_Process32First
cmp eax, 0
jne 0x140001403
lea rcx, str.Failed_to_get_first_process
call fcn.1400014f0
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400014e1
jmp 0x140001408
lea rcx, [rsp + 0x40]
add rcx, 0x2c
call fcn.140001570
cmp eax, 0
je 0x1400014b3
mov ecx, dword [rsp + 0x48]
call fcn.140001220
cmp eax, 0
jne 0x1400014b3
lea rcx, [rsp + 0x40]
add rcx, 0x2c
call fcn.140001290
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x48]
lea r8, [rsp + 0x40]
add r8, 0x2c
lea rdx, str.e_0m
mov rax, rsp
mov qword [rax + 0x28], rdx
mov qword [rax + 0x20], rcx
lea rcx, str._s___Found_antivirus_process:__s__PID:__lu_____s_s_n_n
lea rdx, str.e_0_32m
call fcn.140002fb0
cmp dword [0x14002fb78], 0x400
jge 0x1400014ae
mov edx, dword [rsp + 0x48]
mov eax, dword [0x14002fb78]
mov ecx, eax
add ecx, 1
mov dword [0x14002fb78], ecx
movsxd rcx, eax
lea rax, [0x14002eb78]
mov dword [rax + rcx*4], edx
jmp 0x1400014b3
jmp 0x1400014b8
mov rcx, qword [rsp + 0x170]
lea rdx, [rsp + 0x40]
call sub.KERNEL32.dll_Process32Next
cmp eax, 0
jne 0x140001408
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x178
ret
Function at 0x140001b90
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x68
lea rcx, str.Enter_Morse_code:__s_n
lea rdx, [0x140030ba0]
call fcn.140001780
lea rcx, str.Use_Fn_key_for_dot_dash._n
call fcn.140001780
lea rcx, str.Short_press_for_dot__long_press_for_dash._n
call fcn.140001780
lea rcx, str.Use_Space_key_for_space_between_letters._n
call fcn.140001780
lea rcx, str.You_have_30_seconds_to_enter_the_correct_Morse_code._n
call fcn.140001780
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14002eb6c], eax
mov dword [section..data], 1
xor eax, eax
mov edx, eax
mov r8d, 0x3e8
lea r9, [0x140001710]
mov rcx, rdx
call qword [sym.imp.USER32.dll_SetTimer]
mov ecx, 0xd
lea rdx, [0x140001950]
xor eax, eax
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140001c4b
lea rcx, str.Failed_to_install_hook__n
call fcn.140001780
mov dword [rsp + 0x64], 0
jmp 0x140001cd9
jmp 0x140001c50
lea rcx, [rsp + 0x28]
xor eax, eax
mov edx, eax
xor r9d, r9d
mov r8d, r9d
call qword [sym.imp.USER32.dll_GetMessageA]
mov ecx, eax
xor eax, eax
cmp ecx, 0
mov byte [rsp + 0x27], al
jle 0x140001c86
cmp dword [0x14002eb70], 0
setne al
xor al, 0xff
mov byte [rsp + 0x27], al
mov al, byte [rsp + 0x27]
test al, 1
jne 0x140001c97
jmp 0x140001cb2
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140001c50
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov edx, eax
mov rcx, rdx
call qword [sym.imp.USER32.dll_KillTimer]
mov al, byte [0x14002eb69]
and al, 1
movzx eax, al
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
add rsp, 0x68
ret
Function at 0x1400020e0
Capabilities:
Create service
Start service

Disassembly:
sub rsp, 0x98
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x80], rcx
xor eax, eax
mov edx, eax
mov r8d, 0xf003f
mov rcx, rdx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140002137
lea rcx, str.____Failed_to_open_Service_Control_Manager_n
call fcn.140001780
mov dword [rsp + 0x94], 0
jmp 0x1400022a3
mov rax, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
mov r9d, 0xf01ff
xor r10d, r10d
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140002218
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0x431
jne 0x1400021f1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x94], 1
jmp 0x1400022a3
lea rcx, str.____Failed_to_create_service_n
call fcn.140001780
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x94], 0
jmp 0x1400022a3
mov rcx, qword [rsp + 0x70]
xor edx, edx
xor eax, eax
mov r8d, eax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp eax, 0
jne 0x140002282
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x420
je 0x14000227d
lea rcx, str.____Failed_to_start_service_n
call fcn.140001780
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x94], 0
jmp 0x1400022a3
jmp 0x140002282
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x94], 1
mov eax, dword [rsp + 0x94]
add rsp, 0x98
ret
Function at 0x1400022c0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

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 dword [rsp + 0x2c], 0x20
lea rcx, [rsp + 0x60]
xor eax, eax
mov r8d, eax
mov r9d, 0x18
mov rdx, r8
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp eax, 0
jne 0x140002317
jmp 0x140002448
mov rcx, qword [rsp + 0x60]
mov edx, 0x800c
xor eax, eax
mov r8d, eax
xor r9d, r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, 0
jne 0x140002354
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140002448
mov rcx, qword [rsp + 0x68]
call fcn.140007bb0
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, 0
jne 0x14000239a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140002448
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r9, [rsp + 0x2c]
xor eax, eax
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, 0
jne 0x1400023e4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140002448
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
cmp eax, dword [rsp + 0x2c]
jae 0x140002430
mov eax, dword [rsp + 0x28]
movzx r8d, byte [rsp + rax + 0x30]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x28]
shl eax, 1
mov eax, eax
add rcx, rax
lea rdx, str._02x
call fcn.140002f60
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
jmp 0x1400023ec
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
add rsp, 0x78
ret
Function at 0x140002450
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xb8
mov qword [rsp + 0xa8], rcx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x41
call fcn.1400204b0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xa8]
call fcn.1400022c0
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWAREDarkhold
xor r8d, r8d
xor eax, eax
mov r9d, eax
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x20006
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, 0
je 0x1400024e7
mov dword [rsp + 0xb4], 0
jmp 0x140002561
lea rcx, [rsp + 0x50]
call fcn.140007bb0
add rax, 1
lea r10, [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
lea rdx, str.Hash
xor r8d, r8d
mov r9d, 1
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, 0
je 0x140002548
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0xb4], 0
jmp 0x140002561
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0xb4], 1
mov eax, dword [rsp + 0xb4]
add rsp, 0xb8
ret

Function at 0x140002570
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0xe8
mov qword [rsp + 0xd8], rcx
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x41
call fcn.1400204b0
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x41
call fcn.1400204b0
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWAREDarkhold
xor r8d, r8d
mov r9d, 0x20019
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 0
je 0x1400025e9
mov dword [rsp + 0xe4], 0
jmp 0x14000269b
mov dword [rsp + 0xc8], 0x41
lea r10, [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
lea rdx, str.Hash
xor eax, eax
mov r8d, eax
lea r9, [rsp + 0xcc]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0
je 0x140002657
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0xe4], 0
jmp 0x14000269b
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xd8]
call fcn.1400022c0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.140006890
cmp eax, 0
sete al
and al, 1
movzx eax, al
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0xe4]
add rsp, 0xe8
ret

Function at 0x140003b0c
Capabilities:
Parse pe header

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