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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov r14, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx + 0x38]
movups xmm1, xmmword [rdx + 0x48]
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rdx + 0x28]
movzx ebx, byte [rdx + 0x30]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], bl
movzx eax, byte [0x14005d181]
mov ecx, 0x5f0
mov edx, 8
call fcn.140004d10
test rax, rax
mov qword [rbp - 8], r14
je 0x140020800
mov rdi, rax
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [r14 + 0x60]
mov qword [rbp - 0x18], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
mov r12d, 1
lock xadd qword [0x14005d198], r12
mov r14, r12
xor r14, rcx
lea r15, [r14 + rdx]
mov rax, r14
rol rax, 0x10
xor rax, r15
lea r15, [rax + r8]
rol rax, 0x15
add r14, r9
mov r13, r14
xor r13, r10
rol r14, 0x20
xor r12, r15
add r12, r13
rol r13, 0xd
xor r15, r11
xor r13, r12
rol r12, 0x20
xor r15, rax
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r15, r12
xor r13, r14
rol r14, 0x20
xor r12, r11
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
xor r14, 0xff
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r13, r14
rol r14, 0x20
xor r15, r12
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r13, r14
rol r14, 0x20
xor r15, r12
add r12, r13
rol r13, 0xd
add r14, r15
rol r15, 0x10
xor r15, r14
rol r15, 0x15
xor r13, r12
add r14, r13
rol r13, 0x11
mov r12, r14
rol r12, 0x20
xor r12, r13
xor r12, r15
xor r12, r14
je 0x140020650
mov rcx, qword [rbp - 8]
mov rax, qword [rcx + 0x58]
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x118], xmm0
mov rdx, qword [rbp - 0x10]
mov qword [rsi + 0x138], rdx
mov byte [rsi + 0x140], bl
mov qword [rsi], 0
mov qword [rsi + 8], rdi
mov qword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov rdx, qword [rbp - 0x18]
mov qword [rsi + 0x100], rdx
mov qword [rsi + 0x108], r12
mov qword [rsi + 0x110], rax
mov rdx, qword [rcx + 0x10]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x1400207ec
test rdx, rdx
je 0x1400207ec
mov rcx, qword [rcx + 0x18]
mov r8d, 1
call fcn.140004d20
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.140045650
ud2
Function at 0x140028ed0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140028f70
jmp 0x140028f5f
jae 0x140029030
cmp r8, 0x201
jae 0x140028f70
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140028fc8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140028f9f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140044fd0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140028ff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140029098
mov r8d, r14d
cmp r15, r8
jne 0x140028f50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400290c5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140028f5f
jmp 0x140028f70
cmp rsi, r8
jb 0x1400290df
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14002b150
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140029081
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140004d20
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140029069
jmp 0x140029081
lea rcx, str.internal_error:_entered_unreachable_code_rustc_7ffc697ce10f19447c0ce338428ae4b9bc0c041clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140045830
jmp 0x1400290f4
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140045c80
ud2
Function at 0x14002fed0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14004b928]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14002ff14
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002ff7a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002ffb1
test eax, eax
js 0x14002ff8b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002ffa4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14002ae10
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400271f0
mov ecx, 7
int 0x29
ud2

Function at 0x140030900
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140030938
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140030950
nop
add rsp, 0x38
ret

Function at 0x140030950
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140030993
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140029ba0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140045760
ud2
Function at 0x140031020
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14005d181]
mov ecx, 0x10
mov edx, 8
call fcn.140004d10
test rax, rax
je 0x1400310ff
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400311b0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400310f1
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400310c8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140004d20
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140004d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140045650
ud2
Function at 0x14003ed20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003ed9a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14003ed90
cmp r11, r10
ja 0x14003ee25
cmp r10, rdx
ja 0x14003ee37
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14003ed92
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003ed70
jmp 0x14003ee07
ja 0x14003ed9a
mov r11, r10
cmp rax, r8
jne 0x14003ed42
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003ee0b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14003ede0
mov r8, r10
sub ecx, r9d
jns 0x14003edfe
jmp 0x14003ee0d
cmp r10, rdx
je 0x14003ee19
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003ee0d
xor al, 1
cmp r8, rdx
jne 0x14003edc0
jmp 0x14003ee0d
xor eax, eax
jmp 0x14003ee0d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400456d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140045d00
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140045c80
int3

Function at 0x140040514
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004055e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004055e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004055e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004055e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004055e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140040560
xor al, al
add rsp, 0x28
ret
Function at 0x140055b20
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
mov rsi, rcx
and qword [r11 + 0x10], rax
lea rcx, str.D:PAI_A_OICI_FA___WD_
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea edx, [rax + 1]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
xor ebx, ebx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x140055b9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140055b80
mov edi, 0x80004005
jmp 0x140055b8e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14007ab24
jmp 0x140055c60
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 0x140055bf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140055c22
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 0x140055b6f
mov edx, 0x2710
mov rcx, rbx
mov rbp, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140055c43
cmp eax, 0x80
je 0x140055c39
cmp eax, 0x102
jne 0x140055c4a
mov edi, 0x800705b4
jmp 0x140055b8e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x140055c60
jmp 0x140055b8e
mov edi, 0x8000ffff
jmp 0x140055b8e
mov dword [rsi + 8], 1
mov rcx, qword [rsi]
xor ebx, ebx
test rcx, rcx
je 0x140055c5d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsi], rbx
mov qword [rsi], rbp
mov ecx, edi
call fcn.14007ab44
test rbx, rbx
je 0x140055c75
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140055c85
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 0x140056838
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 0x14005686a
xor ebx, ebx
jmp 0x140056a2f
test eax, eax
je 0x14005689c
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.14007ab24
jmp 0x140056a2f
and dword [rbp + 0x38], 0
lea rdx, [rbp + 0x38]
call fcn.14006a1b4
lea rdx, [0x140431a68]
mov ebx, eax
lea rcx, [0x140413bb8]
call fcn.1400ebd6c
test ebx, ebx
jns 0x1400568e1
mov ecx, ebx
call fcn.14007ab24
lea rdx, [0x140430920]
lea rcx, [0x14041af78]
call fcn.1400ed4d4
jmp 0x140056a27
cmp dword [rbp + 0x38], 0
je 0x1400568ee
xor ebx, ebx
jmp 0x140056a27
cmp dword [0x140437a64], 0
je 0x140056a1b
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 0x14005694d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140056936
mov ebx, r12d
jmp 0x140056944
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ab24
jmp 0x140056967
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140056927
mov esi, dword [rbp + 0x40]
mov dword [rbp + 0x38], esi
mov ecx, ebx
call fcn.14007ab44
lea rcx, [rbp + 0x48]
call fcn.14006af50
test ebx, ebx
js 0x140056a59
test esi, esi
jne 0x1400568e7
inc r14d
add r15, 8
cmp r14d, 1
jb 0x140056908
lea r8, [rbp + 0x38]
lea edx, [rsi + 0x12]
call fcn.140070150
lea rdx, [0x140432560]
mov ebx, eax
lea rcx, [0x140414598]
call fcn.1400ed82c
test ebx, ebx
js 0x140056a20
cmp dword [rbp + 0x38], esi
jne 0x1400568e7
lea r8, [rbp + 0x38]
lea edx, [rsi + 0x13]
call fcn.140070150
mov ebx, eax
test eax, eax
jns 0x1400569dc
mov ecx, eax
jmp 0x140056a22
cmp dword [rbp + 0x38], 0
jne 0x1400568e7
lea r8, [rbp + 0x38]
mov edx, SafeArrayUnaccessData
call fcn.140070150
mov ebx, eax
test eax, eax
js 0x1400569d8
cmp dword [rbp + 0x38], 0
jne 0x1400568e7
lea rcx, [rbp + 0x38]
call fcn.140056654
test eax, eax
js 0x140056a1b
cmp dword [rbp + 0x38], 0
jne 0x1400568e7
mov ebx, 0xc004f025
mov ecx, ebx
call fcn.14007ab24
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
mov ecx, ebx
call fcn.14007ab44
lea rdx, [0x140430194]
lea rcx, [0x14041de20]
call fcn.1400ed188
mov eax, ebx
add rsp, 0x28
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret
mov ecx, ebx
call fcn.14007ab24
lea rdx, [0x14043194c]
lea rcx, [0x140423728]
call fcn.1400edb90
jmp 0x140056a27
Function at 0x14005bbc8
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, [0x1404320e0]
movdqa xmmword [rbp + 0x37], xmm1
lea rcx, [0x140414184]
call fcn.1400ecad0
lea rax, [0x140005278]
mov qword [rbp - 0x29], 3
mov qword [rbp - 0x21], rax
lea rdx, [0x140434ed8]
lea rax, [rbp + 0x67]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x19], rax
lea rcx, [0x14040e7e8]
lea rax, [rbp + 7]
mov qword [rbp - 0x11], rax
call fcn.1400ec420
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 0x14005bc76
mov ecx, ebx
call fcn.14007ab24
jmp 0x14005bcdf
lea rdx, [0x14042ee78]
lea rcx, [0x140419a3c]
call fcn.1400ec0c8
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call fcn.14007a9ec
mov ebx, eax
test eax, eax
jns 0x14005bc9f
mov ecx, eax
jmp 0x14005bc6f
mov rcx, qword [rbp + 0x3f]
lea rdx, [rdi + 8]
call fcn.14007a9ec
mov ebx, eax
test eax, eax
js 0x14005bc9b
mov rcx, qword [rbp + 0x47]
lea rdx, [rdi + 0x10]
call fcn.14007a9ec
mov ebx, eax
test eax, eax
jns 0x14005bcdf
mov ecx, eax
call fcn.14007ab24
lea rdx, [0x140431a10]
lea rcx, [0x140423868]
call fcn.1400ece2c
mov ecx, ebx
call fcn.14007ab44
lea rcx, [rbp + 7]
call fcn.14005b86c
lea rdx, [0x140436780]
lea rcx, [0x140418420]
call fcn.1400ec780
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 0x14005ce94
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
mov r13, rdx
mov rdi, rcx
xor esi, esi
lea rdx, [0x1404355ac]
and qword [rbp - 0x31], rsi
lea rcx, [0x140417328]
mov r15, r9
mov r12, r8
xor r14d, r14d
call fcn.1400ec780
xor edx, edx
lea r8d, [rsi + 0x20]
lea rcx, [rbp - 1]
call sub.msvcrt.dll_memset
and qword [rbp + 0x17], rsi
lea r8d, [rsi + 0x30]
xorps xmm0, xmm0
lea rcx, [rbp - 1]
xor edx, edx
movdqu xmmword [rbp + 7], xmm0
call sub.msvcrt.dll_memset
test r15, r15
jne 0x14005cf1f
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14007ab24
jmp 0x14005cfe6
mov rbx, qword [0x1404379a0]
lea rsi, [rbx + 8]
test rsi, rsi
je 0x14005cf40
mov r14d, 1
mov rcx, rsi
mov edx, r14d
call fcn.140073400
lea rax, [0x140002b78]
mov qword [rbp + 0x1f], rdi
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x29]
lea rax, [rbp + 0x7f]
mov qword [rbp + 0x27], rbx
mov qword [rbp - 0x19], rax
xor r9d, r9d
lea rax, [rbp - 1]
mov qword [rbp - 0x29], 3
mov qword [rbp - 0x11], rax
mov ecx, 0xb9
lea rax, [rbp - 0x31]
lea r8d, [r9 + 0x28]
mov qword [rbp - 9], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x7f]
test ebx, ebx
js 0x14005cf13
mov rbx, qword [rbp - 0x31]
lea rdx, [0x140434a88]
lea rcx, [0x140416850]
mov rdi, qword [rbx]
call fcn.1400ecad0
mov rcx, qword [rdi + 0x18]
call qword [0x1403b8660]
lea r9, [rbp - 0x39]
mov r8, r12
mov rdx, r13
mov rcx, rbx
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdx, [0x1404338dc]
mov ebx, eax
lea rcx, [0x14041da78]
call fcn.1400ec420
test ebx, ebx
js 0x14005cf13
mov eax, dword [rbp - 0x39]
mov dword [r15], eax
mov ecx, ebx
call fcn.14007ab44
lea rcx, [rbp - 1]
call fcn.140058990
lea rdx, [0x1404349a4]
lea rcx, [0x1404167ac]
call fcn.1400ece2c
lea rcx, [rbp - 0x31]
call fcn.1400588e4
lea rdx, [0x140432324]
lea rcx, [0x14040b82c]
call fcn.1400ec0c8
test rsi, rsi
je 0x14005d037
test r14d, r14d
je 0x14005d037
mov rcx, rsi
call fcn.14007329c
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 0x140061df0
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.14006bb68
mov r14, qword [rbp - 0x10]
mov edi, eax
test eax, eax
jns 0x140061e36
mov ecx, eax
jmp 0x140061f7f
mov rsi, qword [rbp - 8]
mov rdx, r14
mov rcx, rsi
call fcn.140069b40
mov edi, eax
test eax, eax
js 0x140061e2f
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140061ecf
lea rdx, [rbp + 0x48]
call fcn.14007a9ec
mov edi, eax
test eax, eax
jns 0x140061e73
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rbp + 0x48]
jmp 0x140061f84
mov rbx, qword [rbp + 0x48]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.140079670
mov edi, eax
test eax, eax
jns 0x140061e90
mov ecx, eax
call fcn.14007ab24
mov r15d, dword [rbp + 0x38]
mov ecx, edi
call fcn.14007ab44
test edi, edi
jns 0x140061ea3
mov ecx, edi
jmp 0x140061ebe
mov r9, rbx
mov dword [rsp + 0x20], r15d
mov rdx, r14
mov rcx, rsi
call fcn.14006fa60
mov edi, eax
test eax, eax
jns 0x140061ec3
mov ecx, eax
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
jmp 0x140061f79
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 0x140061f39
xor edi, edi
mov rsi, qword [rbp + 0x48]
and qword [rbp + 0x48], rbx
mov qword [rbp - 0x10], rsi
mov ecx, edi
call fcn.14007ab44
lea rcx, [rbp + 0x48]
call fcn.14006aedc
test edi, edi
js 0x140061f62
lea rdx, str.ReferralId
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140061f53
xor edi, edi
jmp 0x140061f69
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140061f01
mov ecx, edi
call fcn.14007ab24
xor esi, esi
jmp 0x140061f0d
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140061f69
mov ecx, edi
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
lea rcx, [rbp - 0x10]
call fcn.14006aedc
test edi, edi
jns 0x140061f84
mov ecx, edi
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
test rbx, rbx
je 0x140061fac
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.14007ab44
test r14, r14
je 0x140061fcd
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.14007ab44
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret