joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400289e4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c2f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c2f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028b34
cmp rax, 0xffffffffffffffff
je 0x140028b34
xor edi, edi
test rbp, rbp
jle 0x140028adf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ec08
mov rbx, rax
test rax, rax
jne 0x140028a6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028ad5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c58
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cfd0
cmp eax, 0xffffffff
je 0x140028ab5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a7c
mov edx, r15d
mov ecx, r14d
call fcn.140019c58
jmp 0x140028ad5
cmp byte [rsi + 0x38], dil
je 0x140028acc
cmp dword [rsi + 0x34], 5
jne 0x140028acc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028ad5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a9b8
jmp 0x140028b48
jns 0x140028b48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c2f4
cmp rax, 0xffffffffffffffff
jne 0x140028b00
cmp byte [rsi + 0x30], dil
je 0x140028b48
mov edi, dword [rsi + 0x2c]
jmp 0x140028b48
mov ecx, r14d
call fcn.14001878c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028b48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028b41
mov eax, dword [rsi + 0x2c]
jmp 0x140028b46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c2f4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029c40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029c68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029c68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x141273e7c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141273e86
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141273eaf
pop rbp
sub rbp, 0x33
sub rbp, 0x1273e7c
sub rsp, 0x20
jmp 0x141273ece
mov rax, 0x1273e7c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffd3be9041
xor byte [rax], dl
inc rax
dec rcx
jne 0x141273eed
jmp 0x141273f04
or eax, ecx
test al, 0xca
enter 0x417d, 0x41
or r8d, eax
or byte [rcx + 0x40], 0x41
or dword [r8 - 0x58], eax
or dword [rsi + 0x41414a81], eax
or dword [r14 + 0x41416983], eax
or dword [r14 - 0x7fbff65d], esi
retf 0x4dc0
Function at 0x18001eb10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x1800c33b0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov eax, 8
imul rax, rax, 0
lea rcx, [0x1800c33e0]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x60], 0x48
mov byte [rsp + 0x61], 0xb8
mov byte [rsp + 0x62], 3
mov byte [rsp + 0x63], 0xca
mov byte [rsp + 0x64], 0xe0
mov byte [rsp + 0x65], 0x9f
mov byte [rsp + 0x66], 4
mov byte [rsp + 0x67], 0x38
mov byte [rsp + 0x68], 0xba
mov byte [rsp + 0x69], 0xaa
mov byte [rsp + 0x70], 0x48
mov byte [rsp + 0x71], 0xb8
mov byte [rsp + 0x72], 0xf1
mov byte [rsp + 0x73], 0xec
mov byte [rsp + 0x74], 0x2d
mov byte [rsp + 0x75], 0x9e
mov byte [rsp + 0x76], reloc.WS2_32.dll_socket
mov byte [rsp + 0x77], 0x48
mov byte [rsp + 0x78], WSAStartup
mov byte [rsp + 0x79], __WSAFDIsSet
movabs rax, 0xc9114e1e70aa4461
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x20], 0
mov r8d, 0xa
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18001ec11
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x18001ebe9
mov r8d, 0xa
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18001ec39
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
jmp 0x18001ec11
mov rax, qword [rsp + 0x28]
add rax, 0x11
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0x40
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x34]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x18001eca7
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x48], rax
je 0x18001ece9
mov eax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x80]
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov byte [rcx], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 7
mov dword [rsp + 0x20], eax
jmp 0x18001ec9a
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180084a40
add rsp, 0x98
ret
Function at 0x140001c68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cb2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cb4
xor al, al
add rsp, 0x28
ret
Function at 0x1400010fc
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WerSetFlags]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.14000185c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140001bd4
mov ebx, dword [rsp + 0x20]
mov rdi, rax
dec ebx
je 0x1400032e4
cmp ebx, 1
je 0x1400032cb
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
lea rdx, [rdi + 8]
mov ecx, ebx
call fcn.140001190
test al, al
je 0x1400032f4
mov eax, dword [rsp + 0x20]
jmp 0x140001176
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax + 8]
lea rdx, str._private
call qword [sym.imp.MSVCR120_CLR0400.dll__wcsicmp]
test eax, eax
jne 0x140001153
test ebx, ebx
setg cl
call fcn.140005d50
nop
jmp 0x140001153
lea rdx, [rdi + 8]
mov ecx, ebx
call fcn.140004aac
nop
jmp 0x140001176
Function at 0x140001920
Capabilities:
Hash data using djb2
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
or rbp, 0xffffffffffffffff
mov rbx, rcx
xor esi, esi
mov r8, rbp
inc r8
cmp word [rcx + r8*2], si
jne 0x140001955
mov eax, edx
neg eax
mov eax, 0x3f
sbb ecx, ecx
and ecx, 8
sub eax, ecx
cdqe
cmp r8, rax
ja 0x1400019d2
mov edi, 0x40
test edx, edx
je 0x1400034f6
cmp dword [0x14001a1b0], esi
jne 0x1400034a7
lea r8, str.COMPlus_
lea rcx, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.MSVCR120_CLR0400.dll_wcscpy_s]
jmp 0x1400019a6
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rdi
call qword [sym.imp.MSVCR120_CLR0400.dll_wcscat_s]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movsxd rdi, eax
test eax, eax
jne 0x140002457
xor eax, eax
jmp 0x1400019d6
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001680
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, 2
mul rdi
cmovo rax, rbp
mov rcx, rax
call fcn.140001e30
mov rbx, rax
test rax, rax
je 0x140002484
lea rcx, [rsp + 0x20]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, rbx
jmp 0x1400019d6
movzx ecx, word [rbx]
mov r8, rbx
mov edx, 0x1505
jmp 0x1400034cc
lea eax, [rcx - 0x61]
cmp eax, 0x19
ja 0x1400034bf
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add r8, 2
movzx ecx, word [r8]
test ecx, ecx
jne 0x1400034b4
movzx ecx, dl
mov edx, ecx
mov eax, ecx
lea rcx, [0x14001a1c0]
shr rax, 5
and edx, 0x1f
mov eax, dword [rcx + rax*4]
bt eax, edx
jb 0x14000198f
jmp 0x1400019d2
mov word [rsp + 0x20], si
jmp 0x1400019a6
Function at 0x140001e68
Capabilities:
Terminate process

Disassembly:
movzx r9d, si
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400010fc
mov dword [0x14001a038], eax
cmp dword [0x14001a020], 0
jne 0x140003996
mov ecx, eax
call qword [sym.imp.MSVCR120_CLR0400.dll_exit]
nop
jmp 0x140003996
sub rsp, 0x28
call fcn.140001ae0
add rsp, 0x28
jmp 0x140001e78
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
call qword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx esi, ax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 8]
xor ebx, ebx
xor eax, eax
lock cmpxchg qword [0x14001a218], rdx
jne 0x140003930
mov eax, dword [0x14001a220]
cmp eax, 1
je 0x140003944
mov eax, dword [0x14001a220]
test eax, eax
jne 0x14000395b
mov dword [0x14001a220], 1
lea rdx, [0x140010548]
lea rcx, [0x140010528]
call fcn.1400ab000
test eax, eax
jne 0x140003951
mov eax, dword [0x14001a220]
cmp eax, 1
jne 0x140001f24
lea rdx, [0x140010520]
lea rcx, [0x1400104d8]
call sub.MSVCR120_CLR0400.dll__initterm
mov dword [0x14001a220], 2
test ebx, ebx
jne 0x140001f31
xor eax, eax
xchg qword [0x14001a218], rax
cmp qword [0x14001a238], 0
jne 0x14000396a
mov rax, qword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
cmp byte [rbx], 0x20
jbe 0x140001f7b
cmp byte [rbx], 0x22
je 0x1400039ad
movzx ecx, byte [rbx]
call qword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
test eax, eax
jne 0x1400039bf
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140001f52
cmp byte [rbx], 0
je 0x140001f84
test edi, edi
jne 0x140001f57
mov al, byte [rbx]
dec al
cmp al, 0x1f
ja 0x1400010c5
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140001f84
cmp rax, rdx
jne 0x14000393f
mov ebx, 1
jmp 0x140001eba
jmp 0x140001ea9
lea ecx, [rax + 0x1e]
call sub.MSVCR120_CLR0400.dll__amsg_exit
jmp 0x140001efc
mov eax, 0xff
jmp 0x1400039f9
mov dword [0x14001a3bc], 1
jmp 0x140001efc
lea rcx, [0x14001a238]
call fcn.14000d930
test eax, eax
je 0x140001f3f
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001a238]
call rax
nop
jmp 0x140001f3f
cmp dword [0x14001a3bc], 0
jne 0x1400039ab
call qword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x14001a038]
jmp 0x1400039f9
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x140001f60
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140001f71
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140002084
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov esi, dword [rbp + 0x50]
and qword [rbp - 0x28], 0
and dword [rbp + 0x48], 0
mov rbx, r8
mov r14, rdx
mov r12, rcx
mov dword [rbp - 0x30], 4
test sil, 1
je 0x1400020dd
mov edx, dword [rbp + 0x58]
call fcn.140001920
mov rdi, rax
test rax, rax
jne 0x140003500
test sil, 0xe
je 0x1400021cf
mov rcx, r12
call fcn.1400021f8
test eax, eax
je 0x1400021cf
mov r13d, 0x20019
test sil, 2
je 0x14000214a
mov rcx, qword [0x14001a0c8]
xor edi, edi
mov qword [rbp - 0x20], rcx
cmp rcx, 0xffffffffffffffff
jne 0x14000355a
lea rax, [rbp - 0x20]
lea rdx, str.SoftwareMicrosoft.NETFramework
mov r9d, r13d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 1
test eax, eax
je 0x140003556
test sil, 4
je 0x1400021cf
mov rcx, qword [0x14001a0d0]
xor edi, edi
mov qword [rbp - 0x18], rcx
cmp rcx, 0xffffffffffffffff
jne 0x140002193
lea rax, [rbp - 0x18]
lea rdx, str.SoftwareMicrosoft.NETFramework
mov r9d, r13d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 1
test eax, eax
jne 0x1400021cf
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x30]
lea r9, [rbp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rsi, eax
test edi, edi
je 0x1400021c6
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x1400035a9
mov qword [rbx], r14
mov eax, 0x80004005
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.MSVCR120_CLR0400.dll__errno]
lea rdx, [rbp - 0x10]
mov r8d, 0x10
and dword [rax], 0
mov rcx, rdi
call qword [sym.imp.MSVCR120_CLR0400.dll_wcstoul]
mov r13d, eax
call qword [sym.imp.MSVCR120_CLR0400.dll__errno]
cmp dword [rax], 0x22
je 0x140003538
cmp qword [rbp - 0x10], rdi
je 0x140003538
mov r15d, 1
jmp 0x14000353b
xor r15d, r15d
mov rcx, rdi
call fcn.140001094
test r15d, r15d
je 0x1400020dd
mov qword [rbx], r13
xor eax, eax
jmp 0x1400021d7
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x30]
lea r9, [rbp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd r15, eax
test edi, edi
je 0x14000358d
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15, r15
jne 0x14000214a
cmp dword [rbp + 0x48], 4
jne 0x14000214a
mov rax, qword [rbp - 0x28]
mov qword [rbx], rax
jmp 0x14000354f
cmp dword [rbp + 0x48], 4
jne 0x1400021cf
jmp 0x1400035a0
Function at 0x1400021f8
Capabilities:
Hash data using djb2

Disassembly:
xor r8d, r8d
mov rdx, rcx
cmp dword [0x14001a1b4], r8d
jne 0x140003825
mov r8d, 1
mov eax, r8d
ret
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r8w
jne 0x140003829
cmp rax, 0x50
ja 0x14000220b
movzx ecx, word [rcx]
mov r9d, 0x1505
jmp 0x140003861
lea eax, [rcx - 0x61]
cmp eax, 0x19
ja 0x140003853
and ecx, 0xffffffdf
imul r9d, r9d, 0x21
xor r9d, ecx
add rdx, 2
movzx ecx, word [rdx]
test ecx, ecx
jne 0x140003848
movzx ecx, r9b
mov edx, ecx
mov eax, ecx
lea rcx, [0x14001a1e0]
shr rax, 5
and edx, 0x1f
mov eax, dword [rcx + rax*4]
bt eax, edx
jb 0x14000220b
jmp 0x140002211
Function at 0x140003b40
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
mov eax, 0x2048
call fcn.140002c60
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2030], rax
lea rax, [rsp + 0x2058]
mov r9, rcx
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR120_CLR0400.dll__vsnwprintf_s]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140003bad
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140003bd9
call qword [sym.imp.MSVCR120_CLR0400.dll___iob_func]
lea r8, [rsp + 0x30]
lea rdx, [0x140010bc8]
lea rcx, [rax + 0x30]
call qword [sym.imp.MSVCR120_CLR0400.dll_fwprintf]
call qword [sym.imp.MSVCR120_CLR0400.dll___iob_func]
lea rcx, [rax + 0x30]
call qword [sym.imp.MSVCR120_CLR0400.dll_fflush]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.140001680
add rsp, 0x2048
ret

Function at 0x140004cc0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
lea rbp, [rax - 0x178]
sub rsp, 0x268
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor ebx, ebx
cmp byte [0x14001b1bc], bl
jne 0x140004d22
lea rcx, str.NGenServiceDebugLog
call fcn.140001f9c
mov dword [0x14001b1b8], eax
mov byte [0x14001b1bc], 1
jmp 0x140004d28
mov eax, dword [0x14001b1b8]
test eax, eax
je 0x140004d98
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x34], 0x200
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 2
mov rax, qword [rsp + 0x40]
mov word [rax], bx
lea r8, [rbp + 0x188]
mov rdx, qword [rbp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.14000a144
lea rcx, [rsp + 0x30]
call fcn.1400095ac
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
test byte [rsp + 0x38], 8
je 0x140004d98
mov rcx, qword [rsp + 0x40]
call fcn.140001094
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140001680
add rsp, 0x268
pop rbx
pop rbp
ret
Function at 0x1400058b8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
call fcn.140004db4
and qword [rsp + 0x30], 0
and qword [rsp + 0x38], 0
mov qword [rsp + 0x20], rax
lea rax, [0x140005808]
lea rcx, str.Calling_StartServiceCtrlDispatcher_n
mov qword [rsp + 0x28], rax
call fcn.140004cc0
mov rax, qword [0x14001a960]
test rax, rax
jne 0x140005945
cmp byte [0x14001a94f], al
jne 0x140005941
lea rcx, str.advapi32.dll
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14000592e
lea rdx, str.StartServiceCtrlDispatcherW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001a960], rax
jmp 0x140005935
mov rax, qword [0x14001a960]
mov byte [0x14001a94f], 1
test rax, rax
jne 0x140005945
xor eax, eax
jmp 0x14000594c
lea rcx, [rsp + 0x20]
call rax
test eax, eax
jne 0x140005966
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.StartServiceCtrlDispatcher_failed_with_error__d.__Will_try_slow_path_n
mov edx, eax
call fcn.140004cc0
jmp 0x140005983
lea rcx, str.StartServiceCtrlDispatcher_done__exiting_n
call fcn.140004cc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x48
ret

Function at 0x140005988
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x44], 0x200
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0x50]
mov word [rax], bx
lea rcx, [rsp + 0x40]
call fcn.140004200
lea rdx, str._ndpsetup.bat
lea rcx, [rsp + 0x40]
call fcn.140003ee8
lea rcx, [rsp + 0x40]
call fcn.1400095ac
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140005a45
mov dword [rsp + 0x30], ebx
lea r9, [rsp + 0x30]
lea r8, str.Install
lea rdx, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
call fcn.14000b748
test eax, eax
je 0x140005a43
cmp dword [rsp + 0x30], 1
je 0x140005a45
mov bl, 1
test byte [rsp + 0x48], 8
je 0x140005a56
mov rcx, qword [rsp + 0x50]
call fcn.140001094
mov al, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140001680
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret
Function at 0x14000b748
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov rbx, r9
mov rdi, r8
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [r11 - 0x38], rax
mov r9d, 0x20019
call fcn.140006f5c
test eax, eax
jne 0x14000b7d9
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x10], 4
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b7d9
cmp dword [rbp + 0x30], 4
jne 0x14000b7d9
cmp dword [rbp + 0x10], 4
jne 0x14000b7d9
mov eax, dword [rbp - 0x20]
mov dword [rbx], eax
mov ebx, 1
jmp 0x14000b7db
xor ebx, ebx
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14000b7ea
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret