joyce8/EMBER2024-capa huggingface dataset:
Function at 0x27de1b11df0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
movsxd r9, edx
mov rbx, r8
mov eax, r9d
mov rsi, rcx
cdq
and edx, 3
add eax, edx
mov r8d, eax
and eax, 3
sar r8d, 2
cmp eax, edx
jne 0x27de1b12010
test r9d, r9d
je 0x27de1b12010
cmp byte [r9 + rcx - 1], 0x3d
lea eax, [r8 + r8*2]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
mov rdi, r9
mov qword [rsp + 0x40], r14
mov dword [rbx], eax
jne 0x27de1b11e4b
dec eax
mov dword [rbx], eax
cmp byte [r9 + rcx - 2], 0x3d
jne 0x27de1b11e57
dec eax
mov dword [rbx], eax
add eax, 1
mov r14, 0xffffffffffffffff
mov ecx, eax
cmovb rcx, r14
call fcn.27de1b1f28c
mov ecx, dword [rbx]
xor edx, edx
inc ecx
mov rbp, rax
movsxd r8, ecx
mov rcx, rax
call fcn.27de1b172d0
test rdi, rdi
jle 0x27de1b11ff3
xor ebx, ebx
lea r11, [rsi + 2]
dec rdi
shr rdi, 2
inc rdi
lea esi, [rbx + 0x3f]
nop dword [rax]
movzx ecx, byte [r11 - 2]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x27de1b11eb1
sub cl, 0x41
jmp 0x27de1b11ee0
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x27de1b11ebd
sub cl, 0x47
jmp 0x27de1b11ee0
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x27de1b11ec9
add cl, 4
jmp 0x27de1b11ee0
cmp cl, 0x2b
jne 0x27de1b11ed2
mov cl, 0x3e
jmp 0x27de1b11ee0
cmp cl, 0x2f
mov eax, 0xff
cmove eax, esi
movzx ecx, al
movsx edx, byte [r11 - 1]
lea eax, [rdx - 0x41]
cmp al, 0x19
ja 0x27de1b11ef2
lea r8d, [rdx - 0x41]
jmp 0x27de1b11f23
lea eax, [rdx - 0x61]
cmp al, 0x19
ja 0x27de1b11eff
lea r8d, [rdx - 0x47]
jmp 0x27de1b11f23
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x27de1b11f0c
lea r8d, [rdx + 4]
jmp 0x27de1b11f23
cmp dl, 0x2b
jne 0x27de1b11f19
mov r8d, 0x3e
jmp 0x27de1b11f23
cmp dl, 0x2f
mov r8d, r14d
cmove r8d, esi
movsx r9d, byte [r11]
lea eax, [r9 - 0x41]
cmp al, 0x19
ja 0x27de1b11f35
lea edx, [r9 - 0x41]
jmp 0x27de1b11f68
lea eax, [r9 - 0x61]
cmp al, 0x19
ja 0x27de1b11f43
lea edx, [r9 - 0x47]
jmp 0x27de1b11f68
lea eax, [r9 - 0x30]
cmp al, 9
ja 0x27de1b11f51
lea edx, [r9 + 4]
jmp 0x27de1b11f68
cmp r9b, 0x2b
jne 0x27de1b11f5e
mov edx, 0x3e
jmp 0x27de1b11f68
cmp r9b, 0x2f
mov edx, r14d
cmove edx, esi
movsx r10d, byte [r11 + 1]
lea eax, [r10 - 0x41]
cmp al, 0x19
ja 0x27de1b11f7b
lea r9d, [r10 - 0x41]
jmp 0x27de1b11fb0
lea eax, [r10 - 0x61]
cmp al, 0x19
ja 0x27de1b11f89
lea r9d, [r10 - 0x47]
jmp 0x27de1b11fb0
lea eax, [r10 - 0x30]
cmp al, 9
ja 0x27de1b11f97
lea r9d, [r10 + 4]
jmp 0x27de1b11fb0
cmp r10b, 0x2b
jne 0x27de1b11fa5
mov r9d, 0x3e
jmp 0x27de1b11fb0
cmp r10b, 0x2f
mov r9d, r14d
cmove r9d, esi
shl cl, 2
mov eax, r8d
sar eax, 4
or al, cl
mov byte [rbx + rbp], al
test edx, edx
js 0x27de1b11fd2
mov eax, edx
shl r8b, 4
sar eax, 2
or al, r8b
mov byte [rbx + rbp + 1], al
test r9d, r9d
js 0x27de1b11fe1
shl dl, 6
or dl, r9b
mov byte [rbx + rbp + 2], dl
add r11, 4
add rbx, 3
sub rdi, 1
jne 0x27de1b11ea0
mov r14, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x27de1b16bd4
Capabilities:
Parse pe header

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

Function at 0x27de1b20234
Capabilities:
Parse pe header

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

Function at 0x27de1b26064
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 0x27de1b26094
xor eax, eax
jmp 0x27de1b26157
mov rbp, rbx
cmp word [rax], si
je 0x27de1b260b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x27de1b260a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x27de1b2609c
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.27de1b25f84
movsxd r14, eax
test eax, eax
jne 0x27de1b260f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x27de1b2608d
mov rcx, r14
call fcn.27de1b23164
mov rdi, rax
test rax, rax
jne 0x27de1b26110
xor ecx, ecx
call fcn.27de1b218c4
jmp 0x27de1b260ec
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.27de1b25f84
test eax, eax
jne 0x27de1b26141
mov rcx, rdi
call fcn.27de1b218c4
jmp 0x27de1b2614b
xor ecx, ecx
call fcn.27de1b218c4
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 0x27de1b2baa8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.27de1b21f4c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x27de1b2bb32
cmp byte [rbp - 0x21], r15b
je 0x27de1b2bb2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x27de1b2bb68
call fcn.27de1b27abc
test eax, eax
jne 0x27de1b2bb54
cmp byte [rbp - 0x21], r15b
je 0x27de1b2bb4c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x27de1b2bb68
cmp byte [rbp - 0x21], r15b
je 0x27de1b2bb65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.27de1b21dd0
test eax, eax
jne 0x27de1b2bc08
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.27de1b21f4c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x27de1b2bba7
cmp byte [rbp - 0x21], r15b
je 0x27de1b2bbdc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x27de1b2bbdc
call fcn.27de1b27abc
test eax, eax
jne 0x27de1b2bbc8
cmp byte [rbp - 0x21], r15b
je 0x27de1b2bbc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x27de1b2bbdc
cmp byte [rbp - 0x21], r15b
je 0x27de1b2bbd9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.27de1b21dd0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x27de1b2bc08
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x27de1b2bc0b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x27de1b2bc19
mov rcx, rdi
call fcn.27de1b218c4
cmp byte [rbp + 0x3f], r15b
je 0x27de1b2bc28
mov rcx, qword [rbp + 0x27]
call fcn.27de1b218c4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400549b8
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x40
xor eax, eax
lea r8, [r11 + 0x10]
and dword [rcx + 8], eax
xorps xmm0, xmm0
and qword [r11 + 0x10], rax
mov rsi, rcx
movups xmmword [rsp + 0x20], xmm0
lea edx, [rax + 1]
mov qword [r11 - 0x18], rax
xor r9d, r9d
lea rcx, str.D:PAI_A_OICI_FA___WD_
xor ebx, ebx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x140054a32
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140054a18
mov edi, 0x80004005
jmp 0x140054a26
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140079c40
jmp 0x140054af5
mov rax, qword [rsp + 0x58]
lea r8, str.Global552FFA80_3393_423d_8671_7BA046BB5906
and dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
jne 0x140054a8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140054aba
lea r8, str.Global552FFA80_3393_423d_8671_7BA046BB5906
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rbx, rax
test rax, rax
je 0x140054a07
mov edx, 0x2710
mov rcx, rbx
mov rbp, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140054adb
cmp eax, 0x80
je 0x140054ad1
cmp eax, 0x102
jne 0x140054ae2
mov edi, 0x800705b4
jmp 0x140054a26
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x140054af5
jmp 0x140054a26
mov edi, 0x8000ffff
jmp 0x140054a26
mov dword [rsi + 8], 1
mov rcx, qword [rsi]
xor ebx, ebx
test rcx, rcx
je 0x140054af2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbp
mov ecx, edi
call fcn.140079c60
test rbx, rbx
je 0x140054b0a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140054b1a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400556c8
Capabilities:
Get token membership

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x28
lea rax, str.S_1_5_80_123231216_2592883651_3715271367_3753151631_4175906628
xor ecx, ecx
mov qword [rbp + 0x50], rax
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, 0x6bd
jne 0x1400556fa
xor ebx, ebx
jmp 0x1400558bf
test eax, eax
je 0x14005572c
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
movzx ebx, ax
mov r12d, 0x80004005
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r12d
mov ecx, ebx
call fcn.140079c40
jmp 0x1400558bf
and dword [rbp + 0x38], 0
lea rdx, [rbp + 0x38]
call fcn.140069480
lea rdx, [0x140439858]
mov ebx, eax
lea rcx, [0x14041c6f8]
call fcn.1400edf70
test ebx, ebx
jns 0x140055771
mov ecx, ebx
call fcn.140079c40
lea rdx, [0x1404387d8]
lea rcx, [0x140423648]
call fcn.1400ed8ec
jmp 0x1400558b7
cmp dword [rbp + 0x38], 0
je 0x14005577e
xor ebx, ebx
jmp 0x1400558b7
cmp dword [0x14043f5e4], 0
je 0x1400558ab
xor r14d, r14d
lea r15, [rbp + 0x50]
mov r12d, 0x80004005
mov rcx, qword [r15]
lea rdx, [rbp + 0x48]
xor esi, esi
xor ebx, ebx
and qword [rbp + 0x48], rsi
and dword [rbp + 0x40], ebx
mov dword [rbp + 0x38], esi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x1400557dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400557c6
mov ebx, r12d
jmp 0x1400557d4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140079c40
jmp 0x1400557f7
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400557b7
mov esi, dword [rbp + 0x40]
mov dword [rbp + 0x38], esi
mov ecx, ebx
call fcn.140079c60
lea rcx, [rbp + 0x48]
call fcn.140069fec
test ebx, ebx
js 0x1400558ea
test esi, esi
jne 0x140055777
inc r14d
add r15, 8
cmp r14d, 1
jb 0x140055798
lea r8, [rbp + 0x38]
lea edx, [rsi + 0x12]
call fcn.14006f4bc
lea rdx, [0x14043a2a8]
mov ebx, eax
lea rcx, [0x14041d048]
call fcn.1400edc30
test ebx, ebx
js 0x1400558b0
cmp dword [rbp + 0x38], esi
jne 0x140055777
lea r8, [rbp + 0x38]
lea edx, [rsi + 0x13]
call fcn.14006f4bc
mov ebx, eax
test eax, eax
jns 0x14005586c
mov ecx, eax
jmp 0x1400558b2
cmp dword [rbp + 0x38], 0
jne 0x140055777
lea r8, [rbp + 0x38]
mov edx, SafeArrayUnaccessData
call fcn.14006f4bc
mov ebx, eax
test eax, eax
js 0x140055868
cmp dword [rbp + 0x38], 0
jne 0x140055777
lea rcx, [rbp + 0x38]
call fcn.1400554cc
test eax, eax
js 0x1400558ab
cmp dword [rbp + 0x38], 0
jne 0x140055777
mov ebx, 0xc004f025
mov ecx, ebx
call fcn.140079c40
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
mov ecx, ebx
call fcn.140079c60
lea rdx, [0x1404380e4]
lea rcx, [0x140426380]
call fcn.1400ed5b8
mov eax, ebx
add rsp, 0x28
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret
mov ecx, ebx
call fcn.140079c40
lea rdx, [0x14043975c]
lea rcx, [0x14042b838]
call fcn.1400ee2b8
jmp 0x1400558b7
Function at 0x14005ab54
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
and qword [rbp + 0x1f], 0
xorps xmm0, xmm0
and qword [rbp + 0x47], 0
mov rdi, rdx
mov rbx, rcx
movdqa xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x27], xmm0
lea rdx, [0x140439e70]
movdqa xmmword [rbp + 0x37], xmm1
lea rcx, [0x14041cc44]
call fcn.1400ed270
lea rax, [0x140004fd8]
mov qword [rbp - 0x29], 3
mov qword [rbp - 0x21], rax
lea rdx, [0x14043cb58]
lea rax, [rbp + 0x67]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x19], rax
lea rcx, [0x1404176b8]
lea rax, [rbp + 7]
mov qword [rbp - 0x11], rax
call fcn.1400ee940
xor r9d, r9d
lea rdx, [rbp - 0x29]
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x67]
test ebx, ebx
jns 0x14005ac02
mov ecx, ebx
call fcn.140079c40
jmp 0x14005ac6b
lea rdx, [0x140436e78]
lea rcx, [0x1404222bc]
call fcn.1400ee5fc
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call fcn.140079b08
mov ebx, eax
test eax, eax
jns 0x14005ac2b
mov ecx, eax
jmp 0x14005abfb
mov rcx, qword [rbp + 0x3f]
lea rdx, [rdi + 8]
call fcn.140079b08
mov ebx, eax
test eax, eax
js 0x14005ac27
mov rcx, qword [rbp + 0x47]
lea rdx, [rdi + 0x10]
call fcn.140079b08
mov ebx, eax
test eax, eax
jns 0x14005ac6b
mov ecx, eax
call fcn.140079c40
lea rdx, [0x140439810]
lea rcx, [0x14042b978]
call fcn.1400eefd4
mov ecx, ebx
call fcn.140079c60
lea rcx, [rbp + 7]
call fcn.14005a810
lea rdx, [0x14043e328]
lea rcx, [0x140420d80]
call fcn.1400eec90
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005be9c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
xor ebx, ebx
mov r13, rdx
mov rdi, rcx
mov qword [rbp - 0x31], rbx
lea rdx, [0x14043c624]
mov esi, ebx
lea rcx, [0x14041f1bc]
mov r14d, ebx
mov r15, r9
mov r12, r8
call fcn.1400eefd4
xorps xmm1, xmm1
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
movups xmmword [rbp - 1], xmm1
movups xmmword [rbp + 0xf], xmm1
movups xmmword [rbp + 0x1f], xmm1
test r15, r15
jne 0x14005bf16
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
jmp 0x14005bffc
mov rbx, qword [0x14043f520]
lea rdx, [0x14043c708]
lea rcx, [0x14041f260]
lea rsi, [rbx + 8]
call fcn.1400ed270
test rsi, rsi
je 0x14005bf4a
mov r14d, 1
mov rcx, rsi
mov edx, r14d
call fcn.140072570
lea rax, [0x1400028d8]
mov qword [rbp + 0x1f], rdi
mov qword [rbp - 0x21], rax
lea rdx, [0x14043a08c]
lea rax, [rbp + 0x7f]
mov qword [rbp + 0x27], rbx
lea rcx, [0x14041480c]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x29], 3
call fcn.1400ee5fc
xor r9d, r9d
lea rax, [rbp - 1]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x29]
lea rax, [rbp - 0x31]
mov ecx, 0xb9
mov qword [rbp - 9], rax
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x7f]
test ebx, ebx
js 0x14005bf0a
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rax, rdi
lea r9, [rbp - 0x39]
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
lea rdx, [0x14043d1dc]
mov ebx, eax
lea rcx, [0x14041fca8]
call fcn.1400eec90
test ebx, ebx
js 0x14005bf0a
mov eax, dword [rbp - 0x39]
mov dword [r15], eax
mov ecx, ebx
call fcn.140079c60
lea rdx, [0x14043b5ec]
lea rcx, [0x140426008]
call fcn.1400ee940
lea rcx, [rbp - 1]
call fcn.1400578a0
lea rcx, [rbp - 0x31]
call fcn.1400577f4
test rsi, rsi
je 0x14005c03a
test r14d, r14d
je 0x14005c03a
mov rcx, rsi
call fcn.14007240c
lea r11, [rsp + 0x90]
mov eax, ebx
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
Function at 0x140060f34
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
mov qword [rbp + 0x48], rbx
call fcn.14006ac40
mov r14, qword [rbp - 0x10]
mov edi, eax
test eax, eax
jns 0x140060f7a
mov ecx, eax
jmp 0x1400610c3
mov rsi, qword [rbp - 8]
mov rdx, r14
mov rcx, rsi
call fcn.140068e18
mov edi, eax
test eax, eax
js 0x140060f73
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140061013
lea rdx, [rbp + 0x48]
call fcn.140079b08
mov edi, eax
test eax, eax
jns 0x140060fb7
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rbp + 0x48]
jmp 0x1400610c8
mov rbx, qword [rbp + 0x48]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.1400787a4
mov edi, eax
test eax, eax
jns 0x140060fd4
mov ecx, eax
call fcn.140079c40
mov r15d, dword [rbp + 0x38]
mov ecx, edi
call fcn.140079c60
test edi, edi
jns 0x140060fe7
mov ecx, edi
jmp 0x140061002
mov r9, rbx
mov dword [rsp + 0x20], r15d
mov rdx, r14
mov rcx, rsi
call fcn.14006ed1c
mov edi, eax
test eax, eax
jns 0x140061007
mov ecx, eax
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
jmp 0x1400610bd
and qword [rbp - 0x10], rbx
lea rax, [rbp + 0x48]
and qword [rbp + 0x48], rbx
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, 0x80070000
test eax, eax
jne 0x14006107d
xor edi, edi
mov rsi, qword [rbp + 0x48]
and qword [rbp + 0x48], rbx
mov qword [rbp - 0x10], rsi
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp + 0x48]
call fcn.140069f74
test edi, edi
js 0x1400610a6
lea rdx, str.ReferralId
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140061097
xor edi, edi
jmp 0x1400610ad
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140061045
mov ecx, edi
call fcn.140079c40
xor esi, esi
jmp 0x140061051
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400610ad
mov ecx, edi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp - 0x10]
call fcn.140069f74
test edi, edi
jns 0x1400610c8
mov ecx, edi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
test rbx, rbx
je 0x1400610f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
test r14, r14
je 0x140061111
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400662e8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov rdi, r8
and dword [rcx], ebx
mov rsi, rcx
cmp qword [rcx + 0x18], rbx
jne 0x14006631c
mov edi, 0xc004f07a
mov ecx, edi
call fcn.140079c40
jmp 0x1400663da
xor ecx, ecx
call fcn.140079c60
xor ecx, ecx
call fcn.140079c60
mov eax, 0x40
mov edx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140066348
mov edi, 0x8007000e
jmp 0x140066310
movups xmm0, xmmword [rdi]
mov dword [rbp + 0x20], 0x10000
mov edx, 4
movups xmm1, xmmword [rdi + 0x10]
mov dword [rax], edx
lea rcx, [0x140008098]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rbx + 8], rax
lea r8d, [rdx + 0x38]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm0
mov rax, qword [rsi + 0x18]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x38], rcx
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x14], rax
lea rax, [rsi + 4]
mov qword [rbp - 0x30], rcx
lea ecx, [r8 + 0x7d]
mov dword [rbp - 0x20], edx
lea rdx, [rbp - 0x40]
mov qword [rbp - 0xc], rax
mov dword [rbp + 0x28], SafeArrayUnaccessData
mov qword [rbp - 0x1c], rbx
mov qword [rbp - 0x40], 3
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x38]
test edi, edi
js 0x140066310
mov ecx, dword [rbp + 0x28]
mov dword [rsi], ecx
mov ecx, edi
call fcn.140079c60
test rbx, rbx
je 0x1400663ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x90]
mov eax, edi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140068c74
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
lea rax, [rbp - 0x20]
and qword [rbp - 0x10], rdi
mov r14, r9
xor ebx, ebx
mov qword [rbp - 0x18], rdi
and qword [rbp - 0x20], rbx
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [r11 - 0x48], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140068cee
xor esi, esi
mov rdi, qword [rbp - 0x20]
and qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
mov ecx, esi
call fcn.140079c60
lea rcx, [rbp - 0x20]
call fcn.140069f74
test esi, esi
jns 0x140068d09
mov ecx, esi
jmp 0x140068dc1
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x140068cc7
mov ecx, esi
call fcn.140079c40
jmp 0x140068cd3
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rdx, str.VLActivationType
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140068d47
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x140068ce7
test rbx, rbx
jne 0x140068d85
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140068d7b
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140068d0c
mov esi, 0x8007000e
jmp 0x140068ce7
mov esi, 0x8000ffff
jmp 0x140068ce7
cmp dword [rbp + 0x20], 4
je 0x140068d95
mov esi, 0x8007000d
jmp 0x140068ce7
xor edi, edi
cmp dword [rbp + 0x30], 4
je 0x140068dad
mov esi, 0x8007000d
mov ecx, esi
mov edi, esi
call fcn.140079c40
jmp 0x140068db2
mov eax, dword [rbx]
mov dword [r14], eax
mov ecx, edi
call fcn.140079c60
mov esi, edi
test edi, edi
jns 0x140068dc6
mov ecx, edi
call fcn.140079c40
mov ecx, esi
call fcn.140079c60
test rbx, rbx
je 0x140068de6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 0x10]
call fcn.140069f74
lea rcx, [rbp - 0x18]
call fcn.140069f74
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret