joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066960
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, r9d
mov r14, r8
mov r13, rdx
mov rbp, rcx
cmp r8, r15
jne 0x1400669b3
movzx eax, word [rdx]
lea r14, [r11 + 0x18]
mov word [rsp + 0x70], ax
movzx eax, word [rdx + 2]
mov word [rsp + 0x72], ax
lea eax, [r15 + 0x5c]
mov word [rsp + 0x74], ax
mov word [r11 + 0x1e], r15w
lea rcx, [rsp + 0x20]
mov edx, 0x209
call fcn.1400571c8
mov rbx, qword [rsp + 0x20]
lea rcx, str.Device_
mov r8d, 8
mov rdx, rbp
mov word [rbx], r15w
call fcn.140050a6c
cmp al, r15b
jne 0x140066a21
lea rcx, str.DosDevices_
mov r8d, 0xc
mov rdx, rbp
call fcn.140050a6c
cmp al, r15b
jne 0x140066a21
cmp word [rbp], r15w
je 0x140066a24
cmp word [rbp + 2], r15w
je 0x140066a24
lea rcx, [rbp + 4]
mov edx, 0x3a
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, r15
je 0x140066a24
or edi, 1
lea rcx, [0x1400f78a8]
mov r8d, 0xb
mov rdx, rbp
call fcn.140050a6c
mov sil, byte [rsp + 0x80]
cmp al, r15b
je 0x140066a4e
and edi, 0xfffffffe
cmp sil, r15b
jne 0x140066a7b
cmp sil, r15b
je 0x140066a5d
movzx ecx, word [r13]
call fcn.140053954
mov r8, rbp
mov rdx, r13
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov r12d, eax
cmp eax, r15d
jne 0x140066a8f
cmp sil, r15b
jl 0x140066add
mov sil, r15b
mov r8d, 0x208
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x140066abc
cmp sil, r15b
jle 0x140066add
mov r8d, 0x208
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
cmp eax, r15d
je 0x140066add
mov ecx, edi
mov r8, rbp
mov rdx, r13
or ecx, 0xe
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp sil, r15b
mov r12d, eax
jl 0x140066add
cmp eax, r15d
jne 0x140066add
mov sil, 0xff
jmp 0x140066a4e
lea rcx, [rsp + 0x20]
call fcn.14004f564
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
mov eax, r12d
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400676f4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
and dword [rax + 0x20], 0
mov r14, rdx
mov esi, 0x200
mov edx, esi
mov r13d, r9d
mov r15, r8
mov rdi, rcx
shl r14, 9
call fcn.140053ad4
cmp eax, esi
lea rcx, [rsp + 0x78]
cmovge esi, eax
lea edx, [rsi + rsi + 0x200]
call fcn.140056f64
mov rbp, qword [rsp + 0x78]
xor r8d, r8d
add rbp, 0x200
mov rdx, r14
mov rcx, rdi
and rbp, 0xfffffffffffffe00
mov r12d, esi
lea rbx, [rsi + rbp]
call fcn.140050964
cmp rax, r14
jne 0x140067811
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140067811
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.14001a9b0
cmp r13d, 1
jne 0x1400677b9
lea rcx, [rbx + 0x1ce]
lea r8d, [r13 + 0xf]
mov rdx, r15
call fcn.14001a9b0
xor eax, eax
mov ecx, 0xaa55
cmp r13d, 1
cmove ax, cx
xor r8d, r8d
mov rcx, rdi
mov rdx, r14
mov word [rbx + 0x1fe], ax
call fcn.140050964
cmp rax, r14
jne 0x140067811
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.14004f594
test eax, eax
je 0x140067811
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x78]
call fcn.14004f564
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140067b4c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov r15, rdx
xor esi, esi
mov dword [rdx], esi
lea rcx, [rax + 0x20]
mov edx, 0x4008
mov r12, r8
call fcn.140056f64
mov rbx, qword [rsp + 0x88]
lea rdi, [rbx + 0x800]
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
mov dword [rsp + 0x78], esi
call fcn.1400d1fa0
lea r9, [rsp + 0x78]
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x140067d83
mov eax, dword [rbx + 0x1b4]
movzx ecx, word [rbx + 0x1fe]
mov r13b, sil
cmp eax, 0x46424246
je 0x140067c9b
cmp eax, 0x534c5055
je 0x140067c9b
cmp eax, 0x5352424d
jne 0x140067d83
cmp ecx, 0xaa55
jne 0x140067d83
cmp dword [rbx + 0x1c], esi
jne 0x140067d83
mov ebp, 0x200
xor edx, edx
mov rcx, rdi
mov r8, rbp
call fcn.1400d1fa0
xor r8d, r8d
mov edx, 0x4a00
mov rcx, r14
call fcn.140050964
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x140067d83
cmp dword [rdi + 0x1b4], 0x5352424d
movzx eax, word [rdi + 0x1fe]
jne 0x140067d83
cmp eax, 0xaa55
jne 0x140067d83
cmp dword [rdi + 0x1c], 0x25
jne 0x140067d83
movzx esi, byte [rdi + 0x67]
xor eax, eax
cmp ax, si
jne 0x140067c87
lea esi, [rax + 1]
mov ebx, dword [rdi + 0x5c]
movzx eax, si
add ebx, eax
mov eax, dword [rdi + 0x60]
shl rax, 0x20
add rbx, rax
jmp 0x140067d02
mov ebp, 0x200
mov esi, 1
xor edx, edx
mov r8, rbp
mov rcx, rdi
mov r13b, sil
call fcn.1400d1fa0
xor r8d, r8d
mov edx, 0x8600
mov rcx, r14
call fcn.140050964
lea r9, [rsp + 0x78]
xor ebx, ebx
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x140067d83
mov al, byte [rdi + 0x1f8]
and al, 0xc0
cmp al, 0x40
jne 0x140067d83
mov rbx, qword [rdi + 0x1f0]
add rbx, rsi
mov r8, rbp
xor edx, edx
mov rcx, rdi
call fcn.1400d1fa0
mov rdx, rbx
shl rdx, 9
jmp 0x140067d55
lea rdx, [0x1400f79f8]
lea rcx, [rdi + 3]
mov r8d, 0xa
call fcn.14004f594
cmp eax, r9d
je 0x140067da9
cmp rbx, 0x41
je 0x140067d83
cmp r13b, r9b
jne 0x140067d83
mov r8, rbp
xor edx, edx
mov rcx, rdi
mov ebx, 0x41
call fcn.1400d1fa0
mov edx, 0x8200
xor r8d, r8d
mov rcx, r14
call fcn.140050964
xor eax, eax
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
cmp eax, r9d
jne 0x140067d18
lea rcx, [rsp + 0x88]
call fcn.14004f564
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rdi + 0x2c]
mov ebx, dword [rdi + 0x68]
mov eax, dword [rdi + 0x28]
and ecx, 0xffffffc0
shl rbx, 0x20
shl ecx, 9
or rbx, rax
mov dword [r15], ecx
cmp r12, r9
je 0x140067dd3
mov rcx, qword [rdi + 0x74]
shl rcx, 9
mov qword [r12], rcx
lea rcx, [rsp + 0x88]
call fcn.14004f564
shl rbx, 9
mov rax, rbx
jmp 0x140067d94
Function at 0x140067dec
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx r14d, dx
mov edx, 0x134
mov ebp, r9d
mov r15, rcx
call fcn.140057254
lea rcx, [rsp + 0x20]
mov edx, 0xca
call fcn.1400571c8
mov r12d, dword [rsp + 0x90]
movzx ebx, byte [rsp + 0x90]
and r12d, 0x100
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov rdi, qword [r15]
mov ecx, ebx
xor r8d, r8d
mov esi, eax
neg ecx
mov r13b, r8b
sbb al, al
and al, 0xfe
inc al
neg ebx
sbb ebx, ebx
mov byte [rsp + 0x90], al
and ebx, 0x19
cmp ebp, r8d
je 0x140067e7c
cmp ebp, 1
not esi
jle 0x140067e7c
and esi, 0xfffffffc
cmp ebx, 0x1a
movsxd r12, r12d
jge 0x140067eff
mov r15d, dword [rsp + 0x80]
cmp ebx, r8d
jl 0x140067efa
mov ecx, ebx
mov edx, 1
movsx eax, al
shl edx, cl
lea ebp, [rbx + 0x41]
add ebx, eax
test esi, edx
je 0x140067eee
cmp r12, r8
je 0x140067ebc
movsx ecx, bpl
call fcn.1400d1488
xor r8d, r8d
cmp eax, r8d
je 0x140067eee
cmp r13b, r8b
je 0x140067ecf
cmp r14w, r8w
je 0x140067ecf
mov word [rdi], r14w
add rdi, 2
movsx eax, bpl
mov r13b, 1
mov word [rdi], ax
add rdi, 2
cmp r15d, r8d
je 0x140067eee
mov eax, 0x3a
mov word [rdi], ax
add rdi, 2
cmp ebx, 0x1a
mov al, byte [rsp + 0x90]
jl 0x140067e8c
mov r15, qword [rsp + 0x70]
mov word [rdi], r8w
mov rbx, qword [r15]
lea rcx, [rsp + 0x20]
call fcn.14004f564
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400680cc
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea rcx, [rsp + 0x30]
lea r8d, [rax + rax*2]
movsxd rdx, r8d
call fcn.140056f64
mov rdx, qword [rsp + 0x30]
xor ebx, ebx
lea r8, [rdx + 1]
mov byte [rdx], 0x20
mov r9d, ebx
mov byte [r8], bl
mov cl, bl
jmp 0x14006812a
mov al, byte [rdi]
cmp al, 0x3d
jne 0x140068163
cmp cl, bl
jle 0x140068127
mov byte [r8], r9b
mov cl, bl
inc r8
mov r9d, ebx
inc rdi
cmp byte [rdi], bl
jne 0x140068112
mov byte [r8], bl
mov r9d, 0xfde9
mov rcx, rsi
or r8, 0xffffffffffffffff
call fcn.140057310
mov rbx, qword [rsi]
lea rcx, [rsp + 0x30]
call fcn.14004f564
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp al, 0x41
jb 0x14006816f
cmp al, 0x5a
ja 0x14006816f
sub al, 0x41
jmp 0x140068195
cmp al, 0x61
jb 0x14006817b
cmp al, 0x7a
ja 0x14006817b
sub al, 0x47
jmp 0x140068195
cmp al, 0x30
jb 0x140068187
cmp al, 0x39
ja 0x140068187
add al, 4
jmp 0x140068195
cmp al, 0x2b
jne 0x14006818f
mov al, 0x3e
jmp 0x140068195
cmp al, 0x2f
jne 0x1400681c4
mov al, 0x3f
movzx eax, al
shl eax, cl
or r9d, eax
add cl, 6
cmp cl, 8
jge 0x1400681b5
cmp cl, bl
jle 0x140068127
cmp byte [rdi], bl
jne 0x140068127
mov byte [r8], r9b
inc r8
shr r9d, 8
add cl, 0xf8
jmp 0x1400681a0
mov rax, qword [rsi]
mov word [rax], bx
jmp 0x140068146
Function at 0x1400681d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
xor esi, esi
xor ecx, ecx
mov word [rax], si
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, esi
je 0x14006822a
lea ecx, [rsi + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
cmp rax, rsi
je 0x140068224
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbx
mov rdx, rax
call fcn.14006168c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140069364
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
movzx eax, word [rsp + 0xb0]
mov rbx, rcx
mov r13, rdx
mov dword [rsp + 0xa8], eax
dec eax
lea rcx, [rsp + 0x38]
movsxd r14, eax
mov edx, 0xa0000
movsxd rbp, r9d
not r14
mov rdi, r8
call fcn.140056f64
mov rax, qword [rsp + 0x38]
and dword [rsp + 0xa0], 0
mov qword [rsp + 0x48], rdi
add rax, 0x20000
and rax, 0xfffffffffffe0000
cmp dword [rsp + 0xb0], 0
mov qword [rsp + 0x30], rax
jne 0x1400693dd
xor ebp, ebp
xor r15d, r15d
jmp 0x1400693f1
movzx ecx, word [rsp + 0xb0]
lea rax, [rdi + rbp]
cqo
idiv rcx
mov r15, rdx
test rdi, rdi
jle 0x1400694fa
mov ecx, 0x10000000
test ebp, ebp
jne 0x14006940f
movsxd rax, r15d
cmp rdi, rax
jle 0x14006940f
xor al, al
jmp 0x140069411
mov al, 1
cmp rdi, rcx
mov esi, edi
mov rdx, r13
cmovg esi, ecx
mov r8d, esi
test al, al
je 0x1400694b2
mov esi, dword [rsp + 0xa8]
mov rcx, rbx
sub esi, ebp
mov eax, esi
cmp rax, rdi
cmovg esi, edi
xor edx, edx
lea r8d, [rdx + 1]
call fcn.140050964
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [rsp + 0x30]
movsxd rcx, ebp
mov r8d, esi
mov rdx, r13
add rcx, rax
mov qword [rsp + 0x40], rax
call fcn.14001a9b0
mov rdx, rbx
mov rbx, qword [rsp + 0x90]
mov rcx, rbx
xor r8d, r8d
call fcn.140050964
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x40]
jmp 0x1400694c2
cmp dword [rsp + 0xb0], 0
je 0x1400694c2
and esi, r14d
mov r8d, esi
and dword [rsp + 0xa0], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, esi
xor ebp, ebp
sub rdi, r11
add r13, r11
mov ecx, 0x10000000
test rdi, rdi
jg 0x1400693ff
lea rcx, [rsp + 0x38]
call fcn.14004f564
mov rax, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006a928
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14d, r8d
mov rbx, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r15d, r15d
mov rdi, rax
cmp rax, r15
je 0x14006aa32
cmp rbx, r15
mov r12, rbp
cmovne r12, rbx
mov rbx, rax
cmp word [rax], r15w
je 0x14006aa29
mov rsi, rbx
jmp 0x14006a984
cmp ax, 0x3d
je 0x14006a991
add rbx, 2
movzx eax, word [rbx]
cmp ax, r15w
jne 0x14006a97e
mov rdx, rsi
cmp r14d, r15d
je 0x14006a9b9
or qword [rsp + 0x20], 0xffffffffffffffff
mov rax, rbx
lea r8, [rbx + 2]
sub rax, rsi
mov rcx, rbp
sar rax, 1
mov r9d, eax
call fcn.14001b1c8
jmp 0x14006aa15
mov r13, rbx
lea rcx, [rsp + 0x78]
sub r13, rsi
sar r13, 1
mov r8, r13
call fcn.140061630
mov rdx, qword [rsp + 0x78]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], r15
call fcn.140016070
cmp rax, r15
jne 0x14006aa05
or qword [rsp + 0x20], 0xffffffffffffffff
lea r8, [rbx + 2]
mov r9d, r13d
mov rdx, rsi
mov rcx, rbp
call fcn.14001b1c8
lea rcx, [rsp + 0x78]
call fcn.14004f564
jmp 0x14006aa15
add rbx, 2
cmp word [rbx], r15w
jne 0x14006aa11
add rbx, 2
cmp word [rbx], r15w
jne 0x14006a979
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006aec0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
movzx esi, cx
call fcn.140060b54
xor edx, edx
mov edi, eax
cmp ebx, edx
jge 0x14006af50
lea ecx, [rdx + 0x20]
lea eax, [rdx + 0x2a]
mov word [rsp + 0x26], si
mov word [rsp + 0x22], ax
lea eax, [rdx + 0x2c]
mov word [rsp + 0x20], cx
mov word [rsp + 0x24], cx
lea ecx, [rdx + 0x3a]
mov word [rsp + 0x2a], ax
lea eax, [rdx + 0x5c]
mov word [rsp + 0x28], cx
mov word [rsp + 0x52], cx
lea rcx, [rsp + 0x50]
mov word [rsp + 0x2c], dx
mov word [rsp + 0x50], si
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], dx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x14006af3c
cmp edi, 2
je 0x14006af50
lea rdx, [rsp + 0x20]
lea rcx, [0x14010bee0]
xor r8d, r8d
call fcn.140066b08
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14006bf04
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
xor r12d, r12d
xor edi, edi
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14006bfed
test rdx, rdx
jne 0x14006bf37
mov eax, 0x80070057
jmp 0x14006c15f
cmp dword [0x14010c570], edi
jle 0x14006c15c
and qword [rsp + 0x30], rdi
and dword [rsp + 0x90], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14006bf8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 2]
test eax, eax
cmove eax, ecx
jmp 0x14006c15f
mov r8d, dword [0x14010c570]
mov rdx, qword [0x14010cda8]
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [0x14010cda8]
and dword [0x14010c570], edi
test r8, r8
je 0x14006bfe1
mov rcx, qword [0x14010c0f0]
add r8, 0xfffffffffffffff8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [0x14010cda8], rdi
jmp 0x14006c15c
test r8, r8
je 0x14006c11c
mov rcx, r8
call fcn.14001bc70
mov rdi, rax
test rax, rax
jne 0x14006c010
mov eax, 1
jmp 0x14006c15f
mov eax, dword [rbx + 8]
sub eax, dword [rbx]
movsxd r13, eax
mov eax, dword [rbx + 0xc]
sub eax, dword [rbx + 4]
movsxd r12, eax
test r13, r13
jle 0x14006c106
test eax, eax
jle 0x14006c106
and dword [rsp + 0x90], 0
and dword [rsp + 0xa8], 0
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [0x14010bca8]
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call qword [0x14010bcb0]
mov r11d, dword [rsp + 0x90]
cmp r13, r11
jne 0x14006c081
mov eax, dword [rsp + 0xa8]
cmp r12, rax
je 0x14006c106
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140056834
mov rsi, rax
test rax, rax
je 0x14006c006
mov rbx, qword [rsp + 0x48]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [0x14010bc60]
mov rcx, qword [rsp + 0x40]
mov edx, 2
call qword [0x14010bcc8]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
call qword [0x14010bc68]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x14006c12f
mov r8d, 1
mov rdx, rbp
mov rcx, rdi
call fcn.14006ba84
mov r12d, eax
jmp 0x14006c14e
xor edx, edx
call fcn.140056834
mov rsi, rax
test rax, rax
je 0x14006c006
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call fcn.14006ba84
mov r12d, eax
test rsi, rsi
je 0x14006c14e
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
test rdi, rdi
je 0x14006c15c
mov rcx, rdi
call qword [0x14010bc58]
mov eax, r12d
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007e2e8
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.140057154
lea rcx, [rsp + 0x88]
xor esi, esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
call fcn.14004f534
lea edx, [rsi + 5]
lea rcx, [rsp + 0x20]
call fcn.1400571c8
lea edx, [rsi + 0x14]
lea rcx, [rsp + 0x98]
call fcn.1400571c8
lea r8d, [rsi + 2]
lea rdx, [rsp + 0x88]
lea rcx, [0x1400f88a8]
mov r12d, esi
mov dword [rsp + 0x80], esi
call fcn.14005992c
lea ebx, [rsi + 0x2c]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, 1
movzx r13d, al
call fcn.14006de04
lea rdx, [rsp + 0x20]
mov rcx, rax
xor r8d, r8d
call fcn.14005aa6c
mov rax, qword [rsp + 0x88]
cmp bx, word [rax]
jne 0x14007e426
add rax, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, 1
mov qword [rsp + 0x88], rax
call fcn.14006de04
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov rcx, rax
call fcn.14005aa6c
mov rax, qword [rsp + 0x88]
cmp bx, word [rax]
jne 0x14007e426
add rax, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov r9b, 1
mov qword [rsp + 0x88], rax
call fcn.14006de04
lea rdx, [rsp + 0x80]
movzx r8d, bx
mov rcx, rax
call fcn.14005ae04
mov r12d, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x20]
cmp word [rbx], si
jne 0x14007e45d
lea rcx, [rsp + 0x98]
call fcn.14004f564
lea rcx, [rsp + 0x20]
call fcn.14004f564
lea rcx, [rsp + 0x30]
call fcn.14004f564
mov rax, 0xffffffff80070057
jmp 0x14007e57b
mov rcx, qword [rsp + 0x98]
cmp r12d, esi
jne 0x14007e474
cmp r13d, esi
jne 0x14007e474
cmp word [rcx], si
je 0x14007e430
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x98]
mov edi, eax
add eax, 0x214
movsxd rdx, eax
call fcn.140057254
mov rcx, qword [rsp + 0x98]
lea eax, [rdi + 4]
cdqe
mov qword [rsp + 0x28], rsi
lea rbp, [rcx + rax*2]
call fcn.140018fa4
mov rcx, rbx
mov rdi, rax
call fcn.140018fa4
mov rbx, rax
cmp r13d, esi
jne 0x14007e4d5
cmp r12d, esi
jne 0x14007e4d5
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x14007e54b
cmp r12d, 2
je 0x14007e4fe
cmp r13d, esi
jne 0x14007e4fe
mov rcx, rdi
call fcn.1400d14e0
mov r8d, esi
mov rdx, rdi
cmp eax, esi
mov rcx, rbx
setne r8b
call fcn.140054768
jmp 0x14007e54b
cmp word [rdi], si
jne 0x14007e50e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14007e54b
lea r8, [rbp + 8]
lea r9, [rsp + 0x28]
mov edx, 0x208
mov rcx, rdi
call fcn.140057f84
mov r11d, 0x5c
mov rdx, rbp
lea eax, [r11 - 0x1d]
mov rcx, rbx
mov word [rbp], r11w
mov word [rbp + 2], ax
mov word [rbp + 4], ax
mov word [rbp + 6], r11w
call fcn.140054618
cmp eax, esi
jne 0x14007e557
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rcx, [rsp + 0x98]
call fcn.14004f564
lea rcx, [rsp + 0x20]
call fcn.14004f564
lea rcx, [rsp + 0x30]
call fcn.14004f564
movsxd rax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007e590
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x80
xor ebx, ebx
lea rax, [r11 + 0x20]
xor r9d, r9d
mov qword [r11 - 0x40], rbx
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rbx
mov qword [r11 - 0x60], rbx
mov qword [r11 - 0x68], rbx
mov qword [r11 - 0x70], rax
lea rax, [r11 - 0x38]
xor r8d, r8d
xor edx, edx
mov rbp, rcx
mov dword [rsp + 0x60], ebx
mov qword [r11 - 0x78], rax
mov dword [r11 + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp eax, ebx
jne 0x14007e749
mov eax, dword [rsp + 0xb8]
lea rcx, [rsp + 0x78]
lea edx, [rax*4 + 8]
call fcn.1400571c8
cmp dword [rsp + 0x60], ebx
mov esi, ebx
jle 0x14007e73d
mov rbx, qword [rsp + 0x78]
xor ecx, ecx
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x28], rcx
shl eax, 2
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x20], rcx
mov word [rbx], cx
lea r9, [rsp + 0x64]
mov rcx, rbp
mov r8, rbx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ecx, ecx
mov edi, eax
cmp eax, ecx
jne 0x14007e731
cmp word [rbx], cx
je 0x14007e731
mov rax, qword [rsp + 0xb0]
lea rcx, [rsp + 0x68]
mov rdx, qword [rax]
call fcn.14006160c
lea rdx, [0x1400eea78]
lea rcx, [rsp + 0x68]
call fcn.140057290
lea rcx, [rsp + 0x68]
mov rdx, rbx
call fcn.140057290
mov rax, qword [rsp + 0xa8]
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
lea eax, [r9 + 4]
mov r8d, eax
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea r11, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x70]
mov edi, eax
test rcx, rcx
je 0x14007e725
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x68]
call fcn.14007e590
mov rcx, qword [rsp + 0x70]
mov edi, eax
test rcx, rcx
je 0x14007e725
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x68]
call fcn.14004f564
xor ecx, ecx
inc esi
cmp esi, dword [rsp + 0x60]
jl 0x14007e621
lea rcx, [rsp + 0x78]
call fcn.14004f564
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret