joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d5700
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401d578a
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x1401d579a
cmp ecx, 2
jne 0x1401d57d8
cmp eax, 0xf
jbe 0x1401d57f2
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1401d57e8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1401d57df
cmp eax, 0x1b
jbe 0x1401d580a
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1401d57e8
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___std_src_sys_common_net.rs
lea r8, [0x14027c680]
mov edx, 0x39
call fcn.1401fd7f0
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14027c6d8]
mov edx, 0x3a
call fcn.1401fd7f0
int3
Function at 0x1401f0298
Capabilities:
Parse pe header

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

Function at 0x1401fc5e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401dd2c0
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x1401fc662
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401fc692
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401fc6a6
lea rax, [0x14027ad90]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x1401fc6c6
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140016e60
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1401fc6c6
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140016e60
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140001500
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140001596
mov r8d, 4
lea rdx, str.netextr
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14000158b
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140001582
cmp dword [rsp + 0x3c], 4
sete bl
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001820
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400015b8
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140001626
mov r8d, 0x10
lea rdx, str.netextr
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14000161b
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
mov rcx, rsi
setne bl
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000237c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400023c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400023c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400023c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400023c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400023c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400023c8
xor al, al
add rsp, 0x28
ret
Function at 0x23aa113a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp - 4]
mov r9, rax
mov r8d, 0x40
mov edx, 0xa7ca9
lea rcx, [0x23aa13020]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x23aa113d5
mov eax, 0
jmp 0x23aa113dc
lea rax, [0x23aa13020]
add rsp, 0x30
pop rbp
ret

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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x23acb5074]
mov r12, rcx
test ebx, ebx
jle 0x23aa11870
mov rax, qword [0x23acb5078]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x23aa1178c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x23aa11813
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x23aa11770
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x23aa11892
mov rax, qword [0x23acb5078]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x23acb5078]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x23aa11877
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x23aa1180c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x23aa11820
add dword [0x23acb5074], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x23acb5078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x23aa1180c
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 ebx, ebx
jmp 0x23aa11797
mov rax, qword [0x23acb5078]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x23aa11b30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x23acb50a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x23acb5080]
test rbx, rbx
je 0x23aa11b84
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 0x23aa11b7b
test r12, r12
je 0x23aa11b7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x23aa11b60
lea rcx, [0x23acb50a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x23aa11da0
Capabilities:
Parse pe header

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

Function at 0x23aa11dd0
Capabilities:
Enumerate pe sections

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

Function at 0x23aa11e20
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x23aa11eb0
mov rdx, qword [0x23acb2900]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x23aa11e9e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x23aa11e9e
cmp word [rax + 0x18], 0x20b
jne 0x23aa11e9e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x23aa11eb0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x23aa11e89
add r12, 0x28
cmp r12, rsi
je 0x23aa11eb0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x23aa11e80
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x23acb2900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x23aa11ee0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x23aa11ee8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x23aa11ee0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x23aa11f35
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x23aa11f2c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x23aa11ee0
add rax, 0x28
cmp rax, r9
jne 0x23aa11f18
xor eax, eax
ret
Function at 0x23aa11f40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x23acb2900]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x23aa11f60
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x23aa11f68
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x23aa11f60
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x23aa11f80
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x23acb2900]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x23aa11fa0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x23aa11fa8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x23aa11fa0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x23aa11fe8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x23aa11fdf
test rcx, rcx
je 0x23aa11fa0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x23aa11fd0
xor eax, eax
ret

Function at 0x23aa11ff0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x23acb2900]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x23aa12010
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x23aa12018
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x23acb2900]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x23aa12050
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x23aa12058
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x23aa12050
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x23aa12050
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 0x23aa12094
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x23aa120a8
add rax, 0x28
cmp r9, rax
jne 0x23aa12080
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x23acb2900]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x23aa120e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x23aa120f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x23aa120e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x23aa120e2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x23aa120e2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x23aa1213d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x23aa12150
add rdx, 0x28
cmp r10, rdx
jne 0x23aa12128
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x23aa1215f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x23aa1216f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x23aa12146
test ecx, ecx
jg 0x23aa12158
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400030d4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140013880]
movabs rdi, 0x2b992ddfa23249d6
test rax, rax
je 0x140003104
mov rax, qword [0x140013880]
cmp rax, rdi
jne 0x1400031c5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rbx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
lea rcx, [rsp + 0x40]
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov edx, 8
lea rcx, [0x140013880]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
test rbx, rbx
lea rcx, [0x140013880]
mov edx, 8
cmovne rdi, rbx
mov qword [0x140013880], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, 8
lea rcx, [0x140013880]
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov rax, qword [0x140013880]
not rax
mov qword [0x14002c0b0], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140003594
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

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

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140003a11
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140003a11
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003a11
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400039f5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400039ef
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400039f7
add rdx, 0x28
jmp 0x1400039d4
xor edx, edx
test rdx, rdx
jne 0x140003a00
xor al, al
jmp 0x140003a17
test dword [rdx + 0x24], 0x80000000
je 0x140003a0d
xor al, al
jmp 0x140003a17
mov al, 1
jmp 0x140003a17
xor al, al
jmp 0x140003a17
add rsp, 0x18
ret
Function at 0x1400051a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140013880]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov word [rdi], bx
lea r8d, [rbx + 0x2b]
xor ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140005221
cmp word [rsp + 0x20], bx
je 0x140005221
mov r9, rsi
lea rdx, str.Microsoft_Shared
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.140005030
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400031d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400052a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
lea rax, [rbp - 8]
mov r14, r9
mov qword [rbp - 8], r15
mov rsi, r8
mov dword [rbp - 0x10], r15d
mov r9d, 0x20019
mov qword [r11 - 0x38], rax
xor r8d, r8d
mov ebx, r15d
mov edi, 0x16
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005383
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005383
mov ecx, dword [rbp - 0x10]
cmp rcx, qword [rbp + 0x40]
ja 0x140005383
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140005383
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005383
mov eax, dword [rbp - 0x10]
mov r8, rbx
mov rdx, qword [rbp + 0x40]
mov rcx, r14
shr rax, 1
mov word [rbx + rax*2 - 2], r15w
mov r9d, dword [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edi, eax
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140005396
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 8], r15
test rbx, rbx
je 0x1400053a4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400053c0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x370
mov rax, qword [0x140013880]
xor rax, rsp
mov qword [rsp + 0x360], rax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
cmp dword [rsp + 0x34], 6
jne 0x140005463
cmp dword [rsp + 0x38], ebx
jne 0x140005457
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x150]
mov qword [rsp + 0x20], 0x104
lea r8, str.CurrentVersion
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
call fcn.1400052a8
lea rdx, [0x140013d60]
lea rcx, [rsp + 0x150]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
setne bl
jmp 0x14000546a
cmp dword [rsp + 0x38], 2
jae 0x140005465
cmp dword [rsp + 0x34], 6
jbe 0x14000546a
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1400031d0
add rsp, 0x370
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400be830]
mov dword [rax], 1
mov rax, qword [0x1400be840]
mov dword [rax], 1
mov rax, qword [0x1400be850]
mov dword [rax], 1
mov rax, qword [0x1400be770]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret