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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor sil, sil
mov rax, rdx
mov rdi, rcx
mov r14d, 0x80070000
test rdx, rdx
jne 0x14000c66f
mov rcx, qword [rcx + 0x18]
lea rdx, [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [0x14002f570]
mov ebx, eax
test eax, eax
js 0x14000c791
mov rdx, qword [rdi + 0x28]
lea rax, [rbp + 0x38]
mov rcx, qword [rbp - 0x10]
mov esi, 1
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
lea eax, [rbx + 0x7ff8fffe]
cmp eax, esi
jbe 0x14000c79e
test ebx, ebx
js 0x14000c791
mov rax, qword [rbp + 0x38]
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rcx
lea rdx, str.Size
lea rcx, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000c782
mov eax, dword [rbp + 0x48]
lea rdx, str.Progress
mov rcx, qword [rbp + 0x38]
xor r9d, r9d
mov qword [rdi + 0x68], rax
xor r8d, r8d
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000c782
mov eax, dword [rbp + 0x48]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
lea rdx, str.LastAttemptHigh
mov rcx, qword [rbp + 0x38]
xor r9d, r9d
mov qword [rdi + 0x70], rax
xor r8d, r8d
lea rax, [rdi + 0x94]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000c782
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rcx
lea rax, [rdi + 0x90]
mov rcx, qword [rbp + 0x38]
lea rdx, str.LastAttemptLow
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test sil, sil
je 0x14000c791
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
and qword [rdi + 0x68], 0
mov ebx, esi
and qword [rdi + 0x70], 0
xor eax, eax
mov qword [rdi + 0x90], rax
jmp 0x14000c791
Function at 0x14000f190
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbp, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], r15
jne 0x14000f1c1
mov eax, 0x80004001
jmp 0x14000f303
test byte [rdx + 4], 2
je 0x14000f2e3
lea r14, [rcx + 0x1170]
or r9, 0xffffffffffffffff
lea r8, [rdx + 0x108]
mov rcx, r14
mov edx, 0x824
call fcn.14001b968
cmp eax, 0x50
jne 0x14000f1f9
mov edi, 0x8007007a
jmp 0x14000f301
lea rsi, [rbx + 0x128]
mov r8d, 0x824
mov rdx, rsi
mov rcx, r14
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14000f235
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14000f301
mov eax, 0x68
lea ecx, [rax + 0xc]
lea edx, [rax + 8]
lea r8d, [rax - 0x2e]
cmp ax, word [rsi]
jne 0x14000f2a4
movzx eax, word [rbx + 0x12a]
cmp cx, ax
jne 0x14000f2a4
cmp cx, word [rbx + 0x12c]
jne 0x14000f275
cmp dx, word [rbx + 0x12e]
jne 0x14000f275
cmp r8w, word [rbx + 0x130]
je 0x14000f320
cmp cx, ax
jne 0x14000f2a4
cmp cx, word [rbx + 0x12c]
jne 0x14000f2a4
cmp dx, word [rbx + 0x12e]
jne 0x14000f2a4
mov eax, 0x73
cmp ax, word [rbx + 0x130]
jne 0x14000f2a4
cmp r8w, word [rbx + 0x132]
je 0x14000f320
mov eax, 0x66
cmp ax, word [rsi]
jne 0x14000f2ca
cmp cx, word [rbx + 0x12a]
jne 0x14000f2ca
cmp dx, word [rbx + 0x12c]
jne 0x14000f2ca
cmp r8w, word [rbx + 0x12e]
je 0x14000f320
mov rcx, rsi
call fcn.140011e68
mov edi, eax
test eax, eax
js 0x14000f301
mov dword [rbx + 0x21b8], r15d
test edi, edi
js 0x14000f2f5
test byte [rbp + 4], 4
je 0x14000f2f5
mov eax, dword [rbp + 0x1150]
mov dword [rbx + 0x21bc], eax
xor edx, edx
mov rcx, rbx
call fcn.14000f340
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
add rsi, 2
cmp word [rsi], r15w
jne 0x14000f31c
mov eax, 0x2f
cmp ax, word [rsi - 2]
je 0x14000f2d8
mov dword [rsi], eax
jmp 0x14000f2d8
Function at 0x14000f340
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
and qword [r11 + 0x20], 0
lea rdx, [r11 + 0x20]
and qword [r11 + 0x18], 0
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc0]
call qword [0x14002f570]
mov ebx, eax
test eax, eax
js 0x14000f49c
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x28]
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f49c
lea rsi, [rbp + 0x1170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdi, [rbp + 0x128]
mov ebx, eax
mov rcx, rdi
lea r14d, [rax*2 + 2]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x28], ebx
mov r8, rdi
mov ebx, 1
mov qword [rsp + 0x20], rsi
mov r9d, eax
mov edx, ebx
lea ecx, [rbx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
mov rcx, qword [rsp + 0x90]
lea rdx, str.Path
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
lea r9d, [rbx + 1]
test eax, eax
jne 0x14000f447
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f49c
mov rcx, qword [rsp + 0x90]
lea rax, [rbp + 0x21bc]
mov r9d, 4
lea rdx, str.Priority
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14000f4af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f658
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10b0]
mov eax, 0x11b0
call fcn.14002dba0
sub rsp, rax
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x10a0], rax
mov rdi, qword [rbp + 0x1100]
mov r14, r8
and qword [rsp + 0x38], 0
mov r15, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x114c
lea rcx, [rsp + 0x48]
and qword [rdi], 0
mov rsi, r9
call fcn.140017680
or r9, 0xffffffffffffffff
mov dword [rsp + 0x40], 0x1154
mov r8, rbx
mov dword [rsp + 0x44], 7
mov edx, 0x80
lea rcx, [rsp + 0x48]
call fcn.14001b968
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1048
mov qword [rsp + 0x28], rax
lea rdx, str.Path
lea rax, [rbp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f7bb
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
lea rdx, str.Priority
lea rax, [rbp + 0x1090]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f7bb
lea r9, [rsp + 0x38]
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14000f500
mov ebx, eax
test eax, eax
js 0x14000f795
mov rax, qword [rsp + 0x38]
xor edx, edx
mov qword [rdi], rax
xor ebx, ebx
jmp 0x14000f79a
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000f7bb
mov rax, qword [rdx + 8]
add rdx, 8
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
mov eax, ebx
mov rcx, qword [rbp + 0x10a0]
xor rcx, rsp
call fcn.140015940
mov rbx, qword [rsp + 0x11f8]
add rsp, 0x11b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010964
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x258]
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x14001098f
lea ebx, [rcx + 2]
jmp 0x140010a6f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x140010a6f
cmp dword [rdi + 0x18], ebx
jne 0x140010a6f
and qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x34]
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x258], rax
mov esi, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x1400109fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010a6f
mov rdx, qword [rdi + 0x248]
xor r9d, r9d
mov rcx, qword [rdi + 0x258]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140010a2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010a6f
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140010a51
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010a6f
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r8, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002f570]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x140010a8a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400112e0
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 + 0x18], 0
mov rdi, rcx
and dword [rsp + 0x78], 0
mov rax, qword [rdx + 8]
test rax, rax
je 0x140011314
lea r8, [r11 + 0x18]
mov rdx, rax
call fcn.140011438
mov ebx, eax
test eax, eax
jmp 0x14001137a
mov r9d, dword [rdx + 0x1c]
lea rax, [rsp + 0x80]
mov r8d, dword [rdx + 0x18]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x50], rax
mov eax, dword [rdx + 0x34]
mov dword [rsp + 0x48], eax
mov eax, dword [rdx + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rdx + 0x2c]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x20]
mov dl, byte [rdx + 0x16]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14001137c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400113b7
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400113ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400113b7
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400113ca
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140011438
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov r15d, 0x44
mov dword [rbp + 0x48], r15d
mov r13, r8
mov r12, rdx
mov dword [rbp + 0x30], 0xff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r15d
lea edx, [r15 - 0x3c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14001149a
mov ebx, 0x8007000e
jmp 0x1400115c6
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 8]
call fcn.140011844
mov ebx, eax
test eax, eax
js 0x1400115a8
mov rsi, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r12
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001159e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001158c
cmp dword [rbp + 0x48], r15d
jbe 0x14001153a
mov ebx, dword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, ebx
mov r8, rdi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov r15, rax
test rax, rax
jne 0x140011537
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400115ac
mov rdi, r15
cmp dword [rbp + 0x30], 0xff
jbe 0x140011559
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 8]
call fcn.140011844
mov ebx, eax
test eax, eax
js 0x1400115a8
mov rsi, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov rdx, r12
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001159e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400115ac
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
jmp 0x1400115ac
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x1400115b9
mov rcx, rsi
call fcn.1400152f4
test rdi, rdi
je 0x1400115c6
mov rcx, rdi
call fcn.1400152f4
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x1400116cc
Capabilities:
Create directory

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 r15
sub rsp, 0x20
xor ebp, ebp
xor edx, edx
mov ebx, ebp
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011790
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140011790
movzx ecx, word [rdi]
mov esi, ebp
mov rdx, rdi
test cx, cx
je 0x14001178b
lea r15d, [rbp + 0x5c]
cmp cx, r15w
mov rax, rdx
cmovne rax, rsi
add rdx, 2
mov rsi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x14001171e
test rax, rax
je 0x14001178b
xor edx, edx
mov word [rax], bp
mov rcx, rdi
call fcn.1400116cc
mov word [rsi], r15w
mov ebx, eax
test eax, eax
js 0x140011790
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011787
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140011777
mov ebx, 1
jmp 0x140011790
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140011790
mov ebx, ebp
jmp 0x140011790
mov ebx, 0x80070003
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x1400117f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
and qword [rdx], 0
mov rbx, rdx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140011828
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140011832
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140011cc0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0x10058
call fcn.14002dba0
sub rsp, rax
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rsp + 0x10040], rax
and qword [rsp + 0x38], 0
xor ebx, ebx
and dword [rsp + 0x30], 0
mov r14, r9
cmp qword [0x14003fcb0], rbx
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r12d, 0x80070000
jne 0x140011d44
mov eax, dword [0x14003fcb8]
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, [0x14003fcb0]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140011d44
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011e34
mov rcx, qword [0x14003fcb0]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140011d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011e34
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x10000
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140011dc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011e34
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x140011dfd
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140011df6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011e34
mov ebx, 1
jmp 0x140011dff
xor ebx, ebx
cmp ebx, 1
je 0x140011d88
mov rcx, qword [rsp + 0x38]
mov r9, r14
and dword [rsp + 0x20], 0
mov r8, rbp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140011e34
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140011e44
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140015940
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011f3c
Capabilities:
Create directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r14, r9
mov qword [rax + 8], r13
mov rbp, rdx
mov rdi, rcx
mov r12d, r13d
test rcx, rcx
je 0x140011fb0
cmp word [rcx], r13w
je 0x140011fb0
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rdi
lea ecx, [rax + 3]
add ecx, ebx
movsxd r8, ecx
lea rcx, [rsp + 0x70]
call fcn.14001193c
mov edi, eax
test eax, eax
js 0x140012147
mov rbx, qword [rsp + 0x70]
mov rsi, rbp
jmp 0x140011fef
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 3
lea rcx, [rsp + 0x70]
movsxd rdx, eax
call fcn.140011844
mov edi, eax
test eax, eax
js 0x140012147
mov rbx, qword [rsp + 0x70]
or r9, 0xffffffffffffffff
mov r8, rbp
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.14001b968
lea rsi, [rbp + 6]
movzx ecx, word [rbx]
mov edx, 0x5c
cmp dx, cx
jne 0x140012002
cmp dx, word [rbx + 2]
je 0x140012032
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140012019
sub cx, 0x41
cmp cx, 0x19
ja 0x140012140
mov eax, 0x3a
cmp ax, word [rbx + 2]
jne 0x140012140
cmp dx, word [rbx + 4]
jne 0x140012140
test r14, r14
je 0x14001204e
mov dword [rsp + 0x20], 0x18
lea r12, [rsp + 0x20]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x30], r13d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
movzx eax, word [rsi]
lea r15, [rbx + rcx*2]
test ax, ax
je 0x14001214c
mov ecx, 0x5c
cmp cx, ax
jne 0x14001207d
cmp rsi, rbp
je 0x14001212a
mov word [r15], ax
cmp cx, ax
jne 0x140012126
mov rdx, r12
mov word [r15 + 2], r13w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400120f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400120e3
test r14, r14
je 0x1400120de
mov r8, r14
mov edx, 7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x1400120de
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001214c
mov edi, r13d
jmp 0x1400120f5
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001214c
mov edx, dword [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140012121
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001214c
mov ecx, 0x5c
add r15, 2
mov eax, 2
add rsi, rax
movzx eax, word [rsi]
test ax, ax
jne 0x14001206f
jmp 0x14001214c
mov edi, 0x80070057
jmp 0x14001214c
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140012159
mov rcx, rbx
call fcn.1400152f4
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012468
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, rdx
and dword [rax + 0x20], ebx
lea rdx, [rax + 0x20]
and qword [rax - 0x20], rbx
mov r14, r8
and dword [rax - 0x28], ebx
mov rbp, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x1400124c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012562
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x1400124de
mov ebx, 0x8007000e
jmp 0x140012562
cmp dword [rsp + 0x68], 0
jne 0x140012512
mov r9, rdi
mov r8d, esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140012512
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012559
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x140038038]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140012548
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012559
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + 8]
mov dword [r15], ecx
mov ecx, dword [rdx + 0xc]
mov dword [r14], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140012580
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012613
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140012605
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400125b9
mov ebx, 0x80070005
jmp 0x140012613
test al, 0x10
je 0x1400125c4
mov ebx, 0x8000ffff
jmp 0x140012613
test al, 7
je 0x140012613
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400125f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012613
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012613
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret