joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013c60
Capabilities:
Get common file path
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1408f0280]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [rax - 1]
mov rcx, qword [rbp - 0x20]
cmp rdi, rcx
ja 0x140013cd9
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rdi
mov byte [rax + rdi], 0
jmp 0x140013d2d
sub rdi, rcx
mov rdx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140013d16
lea rax, [rcx + rdi]
mov qword [rbp - 0x20], rax
lea rbx, [rbp - 0x30]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x30]
add rbx, rcx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.140153440
mov byte [rbx + rdi], 0
jmp 0x140013d2d
mov byte [rsp + 0x20], 0
mov r9, rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1400128c0
mov edx, dword [rbp - 0x20]
inc edx
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r8d, reloc.WS2_32.dll_listen
lea rdx, [0x14017f628]
lea rcx, [rbp - 0x30]
call fcn.140013eb0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
mov ecx, eax
call fcn.1401181b8
mov rsi, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140153440
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
mov r9, rsi
mov r8d, edi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x38]
lea rdx, [0x14017f602]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_VerQueryValueA]
mov dword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x38]
mov ecx, dword [rdx + 0x10]
mov eax, ecx
shr eax, 0x10
mov dword [rbp - 0x4c], eax
movzx eax, cx
mov dword [rbp - 0x48], eax
mov ecx, dword [rdx + 0x14]
mov eax, ecx
shr eax, 0x10
mov dword [rbp - 0x44], eax
movzx eax, cx
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [r14], xmm0
mov dword [r14 + 0x10], eax
mov rcx, rsi
call fcn.140117d3c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140013e35
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013e30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013e61
call fcn.140117d3c
mov rax, r14
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140117aa0
lea r11, [rsp + 0x80]
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.140127908
int3
Function at 0x140015b80
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140015ba2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140015c1c
mov rdi, r14
mov rcx, rbx
call fcn.140016e90
test rax, rax
jle 0x140015bf4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140152da0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140015c0c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140015c14
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140015bb6
sub r14, rdi
jmp 0x140015cff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140015c33
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140015c35
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140015c67
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140152da0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140015cfc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140015ca2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140015cdd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14012dd20
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140015cfc
cmp rbp, rax
ja 0x140015cb0
test rbp, rbp
je 0x140015cfc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14012dd20
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14001a240
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
mov eax, 0x1070
call fcn.1401185f0
sub rsp, rax
mov rax, qword [0x1408f0280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, qword [rsp + 0x10b0]
xor ebp, ebp
mov qword [rsp + 0x38], r9
mov r12, r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
test r8, r8
jne 0x14001a28c
mov rdx, rbp
jmp 0x14001a3a0
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.140019040
test al, al
je 0x14001a284
mov qword [rsp + 0x1068], rsi
lea rdx, str.PAGE
mov qword [rsp + 0x1060], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1058], r14
mov qword [rsp + 0x1050], r15
nop
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x14001a2d0
movsxd rax, dword [rsp + 0x7c]
lea rcx, [rsp + 0x40]
add rcx, rax
mov qword [rsp + 0x1098], rbx
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r15, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r15, rax
test r14d, r14d
je 0x14001a375
nop word [rax + rax]
mov eax, esi
mov r8, rdi
lea rcx, [rax + rax*4]
lea rbx, [r15 + rcx*8]
mov rcx, rbx
call fcn.1401537e0
test eax, eax
jne 0x14001a33e
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x14001a330
cmp rdi, rax
je 0x14001a34e
inc esi
cmp esi, r14d
jae 0x14001a375
lea rdx, str.PAGE
jmp 0x14001a310
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x14001a375
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rdx, rax
je 0x14001a375
test ecx, ecx
je 0x14001a375
lea rax, [rsp + 0x40]
mov ebp, ecx
sub rdx, rax
add rdx, r12
jmp 0x14001a378
mov rdx, rbp
mov rbx, qword [rsp + 0x1098]
mov rdi, qword [rsp + 0x1060]
mov rsi, qword [rsp + 0x1068]
mov r14, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1050]
mov rax, qword [rsp + 0x30]
mov rcx, r13
mov r9, qword [rsp + 0x38]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.14001a130
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140117aa0
add rsp, 0x1070
pop r13
pop r12
pop rbp
ret
Function at 0x14001e230
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1408f0280]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xor esi, esi
lea rcx, [0x14017fa30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001e426
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x14001e451
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001e2a0
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_60
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x1f]
call fcn.14001bf90
nop
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 7
cmova rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x3f]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x14001e457
cmp qword [rbx + 0x18], 7
jbe 0x14001e2f7
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], Ordinal_35
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 1]
call fcn.14001bf90
nop
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova rdx, qword [rbp - 1]
lea r8, [rbp - 9]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14001e346
cmp eax, 2
sete bl
jmp 0x14001e396
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x1f]
call fcn.140051ff0
lea rdx, [rbp - 1]
mov rcx, 0xffffffff80000002
test al, al
jne 0x14001e37c
cmp qword [rbp + 0x17], 7
cmova rdx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor bl, bl
jmp 0x14001e396
cmp qword [rbp + 0x17], 7
cmova rdx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14001e394
xor bl, bl
jmp 0x14001e396
mov bl, 1
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x14001e3d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e3d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e45d
call fcn.140117d3c
movdqa xmm0, xmmword [0x1408d3b60]
movdqu xmmword [rbp + 0xf], xmm0
mov word [rbp - 1], si
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x14001e423
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e41e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e44b
call fcn.140117d3c
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140117aa0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140127908
int3
call fcn.140010960
nop
call fcn.140010960
nop
call fcn.140127908
int3
Function at 0x14001e6b0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x1408f0280]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001e73e
test rbx, rbx
je 0x14001e706
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001e6f0
test eax, eax
jns 0x14001e75f
test rbx, rbx
je 0x14001e764
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14001e861
test rbx, rbx
jne 0x14001e76b
xor eax, eax
jmp 0x14001e861
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14001e841
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x14001e7c0
lea rcx, [rsp + 0x28]
call fcn.140012170
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14001e7e0
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call fcn.14012e29c
test eax, eax
je 0x14001e877
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001e837
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e832
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e8ca
call fcn.140117d3c
inc edi
cmp edi, dword [rbx]
jb 0x14001e784
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140117aa0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001e8c5
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e8c0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e8ca
call fcn.140117d3c
mov rax, rdi
jmp 0x14001e854
call fcn.140127908
int3
Function at 0x14004f970
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov r15, rcx
test rdx, rdx
je 0x14004fb37
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004fb37
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14004fb37
mov rcx, qword [rax + rdx + 0x90]
mov rax, rcx
shr rax, 0x20
test ecx, ecx
je 0x14004fb33
test eax, eax
je 0x14004fb33
mov ebp, ecx
add rbp, rdx
je 0x14004fb33
xor r12d, r12d
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x14004fb33
lea rdx, [rsi + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14004fa10
lea rcx, [rsp + 0x20]
call fcn.140012170
nop
lea rdx, [rsp + 0x20]
call fcn.14004e630
mov r14, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14004fa6f
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fa6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fb52
call fcn.140117d3c
test r14, r14
je 0x14004fb29
mov ebx, dword [rbp + 0x10]
add rbx, rsi
je 0x14004fb29
mov rax, qword [rbx]
test rax, rax
je 0x14004fb29
js 0x14004fb1f
lea rdx, [rsi + 2]
add rdx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14004fab6
lea rcx, [rsp + 0x20]
call fcn.140012170
nop
lea r8, [rsp + 0x20]
mov rdx, r14
mov rcx, r15
call fcn.14004e980
mov rdi, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14004fb17
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fb12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fb52
call fcn.140117d3c
test rdi, rdi
je 0x14004fb1f
mov qword [rbx], rdi
add rbx, 8
jne 0x14004fa84
add rbp, 0x14
jne 0x14004f9e1
mov al, 1
jmp 0x14004fb39
xor al, al
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.140127908
int3
Function at 0x140050c30
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1408f0280]
xor rax, rsp
mov qword [rbp + 0x30], rax
movabs rax, 0x6a80d457b7753c9d
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x80]
movabs rax, 0x3374e4025e5f56e6
mov rbx, rcx
mov qword [rbp - 0x18], rax
movabs rcx, 0x3660fa9ad956650e
movabs rax, 0x7e2ea3ed8b91ad6f
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x10], rax
mov r9d, 0xf003f
movabs rax, 0x688749d00d316988
mov qword [rbp + 0x28], rcx
mov qword [rbp - 8], rax
xor r8d, r8d
movabs rax, 0x20c9ce736c7488e1
mov rcx, 0xffffffff80000002
mov qword [rbp], rax
movabs rax, 0xa7f79c1e0d8fe80a
mov qword [rbp + 8], rax
movabs rax, 0x26871aa9414f6513
mov qword [rbp + 0x10], rax
movabs rax, 0xf6b521cc197a6dcc
mov qword [rbp + 0x18], rax
movabs rax, 0x606a550f0487aac5
mov qword [rbp + 0x20], rax
movabs rax, 0x6ad4d404b72c3cce
mov qword [rsp + 0x30], rax
movabs rax, 0x3337e45e5e1256a3
mov qword [rsp + 0x38], rax
movabs rax, 0x7e4ba39f8be3ad1a
movups xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rbp - 0x20]
mov qword [rsp + 0x40], rax
movabs rax, 0x68e849930d4569e6
mov qword [rsp + 0x48], rax
movabs rax, 0x20a6ce016c00888f
movups xmm1, xmmword [rsp + 0x40]
xorps xmm1, xmmword [rbp - 0x10]
mov qword [rsp + 0x50], rax
movabs rax, 0xa7839c7b0ddce866
mov qword [rsp + 0x58], rax
movabs rax, 0x26f51acc411c654f
movups xmm2, xmmword [rsp + 0x50]
xorps xmm2, xmmword [rbp]
mov qword [rsp + 0x60], rax
movabs rax, 0xf6d021af19136dba
mov qword [rsp + 0x68], rax
movabs rax, 0x606a550f0487aab6
movups xmm3, xmmword [rsp + 0x60]
xorps xmm3, xmmword [rbp + 0x10]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x30]
movups xmm4, xmmword [rsp + 0x70]
xorps xmm4, xmmword [rbp + 0x20]
movdqa xmmword [rbp - 0x40], xmm4
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x60], xmm2
movdqa xmmword [rbp - 0x50], xmm3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140050de4
xor bl, bl
jmp 0x140050e0b
cmp qword [rbx + 0x50], 7
lea rdx, [rbx + 0x38]
jbe 0x140050df2
mov rdx, qword [rdx]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
cmp eax, 2
je 0x140050e09
test eax, eax
je 0x140050e09
xor bl, bl
jmp 0x140050e0b
mov bl, 1
mov rcx, qword [rbp - 0x30]
test rcx, rcx
jle 0x140050e1a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140117aa0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rbp
ret
Function at 0x1400521a0
Capabilities:
Access pe header

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x1408f0280]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rcx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rbx, rax
test rax, rax
jne 0x1400521d1
xor edi, edi
mov eax, edi
jmp 0x14005233d
xorps xmm0, xmm0
mov qword [rsp + 0x88], rsi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x90], r14
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call fcn.140052c90
lea rcx, [rsp + 0x20]
call rax
movzx esi, word [rbx + 0x14]
xor edi, edi
movzx r8d, word [rbx + 6]
add rsi, rbx
mov r14d, dword [rsp + 0x48]
movzx edx, di
cmp di, r8w
jae 0x140052254
mov r10, qword [rbx + 0x30]
lea r11d, [r14 - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, dx
lea rcx, [rax + rax*4]
mov eax, dword [rsi + rcx*8 + 0x24]
mov ecx, edi
add rax, r10
test r11, rax
sete cl
test r11, rax
jne 0x140052261
inc dx
cmp dx, r8w
jb 0x140052230
lea ecx, [r14 - 1]
test qword [rbx + 0x30], rcx
mov ecx, edi
sete cl
test ecx, ecx
je 0x140052283
call fcn.14003edb0
mov edx, dword [rbx + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call rax
mov r14, rax
test rax, rax
jne 0x14005228a
mov eax, edi
jmp 0x14005232d
mov rdx, r14
mov rcx, rbx
call fcn.140052360
lea rax, [0x1400523f0]
mov rcx, r14
sub rax, rbp
add rax, r14
call rax
test eax, eax
jne 0x1400522af
mov ebx, edi
jmp 0x140052319
mov rcx, rbp
mov qword [rsp + 0x98], r15
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rsi, rax
test rax, rax
je 0x14005230f
movzx r15d, word [rax + 0x14]
movzx ebx, di
add r15, rax
cmp di, word [rax + 6]
jae 0x140052301
nop dword [rax]
movzx eax, bx
lea rdx, [rax + rax*4]
mov ecx, dword [r15 + rdx*8 + 0x24]
add rcx, rbp
call fcn.140052be0
test eax, eax
je 0x14005230f
inc bx
cmp bx, word [rsi + 6]
jb 0x1400522e0
mov rcx, rbp
call fcn.140052be0
mov ebx, eax
test eax, eax
jne 0x140052311
mov ebx, edi
mov r15, qword [rsp + 0x98]
call fcn.14003fa40
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call rax
mov eax, ebx
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140117aa0
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret
Function at 0x140056ce0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1408f0280]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov edx, 0x8000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140056d27
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140117aa0
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
mov qword [rsp + 0x70], rsi
mov edx, 0x1000000
mov r8d, 0x203000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x140056d63
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140056eae
mov qword [rsp + 0x60], rbx
xor ecx, ecx
mov qword [rsp + 0x68], rbp
mov rdx, rsi
mov qword [rsp + 0x78], r14
mov r14d, 1
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
xor ebx, ebx
lea rcx, str._ThisIsAnInvalidEnvironmentVariableName_________:__
test eax, eax
mov ebp, ebx
mov r8d, 0x1000000
mov rdx, rsi
setne bpl
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rdx, rsi
lea rcx, str._ThisIsAnInvalidFileName_________:__
test eax, eax
cmovne ebp, r14d
call qword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
test eax, eax
lea edx, [rbx + 0x45]
mov r8, rsi
cmovne ebp, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapQueryInformation]
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
test eax, eax
lea rcx, [rbx - 1]
mov r8, rsi
mov edx, 0x69696969
cmovne ebp, r14d
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, rsi
lea rcx, [rbx - 1]
test eax, eax
cmovne ebp, r14d
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov qword [rsp + 0x28], rsi
lea rdx, [fcn.140056ce0]
test eax, eax
mov qword [rsp + 0x20], rbx
cmovne ebp, r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
mov r14, qword [rsp + 0x78]
test eax, eax
je 0x140056e80
test ebp, ebp
jne 0x140056e80
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], 0x1000
mov qword [rsp + 0x28], rax
mov r9, rdi
lea rax, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rsi
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
jne 0x140056e80
cmp qword [rsp + 0x30], rbx
setne bl
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140117aa0
add rsp, 0x50
pop rdi
ret