joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051b48
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400748a0
sub rsp, rax
mov rax, qword [0x1400ba040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140063fac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140051b97
mov rax, rbp
jmp 0x140051c9f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xbc510]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006423c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbc510]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140051c9b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140051c9b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006423c
test rax, rax
js 0x140051c9b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140051c9b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140051c8d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140051c8d
cmp byte [rcx], 0xd
jne 0x140051c73
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140051c82
cmp byte [rcx + 1], 0xa
jne 0x140051c82
inc rcx
jmp 0x140051c82
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xba420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140051c55
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140051c9f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400494b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14005ef5c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14005efcb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005efcb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005efcb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005efcb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005efcb
cmp dword [rcx + 0x84], 0xe
jbe 0x14005efcb
cmp dword [rcx + 0xf8], 0
je 0x14005efcb
mov ecx, ebx
call fcn.14005f07c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14005ee58
nop
cmp dword [rbp + 0x20], 0
je 0x14005f019
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005f024
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14005ef5c
Function at 0x14005f160
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005ef5c

Function at 0x1400649c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400bc510]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140064a17
cmp word [rdx], r13w
jne 0x140064a17
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140064a1c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140064b41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140064b62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140064a55
mov rdx, r9
mov word [rbx], cx
jmp 0x140064a7c
cmp r9, r8
jae 0x140064a8c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140064a36
jmp 0x140064b41
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140064b36
cmp dword [rsp + 0x80], esi
je 0x140064b36
lea r8, [0x1400bc510]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140064b0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140064ade
mov word [rbx], r13w
jmp 0x140064b3e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140064aeb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140064b3e
cmp word [rsp + 0x70], r13w
jne 0x140064b1b
cmp rbx, r14
je 0x140064ad8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140064244
cmp word [rsp + 0x70], r13w
je 0x140064b41
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400bc510]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140064b3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140064b41
Function at 0x140067cc4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140067cda
mov al, 1
jmp 0x140067d3a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140067ceb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140067d38
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006c7f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140067d38
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140067d38
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140067d38
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140067d3a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14006bfa4
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14006bfd4
xor eax, eax
jmp 0x14006c097
mov rbp, rbx
cmp word [rax], si
je 0x14006bff9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006bfe0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006bfdc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14006bec4
movsxd r14, eax
test eax, eax
jne 0x14006c037
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006bfcd
mov rcx, r14
call fcn.1400683cc
mov rdi, rax
test rax, rax
jne 0x14006c050
xor ecx, ecx
call fcn.140065b48
jmp 0x14006c02c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14006bec4
test eax, eax
jne 0x14006c081
mov rcx, rdi
call fcn.140065b48
jmp 0x14006c08b
xor ecx, ecx
call fcn.140065b48
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14006ede4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140064660
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14006ee85
cmp ebx, dword [rsp + 0x30]
je 0x14006ee7e
test esi, esi
je 0x14006ee7e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14006ee59
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006ee66
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006ee43
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14006ee6a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006ee87
mov eax, 1
jmp 0x14006ee87
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007352c
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.140064244
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140064244
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007367c
cmp rax, 0xffffffffffffffff
je 0x14007367c
xor edi, edi
test rbp, rbp
jle 0x140073627
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140065ad0
mov rbx, rax
test rax, rax
jne 0x1400735b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007361d
mov edx, 0x8000
mov ecx, r14d
call fcn.14005ff74
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.1400673c4
cmp eax, 0xffffffff
je 0x1400735fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400735c4
mov edx, r15d
mov ecx, r14d
call fcn.14005ff74
jmp 0x14007361d
cmp byte [rsi + 0x38], dil
je 0x140073614
cmp dword [rsi + 0x34], 5
jne 0x140073614
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007361d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140065b48
jmp 0x140073690
jns 0x140073690
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140064244
cmp rax, 0xffffffffffffffff
jne 0x140073648
cmp byte [rsi + 0x30], dil
je 0x140073690
mov edi, dword [rsi + 0x2c]
jmp 0x140073690
mov ecx, r14d
call fcn.14006c7f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140073690
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 0x140073690
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140073689
mov eax, dword [rsi + 0x2c]
jmp 0x14007368e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140064244
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 0x140074990
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400749b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400749b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000121c
Capabilities:
Query service status
Resolve function by parsing pe exports

Disassembly:
jmp 0x14001aa60
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rsp
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x24], eax
xor eax, eax
cmp eax, 1
je 0x14001ac38
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001aad7
mov dword [rsp + 0x48], 1
jmp 0x14001aadf
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x28], 0
je 0x14001ab15
lea rax, str.QueryServiceStatus_hService__status_
test rax, rax
je 0x14001ab15
mov dword [rsp + 0x4c], 1
jmp 0x14001ab1d
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001ab51
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x44]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x40]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x14001aaf8
xor eax, eax
test eax, eax
jne 0x14001aab6
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x70]
cmp dword [rax + 4], ecx
jne 0x14001ab7c
mov eax, 1
jmp 0x14001ac3d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x78]
cmp eax, dword [rsp + 0x80]
jbe 0x14001ab96
xor eax, eax
jmp 0x14001ac3d
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x20], eax
je 0x14001abc7
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x38], eax
jmp 0x14001abed
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x24]
cmp dword [rax + 0x14], ecx
jb 0x14001abe9
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x24], eax
jmp 0x14001abed
xor eax, eax
jmp 0x14001ac3d
xor edx, edx
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x18]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x3e8
jae 0x14001ac17
mov dword [rsp + 0x3c], 0x3e8
cmp dword [rsp + 0x3c], 0x2710
jbe 0x14001ac29
mov dword [rsp + 0x3c], 0x2710
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001aaab
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140001249
Capabilities:
Set registry value

Disassembly:
jmp 0x1400345c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x1400345fd
mov dword [rsp + 0x34], 1
jmp 0x140034605
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140034620
lea rax, str.m_hKey___0
test rax, rax
jne 0x14003465a
lea rax, str.__atl_condVal_m_hKey___0_
mov qword [rsp + 0x28], rax
lea rax, [0x1401702e4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1874
lea rdx, [0x140170680]
mov ecx, 2
call fcn.14009dc40
cmp eax, 1
jne 0x14003465a
int3
cmp dword [rsp + 0x30], 0
jne 0x14003466b
mov ecx, 0x80004005
call fcn.1400020ae
xor eax, eax
test eax, eax
jne 0x1400345e8
xor eax, eax
test eax, eax
jne 0x140034675
xor eax, eax
test eax, eax
jne 0x1400345e8
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x40
pop rdi
ret
Function at 0x14000132f
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400242a0
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov qword [rsp + 0x48], 0xfffffffffffffffe
lea rcx, [rsp + 0x38]
call fcn.14000200e
nop
mov r8d, 0x9ca
lea rdx, [0x14017e1f8]
lea rcx, [rsp + 0x38]
call fcn.14000151e
lea rcx, [rsp + 0x38]
call fcn.14000110e
mov qword [rsp + 0x50], rax
lea rcx, [0x1401e7808]
call fcn.14000110e
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x14002431a
mov dword [rsp + 0x58], 1
jmp 0x140024322
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14002433d
lea rax, str.SetEnvironmentVariableW_Common::BuildNumberEnvironmentVariableName__sBuild_
test rax, rax
jne 0x140024377
lea rax, str.__atl_condVal_SetEnvironmentVariableW_Common::BuildNumberEnvironmentVariableName__sBuild__
mov qword [rsp + 0x28], rax
lea rax, [0x1401702e4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 7
lea rdx, str.c:_buildagentwork6ef1b807bd9726a1commonCommon.inl
mov ecx, 2
call fcn.14009dc40
cmp eax, 1
jne 0x140024377
int3
cmp dword [rsp + 0x44], 0
jne 0x140024388
mov ecx, 0x80004005
call fcn.1400020ae
xor eax, eax
test eax, eax
jne 0x1400242e0
lea rcx, [rsp + 0x38]
call fcn.140001195
mov rcx, rsp
lea rdx, [0x14017d8a0]
call fcn.14009e8b0
add rsp, 0x60
pop rdi
ret

Function at 0x140001497
Capabilities:
Set registry value

Disassembly:
jmp 0x140033ad0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x140033b0d
mov dword [rsp + 0x34], 1
jmp 0x140033b15
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140033b30
lea rax, str.m_hKey___0
test rax, rax
jne 0x140033b6a
lea rax, str.__atl_condVal_m_hKey___0_
mov qword [rsp + 0x28], rax
lea rax, [0x1401702e4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x186c
lea rdx, [0x140170680]
mov ecx, 2
call fcn.14009dc40
cmp eax, 1
jne 0x140033b6a
int3
cmp dword [rsp + 0x30], 0
jne 0x140033b7b
mov ecx, 0x80004005
call fcn.1400020ae
xor eax, eax
test eax, eax
jne 0x140033af8
xor eax, eax
test eax, eax
jne 0x140033b85
xor eax, eax
test eax, eax
jne 0x140033af8
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x40
pop rdi
ret
Function at 0x1400014d8
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140029270
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x530
mov rdi, rsp
mov ecx, 0x14c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x540]
mov qword [rsp + 0x510], 0xfffffffffffffffe
mov rax, qword [0x1401e0280]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov dword [rsp + 0x34], 0x100
mov eax, dword [rsp + 0x34]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140001762
nop
mov eax, dword [rsp + 0x34]
shl rax, 2
mov dword [rsp + 0x464], eax
lea rcx, [rsp + 0x50]
call fcn.140001d11
lea r8, [rsp + 0x24]
mov edx, dword [rsp + 0x464]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x140029313
mov dword [rsp + 0x518], 1
jmp 0x14002931e
mov dword [rsp + 0x518], 0
mov eax, dword [rsp + 0x518]
mov dword [rsp + 0x468], eax
cmp dword [rsp + 0x468], 0
jne 0x140029357
mov dword [rsp + 0x500], 0
lea rcx, [rsp + 0x50]
call fcn.140002392
mov eax, dword [rsp + 0x500]
jmp 0x140029509
xor eax, eax
test eax, eax
jne 0x1400292e4
mov eax, dword [rsp + 0x464]
cmp dword [rsp + 0x24], eax
jne 0x140029424
xor edx, edx
mov eax, dword [rsp + 0x34]
mov ecx, 2
div ecx
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400019ec
mov eax, dword [rsp + 0x34]
shl rax, 2
mov dword [rsp + 0x464], eax
lea rcx, [rsp + 0x50]
call fcn.140001d11
lea r8, [rsp + 0x24]
mov edx, dword [rsp + 0x464]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1400293d5
mov dword [rsp + 0x51c], 1
jmp 0x1400293e0
mov dword [rsp + 0x51c], 0
mov eax, dword [rsp + 0x51c]
mov dword [rsp + 0x46c], eax
cmp dword [rsp + 0x46c], 0
jne 0x140029419
mov dword [rsp + 0x504], 0
lea rcx, [rsp + 0x50]
call fcn.140002392
mov eax, dword [rsp + 0x504]
jmp 0x140029509
xor eax, eax
test eax, eax
jne 0x1400293a6
jmp 0x14002935d
mov eax, dword [rsp + 0x24]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rsp + 0x470], eax
mov dword [rsp + 0x474], 0
jmp 0x140029456
mov eax, dword [rsp + 0x474]
inc eax
mov dword [rsp + 0x474], eax
mov eax, dword [rsp + 0x470]
cmp dword [rsp + 0x474], eax
jae 0x1400294ed
lea rcx, [rsp + 0x50]
call fcn.140001d11
mov ecx, dword [rsp + 0x474]
cmp dword [rax + rcx*4], 0
je 0x1400294e8
lea rcx, [rsp + 0x490]
call fcn.140001e06
nop
lea rcx, [rsp + 0x50]
call fcn.140001d11
mov ecx, dword [rsp + 0x474]
movzx r9d, byte [rsp + 0x550]
lea r8, [rsp + 0x490]
mov edx, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x540]
call fcn.1400013d9
test eax, eax
je 0x1400294db
lea rdx, [rsp + 0x490]
mov rcx, qword [rsp + 0x548]
call fcn.1400021e4
nop
lea rcx, [rsp + 0x490]
call fcn.140001c21
jmp 0x140029446
mov dword [rsp + 0x508], 1
lea rcx, [rsp + 0x50]
call fcn.140002392
mov eax, dword [rsp + 0x508]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14017d290]
call fcn.14009e8b0
mov rax, rdi
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1400a3850
add rsp, 0x530
pop rdi
ret
Function at 0x140001b09
Capabilities:
Set registry value

Disassembly:
jmp 0x1400348b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x1400348f2
mov dword [rsp + 0x38], 1
jmp 0x1400348fa
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140034915
lea rax, str.m_hKey___0
test rax, rax
jne 0x14003494f
lea rax, str.__atl_condVal_m_hKey___0_
mov qword [rsp + 0x28], rax
lea rax, [0x1401702e4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x187d
lea rdx, [0x140170680]
mov ecx, 2
call fcn.14009dc40
cmp eax, 1
jne 0x14003494f
int3
cmp dword [rsp + 0x30], 0
jne 0x140034960
mov ecx, 0x80004005
call fcn.1400020ae
xor eax, eax
test eax, eax
jne 0x1400348dd
xor eax, eax
test eax, eax
jne 0x14003496a
xor eax, eax
test eax, eax
jne 0x1400348dd
cmp qword [rsp + 0x60], 0
je 0x14003498c
mov dword [rsp + 0x3c], 1
jmp 0x140034994
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400349af
lea rax, str.pszValue___NULL
test rax, rax
jne 0x1400349e9
lea rax, str.__atl_condVal_pszValue___NULL_
mov qword [rsp + 0x28], rax
lea rax, [0x1401702e4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x187e
lea rdx, [0x140170680]
mov ecx, 2
call fcn.14009dc40
cmp eax, 1
jne 0x1400349e9
int3
cmp dword [rsp + 0x34], 0
jne 0x1400349fa
mov eax, 0xd
jmp 0x140034a86
xor eax, eax
test eax, eax
jne 0x14003497a
cmp dword [rsp + 0x68], 1
je 0x140034a4c
cmp dword [rsp + 0x68], 2
je 0x140034a4c
lea rax, str._dwType____1______dwType____2___
mov qword [rsp + 0x28], rax
lea rax, [0x1401702e4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x187f
lea rdx, [0x140170680]
mov ecx, 2
call fcn.14009dc40
cmp eax, 1
jne 0x140034a4c
int3
mov rcx, qword [rsp + 0x60]
call fcn.1400a1b70
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x40
pop rdi
ret