joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001460
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push rsi
movabs rbp, 0x72000000000
mov rsi, r8
sub rbp, qword [r8 + 0x30]
je 0x1800015cf
test byte [r8 + 0x5e], 0x40
jne 0x180001486
xor eax, eax
pop rsi
pop rbp
ret
movzx eax, word [rsi + 0x14]
lea rdx, [rsi + 0x18]
mov r8d, dword [r8 + 0xb0]
add rdx, rax
movzx eax, word [rsi + 6]
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], r15
lea r15, [0x180019990]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x1800014df
nop
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1800014d6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1800015d7
add rdx, 0x28
cmp rdx, r9
jb 0x1800014c0
xor ebx, ebx
mov r14d, dword [rsi + 0xb4]
add r14, rbx
test rbx, rbx
je 0x1800015c0
cmp rbx, r14
jae 0x1800015c0
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x1800015bb
add eax, 0xfffffff8
shr eax, 1
je 0x1800015ac
lea r11, [rbx + 8]
mov edi, eax
nop
movzx r8d, word [r11]
mov eax, r8d
shr eax, 0xc
and r8d, 0xfff
jge 0x180001540
dec r8d
or r8d, 0xfffff000
inc r8d
cmp eax, 3
je 0x18000154a
cmp eax, 0xa
jne 0x18000159e
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x18000158b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x180001582
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x1800015eb
add rax, 0x28
cmp rax, r10
jb 0x180001570
xor edx, edx
test rdx, rdx
movsxd rax, r8d
mov rcx, r15
cmovne rcx, rdx
add qword [rax + rcx], rbp
add r11, 2
sub rdi, 1
jne 0x180001520
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r14
jb 0x180001502
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x30]
mov eax, 1
pop rsi
pop rbp
ret
mov ebx, dword [rdx + 0x14]
mov eax, dword [rdx + 0xc]
sub rbx, rax
add rbx, r8
add rbx, r15
jmp 0x1800014e1
mov edx, dword [rax + 0x14]
mov ecx, dword [rax + 0xc]
sub rdx, rcx
add rdx, r9
add rdx, r15
jmp 0x18000158d
Function at 0x4027e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00410e80]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x402800
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004026c0
test eax, eax
je 0x4027f8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40285d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402854
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4027f8
add rdx, 0x28
cmp rdx, r9
jne 0x402840
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4076a0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x4076f5
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x4076e0
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x407770
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.00406f60
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.00406b10
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.004073d0
mov eax, dword [0x0040f0a0]
cmp eax, 0xffffffff
je 0x40779c
test eax, eax
je 0x40778c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x4076fd
call fcn.0040e850
test al, 1
mov edx, 3
jne 0x40777f
jmp 0x407784
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4077c4
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x0040f0a0], eax
jmp 0x40777b
xor eax, eax
jmp 0x4077b9
Function at 0x40eae0
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
mov ecx, 0x70
mov edx, 1
mov rbp, rsp
push rdi
push rsi
push rbx
lea rsi, str.7eff141e576f58846c92843c10845dfff58c9d20ab149f9884ad98840f98949c13d47c98943c98845dff5e354a85ab149c13842f988485140000010086951404a66f98e5024c38845dfff58c9d20ab149f9884851440a69c13d42e988401ce38845dff652a5b0f865e57ecff94c0470c585dff16475a99ab149f98842e98c4851401a67c98845dff0efdf0aeab141c98840cff842c98840cff840c13d49c13d40505e514a0a65dff00b60892ab14950000101086ae98c45dff706277c4ab141f98c44e98944514c9803256ddff0020cb945e98940000100ace18846e9894651400002333f5233777eb94d5ffffffb49e21b884a59514850eff251402ce3884a51495148514a595e5851485140d10848840b8140d1094c104b84484c0b814660d10944204b844858d571d93548042c430c41f570e831c1014cad09c1c140c13846d10848843b8149cff849c13d4653e0d10940204b844058184b80d108476470c58840000008808b80000002758f020b0818718660d10841514c324b80225b88425de2e1c1014d09c1c1402c220c716c3ca0c13840527b8849c13d4a4a47bf0840225b8848125b8840625b88456652d1384152505141514000000cc8e0f4e3884cf
and rsp, 0xfffffffffffffff0
sub rsp, 0x3b0
lea rbx, [rsp + 0x20]
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x1c1
movzx eax, word [rsi]
mov word [rdi], ax
movzx eax, byte [0x004103aa]
mov byte [rdi + 2], al
call sub.msvcrt.dll_calloc
test rax, rax
je 0x40eba5
mov rdx, rax
mov rcx, rbx
mov rsi, rax
call fcn.0040ea20
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor edx, edx
mov r8d, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x40eb90
mov rdx, rsi
mov r8d, 0x1c1
mov rcx, rax
call sub.msvcrt.dll_memmove
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumWindows]
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.HeapAlloc_error
call fcn.0040ea80
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.malloc_error
call fcn.0040ea80
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140006028
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r14d, r14d
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], rax
mov rcx, rax
mov qword [rbp - 0x18], r14
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x20], r14d
call fcn.140012f40
mov ebx, eax
test eax, eax
js 0x1400060ee
jmp 0x1400060cd
mov rcx, qword [rbp - 0x18]
mov edx, 0xfffd
movzx eax, word [rcx]
sub ax, 0x2d
test dx, ax
jne 0x14000612f
lea rbx, [rcx + 2]
mov rdx, rbx
lea rcx, str.standalone
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400060b3
mov dword [rsi], 1
jmp 0x1400060cd
mov rdx, rbx
lea rcx, str.standalone:temp
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140006118
mov dword [rdi], 1
mov rcx, qword [rbp - 0x10]
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x18]
call fcn.140012f40
mov ebx, eax
test eax, eax
je 0x14000607a
test eax, eax
cmovns ebx, r14d
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400060fc
call fcn.140010d28
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
mov rdx, rbx
lea rcx, str.standalone:delete
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, 0x80070057
jmp 0x1400060ee
mov ebx, 0x80070057
jmp 0x1400060f2
Function at 0x14000e5f4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10b8]
mov eax, 0x11b8
call fcn.1400149a0
sub rsp, rax
mov rax, qword [0x1400380c8]
xor rax, rsp
mov qword [rbp + 0x10a0], rax
mov rdi, qword [rbp + 0x1110]
mov rsi, r8
and qword [rsp + 0x38], 0
mov r15, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x1154
lea rcx, [rsp + 0x40]
and qword [rdi], 0
mov r14, r9
call fcn.140015700
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.140018a30
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 0x14000e72e
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 0x14000e72e
lea r9, [rsp + 0x38]
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14000e530
mov ebx, eax
test eax, eax
js 0x14000e72e
mov rax, qword [rsp + 0x38]
xor edx, edx
mov qword [rdi], rax
xor ebx, ebx
mov qword [rsp + 0x38], rdx
jmp 0x14000e733
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000e74d
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rcx, qword [rbp + 0x10a0]
xor rcx, rsp
call fcn.1400148a0
add rsp, 0x11b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000eb50
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 0x14000eb7b
lea ebx, [rcx + 2]
jmp 0x14000ec55
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x14000ec55
cmp dword [rdi + 0x18], ebx
jne 0x14000ec55
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 0x14000ebe6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ec55
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 0x14000ec18
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ec55
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14000ec3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ec55
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r8, rdx
mov r9, qword [rcx]
call qword [r9 + 0xa0]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x14000ec70
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 0x14001014c
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 0x140010182
lea r8, [r11 + 0x18]
mov rdx, rax
xor ecx, ecx
call fcn.1400103b0
mov ebx, eax
test eax, eax
jmp 0x1400101e8
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 0x1400101ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010225
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14001021c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010225
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140010238
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400103b0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov r14d, 0x44
mov r15, rdx
mov dword [rbp - 0x10], r14d
mov r12, rcx
mov dword [rbp + 0x48], 0xff
mov ecx, r14d
mov r13, r8
lea edx, [r14 - 0x43]
call fcn.1400144dc
mov rdi, rax
test rax, rax
jne 0x140010407
mov ebx, 0x8007000e
jmp 0x140010507
mov edx, dword [rbp + 0x48]
lea rcx, [rbp - 8]
call fcn.140010744
mov ebx, eax
test eax, eax
js 0x140010507
lea rax, [rbp - 0xc]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x48]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400104ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400104ed
cmp dword [rbp - 0x10], r14d
jbe 0x14001049a
mov edx, dword [rbp - 0x10]
lea r8d, [rax - 0x79]
mov rcx, rdi
call fcn.140014540
mov r14, rax
test rax, rax
jne 0x140010497
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010507
mov rdi, r14
cmp dword [rbp + 0x48], 0xff
jbe 0x1400104b5
mov edx, dword [rbp + 0x48]
lea rcx, [rbp - 8]
call fcn.140010744
mov ebx, eax
test eax, eax
js 0x140010507
lea rax, [rbp - 0xc]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x48]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400104ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010507
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140010515
call fcn.140010d28
test rdi, rdi
je 0x140010522
mov rcx, rdi
call fcn.140014510
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140010540
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbp, rdx
mov ebx, edi
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140010600
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140010600
movzx eax, word [rsi]
xor edx, edx
mov rcx, rsi
test ax, ax
je 0x1400105fb
lea r8d, [rdi + 0x5c]
cmp ax, r8w
cmove rdi, rcx
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x14001058e
test rdi, rdi
je 0x1400105fb
mov word [rdi], dx
mov rcx, rsi
mov rdx, rbp
call fcn.140010540
mov ebx, eax
mov eax, 0x5c
mov word [rdi], ax
test ebx, ebx
js 0x140010600
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400105f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400105e7
mov ebx, 1
jmp 0x140010600
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140010600
xor ebx, ebx
jmp 0x140010600
mov ebx, 0x80070003
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400106f4
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 0x140010727
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140010731
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140010e58
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.1400149a0
sub rsp, rax
mov rax, qword [0x1400380c8]
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 [0x140038b40], rbx
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r12d, 0x80070000
jne 0x140010edb
mov eax, dword [0x140038b48]
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, [0x140038b40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140010edb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010fa0
mov rcx, qword [0x140038b40]
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 0x140010f1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010fa0
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 0x140010f57
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010fa0
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x140010f76
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x140010f02
xor ebx, ebx
mov r9, r14
and dword [rsp + 0x20], ebx
mov r8, rbp
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140010fa0
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 0x140010fb0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.1400148a0
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400114a0
Capabilities:
Create directory
Set file attributes

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
mov rbp, rsp
sub rsp, 0x40
xor r12d, r12d
mov r15, r9
mov qword [rbp + 0x40], r12
mov rsi, rdx
mov rdi, rcx
mov r13d, r12d
test rcx, rcx
je 0x14001150e
cmp word [rcx], r12w
je 0x14001150e
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
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, [rbp + 0x40]
call fcn.1400108b0
mov ebx, eax
test eax, eax
js 0x1400116bd
mov rdi, rsi
jmp 0x140011548
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 3
lea rcx, [rbp + 0x40]
movsxd rdx, eax
call fcn.140010744
mov ebx, eax
test eax, eax
js 0x1400116bd
mov rcx, qword [rbp + 0x40]
or r9, 0xffffffffffffffff
mov r8, rsi
lea edx, [r9 + 5]
call fcn.140018a30
lea rdi, [rsi + 6]
mov rdx, qword [rbp + 0x40]
mov r8d, 0x5c
movzx ecx, word [rdx]
cmp r8w, cx
jne 0x140011562
cmp r8w, word [rdx + 2]
je 0x140011593
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140011579
sub cx, 0x41
cmp cx, 0x19
ja 0x1400116b6
mov eax, 0x3a
cmp ax, word [rdx + 2]
jne 0x1400116b6
cmp r8w, word [rdx + 4]
jne 0x1400116b6
test r15, r15
je 0x1400115ab
mov dword [rbp - 0x20], 0x18
lea r13, [rbp - 0x20]
mov qword [rbp - 0x18], r15
mov dword [rbp - 0x10], r12d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 0x40]
movsxd rcx, eax
movzx eax, word [rdi]
lea r14, [rdx + rcx*2]
test ax, ax
je 0x1400116c1
mov r12d, dword [rbp + 0x60]
xor ecx, ecx
lea r8d, [rcx + 0x5c]
cmp r8w, ax
jne 0x1400115e4
cmp rdi, rsi
je 0x1400116a4
mov word [r14], ax
cmp r8w, ax
jne 0x14001169c
mov word [r14 + 2], cx
mov rdx, r13
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
test eax, eax
jne 0x140011664
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
jne 0x140011652
test r15, r15
je 0x14001164e
mov edx, dword [rbp + 0x50]
mov r8, r15
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
xor ecx, ecx
test eax, eax
jne 0x14001164e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116bd
mov ebx, ecx
jmp 0x140011664
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116bd
test r12d, r12d
je 0x140011696
mov rcx, qword [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
test eax, eax
jne 0x140011696
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116bd
mov r8d, 0x5c
mov rdx, qword [rbp + 0x40]
add r14, 2
add rdi, 2
movzx eax, word [rdi]
test ax, ax
jne 0x1400115d5
jmp 0x1400116c1
mov ebx, 0x80070057
jmp 0x1400116c1
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x1400116ce
mov rcx, rdx
call fcn.140010d28
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret