joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002290
Capabilities:
Enumerate services

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140047f48]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], 0
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140002301
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400492f0]
call fcn.140005f00
lea rdx, [0x1400043e0]
mov rcx, rax
call fcn.1400060f0
lea rcx, str.OpenSCManager_Eorror_n
call fcn.14000c3b0
mov eax, 0xffffffff
jmp 0x1400023fc
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
mov r9, qword [rsp + 0x50]
mov r8d, 3
mov edx, 0x30
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x14000237a
mov byte [rsp + 0x40], 1
jmp 0x14000237f
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x41], al
movzx eax, byte [rsp + 0x41]
test eax, eax
jne 0x1400023a4
lea rcx, str.EnumServicesStatus_Eorror_n
call fcn.14000c3b0
mov eax, 0xffffffff
jmp 0x1400023fc
mov dword [rsp + 0x44], 0
jmp 0x1400023b8
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x44], eax
jae 0x1400023ef
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x30
lea rdx, str.Virtual_Machine
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 8]
call fcn.14000c040
test rax, rax
je 0x1400023ed
mov eax, 1
jmp 0x1400023fc
jmp 0x1400023ae
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000fe10
add rsp, 0x78
ret
Function at 0x14000c4f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0x40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000c52b
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000c532
xor eax, eax
jmp 0x14000c5f4
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov edx, 0x108
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000c56c
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x14000c573
xor eax, eax
jmp 0x14000c5f4
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
je 0x14000c5e0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call fcn.140016e24
test eax, eax
jne 0x14000c5d0
jmp 0x14000c5e0
mov rax, qword [rsp + 0x28]
add rax, 0x14
mov qword [rsp + 0x28], rax
jmp 0x14000c598
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x14000c5ef
xor eax, eax
jmp 0x14000c5f4
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000c930
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140047f48]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x40], 0x238
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
cmp qword [rsp + 0x2a0], 0
je 0x14000c98d
cmp qword [rsp + 0x2a8], 0
jne 0x14000c991
xor eax, eax
jmp 0x14000ca05
xor edx, edx
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Module32First
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000ca00
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x2b0]
mov r8, qword [rsp + 0x2a8]
mov rdx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x68]
call fcn.14000c690
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Module32Next
mov dword [rsp + 0x30], eax
jmp 0x14000c9b5
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000fe10
add rsp, 0x290
pop rdi
ret

Function at 0x14001c210
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c034
Function at 0x1400411fe
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x14008c3d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x1400f7028]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x14010a643]
call fcn.1400432bf
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, VariantTimeToDosDateTime
call fcn.140042996
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x14008c49b
cmp qword [rbp + 8], 0
je 0x14008c463
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, VariantTimeToDosDateTime
call fcn.140042996
mov dword [rbp + 0x44], eax
jmp 0x14008c441
cmp dword [rbp + 0x44], 0
jge 0x14008c4c1
cmp qword [rbp + 8], 0
je 0x14008c4ba
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14008c5f0
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14008c4d7
xor eax, eax
jmp 0x14008c5f0
mov dword [rbp + 0x84], 0
jmp 0x14008c4f1
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x14008c5dc
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.140041f5f
mov rcx, qword [rbp + 0x210]
call fcn.1400412e4
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400412e4
mov rcx, qword [rbp + 0x1d8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x14008c5cb
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x1c8], rax
lea rcx, [rbp + 0xa8]
call fcn.140041636
mov rax, qword [rbp + 0x1c8]
jmp 0x14008c5f0
lea rcx, [rbp + 0xa8]
call fcn.140041636
jmp 0x14008c4e3
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140042ca7
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.140042072
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14004130c
Capabilities:
Write file on windows

Disassembly:
jmp 0x14007fdb0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14010a127]
call fcn.1400432bf
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14007fe07
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14007ff13
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14007feac
cmp qword [rbp + 0x28], 0
jle 0x14007feac
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14007fe4c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140043062
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14007ff02
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14007ff02
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400416bd
Capabilities:
Create thread

Disassembly:
jmp 0x140096330
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1400f7028]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x14010a775]
call fcn.1400432bf
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400419fb
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.1400420f4
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.14004173a
nop
lea rcx, [rbp + 0x108]
call fcn.140041e01
lea rax, [0x1400426ad]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.140042757
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140096430
lea rcx, [rbp + 8]
call fcn.140041e92
jmp 0x140096449
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14004178f
nop
lea rcx, [rbp + 8]
call fcn.140041e01
lea rcx, [rbp - 0x30]
lea rdx, [0x1400e1040]
call fcn.140042ca7
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.140042072
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x14004193d
Capabilities:
Get common file path

Disassembly:
jmp 0x14008c220
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x1400f7028]
xor rax, rbp
mov qword [rbp + 0x408], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x14010a643]
call fcn.1400432bf
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x14008c2ad
cmp dword [rbp + 0x234], 0x105
jbe 0x14008c2d8
lea rdx, [0x1400db0dc]
mov rcx, qword [rbp + 0x430]
call fcn.140041b13
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
jmp 0x14008c34a
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x14008c324
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x14008c311
jmp 0x14008c316
call fcn.1400428dd
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x430]
call fcn.140041b13
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400de340]
call fcn.140042ca7
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.140042072
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret
Function at 0x140042315
Capabilities:
Terminate process

Disassembly:
jmp 0x1400b7df0
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 0x140042351
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14008c0a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x14010a643]
call fcn.1400432bf
mov rcx, qword [rbp + 0x180]
call fcn.140041f32
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x188]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x14008c11b
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x64], eax
jae 0x14008c1c3
mov eax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
call fcn.140041c7b
test eax, eax
jne 0x14008c1be
mov rax, qword [rbp + 0x88]
mov rcx, rax
call fcn.140041f32
cmp qword [rbp + 8], rax
jne 0x14008c1be
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0xc], 0
jne 0x14008c188
xor eax, eax
jmp 0x14008c1c5
cmp qword [rbp + 0x190], 0
je 0x14008c1a5
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
jmp 0x14008c1c5
jmp 0x14008c113
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140042531
Capabilities:
Delete registry key

Disassembly:
jmp 0x14008a2e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f8]
mov rax, qword [0x1400f7028]
xor rax, rbp
mov qword [rbp + 0x2a8], rax
lea rcx, [0x14010a50b]
call fcn.1400432bf
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14008a348
xor al, al
jmp 0x14008a518
mov r8, qword [rbp + 0x2d0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x28]
call fcn.14004356c
nop
lea rcx, [rbp + 0x28]
call fcn.140041b40
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.14004313e
mov r8, qword [rbp + 0x2d0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0xb8]
call fcn.14004356c
nop
lea rcx, [rbp + 0xb8]
call fcn.140041b40
lea r8, [rbp + 0x98]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x14008a41d
cmp dword [rbp + 0xf4], 2
jne 0x14008a3f4
mov byte [rbp + 0x214], 1
lea rcx, [rbp + 0xb8]
call fcn.140042d83
nop
lea rcx, [rbp + 0x28]
call fcn.140042d83
movzx eax, byte [rbp + 0x214]
jmp 0x14008a518
mov byte [rbp + 0x234], 0
lea rcx, [rbp + 0xb8]
call fcn.140042d83
nop
lea rcx, [rbp + 0x28]
call fcn.140042d83
movzx eax, byte [rbp + 0x234]
jmp 0x14008a518
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x68]
call qword [rbp + 0x118]
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
je 0x14008a4a3
lea rcx, [rbp + 0xb8]
call fcn.140041b40
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
mov byte [rbp + 0x254], 0
lea rcx, [rbp + 0xb8]
call fcn.140042d83
nop
lea rcx, [rbp + 0x28]
call fcn.140042d83
movzx eax, byte [rbp + 0x254]
jmp 0x14008a518
lea rcx, [rbp + 0xb8]
call fcn.140041b40
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x14008a4f4
mov byte [rbp + 0x274], 0
lea rcx, [rbp + 0xb8]
call fcn.140042d83
nop
lea rcx, [rbp + 0x28]
call fcn.140042d83
movzx eax, byte [rbp + 0x274]
jmp 0x14008a518
mov byte [rbp + 0x294], 1
lea rcx, [rbp + 0xb8]
call fcn.140042d83
nop
lea rcx, [rbp + 0x28]
call fcn.140042d83
movzx eax, byte [rbp + 0x294]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400de130]
call fcn.140042ca7
mov rax, rdi
mov rcx, qword [rbp + 0x2a8]
xor rcx, rbp
call fcn.140042072
lea rsp, [rbp + 0x2b8]
pop rdi
pop rbp
ret
Function at 0x1400427ed
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400b9710
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400b9730
xor al, al
jmp 0x1400b97b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400b9743
xor al, al
jmp 0x1400b97b1
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 0x1400b976d
xor al, al
jmp 0x1400b97b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400b9781
xor al, al
jmp 0x1400b97b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400b9793
xor al, al
jmp 0x1400b97b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400b97af
xor al, al
jmp 0x1400b97b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140042e96
Capabilities:
Parse pe header

Disassembly:
jmp 0x140087ae0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14010a3b1]
call fcn.1400432bf
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140087b1c
xor eax, eax
jmp 0x140087b49
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x140087b45
xor eax, eax
jmp 0x140087b49
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140043215
Capabilities:
Write file on windows

Disassembly:
jmp 0x14007afd0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x1400f7028]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x14010a127]
call fcn.1400432bf
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14007b036
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14007b03d
mov al, 1
jmp 0x14007b197
call fcn.14004195b
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14004195b
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140042ced
movzx eax, al
test eax, eax
je 0x14007b098
xor al, al
jmp 0x14007b197
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14007b0fd
cmp dword [rbp + 0x194], 1
je 0x14007b108
cmp dword [rbp + 0x194], 3
je 0x14007b186
jmp 0x14007b195
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14007b158
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14007b158
xor al, al
jmp 0x14007b197
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14007b173
mov dword [rbp + 0x194], 1
jmp 0x14007b17d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14007b197
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14007b197
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140042ca7
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.140042072
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x1400433aa
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400b6410
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400429ff
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1400e3240]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.140041fff
test eax, eax
jne 0x1400b64a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400b64a7
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400b64a0
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1400fa3b0], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret