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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14010c41c
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x14010c3fa
call fcn.1400f5de0
mov rcx, qword [rdi]
call fcn.140112bc0
mov qword [rdi], 0
lea rax, [rsi + 1]
cmp rax, 2
jb case.default.0x14010c415
mov qword [rdi], rsi
call fcn.1400f5de0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14010e0d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.14016a980
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x1402a45e8]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x14010e15b
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jb 0x14010e140
call fcn.1400f5de0
mov rcx, qword [rsi + 0x18]
call fcn.140112bc0
mov qword [rsi + 0x18], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14010e153
mov qword [rsi + 0x18], rdi
call fcn.1400f5de0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14010f290
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x20], 0
test rdx, rdx
je 0x14010f35a
mov rdi, rdx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r14
mov rbx, rax
call r14
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [rsp + 0x38]
cmp qword [rsi], rbx
je 0x14010f35a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14010f340
call fcn.1400f5de0
mov rcx, qword [rsi]
call fcn.140112bc0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14010f352
mov qword [rsi], rbx
call fcn.1400f5de0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140257200
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14010f3b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14010f40b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14010f3f1
call fcn.1400f5de0
mov rcx, qword [rsi]
call fcn.140112bc0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14010f403
mov qword [rsi], rdi
call fcn.1400f5de0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14010f425
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
int3

Function at 0x14010f430
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x14010f459
call fcn.1400f5de0
mov qword [rsi], 0
test rbx, rbx
je 0x14010f489
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14010f4c2
cmp rbp, 2
jae 0x14010f4dc
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x14010f4b4
call fcn.1400f5de0
mov rcx, qword [rdi]
call fcn.140112bc0
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400f5de0
mov rcx, qword [rsi]
call fcn.140112bc0
mov qword [rsi], 0
cmp rbp, 2
jb 0x14010f480
mov qword [rsi], rbx
call fcn.1400f5de0
jmp 0x14010f480

Function at 0x14010f4f0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jae 0x14010f51b
cmp qword [rsi], rbx
jne 0x14010f525
jmp 0x14010f549
call fcn.1400f5de0
cmp qword [rsi], rbx
je 0x14010f549
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14010f582
cmp rbp, 2
jae 0x14010f59c
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x14010f574
call fcn.1400f5de0
mov rcx, qword [rdi]
call fcn.140112bc0
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400f5de0
mov rcx, qword [rsi]
call fcn.140112bc0
mov qword [rsi], 0
cmp rbp, 2
jb 0x14010f540
mov qword [rsi], rbx
call fcn.1400f5de0
jmp 0x14010f540
Function at 0x1401110a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140111135
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140111100
call fcn.1400f5de0
mov rcx, qword [rsi]
call fcn.140112bc0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140111112
mov qword [rsi], rdi
call fcn.1400f5de0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14011113c
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 8], 1
int3
int3

Function at 0x140111a40
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14d, r9d
mov rdi, r8
mov rbp, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebx, 0x10
mov ecx, 0x18
call fcn.140255d40
mov rsi, rax
mov rax, qword [0x1403102a0]
and rax, rbp
cmp rax, qword [0x140310288]
jne 0x140111aa4
mov rcx, rbp
call fcn.1400fa4f0
mov qword [rsi], rbp
test rdi, rdi
setne byte [rsi + 8]
mov dword [rsi + 0xc], r14d
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x140111f80]
xor ecx, ecx
mov rdx, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x140111aea
test rdi, rdi
je 0x140111b35
mov qword [rdi], r14
jmp 0x140111b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140111b03
mov edi, eax
cmp eax, 0x5af
je 0x140111b03
cmp edi, 0xe
jne 0x140111b62
mov rcx, r15
call fcn.140171ed0
test rsi, rsi
je 0x140111b3e
mov rcx, qword [rsi]
mov rax, qword [0x1403102a0]
and rax, rcx
cmp rax, qword [0x140310288]
jne 0x140111b2b
call fcn.1400fa610
mov rcx, rsi
call fcn.140255d7c
jmp 0x140111b3e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140257200
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [0x140324228]
mov ecx, dword [0x14031d424]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140111bda
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, edi
call fcn.1400feca0
movzx eax, byte [rsp + 0x47]
test al, al
cmovs rbx, qword [rsp + 0x30]
cmovs rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rax
mov rcx, qword [0x140324220]
lea rdx, [rsp + 0x48]
call fcn.140155210
cmp byte [rsp + 0x47], 0
jns 0x140111b0b
mov rcx, qword [rsp + 0x30]
call fcn.140255d7c
jmp 0x140111b0b
lea rcx, [0x140324228]
call fcn.140255ea0
cmp dword [0x140324228], 0xffffffff
jne 0x140111b83
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1401551e0
mov qword [0x140324220], rax
lea rcx, [0x140324228]
call fcn.140255f38
jmp 0x140111b83
Function at 0x1401123d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov r12d, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor esi, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x1401125e4
mov qword [rsp + 0x90], 0
mov r9d, r12d
or r9d, 8
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor esi, esi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14011245e
cmp eax, 2
je 0x1401125e4
mov esi, eax
jmp 0x1401125e4
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x14029de10]
movaps xmmword [rsp + 0x70], xmm0
lea rsi, [rsp + 0x70]
mov rcx, rsi
mov rdx, r14
call fcn.1400231ae
movzx eax, byte [rsp + 0x87]
test al, al
js 0x1401124c1
je 0x1401124e1
movzx ecx, al
cmp word [rsi + rcx*2 - 2], 0x5c
je 0x1401124bb
lea rcx, [rsp + 0x70]
mov dx, 0x5c
call fcn.1400e9514
movzx eax, byte [rsp + 0x87]
test al, al
jns 0x1401124e3
jmp 0x1401124da
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1401124da
mov rsi, qword [rsp + 0x70]
cmp word [rsi + rcx*2 - 2], 0x5c
jne 0x1401124a5
jmp 0x1401124bb
mov rdi, qword [rsp + 0x78]
jmp 0x1401124e6
xor eax, eax
movzx edi, al
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
lea rsi, [rsp + 0x50]
lea r15, [rsp + 0x4c]
mov r13, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rbp, [rsp + 0x70]
jmp 0x140112523
mov rcx, rbx
mov r8d, r12d
call fcn.1401123d0
test eax, eax
jne 0x1401125b1
mov dword [rsp + 0x4c], 0x104
mov edx, 0x104
mov rcx, rsi
call fcn.140110c60
mov rcx, qword [rsp + 0x90]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
mov r8, rax
mov r9, r15
call r13
test eax, eax
jne 0x1401125b1
mov edx, dword [rsp + 0x4c]
mov rcx, rsi
xor r8d, r8d
call fcn.1400e9a82
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.1400e9a82
movzx r8d, byte [rsp + 0x67]
mov rdx, rsi
test r8b, r8b
jns 0x14011258e
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, rbp
call fcn.1400e8f12
cmp byte [rsp + 0x87], 0
mov rdx, rbp
jns 0x140112510
mov rdx, qword [rsp + 0x70]
jmp 0x140112510
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
mov rdx, r14
mov r8d, r12d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
cmp byte [rsp + 0x67], 0
js 0x140112612
cmp byte [rsp + 0x87], 0
js 0x140112626
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140257200
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x50]
call fcn.140255d7c
cmp byte [rsp + 0x87], 0
jns 0x1401125e4
mov rcx, qword [rsp + 0x70]
call fcn.140255d7c
jmp 0x1401125e4
Function at 0x140112650
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1401126cb
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1401126cb
cmp dword [rsp + 0x38], 4
jne 0x1401126cb
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140257200
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1401126f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1402571a0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140259320
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1401127db
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14011278b
mov edi, 0x3f4
cmp eax, 1
jne 0x1401127db
lea rdx, [rsp + 0x840]
jmp 0x1401127d1
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140259320
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x1401127db
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400e8c9c
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140257200
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140112800
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
mov rcx, qword [rcx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140257200
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x140112860
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x140113a50
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140113a70
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rdx, qword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140114150
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.140259320
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140255d40
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1403242b0]
mov ecx, dword [0x14031d424]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011421c
lea r8, [0x140324280]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1401143b0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140257200
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1403242b0]
call fcn.140255ea0
cmp dword [0x1403242b0], 0xffffffff
jne 0x1401141e8
xorps xmm0, xmm0
movups xmmword [0x1403242a0], xmm0
movups xmmword [0x140324290], xmm0
movups xmmword [0x140324280], xmm0
lea rcx, [0x140324280]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1403242b0]
call fcn.140255f38
jmp 0x1401141e8

Function at 0x1401142d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1403242b0]
mov ecx, dword [0x14031d424]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140114331
movzx eax, word [0x140324280]
cmp rax, 0xc
ja case.0x140114310.1
lea rcx, [0x14011437c]
movsxd rdx, dword [rcx + rax*4]
add rdx, rcx
jmp rdx
mov eax, 2
jmp case.0x140114310.0
mov eax, 4
jmp case.0x140114310.0
mov eax, 1
jmp case.0x140114310.0
mov eax, 3
add rsp, 0x28
ret
lea rcx, [0x1403242b0]
call fcn.140255ea0
cmp dword [0x1403242b0], 0xffffffff
jne 0x1401142f5
xorps xmm0, xmm0
movups xmmword [0x1403242a0], xmm0
movups xmmword [0x140324290], xmm0
movups xmmword [0x140324280], xmm0
lea rcx, [0x140324280]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1403242b0]
call fcn.140255f38
jmp 0x1401142f5
Function at 0x1401160d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx]
lea rbp, [rsi + 1]
cmp rbp, 2
jae 0x1401160ff
xor edi, edi
jmp 0x1401161e2
mov rdi, rcx
cmp dword [rcx + 8], 1
jne 0x1401161fe
mov qword [rdi], 0
call fcn.1400f5de0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400f5de0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 5
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, eax
test eax, eax
je 0x1401161c9
mov r15, qword [rsp + 0x38]
cmp qword [rdi], r15
je 0x1401161c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x1401161a7
call fcn.1400f5de0
mov rcx, qword [rdi]
call fcn.140112bc0
mov qword [rdi], 0
lea rax, [r15 + 1]
cmp rax, 2
jb 0x1401161b9
mov qword [rdi], r15
call fcn.1400f5de0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rdi + 8], 0
test ebx, ebx
setne dil
cmp rbp, 2
jb 0x1401161e2
call fcn.1400f5de0
mov rcx, rsi
call fcn.140112bc0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140257200
mov eax, edi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x140116610
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [0x1403242d4]
test al, 1
jne 0x14011666c
test rsi, rsi
je 0x140116662
mov r14d, 0xffffffff
nop word cs:[rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140116685
add rdi, rbx
sub rsi, rbx
jne 0x140116640
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140173260
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140174e00
int3
sub rsp, 0x28
lea r8, [0x1402ba8b0]
call fcn.140174e20
mov eax, 1
add rsp, 0x28
ret

Function at 0x1401166b0
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rdi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x14029de10]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.AmountOfFreeDiskSpace
lea r8, str....._base_system_sys_info_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0x5a
call fcn.1400f5dc0
lea r14, [rsp + 0x50]
xor esi, esi
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140153ea0
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
cmp byte [rdi + 0x17], 0
jns 0x140116759
mov rdi, qword [rdi]
lea rdx, [rsp + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, qword [rsp + 0x20]
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
cmovb rdx, rcx
cmp eax, 1
sbb rsi, rsi
or rsi, rdx
mov rcx, r14
call fcn.1401541a0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140257200
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401170c0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x140324300]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140117213
jp 0x140117213
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140324310]
mov ecx, dword [0x14031d424]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140117232
mov eax, dword [0x140324320]
mov ecx, dword [0x14031d424]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14011726c
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rsi, qword [0x140324318]
xorps xmm0, xmm0
cvtsi2sd xmm0, rsi
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1402b3c98]
ucomisd xmm1, xmm0
ja 0x140117213
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140324308]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x1402b3c70]
subpd xmm1, xmmword [0x1402b3c80]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x140324300], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140257200
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140324310]
call fcn.140255ea0
cmp dword [0x140324310], 0xffffffff
jne 0x140117141
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140324308], rdx
lea rcx, [0x140324310]
call fcn.140255f38
jmp 0x140117141
lea rcx, [0x140324320]
call fcn.140255ea0
cmp dword [0x140324320], 0xffffffff
jne 0x140117166
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x140324318], rax
lea rcx, [0x140324320]
call fcn.140255f38
jmp 0x140117166