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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov ebp, r8d
lea r8, [rax - 0x28]
xor r12d, r12d
mov r9d, 0x2001b
mov dword [rax - 0x78], 4
mov qword [rax - 0x28], r12
call fcn.14005a328
cmp eax, r12d
jne 0x14006f01b
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], r12d
test bpl, 1
je 0x14006ee8a
mov rcx, qword [rsp + 0x70]
lea rdx, [0x140113598]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [rsp + 0xb8]
cmp ecx, dword [rsp + 0x60]
mov edi, eax
cmovb ecx, dword [rsp + 0x60]
mov dword [rsp + 0xb8], ecx
lea edx, [rcx*4 + 8]
lea rcx, [rsp + 0x78]
call fcn.1400616e0
cmp edi, r12d
jne 0x14006f004
mov rbx, qword [rsp + 0x78]
test bpl, 4
je 0x14006ef8c
mov esi, dword [rsp + 0x64]
dec esi
cmp esi, r12d
jl 0x14006ef8c
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea eax, [rax*4 + 1]
lea r9, [rsp + 0x6c]
mov r8, rbx
mov dword [rsp + 0x6c], eax
mov word [rbx], r12w
mov rcx, qword [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, r12d
je 0x14006ef6d
mov edi, eax
jmp 0x14006ef87
cmp word [rbx], r12w
je 0x14006ef87
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, r12d
cmovne edi, eax
sub esi, 1
jns 0x14006ef25
test bpl, 2
je 0x14006f004
mov esi, dword [rsp + 0x68]
dec esi
cmp esi, r12d
jl 0x14006f004
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea eax, [rax*4 + 1]
lea r9, [rsp + 0x6c]
mov r8, rbx
mov dword [rsp + 0x6c], eax
mov word [rbx], r12w
mov rcx, qword [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, r12d
je 0x14006efe5
mov edi, eax
jmp 0x14006efff
cmp word [rbx], r12w
je 0x14006efff
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call qword [0x1401333d0]
cmp eax, r12d
cmovne edi, eax
sub esi, 1
jns 0x14006ef9d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.1400590a4
mov eax, edi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14006f034
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rdi, r8
lea rcx, [rsp + 0x78]
or r8, 0xffffffffffffffff
call fcn.14006d640
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov rbx, qword [rax]
mov rdx, rdi
call fcn.14006d640
lea rdx, str._r_nRegSetDHCP__s__s__r_n
lea rcx, [0x1401330e0]
mov r9, qword [rax]
mov r8, rbx
call fcn.1400188cc
lea rcx, [rsp + 0x78]
call fcn.1400590a4
lea rcx, [rsp + 0x30]
call fcn.1400590a4
mov rax, qword [str.0.0.0.0]
mov rcx, qword [rsi]
lea r11, [rsp + 0x38]
mov r9d, 4
lea rdx, str.EnableDHCP
mov qword [r11], rax
mov al, byte [0x14011d740]
mov dword [rsp + 0x28], r9d
mov byte [r11 + 8], al
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsi]
mov ebx, 9
lea rax, [rsp + 0x38]
lea rdx, str.IPAddress
lea r9d, [rbx - 2]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsi]
lea rax, [rsp + 0x38]
lea r9d, [rbx - 2]
lea rdx, str.SubnetMask
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsi]
lea rbx, [0x140114268]
lea rdx, str.DefaultGateway
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test rdi, rdi
je 0x14006f19c
cmp byte [rdi], 0x2d
cmovne rbx, rdi
cmp byte [rdi], 0
je 0x14006f19c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, str.NameServer
mov r9d, 1
movsxd rcx, eax
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140071cc4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor edi, edi
cmp byte [0x1401336c4], dil
jne 0x140071ee4
lea rcx, [rsp + 0x48]
mov edx, 0x1122
call fcn.1400616e0
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x80]
mov qword [rsi], rdi
mov word [rsi], di
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x90]
lea r8, str.TIPSDUMMY
lea rdx, str.SOFTWAREPELOGON
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x80], 0x1ffe
mov qword [rsp + 0x98], rsi
mov r12, rsi
mov qword [rsp + 0x20], rsi
call fcn.14005a474
mov ebp, edi
cmp eax, edi
sete bpl
mov eax, ebp
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x80]
mov dword [rsp + 0x80], ecx
mov eax, ecx
shr rax, 1
mov word [rsi + rax*2], di
cmp word [rsi], di
jne 0x140071eca
lea rdx, [rsi + 0x2000]
mov r8d, 0x104
xor ecx, ecx
mov word [rsi + 0x2000], di
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str..USRCFG.INI
lea rcx, [rsi + 0x2000]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x80
lea r9d, [rdi + 7]
lea rdx, [rsi + 0x2000]
lea rcx, [rsp + 0x40]
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rdi
call fcn.1400037a8
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x88], edi
lea r9, [rsp + 0x88]
mov rcx, rbx
mov r8d, 0x1ffe
mov rdx, rsi
mov word [rsi], di
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x88]
shr r11d, 1
mov eax, 0xffe
cmp r11d, eax
cmova r11d, eax
movsxd rax, r11d
mov dword [rsp + 0x88], r11d
mov word [rsi + rax*2], di
mov eax, 0xfeff
cmp ax, word [rsi]
jne 0x140071e4f
add rsi, 2
mov qword [rsp + 0x98], rsi
cmp word [rsi], di
je 0x140071eb6
lea rcx, [rsp + 0x98]
call fcn.140059074
mov rsi, qword [rsp + 0x98]
mov edx, 0xa
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x98]
call fcn.140059308
mov r8d, edx
lea rdx, str.TIPSDUMMY:
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
mov rax, qword [rsp + 0x98]
je 0x140071ea5
cmp word [rax], di
jne 0x140071e54
jmp 0x140071eb6
cmp word [rax], di
je 0x140071ead
mov word [rax], di
lea r12, [rsi + 0x14]
mov ebp, 1
cmp rbx, rdi
je 0x140071eca
cmp rbx, 0xffffffffffffffff
je 0x140071eca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, edi
mov rcx, r12
setne dil
mov edx, edi
call fcn.140071c08
lea rcx, [rsp + 0x48]
call fcn.1400590a4
mov rax, qword [0x1401340a0]
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140072b54
Capabilities:
Get common file path

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, 0x250
mov eax, 1
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x30]
xor ebp, ebp
mov edx, 0x100000
mov rdi, r9
mov r15d, r8d
mov r12d, eax
mov ebx, eax
mov word [rsp + 0x40], bp
call fcn.1400616e0
cmp rdi, rbp
jne 0x140072bc6
lea rdx, [rsp + 0x40]
mov ecx, 0x104
mov r12d, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdi, [rsp + 0x40]
mov ebx, eax
cmp eax, ebp
je 0x140072d46
mov eax, 0xe0000000
mov esi, 0xa0000000
cmp r12d, ebp
cmovne esi, eax
xor r9d, r9d
lea rax, [rsp + 0x298]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 3]
mov rcx, r13
mov edx, esi
mov dword [rsp + 0x298], ebp
mov dword [rsp + 0x20], ebp
call qword [0x140133438]
mov rbp, rax
test rax, rax
jne 0x140072c58
cmp r12d, 1
jne 0x140072c45
lea rax, [rsp + 0x298]
mov r12d, 2
btr esi, 0x1e
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, esi
mov rcx, r13
call qword [0x140133438]
mov rbp, rax
test rax, rax
je 0x140072c08
xor r13d, r13d
cmp rbp, r13
jne 0x140072c5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r13d
jmp 0x140072c5b
xor r13d, r13d
cmp ebx, r13d
je 0x140072d38
mov rdx, rdi
mov rcx, rbp
call qword [0x140133440]
mov ebx, eax
cmp eax, r13d
jne 0x140072c82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov edx, r15d
mov rcx, rbp
call qword [0x140133448]
mov rsi, rax
cmp rax, r13
jne 0x140072c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r13d
cmp ebx, r13d
je 0x140072d2a
mov eax, 0x600
mov edi, 0x400
cmp r12d, r13d
cmove edi, eax
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x140133450]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, r13d
jne 0x140072d2a
bt edi, 0xa
jae 0x140072cff
cmp eax, 0x57
jne 0x140072cff
btr edi, 0xa
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x140133450]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, r13d
je 0x140072cd4
cmp ebx, r13d
jne 0x140072d2a
cmp r12d, 2
jne 0x140072d24
bts edi, 9
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x140133450]
mov ebx, eax
cmp eax, r13d
jne 0x140072d2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rsi, r13
je 0x140072d38
mov rcx, rsi
call qword [0x140133458]
cmp rbp, r13
je 0x140072d46
mov rcx, rbp
call qword [0x140133458]
lea rcx, [rsp + 0x30]
call fcn.1400590a4
lea r11, [rsp + 0x250]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140073580
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 0x1400735d3
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.1400616e0
mov rbx, qword [rsp + 0x20]
lea rcx, str.Device_
mov r8d, 8
mov rdx, rbp
mov word [rbx], r15w
call fcn.14005a71c
cmp al, r15b
jne 0x140073641
lea rcx, str.DosDevices_
mov r8d, 0xc
mov rdx, rbp
call fcn.14005a71c
cmp al, r15b
jne 0x140073641
cmp word [rbp], r15w
je 0x140073644
cmp word [rbp + 2], r15w
je 0x140073644
lea rcx, [rbp + 4]
mov edx, 0x3a
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, r15
je 0x140073644
or edi, 1
lea rcx, [0x14011db60]
mov r8d, 0xb
mov rdx, rbp
call fcn.14005a71c
mov sil, byte [rsp + 0x80]
cmp al, r15b
je 0x14007366e
and edi, 0xfffffffe
cmp sil, r15b
jne 0x14007369b
cmp sil, r15b
je 0x14007367d
movzx ecx, word [r13]
call fcn.14005d644
mov r8, rbp
mov rdx, r13
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov r12d, eax
cmp eax, r15d
jne 0x1400736af
cmp sil, r15b
jl 0x1400736fd
mov sil, r15b
mov r8d, 0x208
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x1400736dc
cmp sil, r15b
jle 0x1400736fd
mov r8d, 0x208
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
cmp eax, r15d
je 0x1400736fd
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 0x1400736fd
cmp eax, r15d
jne 0x1400736fd
mov sil, 0xff
jmp 0x14007366e
lea rcx, [rsp + 0x20]
call fcn.1400590a4
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 0x140074cfc
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.14005d7c4
cmp eax, esi
lea rcx, [rsp + 0x78]
cmovge esi, eax
lea edx, [rsi + rsi + 0x200]
call fcn.1400613f4
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.14005a608
cmp rax, r14
jne 0x140074e19
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 0x140074e19
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.14001d128
cmp r13d, 1
jne 0x140074dc1
lea rcx, [rbx + 0x1ce]
lea r8d, [r13 + 0xf]
mov rdx, r15
call fcn.14001d128
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.14005a608
cmp rax, r14
jne 0x140074e19
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.1400590d4
test eax, eax
je 0x140074e19
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.1400590a4
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 0x140075258
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.1400613f4
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.1400f97d0
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 0x14007548f
mov eax, dword [rbx + 0x1b4]
movzx ecx, word [rbx + 0x1fe]
mov r13b, sil
cmp eax, 0x46424246
je 0x1400753a7
cmp eax, 0x534c5055
je 0x1400753a7
cmp eax, 0x5352424d
jne 0x14007548f
cmp ecx, 0xaa55
jne 0x14007548f
cmp dword [rbx + 0x1c], esi
jne 0x14007548f
mov ebp, 0x200
xor edx, edx
mov rcx, rdi
mov r8, rbp
call fcn.1400f97d0
xor r8d, r8d
mov edx, 0x4a00
mov rcx, r14
call fcn.14005a608
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 0x14007548f
cmp dword [rdi + 0x1b4], 0x5352424d
movzx eax, word [rdi + 0x1fe]
jne 0x14007548f
cmp eax, 0xaa55
jne 0x14007548f
cmp dword [rdi + 0x1c], 0x25
jne 0x14007548f
movzx esi, byte [rdi + 0x67]
xor eax, eax
cmp ax, si
jne 0x140075393
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 0x14007540e
mov ebp, 0x200
mov esi, 1
xor edx, edx
mov r8, rbp
mov rcx, rdi
mov r13b, sil
call fcn.1400f97d0
xor r8d, r8d
mov edx, 0x8600
mov rcx, r14
call fcn.14005a608
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 0x14007548f
mov al, byte [rdi + 0x1f8]
and al, 0xc0
cmp al, 0x40
jne 0x14007548f
mov rbx, qword [rdi + 0x1f0]
add rbx, rsi
mov r8, rbp
xor edx, edx
mov rcx, rdi
call fcn.1400f97d0
mov rdx, rbx
shl rdx, 9
jmp 0x140075461
lea rdx, [0x14011dcf8]
lea rcx, [rdi + 3]
mov r8d, 0xa
call fcn.1400590d4
cmp eax, r9d
je 0x1400754b5
cmp rbx, 0x41
je 0x14007548f
cmp r13b, r9b
jne 0x14007548f
mov r8, rbp
xor edx, edx
mov rcx, rdi
mov ebx, 0x41
call fcn.1400f97d0
mov edx, 0x8200
xor r8d, r8d
mov rcx, r14
call fcn.14005a608
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 0x140075424
lea rcx, [rsp + 0x88]
call fcn.1400590a4
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 0x1400754df
mov rcx, qword [rdi + 0x74]
shl rcx, 9
mov qword [r12], rcx
lea rcx, [rsp + 0x88]
call fcn.1400590a4
shl rbx, 9
mov rax, rbx
jmp 0x1400754a0
Function at 0x1400754f8
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.14006176c
lea rcx, [rsp + 0x20]
mov edx, 0xca
call fcn.1400616e0
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 0x140075588
cmp ebp, 1
not esi
jle 0x140075588
and esi, 0xfffffffc
cmp ebx, 0x1a
movsxd r12, r12d
jge 0x14007560b
mov r15d, dword [rsp + 0x80]
cmp ebx, r8d
jl 0x140075606
mov ecx, ebx
mov edx, 1
movsx eax, al
shl edx, cl
lea ebp, [rbx + 0x41]
add ebx, eax
test esi, edx
je 0x1400755fa
cmp r12, r8
je 0x1400755c8
movsx ecx, bpl
call fcn.1400f8a80
xor r8d, r8d
cmp eax, r8d
je 0x1400755fa
cmp r13b, r8b
je 0x1400755db
cmp r14w, r8w
je 0x1400755db
mov word [rdi], r14w
add rdi, 2
movsx eax, bpl
mov r13b, 1
mov word [rdi], ax
add rdi, 2
cmp r15d, r8d
je 0x1400755fa
mov eax, 0x3a
mov word [rdi], ax
add rdi, 2
cmp ebx, 0x1a
mov al, byte [rsp + 0x90]
jl 0x140075598
mov r15, qword [rsp + 0x70]
mov word [rdi], r8w
mov rbx, qword [r15]
lea rcx, [rsp + 0x20]
call fcn.1400590a4
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 0x1400757d8
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.1400613f4
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 0x140075836
mov al, byte [rdi]
cmp al, 0x3d
jne 0x14007586f
cmp cl, bl
jle 0x140075833
mov byte [r8], r9b
mov cl, bl
inc r8
mov r9d, ebx
inc rdi
cmp byte [rdi], bl
jne 0x14007581e
mov byte [r8], bl
mov r9d, 0xfde9
mov rcx, rsi
or r8, 0xffffffffffffffff
call fcn.140061828
mov rbx, qword [rsi]
lea rcx, [rsp + 0x30]
call fcn.1400590a4
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp al, 0x41
jb 0x14007587b
cmp al, 0x5a
ja 0x14007587b
sub al, 0x41
jmp 0x1400758a1
cmp al, 0x61
jb 0x140075887
cmp al, 0x7a
ja 0x140075887
sub al, 0x47
jmp 0x1400758a1
cmp al, 0x30
jb 0x140075893
cmp al, 0x39
ja 0x140075893
add al, 4
jmp 0x1400758a1
cmp al, 0x2b
jne 0x14007589b
mov al, 0x3e
jmp 0x1400758a1
cmp al, 0x2f
jne 0x1400758d0
mov al, 0x3f
movzx eax, al
shl eax, cl
or r9d, eax
add cl, 6
cmp cl, 8
jge 0x1400758c1
cmp cl, bl
jle 0x140075833
cmp byte [rdi], bl
jne 0x140075833
mov byte [r8], r9b
inc r8
shr r9d, 8
add cl, 0xf8
jmp 0x1400758ac
mov rax, qword [rsi]
mov word [rax], bx
jmp 0x140075852
Function at 0x1400758dc
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 0x140075936
lea ecx, [rsi + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
cmp rax, rsi
je 0x140075930
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbx
mov rdx, rax
call fcn.14006d680
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 0x140076928
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.1400613f4
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 0x1400769a1
xor ebp, ebp
xor r15d, r15d
jmp 0x1400769b5
movzx ecx, word [rsp + 0xb0]
lea rax, [rdi + rbp]
cqo
idiv rcx
mov r15, rdx
test rdi, rdi
jle 0x140076abe
mov ecx, 0x10000000
test ebp, ebp
jne 0x1400769d3
movsxd rax, r15d
cmp rdi, rax
jle 0x1400769d3
xor al, al
jmp 0x1400769d5
mov al, 1
cmp rdi, rcx
mov esi, edi
mov rdx, r13
cmovg esi, ecx
mov r8d, esi
test al, al
je 0x140076a76
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.14005a608
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.14001d128
mov rdx, rbx
mov rbx, qword [rsp + 0x90]
mov rcx, rbx
xor r8d, r8d
call fcn.14005a608
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x40]
jmp 0x140076a86
cmp dword [rsp + 0xb0], 0
je 0x140076a86
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 0x1400769c3
lea rcx, [rsp + 0x38]
call fcn.1400590a4
mov rax, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret