joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b39a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [0x1400e6020]
mov rdi, rax
test rax, rax
jne 0x1400b39e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b3a29
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b3a82
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400b3a40
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b3ac3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c73ca]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c73cb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b3a90
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400b3ae0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400b3b1a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b3b1f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400b3b68
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400b3b68
dec r8
sub rdx, 1
jne 0x1400b3b4e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400b5418
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b5462
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b5462
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b5462
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b5462
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b5462
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b5464
xor al, al
add rsp, 0x28
ret
Function at 0x140004ba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0x48], 2
mov rcx, qword [rsp + 0x100]
call fcn.140009740
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140004c73
lea r8, str.Cannot_get_size_of_string_value:_RegGetValueW_failed.
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.140004dc0
lea rdx, [0x1401fc4f0]
lea rcx, [rsp + 0x80]
call fcn.140118c40
mov eax, dword [rsp + 0xd0]
xor edx, edx
mov ecx, 2
div rcx
mov r8w, reloc.WLDAP32.dll_Ordinal_32
mov rdx, rax
mov rcx, qword [rsp + 0xf8]
call fcn.140009b40
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.1400097b0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x100]
call fcn.140009740
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140004d4e
lea r8, str.Cannot_get_string_value:_RegGetValueW_failed.
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0xa8]
call fcn.140004dc0
lea rdx, [0x1401fc4f0]
lea rcx, [rsp + 0xa8]
call fcn.140118c40
mov eax, dword [rsp + 0xd0]
xor edx, edx
mov ecx, 2
div rcx
dec rax
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xf8]
call fcn.1400096d0
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140115b30
add rsp, 0xe8
ret
Function at 0x140005150
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2d8
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov dword [rsp + 0x20], 0
mov edx, Ordinal_27
lea rcx, [rsp + 0x68]
call fcn.1400052a0
lea rcx, [rsp + 0x68]
call fcn.140007ca0
nop
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x80], 0x238
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400051f3
mov rcx, qword [rsp + 0x2e0]
call fcn.140007ca0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x68]
call fcn.140007b50
mov rax, qword [rsp + 0x2e0]
jmp 0x140005288
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000524e
lea r8, [rsp + 0xac]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x58]
call fcn.14000e150
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000e190
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.140007b20
nop
lea rcx, [rsp + 0x30]
call fcn.1400052c0
jmp 0x1400051f3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x2e0]
call fcn.140007b70
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x68]
call fcn.140007b50
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140115b30
add rsp, 0x2d8
ret
Function at 0x140005510
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xd0], WSASetLastError
mov rdi, qword [rsp + 0x170]
xor eax, eax
mov ecx, Ordinal_27
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0xa8]
call fcn.140009b90
nop
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140007d30
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x60]
call fcn.140007d20
mov qword [rsp + 0x68], rax
jmp 0x1400055ba
mov rax, qword [rsp + 0x58]
add rax, 0x20
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x58], rax
je 0x140005620
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
lea rdx, [0x1401cef24]
lea rcx, [rsp + 0x88]
call fcn.14000e210
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xa8]
call fcn.140009a60
nop
lea rcx, [rsp + 0x88]
call fcn.140009a90
jmp 0x1400055ac
lea rcx, [rsp + 0xa8]
call fcn.140003e40
mov rcx, qword [rsp + 0x170]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140005685
mov byte [rsp + 0x50], 1
jmp 0x14000568a
mov byte [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x51], al
lea rcx, [rsp + 0xa8]
call fcn.140009a90
nop
mov rcx, qword [rsp + 0x160]
call fcn.140009a90
nop
mov rcx, qword [rsp + 0x168]
call fcn.140007d40
movzx eax, byte [rsp + 0x51]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140115b30
add rsp, 0x150
pop rdi
ret
Function at 0x1400074a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140007d30
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x38]
call fcn.140007d20
mov qword [rsp + 0x40], rax
jmp 0x1400074eb
mov rax, qword [rsp + 0x28]
add rax, 0x20
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x28], rax
je 0x140007576
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.140009760
lea rcx, [rsp + 0x50]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x50]
call fcn.1400052e0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140007571
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140007571
mov edx, 9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400074dd
mov rcx, qword [rsp + 0x98]
call fcn.140007d40
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140029b90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
lea rdx, [0x1401cf3f8]
call fcn.140001c10
nop
mov dword [rsp + 0x20], 1
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
setg r12b
test rax, rax
jle 0x140029d28
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call fcn.140198190
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140029d28
nop dword [rax]
mov rcx, r15
call fcn.1400096a0
test al, al
jne 0x140029c79
mov rcx, r15
call fcn.140009740
mov rdx, rax
lea rcx, [rsp + 0x6c]
call fcn.14016bf00
test eax, eax
jne 0x140029d12
lea rcx, [rsp + 0x48]
call fcn.14000ddf0
mov rcx, qword [r14 + 0x10]
cmp qword [r14 + 8], rcx
mov rcx, rax
je 0x140029cfe
call fcn.14000ddf0
mov rcx, rax
call fcn.14000ddf0
mov rsi, rax
mov rbp, qword [r14 + 8]
call fcn.1400014a0
test al, al
je 0x140029cdb
mov rcx, rsi
call fcn.14000ddf0
mov rdi, rax
mov rdx, rbp
mov ecx, 4
call fcn.140001490
mov rsi, rax
mov rcx, rdi
call fcn.14000ddf0
mov ecx, dword [rax]
mov dword [rsi], ecx
add qword [r14 + 8], 4
jmp 0x140029d12
mov rdx, rbp
mov ecx, 4
call fcn.140001490
mov rdi, rax
mov rcx, rsi
call fcn.14000ddf0
mov ecx, dword [rax]
mov dword [rdi], ecx
add qword [r14 + 8], 4
jmp 0x140029d12
call fcn.14000ddf0
mov r8, rax
mov rdx, qword [r14 + 8]
mov rcx, r14
call fcn.14002dcf0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140029c50
test r12b, r12b
je 0x140029d37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, r14
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140115b30
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140036f00
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rsp + 0x190], rax
xorps xmm0, xmm0
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x108
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.140198190
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x140036fee
mov rax, qword [rax + 0x70]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x40]
mov r9d, 0x40
mov rdx, rbx
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
test eax, eax
jne 0x140036fee
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x140036fee
movsxd rdx, dword [rsp + 0x7c]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
add rdx, rbx
je 0x140036fee
mov rax, qword [rax + 0x70]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
mov r9d, 0x108
lea r8, [rsp + 0x80]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
test eax, eax
jne 0x140036fee
cmp dword [rsp + 0x80], 0x4550
sete al
jmp 0x140036ff0
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140115b30
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x140040840
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
movzx edi, dl
test rcx, rcx
je 0x14004086c
jle 0x140040868
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140040881
jle 0x14004087d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x140040894
jle 0x140040891
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400408a9
jle 0x1400408a5
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test dil, dil
jne 0x1400408ed
lea rcx, [rbx + 0xf8]
xor edx, edx
call fcn.14000b7d0
cmp byte [rbx + 0x1c], sil
je 0x1400408df
lea rcx, [rbx + 0x118]
call fcn.140009740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
lea rcx, [rbx + 0x118]
call fcn.14000b7d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140041b80
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x70]
call fcn.140198190
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x40], gethostname
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
lea r8, [rsi + 0x50]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140041df0
mov r15, rax
test rax, rax
je 0x140041da6
test rdi, rdi
jne 0x140041d0d
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x190]
call fcn.140198190
lea rdx, [rbp + 0x190]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.ImageManifest
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140041c64
mov eax, 0xc0150002
jmp 0x140041da8
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
setg r14b
test rax, rax
jle 0x140041cf9
mov dword [rbp - 0x80], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x80]
mov r8d, dword [rsp + 0x78]
mov rdx, r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r14b, r14b
je 0x140041cc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x70]
call fcn.140005720
mov rcx, rax
call fcn.140005860
mov r8, rax
lea rcx, [rsi + 0x118]
lea rdx, [rbp - 0x70]
call fcn.140020db0
nop
jmp 0x140041d60
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140041da8
mov dword [rsp + 0x44], 8
movzx eax, word [rsi + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rdi
lea r14, [rsi + 0xf8]
lea r15, [rsi + 0x118]
cmp r15, r14
je 0x140041d60
mov rcx, r15
call fcn.140005b50
mov rcx, r14
call fcn.140005ac0
mov rdi, qword [r14 + 0x10]
mov rcx, r14
call fcn.14000bc10
mov r8, rdi
mov rdx, rax
mov rcx, r15
call fcn.140020db0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rdi, rax
mov rcx, qword [rsi + 0x48]
cmp rax, rcx
je 0x140041d89
test rcx, rcx
jle 0x140041d82
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rsi + 0x48], rdi
mov rcx, rdi
test rcx, rcx
jg 0x140041da6
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], 0xc0000022
jne 0x140041dd3
mov dword [rsi + 0x50], ebx
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140115b30
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140041da8
Function at 0x140051040
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx + 0x78]
xor esi, esi
mov qword [rsp + 0x48], rsi
mov rbx, rcx
test rax, rax
je 0x140051167
mov rdx, qword [rax]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x50], rsi
add rdx, 0x18
je 0x140051167
mov rax, qword [rcx + 0x70]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea r9d, [rsi + 8]
lea r8, [rsp + 0x48]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp qword [rsp + 0x48], rsi
je 0x140051167
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov r8, rax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
mov rcx, qword [rcx]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400510f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x78]
mov qword [rsp + 0x40], rsi
test rdx, rdx
je 0x14005112d
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x40]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rdx, qword [rbx + 0x88]
mov qword [rsp + 0x40], rsi
test rdx, rdx
je 0x140051167
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x40]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14005117a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], rsi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400511f9
call fcn.14004e2c0
test al, al
je 0x1400511f9
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov qword [rsp + 0x78], rdi
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rbx + 0x20]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400511cd
jle 0x1400511c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], rsi
mov dword [rdi + 8], esi
mov rcx, qword [rbx + 0x28]
mov rdi, qword [rsp + 0x78]
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test rcx, rcx
je 0x1400511eb
call fcn.140002a00
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400511f9
call fcn.14004da70
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140115b30
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
Function at 0x140069690
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor edi, edi
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400698c9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.140198190
mov dword [rsp + 0x6c], 0x208
mov dword [rsp + 0x68], 1
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.BuildLabEx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400698be
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.140005760
nop
mov rbx, qword [rbp - 0x80]
lea rcx, [rsp + 0x70]
call fcn.14000bc10
test rbx, rbx
je 0x1400697a3
mov rcx, rax
mov esi, edi
cmp word [rax], 0x2e
je 0x140069793
nop dword [rax]
cmp rbx, 1
je 0x140069796
dec rbx
add rcx, 2
cmp word [rcx], 0x2e
jne 0x140069780
mov rsi, rcx
test rsi, rsi
je 0x1400697a3
sub rsi, rax
sar rsi, 1
jmp 0x1400697aa
mov rsi, 0xffffffffffffffff
lea r14, [rsi + 1]
mov rbx, qword [rbp - 0x80]
lea rcx, [rsp + 0x70]
call fcn.14000bc10
cmp r14, rbx
jae 0x1400697f3
sub rbx, r14
lea rcx, [rax + r14*2]
je 0x1400697e6
cmp word [rcx], 0x2e
je 0x1400697e3
cmp rbx, 1
je 0x1400697e6
dec rbx
add rcx, 2
cmp word [rcx], 0x2e
jne 0x1400697d0
mov rdi, rcx
test rdi, rdi
je 0x1400697f3
sub rdi, rax
sar rdi, 1
jmp 0x1400697fa
mov rdi, 0xffffffffffffffff
cmp rdi, rsi
jbe 0x1400698b4
cmp rsi, 0xffffffffffffffff
je 0x1400698b4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x30]
call fcn.1400057f0
mov r8, rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140011d40
nop
mov rax, qword [rbp - 0x80]
cmp rax, r14
jb 0x1400698f7
sub rdi, rsi
dec rdi
mov qword [rbp - 0x70], rdi
sub rax, r14
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.140005b00
mov rbx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.14000bc10
lea rdx, [rax + r14*2]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140005870
nop
lea rcx, [rsp + 0x40]
call fcn.140009740
mov rcx, rax
xor edx, edx
lea r8d, [rdx + 0xa]
call fcn.140161b18
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.140009a90
nop
lea rcx, [rsp + 0x70]
call fcn.140009a90
mov eax, ebx
jmp 0x1400698cb
lea rcx, [rsp + 0x70]
call fcn.140009a90
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140115b30
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14003a790
nop
int3