joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003dc4
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x50
cmp dword [0x140013048], 5
lea r15, str.SM_CLUSTER::OpenResourceById
mov rdi, rdx
mov rsi, rcx
jbe 0x140003e17
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], 0xec
mov qword [r11 - 0x40], rax
lea rdx, [0x140010542]
lea rax, [rbp + 0x38]
mov qword [rbp + 0x38], r15
mov qword [r11 - 0x48], rax
call fcn.140001008
xor ebx, ebx
lea rdx, [rbp - 0x10]
and qword [rbp - 0x10], rbx
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
je 0x140003e44
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140003e7f
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rsi]
call qword [sym.imp.ext_ms_win_cluster_clusapi_l1_1_0.dll_OpenClusterResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140003e7f
mov rdx, rax
call fcn.14000433c
test eax, eax
je 0x140003e70
mov rbx, rdi
jmp 0x140003e7f
mov rcx, rdi
call qword [sym.imp.ext_ms_win_cluster_clusapi_l1_1_0.dll_CloseClusterResource]
nop dword [rax + rax]
cmp qword [rbp - 0x10], 0
je 0x140003e9b
lea rcx, [rbp - 0x10]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
and qword [rbp - 0x10], 0
test rbx, rbx
jne 0x140003eec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x140013048], 2
jbe 0x140003f1e
mov dword [rbp + 0x30], eax
lea rdx, [0x14001050e]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x38], 0x10f
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov qword [rbp - 8], r15
call fcn.1400010b0
jmp 0x140003f1e
cmp dword [0x140013048], 5
jbe 0x140003f1e
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], 0x10f
mov qword [rsp + 0x28], rax
lea rdx, [0x1400104e1]
lea rax, [rbp + 0x38]
mov qword [rbp + 0x38], r15
mov qword [rsp + 0x20], rax
call fcn.140001008
mov rsi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
Function at 0x140003f3c
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
cmp dword [0x140013048], 5
lea r15, str.SM_CLUSTER::SendWork
mov edi, r9d
mov rsi, r8
mov r14, rdx
jbe 0x140003f9b
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], 0x18f
mov qword [r11 - 0x40], rax
lea rdx, [0x140010542]
lea rax, [rbp - 0x10]
mov qword [rbp - 0x10], r15
mov qword [r11 - 0x48], rax
call fcn.140001008
xor ebx, ebx
mov r9, rsi
mov qword [rsp + 0x38], rbx
xor edx, edx
mov dword [rsp + 0x30], edi
mov r8d, 0x100202d
mov qword [rsp + 0x28], rsi
mov rcx, r14
mov dword [rsp + 0x20], edi
call qword [sym.imp.ext_ms_win_cluster_clusapi_l1_1_0.dll_ClusterResourceControl]
nop dword [rax + rax]
test eax, eax
je 0x140004027
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x140013048], 2
jbe 0x14000405e
mov dword [rbp + 0x20], eax
lea rdx, [0x14001050e]
lea rax, [rbp + 0x20]
mov dword [rbp - 0x10], 0x1a7
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov qword [rbp - 8], r15
call fcn.1400010b0
jmp 0x14000405e
cmp dword [0x140013048], 5
jbe 0x140004059
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], 0x1a7
mov qword [rsp + 0x28], rax
lea rdx, [0x1400104e1]
lea rax, [rbp - 8]
mov qword [rbp - 8], r15
mov qword [rsp + 0x20], rax
call fcn.140001008
mov ebx, 1
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140004084
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
cmp dword [0x140013048], 5
lea r12, str.SM_CLUSTER::SetRegistryValue
mov edi, r9d
mov rsi, r8
mov r14, rdx
mov r15, rcx
jbe 0x1400040e1
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], 0xcc
mov qword [r11 - 0x50], rax
lea rdx, [0x140010542]
lea rax, [rbp - 0x10]
mov qword [rbp - 0x10], r12
mov qword [r11 - 0x58], rax
call fcn.140001008
mov rcx, qword [r15 + 0x10]
xor ebx, ebx
mov r9, rsi
mov dword [rsp + 0x20], edi
mov rdx, r14
lea r8d, [rbx + 3]
call qword [sym.imp.ext_ms_win_cluster_clusapi_l1_1_1.dll_ClusterRegSetValueForceSync]
nop dword [rax + rax]
test eax, eax
je 0x14000415f
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x140013048], 2
jbe 0x140004196
mov dword [rbp + 0x30], eax
lea rdx, [0x14001050e]
lea rax, [rbp + 0x30]
mov dword [rbp - 0x10], 0xe1
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov qword [rbp - 8], r12
call fcn.1400010b0
jmp 0x140004196
cmp dword [0x140013048], 5
mov ebx, 1
jbe 0x140004196
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], 0xe1
mov qword [rsp + 0x28], rax
lea rdx, [0x1400104e1]
lea rax, [rbp - 8]
mov qword [rbp - 8], r12
mov qword [rsp + 0x20], rax
call fcn.140001008
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400041b8
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
cmp dword [0x140013048], 5
lea r14, str.SM_CLUSTER::SpaceDetachExceptLocal
mov rdi, rdx
mov rsi, rcx
jbe 0x140004205
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], 0x73
mov qword [rsp + 0x28], rax
lea rdx, [0x140010542]
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], r14
mov qword [rsp + 0x20], rax
call fcn.140001008
mov rcx, qword [rsi]
lea rax, [rbp + 0x48]
and qword [rbp + 0x48], 0
xor ebx, ebx
mov qword [rsp + 0x40], rax
mov r9d, 0x249f0
mov qword [rsp + 0x38], rdi
or r8, 0xffffffffffffffff
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], 4
lea edx, [rbx + 3]
and dword [rsp + 0x20], ebx
call qword [sym.imp.ext_ms_win_cluster_clusapi_l1_1_4.dll_ClusterSendReceiveMrr]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x48]
test eax, eax
jne 0x14000427d
mov r9d, dword [rcx]
xor edx, edx
test r9, r9
je 0x140004278
mov rax, qword [rcx + 8]
add rax, 0xc
mov r8d, dword [rax]
test r8d, r8d
jne 0x1400042de
inc rdx
add rax, 0x20
cmp rdx, r9
jb 0x140004264
mov ebx, 1
test rcx, rcx
je 0x14000428e
call qword [sym.imp.ext_ms_win_cluster_clusapi_l1_1_4.dll_ClusterFreeMrrResponse]
nop dword [rax + rax]
test ebx, ebx
jne 0x1400042f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x140013048], 2
jbe 0x140004325
mov dword [rbp + 0x30], eax
lea rdx, [0x14001050e]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x40], 0x9b
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x10], r14
call fcn.1400010b0
jmp 0x140004325
mov ecx, r8d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x48]
jmp 0x14000427d
cmp dword [0x140013048], 5
jbe 0x140004325
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], 0x9b
mov qword [rsp + 0x28], rax
lea rdx, [0x1400104e1]
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], r14
mov qword [rsp + 0x20], rax
call fcn.140001008
mov eax, ebx
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000433c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
cmp dword [0x140013048], 5
lea r14, str.SM_CLUSTER::WaitForResourceOnline
mov rdi, rdx
jbe 0x14000438a
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], 0x21f
mov qword [rsp + 0x28], rax
lea rdx, [0x140010542]
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], r14
mov qword [rsp + 0x20], rax
call fcn.140001008
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
mov rsi, rax
xor ebx, ebx
jmp 0x1400043b4
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
sub rax, rsi
cmp rax, 0x1388
jae 0x14000441a
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ext_ms_win_cluster_clusapi_l1_1_2.dll_GetClusterResourceState]
nop dword [rax + rax]
cmp eax, 2
jne 0x14000439d
cmp dword [0x140013048], 5
jbe 0x140004407
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], 0x23d
mov qword [rsp + 0x28], rax
lea rdx, [0x1400104e1]
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], r14
mov qword [rsp + 0x20], rax
call fcn.140001008
mov ebx, 1
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x13ae
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x140013048], 2
jbe 0x14000440c
mov dword [rbp + 0x30], eax
lea rdx, [0x14001050e]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x40], 0x23d
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x48], r14
call fcn.1400010b0
jmp 0x14000440c
Function at 0x14000be28
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x70
and dword [rax + 0x10], 0
mov rbx, rcx
lea rcx, [rax - 0x28]
xor ebp, ebp
xor edi, edi
call fcn.140004fb8
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
and qword [rsp + 0x38], rdi
lea rax, [rsp + 0x88]
mov rcx, qword [0x140013208]
lea r9d, [rbp + 0x34]
mov qword [rsp + 0x30], rax
mov r8, rbx
and dword [rsp + 0x28], edi
mov edx, 0xe7c824
and qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x14000beb6
lea rbp, str.DeviceIoControl___IOCTL_SPACEPORT_DETACH_SPACE
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
test esi, esi
je 0x14000bf29
test byte [0x140013ac0], 2
je 0x14000bf7b
mov rax, qword [rsp + 0x58]
lea r8, [rbx + 0x10]
sub rax, qword [rsp + 0x50]
movzx ecx, byte [rbx + 0x30]
imul rax, rax, 0xf4240
cqo
idiv qword [rsp + 0x60]
lea rdx, [rbx + 0x20]
mov qword [rsp + 0x40], rax
lea rax, str.SuDetachSpace
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
lea rdx, [0x140010050]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
call fcn.14000c37c
jmp 0x14000bf7b
test byte [0x140013ac0], 1
je 0x14000bf6d
movzx eax, byte [rbx + 0x30]
lea rcx, [rbx + 0x20]
mov dword [rsp + 0x48], edi
lea rdx, [rbx + 0x10]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], eax
lea rax, str.SuDetachSpace
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
lea rdx, [0x140010008]
mov qword [rsp + 0x20], rax
call fcn.14000c244
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
lea r11, [rsp + 0x70]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000c614
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and dword [rsp + 0x70], 0
mov r14, rdx
mov rbp, rcx
mov esi, 0x400
jmp 0x14000c6a5
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov edx, 0x70050
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000c703
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14000c6e9
mov rcx, rbx
add esi, esi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000c638
mov ecx, 0x5aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov eax, edi
test rbx, rbx
je 0x14000c6d5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000c6d5
mov qword [r14], rbx
jmp 0x14000c6d5
Function at 0x14000ca04
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor r9d, r9d
mov rdi, rdx
mov byte [rax + 8], r9b
mov rbx, rcx
mov rax, qword [rcx + 0x38]
cmp rax, qword [rdx + 0x38]
jne 0x14000ca3d
mov rax, qword [rcx + 0x40]
cmp rax, qword [rdx + 0x40]
je 0x14000cc1b
mov eax, dword [rcx + 0xb2c]
mov ebp, 1
cmp eax, dword [rdx + 0xb2c]
jg 0x14000ca65
jl 0x14000cc1b
test byte [rcx + 0x14], bpl
je 0x14000ca7d
lea rsi, [rdx + 0x14]
test byte [rsi], bpl
jne 0x14000ca8b
mov eax, ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
test byte [rdx + 0x14], bpl
jne 0x14000cc1b
lea rsi, [rdx + 0x14]
mov r8d, dword [rcx + 0xa94]
mov edx, r9d
mov ecx, r8d
sub ecx, ebp
je 0x14000cab4
sub ecx, ebp
je 0x14000cab2
sub ecx, ebp
je 0x14000caae
sub ecx, ebp
je 0x14000cab0
cmp ecx, ebp
jne 0x14000cab6
mov edx, ebp
add edx, ebp
add edx, ebp
add edx, ebp
add edx, ebp
mov r10d, dword [rdi + 0xa94]
mov ecx, r9d
mov r11d, r10d
sub r11d, ebp
je 0x14000cae4
sub r11d, ebp
je 0x14000cae2
sub r11d, ebp
je 0x14000cade
sub r11d, ebp
je 0x14000cae0
cmp r11d, ebp
jne 0x14000cae6
mov ecx, ebp
add ecx, ebp
add ecx, ebp
add ecx, ebp
add ecx, ebp
cmp edx, ecx
ja 0x14000ca65
mov edx, r9d
sub r8d, ebp
je 0x14000cb12
sub r8d, ebp
je 0x14000cb10
sub r8d, ebp
je 0x14000cb0c
sub r8d, ebp
je 0x14000cb0e
cmp r8d, ebp
jne 0x14000cb14
mov edx, ebp
add edx, ebp
add edx, ebp
add edx, ebp
add edx, ebp
mov ecx, r9d
sub r10d, ebp
je 0x14000cb38
sub r10d, ebp
je 0x14000cb36
sub r10d, ebp
je 0x14000cb32
sub r10d, ebp
je 0x14000cb34
cmp r10d, ebp
jne 0x14000cb42
mov ecx, ebp
add ecx, ebp
add ecx, ebp
add ecx, ebp
add ecx, ebp
cmp edx, ecx
jb 0x14000cc1b
mov edx, dword [rbx + 0xb28]
mov r10d, r9d
mov ecx, edx
sub ecx, ebp
je 0x14000cb60
sub ecx, ebp
je 0x14000cb63
sub ecx, ebp
je 0x14000cb66
cmp ecx, ebp
jne 0x14000cb69
mov r10d, ebp
add r10d, ebp
add r10d, ebp
add r10d, ebp
mov ecx, dword [rdi + 0xb28]
mov r8d, r9d
mov r11d, ecx
sub r11d, ebp
je 0x14000cb8c
sub r11d, ebp
je 0x14000cb8f
sub r11d, ebp
je 0x14000cb92
cmp r11d, ebp
jne 0x14000cb95
mov r8d, ebp
add r8d, ebp
add r8d, ebp
add r8d, ebp
cmp r10d, r8d
ja 0x14000ca65
mov r8d, r9d
sub edx, ebp
je 0x14000cbb4
sub edx, ebp
je 0x14000cbb7
sub edx, ebp
je 0x14000cbba
cmp edx, ebp
jne 0x14000cbbd
mov r8d, ebp
add r8d, ebp
add r8d, ebp
add r8d, ebp
sub ecx, ebp
je 0x14000cbd0
sub ecx, ebp
je 0x14000cbd3
sub ecx, ebp
je 0x14000cbd6
cmp ecx, ebp
jne 0x14000cbde
mov r9d, ebp
add r9d, ebp
add r9d, ebp
add r9d, ebp
cmp r8d, r9d
jb 0x14000cc1b
mov r9d, 2
test byte [rbx + 0x14], r9b
je 0x14000cbf4
test byte [rsi], r9b
jne 0x14000cbf9
jmp 0x14000ca65
test byte [rsi], r9b
jne 0x14000cc1b
mov r8d, ebp
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
nop dword [rax + rax]
movzx eax, byte [rsp + 0x30]
and eax, ebp
jmp 0x14000ca67
xor eax, eax
jmp 0x14000ca67
Function at 0x14000a160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov dword [rsp + 0xc], 0
mov dword [rsp + 0x10], 0
mov dword [rsp + 8], 0
mov dword [rsp + 8], 0
jmp 0x14000a1a7
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 8], eax
jae 0x14000a297
mov eax, dword [rsp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0xc], eax
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov byte [rsp], al
movsxd rax, dword [rsp + 0xc]
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x30]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
movsxd rcx, dword [rsp + 0x10]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x38]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 8]
mov rdx, qword [rsp + 0x38]
mov byte [rdx + rcx], al
jmp 0x14000a19d
add rsp, 0x28
ret

Function at 0x14000ade4
Capabilities:
Parse pe header

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

Function at 0x1400119c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400117c0
Function at 0x1400170e8
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 0x140017118
xor eax, eax
jmp 0x1400171db
mov rbp, rbx
cmp word [rax], si
je 0x14001713d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140017124
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140017120
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.140017008
movsxd r14, eax
test eax, eax
jne 0x14001717b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140017111
mov rcx, r14
call fcn.140013cb0
mov rdi, rax
test rax, rax
jne 0x140017194
xor ecx, ecx
call fcn.140012f44
jmp 0x140017170
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.140017008
test eax, eax
jne 0x1400171c5
mov rcx, rdi
call fcn.140012f44
jmp 0x1400171cf
xor ecx, ecx
call fcn.140012f44
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 0x14001c85c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c872
mov al, 1
jmp 0x14001c8d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c883
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c8d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140017c08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c8d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c8d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c8d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c8d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d910
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.1400160d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001d99a
cmp byte [rbp - 0x21], r15b
je 0x14001d995
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d9d0
call fcn.140018700
test eax, eax
jne 0x14001d9bc
cmp byte [rbp - 0x21], r15b
je 0x14001d9b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d9d0
cmp byte [rbp - 0x21], r15b
je 0x14001d9cd
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.1400156b8
test eax, eax
jne 0x14001da70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400160d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001da0f
cmp byte [rbp - 0x21], r15b
je 0x14001da44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001da44
call fcn.140018700
test eax, eax
jne 0x14001da30
cmp byte [rbp - 0x21], r15b
je 0x14001da29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001da44
cmp byte [rbp - 0x21], r15b
je 0x14001da41
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.1400156b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001da70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001da73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001da81
mov rcx, rdi
call fcn.140012f44
cmp byte [rbp + 0x3f], r15b
je 0x14001da90
mov rcx, qword [rbp + 0x27]
call fcn.140012f44
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