joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004d40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
call fcn.180006100
lea rdx, str.kbasnthasciateuhant98437uau
lea rcx, [rsp + 0x38]
call fcn.180006100
mov rcx, qword [rsp + 0x38]
call fcn.180009df8
xor ecx, ecx
call fcn.180009c38
mov rcx, qword [rsp + 0x38]
lea rdx, str.rbe
call fcn.180006d60
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180004dc3
mov rcx, qword [rsp + 0x38]
lea rdx, str.wbe
call fcn.180006d60
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180004dc3
call fcn.180009b14
imul ebx, dword [rax], 0x64
inc ebx
jmp 0x180004df4
xor ecx, ecx
call fcn.180009c38
mov r9, qword [rsp + 0x40]
mov edx, 1
lea rcx, [0x1800307f4]
mov r8d, edx
call fcn.180009338
cmp rax, 1
je 0x180004df4
call fcn.180009b14
imul ebx, dword [rax], 0x64
add ebx, 2
lea rcx, [rsp + 0x40]
call fcn.180006dd0
mov rcx, qword [rsp + 0x38]
call fcn.180009df8
lea rcx, [rsp + 0x38]
call fcn.180005f90
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800068d0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x68
mov r14, rcx
mov rcx, qword [r8]
mov ebp, edx
mov edx, 2
mov rdi, r8
call fcn.18000c0d8
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rdi], rax
mov qword [rsp + 0x40], r15
mov word [rax], r15w
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x180006955
or eax, 0xffffffff
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
cmp dword [rsp + 0xa8], ebp
jg 0x18000696e
mov eax, 1
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0xa0]
xor ecx, ecx
inc ebx
mov qword [rsp + 0x60], rsi
lea eax, [rbx + 1]
mov dword [rsp + 0xa0], ebx
movsxd rdx, eax
add rdx, rdx
call fcn.18000c0d8
mov qword [rsp + 0x38], r15
movsxd rcx, ebx
mov word [rax], r15w
mov word [rax + rcx*2], r15w
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0xa0]
mov rcx, r14
mov r8, rax
mov edx, ebp
mov qword [rsp + 0x28], r15
mov rsi, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rbx, qword [rsp + 0x90]
test eax, eax
je 0x1800069f3
or eax, 0xffffffff
mov rsi, qword [rsp + 0x60]
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rdi]
test rcx, rcx
je 0x180006a03
call fcn.180009cb8
mov qword [rdi], r15
mov qword [rdi], rsi
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
Function at 0x180006b50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
xor ebx, ebx
lea r8, [0x180031e94]
mov rsi, r9
or edi, 0xffffffff
mov ebp, ebx
mov dword [rsp + 0x60], ebx
call fcn.180006630
mov r14, rax
test rax, rax
je 0x180006c03
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006c03
mov ecx, dword [rsp + 0x60]
add rcx, 2
call fcn.18000c020
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rbx, rax
mov byte [rax], bpl
mov eax, dword [rsp + 0x60]
mov byte [rax + rbx], bpl
mov eax, dword [rsp + 0x60]
mov rdx, r15
inc eax
mov rcx, r14
mov byte [rax + rbx], bpl
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006c03
cmp dword [rsp + 0x78], 4
jne 0x180006c03
mov ebp, dword [rbx]
test rsi, rsi
je 0x180006c0a
mov dword [rsi], edi
mov rcx, rbx
call fcn.180009cb8
mov rbx, qword [rsp + 0x68]
mov eax, ebp
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006ee0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xa8
mov rax, qword [0x18003f1b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
or ebx, 0xffffffff
xor r13d, r13d
mov rdi, rcx
mov qword [r11 - 0x38], r15
mov r12d, r8d
mov r10d, r13d
mov r14, rdx
movsxd r15, r9d
lea rcx, [0x180031e98]
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
lea r10, [r10 + 2]
mov word [rsp + r10 + 0x56], ax
test ax, ax
jne 0x180006f30
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xd8], rbp
call fcn.180006cb0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1800080d0
mov rsi, rax
test rax, rax
je 0x18000703c
mov rcx, rax
call fcn.18000ca6c
lea rdx, [rsp + 0x20]
mov ecx, eax
mov ebp, eax
call fcn.18000ca94
test eax, eax
jne 0x18000703c
lea eax, [r12*2 - 2]
mov r8d, 2
mov ecx, ebp
movsxd rdi, eax
cmp qword [rsp + 0x38], rdi
cmovl rdi, qword [rsp + 0x38]
mov rax, rdi
cqo
sub rax, rdx
mov rdx, rdi
sar rax, 1
neg rdx
mov rbx, rax
call fcn.18000ce60
lea rcx, [rdi + 2]
call fcn.18000c020
mov r9, rsi
mov r8, rdi
mov rcx, rax
mov edx, 1
mov qword [r14], rax
call fcn.180008c54
mov rax, qword [r14]
movsxd r8, ebx
mov word [rax + r8*2], r13w
cmp ebx, r15d
jle 0x180007037
mov rcx, qword [r14]
mov rax, r15
mov rdx, rcx
test r15, r15
je 0x180007037
cmp word [rdx], 0xa
je 0x180007015
add rdx, 2
dec rax
jne 0x180007001
mov ebx, r13d
jmp 0x18000704c
test rdx, rdx
je 0x180007037
mov rax, rdx
sub rax, rcx
sar rax, 1
sub r8, rax
cmp r8, r15
jle 0x180007037
add r8, r8
add rdx, 2
call fcn.18000b0c0
mov ebx, r13d
jmp 0x18000704c
mov rcx, qword [r14]
test rcx, rcx
je 0x18000704c
call fcn.180009cb8
mov qword [r14], r13
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd8]
test rsi, rsi
je 0x180007089
mov rcx, rsi
call fcn.18000ca04
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180009fa0
add rsp, 0xa8
pop rsi
pop rbx
ret
mov r9d, 0x400
jmp 0x180006ee0
Function at 0x1800070b0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xa8
mov rax, qword [0x18003f1b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
or ebx, 0xffffffff
xor r13d, r13d
mov rdi, rcx
mov qword [r11 - 0x38], r15
mov r12d, r8d
mov r10d, r13d
mov r14, rdx
movsxd r15, r9d
lea rcx, [0x180031e98]
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
lea r10, [r10 + 2]
mov word [rsp + r10 + 0x56], ax
test ax, ax
jne 0x180006f30
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xd8], rbp
call fcn.180006cb0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1800080d0
mov rsi, rax
test rax, rax
je 0x18000703c
mov rcx, rax
call fcn.18000ca6c
lea rdx, [rsp + 0x20]
mov ecx, eax
mov ebp, eax
call fcn.18000ca94
test eax, eax
jne 0x18000703c
lea eax, [r12*2 - 2]
mov r8d, 2
mov ecx, ebp
movsxd rdi, eax
cmp qword [rsp + 0x38], rdi
cmovl rdi, qword [rsp + 0x38]
mov rax, rdi
cqo
sub rax, rdx
mov rdx, rdi
sar rax, 1
neg rdx
mov rbx, rax
call fcn.18000ce60
lea rcx, [rdi + 2]
call fcn.18000c020
mov r9, rsi
mov r8, rdi
mov rcx, rax
mov edx, 1
mov qword [r14], rax
call fcn.180008c54
mov rax, qword [r14]
movsxd r8, ebx
mov word [rax + r8*2], r13w
cmp ebx, r15d
jle 0x180007037
mov rcx, qword [r14]
mov rax, r15
mov rdx, rcx
test r15, r15
je 0x180007037
cmp word [rdx], 0xa
je 0x180007015
add rdx, 2
dec rax
jne 0x180007001
mov ebx, r13d
jmp 0x18000704c
test rdx, rdx
je 0x180007037
mov rax, rdx
sub rax, rcx
sar rax, 1
sub r8, rax
cmp r8, r15
jle 0x180007037
add r8, r8
add rdx, 2
call fcn.18000b0c0
mov ebx, r13d
jmp 0x18000704c
mov rcx, qword [r14]
test rcx, rcx
je 0x18000704c
call fcn.180009cb8
mov qword [r14], r13
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd8]
test rsi, rsi
je 0x180007089
mov rcx, rsi
call fcn.18000ca04
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180009fa0
add rsp, 0xa8
pop rsi
pop rbx
ret
mov r9d, 0x400
jmp 0x180006ee0

Function at 0x180007180
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, rdx
mov r14, rcx
test rdx, rdx
jne 0x1800071a6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
movsxd rdi, dword [rsp + 0x30]
lea edx, [rdi + 1]
mov rsi, rax
movsxd rcx, edx
mov edx, 1
shl rcx, 3
call fcn.180009c74
mov r8, rdi
mov rdx, rsi
mov rcx, rax
shl r8, 3
mov rbx, rax
call fcn.18000b0c0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x38]
mov rax, r14
add rsp, 0x20
pop r14
ret
Function at 0x180007240
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, dword [0x18003f014]
xor ebx, ebx
mov r12, r9
mov r13, r8
mov esi, ebx
mov ebp, ebx
mov edi, ebx
mov r15d, ebx
mov r14d, ebx
cmp eax, 0xffffffff
je 0x1800072a4
mov ebx, dword [0x18003f010]
mov edi, dword [0x18003f018]
mov r15d, dword [0x18003f01c]
mov r14d, dword [0x18003f020]
mov ebp, dword [0x18003f024]
mov esi, eax
jmp 0x180007385
cmp dword [0x180041030], ebx
jne 0x1800072cb
lea rcx, [0x180041030]
mov dword [0x180041030], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180007355
mov esi, dword [0x180041034]
mov edi, dword [0x180041038]
mov r15d, dword [0x18004103c]
mov r14d, dword [0x180041040]
movzx ebp, word [0x180041144]
cmp esi, 0xa
jg 0x180007350
jne 0x1800072fe
test edi, edi
jns 0x180007350
mov ebx, 6
jmp 0x180007355
cmp esi, 6
jg 0x1800072f7
jne 0x18000732d
cmp edi, 3
jge 0x1800072f7
cmp edi, 2
jge 0x180007326
cmp edi, 1
jge 0x18000731f
test edi, edi
js 0x180007349
mov ebx, 3
jmp 0x180007355
mov ebx, 4
jmp 0x180007355
mov ebx, 5
jmp 0x180007355
cmp esi, 5
jg 0x180007349
jne 0x180007355
cmp edi, 2
jge 0x180007349
cmp edi, 1
jge 0x180007349
test edi, edi
js 0x180007355
mov ebx, 1
jmp 0x180007355
mov ebx, 2
jmp 0x180007355
mov ebx, 7
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov dword [0x18003f010], ebx
mov dword [0x18003f014], esi
mov dword [0x18003f018], edi
mov dword [0x18003f01c], r15d
mov dword [0x18003f020], r14d
mov dword [0x18003f024], ebp
test rcx, rcx
je 0x18000738c
mov dword [rcx], ebx
test rdx, rdx
je 0x180007393
mov dword [rdx], esi
test r13, r13
je 0x18000739c
mov dword [r13], edi
test r12, r12
je 0x1800073a5
mov dword [r12], r15d
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x1800073b5
mov dword [rax], r14d
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x1800073c4
mov dword [rax], ebp
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800073e0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
mov eax, dword [0x18003f010]
cmp eax, 0xffffffff
jne 0x180007522
mov qword [rsp + 0x40], rbx
xor ebx, ebx
cmp dword [0x18003f014], eax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov esi, ebx
mov r15d, ebx
mov ebp, ebx
mov edi, ebx
mov r14d, ebx
jne 0x180007504
cmp dword [0x180041030], ebx
jne 0x180007452
lea rcx, [0x180041030]
mov dword [0x180041030], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800074dc
mov esi, dword [0x180041034]
mov edi, dword [0x180041038]
mov r14d, dword [0x18004103c]
mov r15d, dword [0x180041040]
movzx ebp, word [0x180041144]
cmp esi, 0xa
jg 0x1800074d7
jne 0x180007485
test edi, edi
jns 0x1800074d7
mov ebx, 6
jmp 0x1800074dc
cmp esi, 6
jg 0x18000747e
jne 0x1800074b4
cmp edi, 3
jge 0x18000747e
cmp edi, 2
jge 0x1800074ad
cmp edi, 1
jge 0x1800074a6
test edi, edi
js 0x1800074d0
mov ebx, 3
jmp 0x1800074dc
mov ebx, 4
jmp 0x1800074dc
mov ebx, 5
jmp 0x1800074dc
cmp esi, 5
jg 0x1800074d0
jne 0x1800074dc
cmp edi, 2
jge 0x1800074d0
cmp edi, 1
jge 0x1800074d0
test edi, edi
js 0x1800074dc
mov ebx, 1
jmp 0x1800074dc
mov ebx, 2
jmp 0x1800074dc
mov ebx, 7
mov eax, ebx
mov dword [0x18003f010], ebx
mov dword [0x18003f014], esi
mov dword [0x18003f018], edi
mov dword [0x18003f01c], r14d
mov dword [0x18003f020], r15d
mov dword [0x18003f024], ebp
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x1800078a0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1070
call fcn.18000d3b0
sub rsp, rax
mov rax, qword [0x18003f1b0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
xor ebp, ebp
mov rbx, rcx
mov rcx, qword [rdx]
or esi, 0xffffffff
mov rdi, rdx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
test rcx, rcx
je 0x1800078ec
call fcn.180009cb8
mov qword [rdi], rbp
mov rdx, rbp
lea rcx, [0x180031f68]
nop word [rax + rax]
movzx eax, word [rdx + rcx]
lea rdx, [rdx + 2]
mov word [rsp + rdx + 0x46], ax
test ax, ax
jne 0x180007900
lea rcx, [rsp + 0x48]
call fcn.180006cb0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800080d0
mov rbx, rax
test rax, rax
je 0x180007a3e
lea rcx, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180007a36
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180007a36
lea rcx, [rsp + 0x60]
mov r9, rbx
mov edx, 1
mov r8d, 0x1000
call fcn.180008c54
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x1800079ea
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov r8d, eax
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180007a36
lea rcx, [rsp + 0x60]
mov r9, rbx
mov edx, 1
mov r8d, 0x1000
call fcn.180008c54
mov dword [rsp + 0x30], eax
test eax, eax
jg 0x1800079b0
mov edx, 1
mov dword [rsp + 0x30], 0x14
lea ecx, [rdx + 0x13]
call fcn.180009c74
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, 2
mov qword [rdi], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180007a34
mov rcx, qword [rdi]
test rcx, rcx
je 0x180007a36
call fcn.180009cb8
mov qword [rdi], rbp
jmp 0x180007a36
mov esi, ebp
mov rcx, rbx
call fcn.18000ca04
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180007a50
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180007a60
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.180009fa0
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007a90
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rsi, rcx
mov rcx, qword [r8]
or edi, 0xffffffff
mov rbx, r8
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], rbp
test rcx, rcx
je 0x180007ac5
call fcn.180009cb8
mov qword [rbx], rbp
lea rcx, [rsp + 0x68]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180007b75
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180007b75
mov r8d, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180007b75
mov edx, 1
mov dword [rsp + 0x58], 0x14
lea ecx, [rdx + 0x13]
call fcn.180009c74
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov r8, rax
mov edx, 2
mov qword [rbx], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180007b73
mov rcx, qword [rbx]
test rcx, rcx
je 0x180007b75
call fcn.180009cb8
mov qword [rbx], rbp
jmp 0x180007b75
mov edi, ebp
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180007b87
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180007b97
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x180007c00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea ecx, [rdx + 0x1f]
mov rsi, r8
call fcn.180009c74
lea r8, [0x1800083d0]
xor edx, edx
mov qword [rbx], rax
mov r14, rax
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
mov dword [rax + 0x1c], 2
xor eax, eax
mov qword [rsp + 0x28], rax
mov r9, r14
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.18000cfdc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov qword [r14], rax
neg rax
sbb eax, eax
neg eax
dec eax
add rsp, 0x30
pop r14
ret

Function at 0x180007c90
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x180009cf8
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180009d10
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180009d12
xor eax, eax
test eax, eax
je 0x180009d22
mov ecx, eax
call fcn.180009ac4
or eax, 0xffffffff
jmp 0x180009d24
xor eax, eax
add rsp, 0x28
ret
Function at 0x180009dc8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180009dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180009de0
xor eax, eax
test eax, eax
je 0x180009df0
mov ecx, eax
call fcn.180009ac4
or eax, 0xffffffff
jmp 0x180009df2
xor eax, eax
add rsp, 0x28
ret
jmp 0x180009dc8

Function at 0x180009df8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180009dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180009de0
xor eax, eax
test eax, eax
je 0x180009df0
mov ecx, eax
call fcn.180009ac4
or eax, 0xffffffff
jmp 0x180009df2
xor eax, eax
add rsp, 0x28
ret
jmp 0x180009dc8
Function at 0x180004d14
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180038ff0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x180004e13
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x180004dea
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.180004c4c
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.180004d14
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x180004dd1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x180004dda
jmp 0x180004dea
jmp 0x180004d6a
cmp ebx, 0x103
je 0x180004dfa
cmp ebx, 0x3f2
jne 0x180004e08
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180013eb0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180006db4
Capabilities:
Set thread local storage value

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 r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x180006e41
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x180006e0d
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x180006e0d
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x180006e2d
xor esi, esi
jmp 0x180006e2d
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x180006e24
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x180006ded
test esi, esi
je 0x180006e88
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.1800068d4
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret