joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d2ec
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140061c40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140025cf4
xor ebx, ebx
cmp qword [0x140065618], rbx
mov rdi, rax
jne 0x14002d3ff
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14002d4d6
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002d4d6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140065618], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140065620], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140065628], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140065638], rax
test rax, rax
je 0x14002d3f6
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140065630], rax
jmp 0x14002d406
mov rax, qword [0x140065630]
jmp 0x14002d40d
mov rax, qword [0x140065630]
mov r11, qword [0x140065638]
cmp rax, rdi
je 0x14002d474
cmp r11, rdi
je 0x14002d474
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140065638]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14002d474
test rax, rax
je 0x14002d474
call rsi
test rax, rax
je 0x14002d46e
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002d46e
test byte [rsp + 0x40], 1
jne 0x14002d474
bts ebp, 0x15
jmp 0x14002d4b4
mov rcx, qword [0x140065620]
cmp rcx, rdi
je 0x14002d4b4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002d4b4
call rax
mov rbx, rax
test rax, rax
je 0x14002d4b4
mov rcx, qword [0x140065628]
cmp rcx, rdi
je 0x14002d4b4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002d4b4
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140065618]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002d4d6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14002d4d8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400276b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140013a10
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 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d80
xor al, al
jmp 0x140014e01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d93
xor al, al
jmp 0x140014e01
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 0x140014dbd
xor al, al
jmp 0x140014e01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014dd1
xor al, al
jmp 0x140014e01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014de3
xor al, al
jmp 0x140014e01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014dff
xor al, al
jmp 0x140014e01
mov al, 1
add rsp, 0x38
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp word [0x00400000], 0x5a4d
mov dword [0x00407038], 1
mov dword [0x00407034], 1
mov dword [0x00407030], 1
mov dword [0x00407040], 1
je 0x4010b0
mov dword [0x00407008], eax
mov eax, dword [0x00407050]
test eax, eax
je 0x4010a1
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov edx, dword [0x00407060]
mov qword [0x00407998], rax
mov qword [0x00407990], rax
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov dword [rax], edx
call dbg._setargv
cmp dword [0x00403050], 1
je 0x401100
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401063
movsxd rcx, dword [0x0040003c]
lea rdx, [0x00400000]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x401049
movzx ecx, word [rdx + 0x18]
cmp cx, 0x10b
je 0x401113
cmp cx, 0x20b
jne 0x401049
cmp dword [rdx + 0x84], 0xe
jbe 0x401049
mov edx, dword [rdx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401049
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rdx + 0x74], 0xe
jbe 0x401049
mov ecx, dword [rdx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401049

Function at 0x4014f0
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call dbg.__main
mov dword [rbp - 4], 1
jmp 0x40151b
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str.Affiche_10_fois__d__n
call sym.printf
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0xa
jle 0x401506
lea rcx, str.pause
call sym.system
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x401d30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov ecx, dword [0x00407354]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x401f15
mov rax, qword [0x00407358]
xor ebx, ebx
nop
mov r9, qword [rax + 8]
cmp rsi, r9
jb 0x401d7c
mov rdx, qword [rax + 0x10]
mov edx, dword [rdx + 8]
add r9, rdx
cmp rsi, r9
jb 0x401e50
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x401d60
mov rcx, rsi
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401f39
movsxd rbx, ebx
lea r13, [rsp + 0x30]
lea r14, [rbx + rbx*2]
shl r14, 3
mov rbx, r14
add rbx, qword [0x00407358]
mov qword [rbx + 0x10], rax
mov dword [rbx], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov rdx, r13
mov qword [rbx + 8], rax
mov rax, qword [0x00407358]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + r14 + 8]
call rbx
test rax, rax
je 0x401f1c
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x401ed0
add dword [0x00407354], 1
mov r8d, 0x30
mov rdx, r13
mov rcx, rsi
call rbx
test rax, rax
je 0x401f48
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x401e60
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.memcpy
lea r13, [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x401e0b
cmp eax, 0x40
je 0x401e2b
lea r12, [rsp + 0x2c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r12
call rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call sym.memcpy
mov eax, dword [rsp + 0x54]
cmp eax, 0x40
je 0x401eb7
cmp eax, 4
je 0x401eb7
mov r9, r12
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call rbx
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0x40
je 0x401e04
add r14, qword [0x00407358]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov r9, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e04
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor ebx, ebx
jmp 0x401d87
mov rax, qword [0x00407358]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r14 + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call dbg.__report_error
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rsi
mov edx, 0x30
call dbg.__report_error
nop
nop dword [rax]
Function at 0x402520
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407900]
test rbx, rbx
je 0x402574
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 0x40256b
test rsi, rsi
je 0x40256b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402550
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00407920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x402770
Capabilities:
Parse pe header

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

Function at 0x402790
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 0x4027d0
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov ecx, dword [rax + 0xc]
mov r8d, ecx
cmp r8, rdx
ja 0x4027c7
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4027d2
add rax, 0x28
cmp rax, r9
jne 0x4027b4
xor eax, eax
repz ret

Function at 0x402890
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp word [0x00400000], 0x5a4d
lea rbx, [0x00400000]
mov rsi, rcx
je 0x4028b4
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028ab
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x1400024a4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rdi, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x60]
call fcn.140016a70
lea rdx, [rbp - 0x60]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140002510
lea rcx, [rbp - 0x60]
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400024f4
cmp word [rbp + rax*2 - 0x62], 0x5c
jne 0x14000250a
mov word [rbp + rax*2 - 0x62], bx
lea rdx, [rbp - 0x60]
jmp 0x140002534
lea rdx, str.____Failed_to_get_temp_path
lea rcx, [0x140088a70]
call fcn.140009174
mov rcx, rax
call fcn.1400093c0
xor ebx, ebx
lea rdx, [0x140048fe8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bx
lea rcx, [rsp + 0x40]
call fcn.140007d1c
nop
cmp qword [rsp + 0x50], rbx
jne 0x1400025ca
mov qword [rdi], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
lea rdx, [0x140048fe8]
mov rcx, rdi
call fcn.140007d1c
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000268c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002687
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026aa
jmp 0x140002687
lea rcx, [rbp - 0x80]
call fcn.1400023a4
mov rbx, rax
movabs rcx, 0x7ffffffffffffffe
mov rdx, qword [rsp + 0x50]
sub rcx, rdx
cmp rcx, 1
jb 0x1400026b0
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 1
lea rax, [0x140048fec]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x60]
call fcn.14000b668
nop
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140008f94
nop
lea rcx, [rsp + 0x60]
call fcn.140007cb8
nop
lea rcx, [rbp - 0x80]
call fcn.140007cb8
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000268c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002687
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026a4
call fcn.140014298
mov rax, rdi
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.14001e6e4
int3
call fcn.14001e6e4
nop
call fcn.140001354
nop
int3

Function at 0x140002780
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
lea rdx, [0x140049000]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ebx, ebx
test eax, eax
je 0x1400027b0
xor al, al
jmp 0x1400027f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x1400027b4
mov rcx, qword [rsp + 0x48]
lea r8, str.name
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400027e8
mov bl, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140005c84
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140005cac
xor eax, eax
jmp 0x140005dce
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140005ce6
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140005ce6
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, esi
mov byte [rdx], sil
jmp 0x140005dce
cmp qword [rbx + 0x80], 0
je 0x140005dcc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005d21
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005d44
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14001a6d0
cmp eax, edi
cmovne edi, esi
jmp 0x140005dcc
lea r8, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x140005d92
sub eax, 1
je 0x140005d92
cmp eax, 2
jne 0x140005dcc
movsx ecx, byte [rbp - 0x30]
jmp 0x140005d2e
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140005dbc
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.14001d8a0
cmp r14, rax
jne 0x140005dcc
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x140005dce
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14000798c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400079e8
cmp byte [rcx + 0x71], 0
je 0x1400079e8
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140007a2f
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1400079f5
sub eax, 1
je 0x1400079f9
cmp eax, 2
jne 0x140007a2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140007a26
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.14001d8a0
cmp rdi, rax
jne 0x140007a2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400079ea
xor al, al
jmp 0x1400079ea
Function at 0x14000c1bc
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
lea rdx, [0x140049000]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x14000c1e5
xor al, al
jmp 0x14000c23b
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r9d, 4
lea r8, str.type
mov dword [rsp + 0x28], r9d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x14000c233
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.____Cant_create_Type_registry_value
call fcn.14000a09c
mov rcx, rax
call fcn.1400093c0
jmp 0x14000c1e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret

Function at 0x14000c240
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
lea rdx, [0x140049000]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ebx, ebx
test eax, eax
je 0x14000c270
xor al, al
jmp 0x14000c2b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x14000c274
mov rcx, qword [rsp + 0x48]
lea r8, str.test
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x14000c2a8
mov bl, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c2c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
lea r8, [rax + 0x18]
mov rsi, rcx
lea rdx, [0x140049000]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ebx, ebx
test eax, eax
je 0x14000c2ff
xor al, al
jmp 0x14000c387
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bx
jne 0x14000c306
mov rcx, qword [rsp + 0x50]
lea r8, str.user
add eax, eax
xor edx, edx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov esi, 1
mov r9d, esi
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x14000c347
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000c2f8
inc rdi
cmp word [rbp + rdi*2], bx
jne 0x14000c347
mov rcx, qword [rsp + 0x50]
lea r8, str.password
add edi, edi
mov r9d, esi
mov dword [rsp + 0x28], edi
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x14000c37a
mov bl, sil
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000c418
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
and qword [rsp + 0x60], 0
and qword [rsp + 0x70], 0
mov r14d, 0xf
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x60], 0
lea ecx, [r14 + 0x21]
call fcn.140014538
mov r8, rax
lea eax, [r14 + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServicesBinDriver.sys]
movups xmmword [r8], xmm0
movups xmm1, xmmword [0x14004ab08]
movups xmmword [r8 + 0x10], xmm1
movsd xmm0, qword [0x14004ab18]
movsd qword [r8 + 0x20], xmm0
mov ecx, dword [0x14004ab20]
mov dword [r8 + 0x28], ecx
movzx ecx, word [0x14004ab24]
mov word [r8 + 0x2c], cx
mov al, byte [0x14004ab26]
mov byte [r8 + 0x2e], al
mov byte [r8 + 0x2f], 0
mov qword [rsp + 0x60], r8
and qword [rsp + 0x40], 0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], 7
mov eax, dword [str.tongxin]
mov dword [rsp + 0x40], eax
movzx eax, word [0x14004ab2c]
mov word [rsp + 0x44], ax
mov al, byte [0x14004ab2e]
mov byte [rsp + 0x46], al
mov byte [rsp + 0x47], 0
mov dword [rbp + 0xb8], 1
mov dword [rbp + 0xb0], 0x104
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, r8
lea r8, [rbp + 0xc0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xb8]
xor r8d, r8d
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000c590
lea rdx, str.GetLastError___
lea rcx, [0x140088c10]
call fcn.14000e114
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14000c9b8
mov rcx, rax
call fcn.14000e358
lea rdx, [rbp - 0x80]
lea rcx, [0x140088c10]
call fcn.14000e114
mov rcx, rax
call fcn.14000e358
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
setne bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000c610
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c60b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c66d
call fcn.140014298
and qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r14
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000c659
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c654
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c667
call fcn.140014298
mov al, bl
add rsp, 0x190
pop r14
pop rbx
pop rbp
ret
call fcn.14001e6e4
nop
call fcn.14001e6e4
nop
int3
Function at 0x14000fac4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r14, rdx
mov rbx, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000fbc6
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000fbc6
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
xor edx, edx
mov qword [rbp - 0x20], rdx
mov ecx, dword [rax + r14 + 0xb0]
test ecx, ecx
jne 0x14000fb2e
and qword [rbx], rdx
and qword [rbx + 8], rdx
and qword [rbx + 0x10], rdx
jmp 0x14000fbd4
lea rsi, [r14 + rcx]
mov r15d, dword [rax + r14 + 0xb4]
add r15, rsi
mov rcx, qword [rbp - 0x28]
mov eax, dword [rsi]
test eax, eax
je 0x14000fbb2
mov r8d, eax
cmp r8, r15
jae 0x14000fbb2
cmp dword [rsi + 4], 0
je 0x14000fbb2
lea rax, [r8 + r14]
mov qword [rbp - 0x18], rax
lea rax, [rsi + 8]
mov qword [rbp - 0x10], rax
mov eax, dword [rsi + 4]
sub rax, 8
shr rax, 1
mov dword [rbp - 8], eax
cmp rcx, rdx
je 0x14000fb92
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rbp - 0x28], rcx
jmp 0x14000fbaa
lea r8, [rbp - 0x18]
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.140010648
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
mov eax, dword [rsi + 4]
add rsi, rax
jmp 0x14000fb41
mov rax, qword [rbp - 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
jmp 0x14000fb29
and qword [rcx], 0
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret