joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400042f0
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x320
mov rax, qword [0x140029ab0]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, r8
movzx r8d, word [rdx + 0x84]
xor r9d, r9d
mov rbp, rdx
mov r10, rcx
mov byte [rsp + 0xb0], 0x30
mov byte [rsp + 0xb1], 0x2d
mov byte [rsp + 0xb2], 0x30
mov byte [rsp + 0xb3], 9
mov byte [rsp + 0xb4], 6
mov byte [rsp + 0xb5], 5
mov byte [rsp + 0xb6], 0x2b
mov byte [rsp + 0xb7], 0xe
mov byte [rsp + 0xb8], 3
mov byte [rsp + 0xb9], 2
mov byte [rsp + 0xba], 0x1a
mov byte [rsp + 0xbb], 5
mov byte [rsp + 0xbc], 0
mov byte [rsp + 0xbd], 4
mov byte [rsp + 0xbe], 0x20
movzx edx, r9w
test rdi, rdi
je 0x1400043a8
mov dword [rdi], 1
lea rsi, [0x140022d58]
nop
movzx eax, dx
lea rcx, [rax + rax*2]
cmp word [rsi + rcx*8], r8w
je 0x1400043cc
inc dx
cmp dx, 1
jb 0x1400043b0
jmp 0x140004576
cmp dx, 1
jae 0x140004576
movzx eax, dx
mov qword [rsp + 0x60], r9
lea r8, [fcn.1400040b0]
lea rdx, [rax + rax*2]
lea r9, [rsp + 0x40]
mov rcx, r10
mov rsi, qword [rsi + rdx*8 + 8]
mov edx, 0xf
mov dword [rsp + 0x40], 0x6a09e667
mov dword [rsp + 0x44], 0xbb67ae85
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
call fcn.140006960
test eax, eax
je 0x140004576
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x348], rbx
call fcn.1400079b0
movzx eax, word [rsi]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ebx, eax
cmp eax, 0x200
jb 0x14000456e
lea r8, [rbp + 0x90]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x110]
mov r9d, 0x200
mov qword [rsp + 0x20], rsi
call fcn.1400073f0
test eax, eax
jne 0x14000456e
cmp dword [rsp + 0x30], ebx
jne 0x14000456e
cmp byte [rsp + 0x110], al
jne 0x14000456e
cmp byte [rsp + 0x111], 1
jne 0x14000456e
lea edx, [rbx - 1]
mov ecx, 2
cmp edx, ecx
jbe 0x1400044f1
lea rax, [rsp + 0x112]
cmp byte [rax], 0xff
jne 0x1400044f1
inc ecx
inc rax
cmp ecx, edx
jb 0x1400044e3
mov eax, ecx
inc ecx
cmp byte [rsp + rax + 0x110], 0
jne 0x14000456e
mov edx, ebx
sub edx, ecx
cmp edx, 0x2f
ja 0x14000456e
lea eax, [rdx + 0xb]
cmp eax, ebx
ja 0x14000456e
mov r8d, edx
lea rdx, [rsp + rcx + 0x110]
lea rcx, [rsp + 0xc0]
call fcn.14000f080
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xb0]
mov r8d, 0xf
call fcn.1400198b0
test eax, eax
jne 0x14000456e
lea r8d, [rax + 0x20]
lea rdx, [rsp + 0xcf]
lea rcx, [rsp + 0xf0]
call fcn.1400198b0
test eax, eax
jne 0x14000456e
test rdi, rdi
je 0x14000456e
mov dword [rdi], 3
mov rbx, qword [rsp + 0x348]
mov eax, 1
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.14000f6d0
add rsp, 0x320
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004ff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rsi, r8
xor r9d, r9d
xor r8d, r8d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140005045
lea r9, str.SetFilePointerEx__
lea rcx, str..QHImageHlp.c
xor r8d, r8d
mov edx, 0xf9
call fcn.1400090d0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140005093
lea r9, str.ReadFile__
lea rcx, str..QHImageHlp.c
xor r8d, r8d
mov edx, 0xfc
call fcn.1400090d0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, dword [rsp + 0x48]
je 0x1400050c9
lea r9, [0x140023518]
lea rcx, str..QHImageHlp.c
mov edx, 0xfe
mov r8d, 1
call fcn.1400092c0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140005c40
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rdx
mov rdx, qword [rsp + 0x98]
lea r14, [rcx + 0xcd4]
mov rcx, rax
mov r13, r9
mov esi, r8d
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140005ca8
lea r9, str.GetFileSizeEx__
lea rcx, str..QHImageHlp.c
xor r8d, r8d
mov edx, 0x11e
call fcn.1400090d0
xor eax, eax
jmp 0x140005e09
mov r12, qword [rsp + 0x88]
xor edi, edi
lea rbp, [rbx + 8]
mov r15d, edi
cmp edi, esi
jne 0x140005cca
mov rax, qword [rsp + 0x98]
mov rbx, qword [rax]
jmp 0x140005cce
mov rbx, qword [rbp - 8]
sub rbx, rdi
mov rsi, rbx
shr rsi, 0xf
and ebx, 0x7fff
jne 0x140005ce7
mov ebx, 0x8000
jmp 0x140005ce9
inc esi
test esi, esi
je 0x140005d56
nop dword [rax]
mov rcx, qword [rsp + 0x60]
mov r9d, ebx
mov r8, r14
mov rdx, rdi
call fcn.140004ff0
test eax, eax
je 0x140005ec7
test r13, r13
je 0x140005d29
mov rcx, qword [rsp + 0x80]
mov r8d, ebx
mov rdx, r14
call r13
test eax, eax
je 0x140005e1e
test r12, r12
je 0x140005d47
mov rcx, qword [rsp + 0x90]
mov r8d, ebx
mov rdx, r14
call r12
test eax, eax
je 0x140005e40
mov eax, ebx
mov ebx, 0x8000
add rdi, rax
add esi, 0xffffffff
jne 0x140005cf0
mov esi, dword [rsp + 0x70]
cmp r15d, esi
jae 0x140005df4
mov r9d, dword [rbp]
test r9d, r9d
je 0x140005e04
cmp dword [rbp + 8], 0
jne 0x140005dad
mov rcx, qword [rsp + 0x60]
mov r8, r14
mov rdx, rdi
call fcn.140004ff0
test eax, eax
je 0x140005ec7
test r12, r12
je 0x140005dad
mov r8d, dword [rbp]
mov rcx, qword [rsp + 0x90]
mov rdx, r14
call r12
test eax, eax
je 0x140005e62
test r13, r13
je 0x140005ded
cmp dword [rbp + 4], 0
je 0x140005ded
mov eax, dword [rbp]
cmp eax, 0x8000
ja 0x140005ea9
mov r8, rax
xor edx, edx
mov rcx, r14
call fcn.14000fca0
mov r8d, dword [rbp]
mov rcx, qword [rsp + 0x80]
mov rdx, r14
call r13
test eax, eax
je 0x140005e84
mov edi, dword [rbp]
add rdi, qword [rbp - 8]
inc r15d
add rbp, 0x18
cmp r15d, esi
jbe 0x140005cbb
mov eax, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, str._rT
lea rcx, str..QHImageHlp.c
mov edx, 0x374
mov r8d, 0x11
call fcn.1400092c0
xor eax, eax
jmp 0x140005e09
lea r9, str._rT
lea rcx, str..QHImageHlp.c
mov edx, 0x379
mov r8d, 0x11
call fcn.1400092c0
xor eax, eax
jmp 0x140005e09
lea r9, str._rT
lea rcx, str..QHImageHlp.c
mov edx, 0x38b
mov r8d, 0x11
call fcn.1400092c0
xor eax, eax
jmp 0x140005e09
lea r9, str._rT
lea rcx, str..QHImageHlp.c
mov edx, 0x395
mov r8d, 0x11
call fcn.1400092c0
xor eax, eax
jmp 0x140005e09
lea r9, [0x140023600]
lea rcx, str..QHImageHlp.c
mov edx, 0x392
mov r8d, 8
call fcn.1400092c0
xor eax, eax
jmp 0x140005e09
Function at 0x140005ed0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, qword [rcx]
mov rbp, qword [rsp + 0xa8]
lea rsi, [rcx + 0xcd4]
mov rbx, rdx
mov rcx, r13
mov rdx, rbp
mov edi, r8d
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140005f3d
lea r9, str.GetFileSizeEx__
lea rcx, str..QHImageHlp.c
xor r8d, r8d
mov edx, 0x11e
call fcn.1400090d0
xor eax, eax
jmp 0x1400060f8
mov r12, qword [rsp + 0xa0]
xor ecx, ecx
xor r14d, r14d
add rbx, 8
lea rdx, [fcn.1400040b0]
mov dword [rsp + 0x80], ecx
mov qword [rsp + 0x30], rbx
cmp ecx, edi
jne 0x140005f6b
mov rbp, qword [rbp]
jmp 0x140005f6f
mov rbp, qword [rbx - 8]
sub rbp, r14
mov r15, rbp
shr r15, 0xf
and ebp, 0x7fff
jne 0x140005f88
mov ebp, 0x8000
jmp 0x140005f8b
inc r15d
test r15d, r15d
je 0x140006038
mov r9d, ebp
mov r8, rsi
mov rdx, r14
mov rcx, r13
call fcn.140004ff0
test eax, eax
je 0x1400060ef
lea rdx, [fcn.1400040b0]
test rdx, rdx
je 0x140006011
mov ebx, dword [r12 + 0x20]
mov r13, rsi
mov edi, ebp
and ebx, 0x3f
movsxd rsi, ebx
test ebp, ebp
je 0x140006007
nop dword [rax]
movzx eax, byte [r13]
inc ebx
inc rsi
mov byte [r12 + rsi + 0x27], al
inc qword [r12 + 0x20]
inc r13
dec rdi
cmp ebx, 0x40
jne 0x140005ffb
mov rcx, r12
xor ebx, ebx
xor esi, esi
call fcn.1400078d0
test rdi, rdi
jne 0x140005fd0
lea rdx, [fcn.1400040b0]
mov r13, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
mov eax, ebp
mov ebp, 0x8000
add r14, rax
add r15d, 0xffffffff
jne 0x140005f94
mov rbx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x80]
mov edi, dword [rsp + 0x90]
cmp ecx, edi
jae 0x14000608c
mov eax, dword [rbx]
test eax, eax
je 0x1400060f3
test rdx, rdx
je 0x140006085
cmp dword [rbx + 4], 0
je 0x140006085
cmp eax, 0x8000
ja 0x1400060d1
mov r8, rax
xor edx, edx
mov rcx, rsi
call fcn.14000fca0
mov r8d, dword [rbx]
mov rdx, rsi
mov rcx, r12
call fcn.1400040b0
test eax, eax
je 0x1400060af
mov ecx, dword [rsp + 0x80]
lea rdx, [fcn.1400040b0]
mov r14d, dword [rbx]
add r14, qword [rbx - 8]
inc ecx
add rbx, 0x18
mov dword [rsp + 0x80], ecx
mov qword [rsp + 0x30], rbx
cmp ecx, edi
ja 0x1400060f3
mov rbp, qword [rsp + 0xa8]
jmp 0x140005f61
lea r9, str._rT
lea rcx, str..QHImageHlp.c
mov edx, 0x3db
mov r8d, 0x11
call fcn.1400092c0
xor eax, eax
jmp 0x1400060f8
lea r9, [0x140023600]
lea rcx, str..QHImageHlp.c
mov edx, 0x3d8
mov r8d, 8
call fcn.1400092c0
xor eax, eax
jmp 0x1400060f8
mov eax, 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006ef0
Capabilities:
Get storage device properties

Disassembly:
push rsi
push r12
push r13
push r14
sub rsp, 0x68
mov rax, qword [0x140029ab0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov r12d, edx
mov r13, rcx
mov esi, r14d
mov dword [rsp + 0x40], r14d
test rcx, rcx
je 0x140007080
test edx, edx
je 0x140007080
mov ecx, 0x2800
mov qword [rsp + 0x60], rdi
call fcn.140010e78
mov rdi, rax
test rax, rax
jne 0x140006f6e
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f6d0
add rsp, 0x68
pop r14
pop r13
pop r12
pop rsi
ret
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbp
mov ebx, r14d
lea r8, str..PhysicalDrive_d
mov r9d, ebx
mov edx, 0x2800
mov rcx, rdi
call fcn.140004ea0
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea r8d, [r9 + 3]
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140007056
xor eax, eax
xor edx, edx
mov r8d, 0x2800
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x50], eax
call fcn.14000fca0
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r9d, 0xc
mov edx, 0x2d1400
mov rcx, rbp
mov dword [rsp + 0x28], 0x2800
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007049
mov eax, dword [rdi + 0x18]
test eax, eax
je 0x140007049
lea r9, [rdi + rax]
lea rcx, str.DISKID:
mov r8d, r12d
mov rdx, r13
call fcn.140006c40
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x140007061
inc ebx
cmp ebx, 0x10
jl 0x140006f81
mov rcx, rdi
call fcn.140010e38
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov eax, esi
jmp 0x140006f50
or eax, 0xffffffff
jmp 0x140006f55
Function at 0x140007190
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push r12
sub rsp, 0x70
xor ebx, ebx
mov r12, rcx
mov rsi, rbx
test rcx, rcx
je 0x1400073dc
test edx, edx
je 0x1400073dc
mov ecx, 0x200
mov qword [rsp + 0x60], rdi
call fcn.140010e78
mov rdi, rax
test rax, rax
jne 0x1400071e6
lea ecx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x60]
or eax, 0xffffffff
add rsp, 0x70
pop r12
pop rsi
pop rbx
ret
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x58], r13
mov r13, 0xffffffff80000002
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
mov r9d, 0x20119
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400073bf
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x90]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x90], 0x100
mov ebp, ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140007350
nop dword [rax]
mov rcx, qword [rsp + 0xa8]
lea rax, [rsp + 0x40]
mov r9d, 0x20119
test rcx, rcx
mov rdx, rdi
mov qword [rsp + 0x20], rax
cmove rcx, r13
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000730c
lea rcx, [rsp + 0x98]
lea rax, [rdi + 4]
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x40]
lea rdx, str.ServiceName
xor r8d, r8d
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0x90], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140007301
mov rcx, rdi
mov dword [rdi], 0x5c2e5c5c
call fcn.140007090
cmp rax, rsi
cmova rsi, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
inc ebp
lea r9, [rsp + 0x90]
mov r8, rdi
mov edx, ebp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x90], 0x100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140007270
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
test rsi, rsi
je 0x1400073bf
lea r8, str._012I64X
mov r9, rsi
mov edx, 0x200
mov rcx, rdi
call fcn.140004ea0
test eax, eax
jne 0x1400073a3
mov rcx, rdi
or ebx, 0xffffffff
call fcn.140010e38
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x70
pop r12
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0x98]
lea rcx, str.MAC:
mov r9, rdi
mov rdx, r12
call fcn.140006c40
mov ebx, eax
mov rcx, rdi
call fcn.140010e38
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x70
pop r12
pop rsi
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x70
pop r12
pop rsi
pop rbx
ret
Function at 0x14000ac10
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x140
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x140029ab0]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov qword [0x14002cee0], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x20], eax
lea r9, str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
lea r8, str._s__u
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.140010a08
mov word [rsp + 0x120], bx
lea r8, [rsp + 0xa0]
lea edx, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000ae13
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000acb5
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov word [rsp + 0x60], bx
xor eax, eax
mov qword [rsp + 0x62], rax
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov qword [rsp + 0x92], rax
mov dword [rsp + 0x9a], eax
mov word [rsp + 0x9e], ax
lea r8d, [rax + 0x1f]
lea rdx, [rsp + 0x60]
lea rcx, str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
call fcn.14000a8b0
mov qword [rsp + 0x38], rbx
test eax, eax
je 0x14000ad48
mov eax, eax
mov word [rsp + rax*2 + 0x60], bx
lea r8, [rsp + 0x38]
lea rdx, str._I64x
lea rcx, [rsp + 0x60]
call fcn.140010904
cmp eax, 1
jne 0x14000ad48
mov rax, qword [rsp + 0x38]
mov qword [0x14002cee0], rax
jmp 0x14000adf7
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14000ad6a
xor edx, edx
mov r8d, 0x5d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x14000ad81
mov rdx, rsi
mov rcx, rdi
call fcn.14000b080
jmp 0x14000ad84
mov rax, rbx
mov qword [0x14002cee0], rax
test rax, rax
jne 0x14000ada9
mov dword [rsp + 0x34], 1
lea rdx, [0x140026208]
lea rcx, [rsp + 0x34]
call fcn.140019db8
mov ebx, 1
mov r8, rax
lea rdx, str._I64x
lea rcx, [rsp + 0x60]
call fcn.140010af0
lea rdx, [rsp + 0x60]
lea rcx, str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
call fcn.14000aa00
test eax, eax
jne 0x14000adf0
mov dword [rsp + 0x30], 3
lea rdx, [0x140026208]
lea rcx, [rsp + 0x30]
call fcn.140019db8
mov rax, qword [0x14002cee0]
inc dword [rax + 0x5d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x14000ae13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [0x14002cee0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14000f6d0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000ae40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14002cee0]
test rax, rax
je 0x14000af39
mov ecx, dword [rax + 8]
cmp ecx, 0xffffffff
jne 0x14000ae76
mov qword [rsp + 0x40], 0
jmp 0x14000ae91
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000af39
mov rax, qword [0x14002cee0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000af37
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000af37
lea rcx, [0x14002cee0]
call fcn.14000af40
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000aee0
mov dword [rsp + 0x20], 1
lea rdx, [0x140026208]
lea rcx, [rsp + 0x20]
call fcn.140019db8
mov rax, qword [0x14002cee0]
mov ecx, dword [rax + 8]
cmp ecx, 0xffffffff
je 0x14000aefe
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000aefe
jmp 0x14000af1d
mov dword [rsp + 0x24], 4
lea rdx, [0x140026208]
lea rcx, [rsp + 0x24]
call fcn.140019db8
nop
mov rbx, qword [rsp + 0x40]
mov rcx, qword [0x14002cee0]
mov rcx, qword [rcx]
test rcx, rcx
je 0x14000af32
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, rbx
jmp 0x14000af39
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14000af40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [rbp]
mov esi, eax
mov rbx, qword [rdx + 0x5b8]
add rdx, 0x10
mov qword [rdx + 0x5b8], rbx
cmp rbx, rdx
jne 0x14000af81
mov rbx, rdi
jmp 0x14000af8f
mov rax, qword [rbx + 0x5a8]
mov qword [rdx + 0x5b8], rax
test rbx, rbx
je 0x14000b055
mov r8d, dword [rbx]
cmp esi, r8d
jne 0x14000afa5
mov rdi, rbx
jmp 0x14000b020
mov edx, 1
lea ecx, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
jne 0x14000b017
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14000b008
mov rcx, qword [rbx + 0x5b0]
mov rax, qword [rbx + 0x5a8]
mov qword [rcx + 0x5a8], rax
mov rcx, qword [rbx + 0x5a8]
mov rax, qword [rbx + 0x5b0]
mov qword [rcx + 0x5b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14000b020
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000b020
lea rcx, [0x140023a90]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000b020
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp]
mov rbx, qword [rdx + 0x5c8]
add rdx, 0x10
cmp rbx, rdx
je 0x14000b04b
mov rcx, qword [rbx + 0x5a8]
mov qword [rdx + 0x5b8], rcx
test rbx, rbx
jne 0x14000af98
test rdi, rdi
je 0x14000b055
mov rax, rdi
jmp 0x14000b069
mov rcx, qword [rbp]
add rcx, 0x10
call fcn.14000b1e0
test rax, rax
je 0x14000b069
mov dword [rax], esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b080
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], 0
mov dword [rcx + 8], 0xffffffff
lea rbx, [rcx + 0x10]
mov dword [rbx], 0
lea rcx, [rbx + 8]
xor edx, edx
mov r8d, 0x5a0
call fcn.14000fca0
mov qword [rbx + 0x5b0], rbx
mov qword [rbx + 0x5a8], rbx
mov qword [rbx + 0x5b8], rbx
mov dword [rdi + 0x5d0], 0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rdi + 8], eax
cmp eax, 0xffffffff
jne 0x14000b113
mov dword [rsp + 0x50], 2
lea rdx, [0x140026208]
lea rcx, [rsp + 0x50]
call fcn.140019db8
int3
mov qword [rdi], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b370
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
xor ebp, ebp
mov esi, edx
lea rax, [rsp + 0x30]
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
lea r9d, [rbp + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x78], ebp
mov dword [rsp + 0x70], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000b3ba
xor eax, eax
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x30]
dec esi
lea r9, [rsp + 0x78]
lea eax, [rsi + rsi]
lea rdx, str.Path
xor r8d, r8d
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov word [rbx], bp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14000b453
mov eax, dword [rsp + 0x78]
cmp eax, 1
je 0x14000b418
cmp eax, 7
je 0x14000b418
cmp eax, 2
jne 0x14000b453
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
mov word [rbx + rsi*2], bp
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 4
jb 0x14000b455
cmp word [rbx + rcx*2 - 2], 0x5c
jne 0x14000b441
mov word [rbx + rcx*2 - 2], bp
mov eax, 1
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000b490
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa50
mov rax, qword [0x140029ab0]
xor rax, rsp
mov qword [rsp + 0xa40], rax
mov r13, rcx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rdx
xor edx, edx
xor eax, eax
mov rdi, r13
repne scasw ax, word [rdi]
mov r12d, edx
mov ebp, edx
not rcx
mov word [rsp + 0x240], dx
lea rdx, [rsp + 0x240]
lea r15, [rcx - 1]
mov ecx, 0x3ff
mov r14d, r8d
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x14000b5cc
mov eax, dword [0x1400205f0]
lea rcx, [rsp + 0x28]
lea rbx, [rsp + 0x240]
mov dword [rcx], eax
movzx eax, word [0x1400205f4]
mov word [rcx + 4], ax
movzx eax, word [rbx]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
mov r8d, 0x400
mov word [rsp + 0x28], ax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x14000b5b3
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp ecx, 0x104
jae 0x14000b5b3
mov esi, ecx
mov r8d, ecx
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.14000f610
xor ebp, ebp
test eax, eax
sete bpl
test ebp, ebp
je 0x14000b5b3
mov ecx, r15d
sub ecx, edi
lea eax, [rcx + 2]
cmp eax, r14d
jae 0x14000b5fa
lea r8d, [rcx + 1]
lea rdx, [r13 + rsi*2]
mov rsi, qword [rsp + 0x20]
lea rcx, [rsi + 4]
add r8, r8
call fcn.14000f080
mov edx, dword [rsp + 0x28]
mov r12d, 1
mov dword [rsi], edx
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x14000b5b3
test ebp, ebp
jne 0x14000b5cc
cmp word [rbx], bp
jne 0x14000b521
mov eax, r12d
mov rcx, qword [rsp + 0xa40]
xor rcx, rsp
call fcn.14000f6d0
mov rbx, qword [rsp + 0xaa0]
add rsp, 0xa50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x14000b5cf