joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fb6c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x80a8
call fcn.140222df0
sub rsp, rax
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x8090], rax
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x80c8]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400fb71d
cmp dword [rsp + 0x44], 1
je 0x1400fb727
cmp dword [rsp + 0x44], 2
je 0x1400fb727
jmp 0x1400fb72f
mov dword [rsp + 0x48], 0x200
jmp 0x1400fb72f
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x68], 0
mov eax, dword [rsp + 0x48]
or eax, 0x20019
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x80b8]
mov rcx, qword [rsp + 0x80b0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400fb867
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x4c], 0
cmp dword [rsp + 0x40], 0
je 0x1400fb79b
cmp dword [rsp + 0x40], 0xea
jne 0x1400fb85c
mov dword [rsp + 0x5c], 0x3fff
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x90]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400fb857
cmp dword [rsp + 0x50], 4
jne 0x1400fb857
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x64], eax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.1400179b0
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x80c0]
call fcn.1400fd140
mov ecx, dword [rsp + 0x64]
mov dword [rax], ecx
lea rcx, [rsp + 0x70]
call fcn.14000a800
jmp 0x1400fb786
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x80c8], 2
jne 0x1400fb891
xor r9d, r9d
mov r8, qword [rsp + 0x80c0]
mov rdx, qword [rsp + 0x80b8]
mov rcx, qword [rsp + 0x80b0]
call fcn.1400fb6c0
mov rcx, qword [rsp + 0x8090]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x80a8
ret
Function at 0x1400fba40
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400fba88
cmp dword [rsp + 0x34], 1
je 0x1400fba92
cmp dword [rsp + 0x34], 2
je 0x1400fba92
jmp 0x1400fba9a
mov dword [rsp + 0x38], 0x200
jmp 0x1400fba9a
mov dword [rsp + 0x38], 0x100
mov eax, dword [rsp + 0x38]
or eax, 0x20019
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 2
jne 0x1400fbafc
cmp dword [rsp + 0x78], 2
jne 0x1400fbafc
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400fbb4d
cmp qword [rsp + 0x70], 0
je 0x1400fbb4d
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax]
test eax, eax
je 0x1400fbb4d
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x40], 0
je 0x1400fbb60
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 0
jne 0x1400fbb71
mov dword [rsp + 0x3c], 1
jmp 0x1400fbb79
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
add rsp, 0x58
ret
Function at 0x140101f40
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
mov rdx, qword [0x1408ce828]
lea rcx, [rsp + 0x48]
call fcn.1400179b0
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140101a40
nop
lea rcx, [rsp + 0x48]
call fcn.14000a800
lea rcx, [rsp + 0x28]
call fcn.14000c690
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x28]
call fcn.14000c690
mov rdx, rax
lea rcx, [0x14030ee68]
call fcn.14025b220
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.14000a200
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x28]
call fcn.14000a800
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x78
ret

Function at 0x140109c70
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [0x1408cec2c], 0xffffffff
jne 0x140109c89
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1408cec2c], eax
add rsp, 0x28
ret

Function at 0x140109e70
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
call fcn.14010b6d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140109e9c
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.14010b980
mov qword [rsp + 0x28], rax
jmp 0x140109ea5
mov qword [rsp + 0x28], 0
xor edx, edx
mov ecx, dword [0x1408cec2c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x1408cec2c]
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1408cec2c], 0xffffffff
add rsp, 0x38
ret

Function at 0x14010b6d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
cmp dword [0x1408cec2c], 0xffffffff
jne 0x14010b6e1
xor eax, eax
jmp 0x14010b703
mov ecx, dword [0x1408cec2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14010b6fe
xor eax, eax
jmp 0x14010b703
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14010b710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x48
cmp dword [0x1408cec2c], 0xffffffff
jne 0x14010b722
call fcn.140109c70
mov ecx, dword [0x1408cec2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14010b791
mov ecx, MsiDatabaseExportA
call fcn.14022273c
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14010b763
mov rcx, qword [rsp + 0x28]
call fcn.1400150c0
mov qword [rsp + 0x30], rax
jmp 0x14010b76c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1408cec2c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x14010bda0
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov byte [rsp + 0x50], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
test rax, rax
je 0x14010be97
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14010be21
cmp dword [rsp + 0x58], 1
je 0x14010be15
cmp dword [rsp + 0x58], 2
je 0x14010be09
jmp 0x14010be21
mov eax, 4
mov word [rsp + 0x54], ax
jmp 0x14010be2b
mov eax, 2
mov word [rsp + 0x54], ax
jmp 0x14010be2b
mov eax, 1
mov word [rsp + 0x54], ax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x90]
xor r8d, r8d
movzx edx, word [rsp + 0x54]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
cmp eax, 1
jne 0x14010be86
mov dword [rsp + 0x5c], 1
jmp 0x14010be8e
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x14010bec1
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14010bee0
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
add rsp, 0x78
ret
Function at 0x14010c6d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x60]
call fcn.14000a280
nop
mov dword [rsp + 0x30], 2
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [0x14030f3c0]
lea rdx, [0x14030f3f0]
mov rcx, 0xffffffff80000002
call fcn.1400f6f60
movzx eax, al
test eax, eax
jne 0x14010c777
mov dword [rsp + 0x30], 2
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, str.CommonFilesDir
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call fcn.1400f6f60
lea rcx, [rsp + 0x60]
call fcn.14002a240
lea rdx, str.Bravura_Securitypslog.dll
lea rcx, [rsp + 0x60]
call fcn.14001efd0
lea rcx, [rsp + 0x60]
call fcn.14000c690
mov qword [rsp + 0x50], rax
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea rcx, [rsp + 0x80]
call fcn.1400179b0
nop
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x80]
call fcn.14001efa0
lea rcx, [rsp + 0x80]
call fcn.14000c690
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14010c828
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x80]
call fcn.14000a800
nop
lea rcx, [rsp + 0x60]
call fcn.14000a800
jmp 0x14010c96f
lea rcx, [rsp + 0x80]
call fcn.14000c690
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x14010c877
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x80]
call fcn.14000a800
nop
lea rcx, [rsp + 0x60]
call fcn.14000a800
jmp 0x14010c96f
lea rcx, [rsp + 0x60]
call fcn.140016630
shl rax, 1
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.EventMessageFile
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14010c8ec
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x80]
call fcn.14000a800
nop
lea rcx, [rsp + 0x60]
call fcn.14000a800
jmp 0x14010c96f
mov dword [rsp + 0x48], 7
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.TypesSupported
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14010c94b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x80]
call fcn.14000a800
nop
lea rcx, [rsp + 0x60]
call fcn.14000a800
jmp 0x14010c96f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x80]
call fcn.14000a800
nop
lea rcx, [rsp + 0x60]
call fcn.14000a800
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0xb8
ret
Function at 0x14010e630
Capabilities:
Generate random numbers via winapi

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0xd8], 0
je 0x14010e673
mov r8, qword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xd8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14010e673
jmp 0x14010e68d
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
add rcx, 0x58
mov r8d, eax
mov rdx, qword [rsp + 0x38]
call fcn.1401159d0
add rsp, 0x28
ret
Function at 0x140111240
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor eax, eax
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x40]
call fcn.14011b3f0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov r8d, 8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14011b4a0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r8d, 8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14011b4a0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r8d, 8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14011b4a0
mov eax, 1
mov word [rsp + 0x20], ax
movsx eax, word [rsp + 0x20]
test eax, eax
je 0x140111325
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xd0]
call fcn.14011b680
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0xc8
ret
Function at 0x1401142b0
Capabilities:
Encrypt data using aes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 3
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov dword [rsp], 0
jmp 0x14011435b
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xa
jge 0x1401144dd
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 0
movsxd rcx, dword [rsp]
lea rdx, [0x140312a20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [rdx + rcx*4]
mov eax, dword [r8 + rax]
xor eax, ecx
mov ecx, dword [rsp + 4]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, str.ccccwwww
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff000000
xor eax, ecx
mov ecx, dword [rsp + 4]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, str.ccccwwww
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 4]
and ecx, 0xff
mov ecx, ecx
lea rdx, str.ccccwwww
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 4]
shr ecx, 0x18
mov ecx, ecx
lea rdx, str.ccccwwww
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 3
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x20]
add rax, 0x10
mov qword [rsp + 0x20], rax
jmp 0x140114353
add rsp, 0x18
ret
Function at 0x1401156e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x60], 0
cmp qword [rsp + 0xa0], 0
je 0x1401158cb
cmp qword [rsp + 0xb0], 0
je 0x1401158cb
cmp qword [rsp + 0xa8], 0
jbe 0x1401158cb
cmp qword [rsp + 0xb8], 0
jbe 0x1401158cb
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140115838
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140115799
mov dword [rsp + 0x60], 1
jmp 0x140115826
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140048710
mov rax, qword [rsp + 0xb8]
dec rax
lea rcx, [0x140903370]
mov qword [rsp + 0x50], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x48], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x40], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x38], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x30], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x28], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
lea r8, str.CryptGenRandom_failed_with_code___d_
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.14003c800
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1401158cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x80]
call fcn.140048710
mov rax, qword [rsp + 0xb8]
dec rax
lea rcx, [0x140903370]
mov qword [rsp + 0x50], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x48], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x40], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x38], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x30], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x28], rcx
lea rcx, [0x140903370]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x80]
lea r8, str.CryptAcquireContext_failed_with_code___d_
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.14003c800
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret
Function at 0x140116130
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x28], 0x67452301
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
mov dword [rsp + 0x38], 0xc3d2e1f0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.140223780
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140116230
mov dword [rsp + 0x20], 0
jmp 0x1401161d7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x14
jae 0x140116216
mov eax, dword [rsp + 0x20]
shr eax, 2
mov eax, eax
mov ecx, dword [rsp + 0x20]
and ecx, 3
mov edx, 3
sub edx, ecx
mov ecx, edx
shl ecx, 3
mov eax, dword [rsp + rax*4 + 0x28]
shr eax, cl
and eax, 0xff
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0xb0]
mov byte [rdx + rcx], al
jmp 0x1401161cd
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x90
pop rdi
ret

Function at 0x14011b3f0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x10325476
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xc3d2e1f0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov qword [rcx + rax + 0x18], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov qword [rcx + rax + 0x18], 0
ret
Function at 0x14012dba0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], MsiDatabaseImportA
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x14012dbf7
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.14022ad20
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x48
ret
Function at 0x140144440
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x20], 0xffffffffffffffff
je 0x140144475
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x20], 0xffffffffffffffff
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x18], 0xffffffffffffffff
je 0x1401444d9
call fcn.140109e40
test rax, rax
je 0x1401444aa
mov edx, dword [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.1400486c0
lea rdx, [rsp + 0x20]
lea rcx, str.Terminating_process_with_code__d.
call fcn.140104700
mov edx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x18], 0xffffffffffffffff
add rsp, 0x38
ret
Function at 0x140145cf0
Capabilities:
Create pipe

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rdx, str..pipe_
lea rcx, [rsp + 0x68]
call fcn.1400179b0
nop
lea rcx, [rsp + 0x88]
call fcn.140129920
mov qword [rsp + 0x50], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
call fcn.140129ed0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.14001efa0
nop
lea rcx, [rsp + 0x98]
call fcn.14000a800
lea rcx, [rsp + 0x68]
call fcn.14000c690
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0xe8]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0xe8]
mov dword [rsp + 0x20], ecx
mov r9d, 1
xor r8d, r8d
mov edx, 0x40000003
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0xd0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rax], 0xffffffffffffffff
jne 0x140145e05
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
call fcn.14000a800
mov eax, dword [rsp + 0x40]
jmp 0x140145ece
lea rcx, [rsp + 0x68]
call fcn.14000c690
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
mov r9, qword [rsp + 0xe0]
mov r8d, 2
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0xd8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rax], 0xffffffffffffffff
jne 0x140145eb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xd0]
mov qword [rax], 0
mov rax, qword [rsp + 0xd8]
mov qword [rax], 0
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
call fcn.14000a800
mov eax, dword [rsp + 0x48]
jmp 0x140145ece
mov dword [rsp + 0x4c], 1
lea rcx, [rsp + 0x68]
call fcn.14000a800
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140222a60
add rsp, 0xc8
ret