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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180081640
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.180081640
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor r13d, r13d
mov ebx, r13d
test esi, edi
je 0x18011b058
mov eax, dword [0x180144738]
mov dword [rsp + 0x38], eax
movzx eax, word [0x18014473c]
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x3e], ax
add word [rsp + 0x38], bx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.180080ca0
nop
lea r8, [rsp + 0x28]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.180081890
mov r11, qword [0x1801617a0]
mov qword [rsp + 0x20], r11
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1800a1250
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rsp + 0x246], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18007d430
lea r8, [rsp + 0x20]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.180081890
nop
lea rcx, [rsp + 0x20]
call fcn.18007d270
nop
lea rcx, [rsp + 0x28]
call fcn.18007d270
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x18011af94
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800a1220
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18011b0a0
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x160
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800830f0
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.1800830f0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor ebx, ebx
nop
test esi, edi
je 0x18011b1c1
movzx eax, word [0x18015e348]
mov word [rsp + 0x20], ax
movzx eax, byte [0x18015e34a]
mov byte [rsp + 0x22], al
xor eax, eax
mov byte [rsp + 0x23], al
add byte [rsp + 0x20], bl
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800820d0
nop
lea r8, [rsp + 0x30]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.180083340
mov r11, qword [0x180161798]
mov qword [rsp + 0x28], r11
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.1800a1250
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov byte [rsp + 0x143], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.18007f6c0
lea r8, [rsp + 0x28]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.180083340
nop
lea rcx, [rsp + 0x28]
call fcn.18007f540
nop
lea rcx, [rsp + 0x30]
call fcn.18007f540
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x18011b100
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800a1220
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18011b200
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180081640
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.180081640
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor r13d, r13d
mov ebx, r13d
test esi, edi
je 0x18011b328
mov eax, dword [0x180144738]
mov dword [rsp + 0x38], eax
movzx eax, word [0x18014473c]
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x3e], ax
add word [rsp + 0x38], bx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.180080ca0
nop
lea r8, [rsp + 0x28]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.180081890
mov r11, qword [0x1801617a0]
mov qword [rsp + 0x20], r11
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1800a1250
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rsp + 0x246], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18007d430
lea r8, [rsp + 0x20]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.180081890
nop
lea rcx, [rsp + 0x20]
call fcn.18007d270
nop
lea rcx, [rsp + 0x28]
call fcn.18007d270
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x18011b264
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800a1220
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18011b720
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.1800830f0
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.1800830f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov ecx, dword [0x1801e984c]
test ecx, ecx
je 0x18011b7d1
cmp eax, ecx
jne 0x18011b7d1
mov eax, dword [0x1801e9850]
test eax, eax
je 0x18011b7d1
cmp ebx, eax
jb 0x18011b7d1
add eax, 0x493e0
cmp eax, ebx
jb 0x18011b7d1
inc dword [0x1801e9854]
mov r8d, 1
lea rdx, [0x1801e9900]
lea rcx, [rsp + 0x28]
call fcn.180087860
nop
lea rdx, [0x1801e98d0]
mov rcx, rsi
call fcn.180083260
lea rdx, [0x1801e98e8]
mov rcx, rdi
call fcn.180083260
nop
jmp 0x18011b84d
mov dword [0x1801e9854], 0
mov rdx, rdi
mov rcx, rsi
call fcn.18011b0a0
mov r8d, 1
lea rdx, [0x1801e9900]
lea rcx, [rsp + 0x28]
call fcn.180087860
nop
mov dword [0x1801e984c], ebp
mov dword [0x1801e9850], ebx
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1801e98d0]
call fcn.1800830f0
mov rdx, rsi
lea rcx, [0x1801e98d0]
call fcn.180083260
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1801e98e8]
call fcn.1800830f0
mov rdx, rdi
lea rcx, [0x1801e98e8]
call fcn.180083260
nop
lea rcx, [rsp + 0x28]
call fcn.1800878e0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18011b880
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180081640
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.180081640
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov ecx, dword [0x1801e9858]
test ecx, ecx
je 0x18011b931
cmp eax, ecx
jne 0x18011b931
mov eax, dword [0x1801e985c]
test eax, eax
je 0x18011b931
cmp ebx, eax
jb 0x18011b931
add eax, 0x493e0
cmp eax, ebx
jb 0x18011b931
inc dword [0x1801e9860]
mov r8d, 1
lea rdx, [0x1801e9968]
lea rcx, [rsp + 0x28]
call fcn.180087860
nop
lea rdx, [0x1801e9938]
mov rcx, rsi
call fcn.1800817b0
lea rdx, [0x1801e9950]
mov rcx, rdi
call fcn.1800817b0
nop
jmp 0x18011b9ad
mov dword [0x1801e9860], 0
mov rdx, rdi
mov rcx, rsi
call fcn.18011b200
mov r8d, 1
lea rdx, [0x1801e9968]
lea rcx, [rsp + 0x28]
call fcn.180087860
nop
mov dword [0x1801e9858], ebp
mov dword [0x1801e985c], ebx
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1801e9938]
call fcn.180081640
mov rdx, rsi
lea rcx, [0x1801e9938]
call fcn.1800817b0
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1801e9950]
call fcn.180081640
mov rdx, rdi
lea rcx, [0x1801e9950]
call fcn.1800817b0
nop
lea rcx, [rsp + 0x28]
call fcn.1800878e0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18011ba40
Capabilities:
Get user security identifier

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
xor ebx, ebx
lea rax, [rsp + 0x78]
mov rsi, rdx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rdx], rbx
mov rbp, rcx
mov rdx, rcx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x18011baa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x18011baa0
xor eax, eax
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
mov ecx, dword [rsp + 0x70]
mov qword [rsp + 0x60], rdi
call fcn.1800a1b44
mov ecx, dword [rsp + 0x68]
mov qword [rsi], rax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800a1b44
mov r8, qword [rsi]
mov rdi, rax
test r8, r8
je 0x18011bb0b
test rax, rax
je 0x18011bb1c
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test rdi, rdi
je 0x18011bb18
mov rcx, rdi
call fcn.1800a133c
test ebx, ebx
jne 0x18011bb29
mov rcx, qword [rsi]
test rcx, rcx
je 0x18011bb29
call fcn.1800a133c
mov eax, ebx
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
Function at 0x18011dcb0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rdi, rdx
mov r8, rdx
mov edx, 4
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov ebx, eax
test eax, eax
je 0x18011de1d
mov qword [rsp + 0x6d0], rsi
lea rcx, [rsp + 0x482]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x480], si
call fcn.1800a1250
lea rdx, str._s
lea rcx, [rsp + 0x480]
mov r8, rbp
call fcn.1800a218c
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], esi
call fcn.1800a1250
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18011de13
nop
lea rdx, [0x180153cd4]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18011ddf0
lea rdx, [0x180162f98]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18011ddf0
xor eax, eax
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x270], ax
call fcn.1800a1250
lea r9, [rsp + 0x4c]
lea rdx, [0x18013fb48]
lea rcx, [rsp + 0x270]
mov r8, rbp
call fcn.1800a218c
test byte [rsp + 0x20], 0x10
lea rcx, [rsp + 0x270]
je 0x18011dde0
mov rdx, rdi
call fcn.18011dcb0
jmp 0x18011ddee
mov r8, rdi
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov ebx, eax
test ebx, ebx
je 0x18011de0a
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18011dd60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x6d0]
mov eax, ebx
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1800a1220
add rsp, 0x6a0
pop rdi
pop rbp
pop rbx
ret
Function at 0x180121010
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rdi, rdx
mov rbx, rcx
lea r9, [rsp + 0x50]
mov r8, rcx
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x180121075
mov r8d, 0x104
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
jmp 0x18012112d
mov rax, qword [0x1801617a0]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180120ed0
xor r11d, r11d
mov dword [rsp + 0x38], r11d
mov qword [rsp + 0x30], r11
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1801210d4
lea rcx, [rsp + 0x48]
call fcn.18007d270
xor eax, eax
jmp 0x18012112d
mov eax, dword [rsp + 0x40]
test al, 2
jne 0x1801210e9
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [rsp + 0x40]
test al, 4
jne 0x18012111e
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x18012111e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x9c]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
nop
lea rcx, [rsp + 0x48]
call fcn.18007d270
mov eax, 1
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1800a1220
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2d0
pop rdi
ret
Function at 0x180121500
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
mov rbx, rdx
mov rdi, rcx
mov r8d, 0x228
mov rcx, rbx
xor edx, edx
call fcn.1800a1250
mov rdx, qword [rdi + 0x18]
lea rcx, [rbx + 0x1e]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x180121633
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x180121561
xor eax, eax
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbx + 0x18], eax
cmp eax, 0xffffffff
je 0x180121558
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rsi
cmp dword [rcx - 8], 0
jne 0x18012158a
mov byte [rbx + 0x1c], 0
jmp 0x18012159e
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
movzx ecx, al
cmp eax, 0xffffffff
cmove ecx, edx
mov byte [rbx + 0x1c], cl
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
or r8d, 0xffffffff
call fcn.18008c5d0
mov rcx, rbx
mov rdx, rax
call fcn.18008bfa0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
or r8d, 0xffffffff
call fcn.18008c5d0
lea rcx, [rbx + 0x10]
mov rdx, rax
call fcn.18008bfa0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
or r8d, 0xffffffff
call fcn.18008c5d0
lea rcx, [rbx + 8]
mov rdx, rax
call fcn.18008bfa0
mov rcx, rbx
call fcn.18008bfc0
test rax, rax
jne 0x180121613
lea rdx, [rbx + 8]
mov rcx, rbx
call fcn.18008bfa0
lea rcx, [rbx + 0x10]
call fcn.18008bfc0
test rax, rax
jne 0x18012162e
lea rdx, [rbx + 8]
lea rcx, [rbx + 0x10]
call fcn.18008bfa0
mov rsi, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x1801219b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
test r8d, r8d
jne 0x1801219c0
xor eax, eax
add rsp, 0x38
ret
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1801219eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov ecx, eax
call fcn.1801217e0
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x180121a00
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x180121a6f
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
mov edi, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180121a4f
mov qword [rsp + 0x40], rbx
mov rbx, qword [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1801217e0
mov rbx, qword [rsp + 0x40]
cmp dword [rsp + 0x50], edi
je 0x180121a65
mov r8, qword [rsi + 0x18]
or edx, 0xffffffff
lea ecx, [rdx + 0xe]
call fcn.180121780
int3
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
repz ret
Function at 0x180121c10
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
xor r8d, r8d
mov rbx, rcx
call qword [rax + 0x38]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180121c3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov ecx, eax
call fcn.1801217e0
add rsp, 0x20
pop rbx
ret

Function at 0x180127ba0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1801e9ab4]
test ecx, ecx
jne 0x180127d60
mov eax, dword [0x1801e9ab0]
cmp eax, 3
ja 0x180127d60
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x1801e9ab0], eax
call fcn.1800dbb00
test eax, eax
je 0x180127be6
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x180127bf3
lea rcx, [0x180178160]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x180127c05
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.WTSOpenServerA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSOpenServerW
mov rcx, rbx
mov qword [0x1801e9a40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSCloseServer
mov rcx, rbx
mov qword [0x1801e9a48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSFreeMemory
mov rcx, rbx
mov qword [0x1801e9a50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateSessionsA
mov rcx, rbx
mov qword [0x1801e9a58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rbx
mov qword [0x1801e9a60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSTerminateProcess
mov rcx, rbx
mov qword [0x1801e9a68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateProcessesA
mov rcx, rbx
mov qword [0x1801e9a70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateProcessesW
mov rcx, rbx
mov qword [0x1801e9a78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSSendMessageA
mov rcx, rbx
mov qword [0x1801e9a80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSSendMessageW
mov rcx, rbx
mov qword [0x1801e9a88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rbx
mov qword [0x1801e9a90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationW
mov rcx, rbx
mov qword [0x1801e9a98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSWaitSystemEvent
mov rcx, rbx
mov qword [0x1801e9aa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x1801e9aa8], rax
mov dword [0x1801e9ab4], 1
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180127e80
Capabilities:
Encode data using base64

Disassembly:
mov eax, 8
call fcn.1801298f0
sub rsp, rax
xor r11d, r11d
mov r9, rcx
test r8d, r8d
jle 0x180127f8d
mov qword [rsp], rbx
lea r10, [rdx + 1]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax + rax]
movzx ecx, byte [r10 - 1]
cmp r8d, 3
jl 0x180127f0f
movzx eax, byte [r10]
shl ecx, 8
or ecx, eax
movzx eax, byte [r10 + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov edx, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
mov eax, ecx
shr rax, 6
and eax, 0x3f
and edx, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 2], al
movzx eax, byte [rdx + rbx]
mov byte [r9 + 3], al
jmp 0x180127f64
shl ecx, 0x10
cmp r8d, 2
jne 0x180127f21
movzx eax, byte [r10]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
cmp r8d, 1
jne 0x180127f50
lea eax, [r8 + 0x3c]
jmp 0x180127f5b
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
mov byte [r9 + 2], al
mov byte [r9 + 3], 0x3d
sub r8d, 3
add r9, 4
add r11d, 4
add r10, 3
test r8d, r8d
jg 0x180127eb0
mov rbx, qword [rsp]
mov byte [r9], 0
mov eax, r11d
add rsp, 8
ret
mov byte [rcx], r11b
mov eax, r11d
add rsp, 8
ret
Function at 0x1801285e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0xb8
call fcn.1801298f0
sub rsp, rax
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x110]
xor esi, esi
mov r13, r9
movsxd rdi, r8d
mov r12, rdx
mov rbp, rcx
mov eax, esi
test r9, r9
je 0x18012862e
lea eax, [rsi + 1]
mov qword [rcx], r9
jmp 0x180128631
mov r13, qword [rcx]
mov qword [rsp + 0xb0], rbx
test rdx, rdx
je 0x180128701
mov rcx, r13
call fcn.1800f4920
mov ebx, eax
cmp eax, 0x80
jle 0x18012866b
lea r8, str.j____int_sizeof_ctx__key_
lea rcx, str..cryptohmachmac.c
mov edx, 0x54
call fcn.1800eeae0
cmp ebx, edi
jge 0x1801286a3
lea rcx, [rbp + 8]
mov r8, r14
mov rdx, r13
call fcn.1800f5e20
lea rcx, [rbp + 8]
mov r8, rdi
mov rdx, r12
call fcn.1800f5f00
lea r12, [rbp + 0x68]
lea rdx, [rbp + 0x6c]
lea rcx, [rbp + 8]
mov r8, r12
call fcn.1800f5f20
jmp 0x1801286de
test edi, edi
js 0x1801286af
cmp edi, 0x80
jle 0x1801286c7
lea r8, str.len_0__len__int_sizeof_ctx__key_
lea rcx, str..cryptohmachmac.c
mov edx, 0x5e
call fcn.1800eeae0
lea rcx, [rbp + 0x6c]
mov r8, rdi
mov rdx, r12
call fcn.1800a1360
lea r12, [rbp + 0x68]
mov dword [r12], edi
mov ecx, dword [r12]
cmp ecx, 0x80
je 0x180128709
mov r8d, 0x80
xor edx, edx
sub r8d, ecx
lea rcx, [rcx + rbp + 0x6c]
call fcn.1800a1250
jmp 0x180128709
test eax, eax
je 0x1801287bd
lea rax, [rsp + 0x20]
mov rdi, rbp
mov rdx, rsi
sub rdi, rax
nop word [rax + rax]
lea rcx, [rsp + rdx + 0x20]
add rdx, 2
movzx eax, byte [rdi + rcx + 0x6c]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [rdi + rcx + 0x6d]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x180128720
lea rcx, [rbp + 0x28]
mov r8, r14
mov rdx, r13
call fcn.1800f5e20
mov rcx, r13
call fcn.1800f4920
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x28]
movsxd r8, eax
call fcn.1800f5f00
nop dword [rax]
lea rdx, [rsp + rsi + 0x20]
add rsi, 2
movzx eax, byte [rdi + rdx + 0x6c]
xor al, 0x5c
mov byte [rdx], al
movzx eax, byte [rdi + rdx + 0x6d]
xor al, 0x5c
mov byte [rdx + 1], al
cmp rsi, 0x80
jl 0x180128770
lea rcx, [rbp + 0x48]
mov r8, r14
mov rdx, r13
call fcn.1800f5e20
mov rcx, r13
call fcn.1800f4920
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x48]
movsxd r8, eax
call fcn.1800f5f00
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.1800f60c0
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800a1220
add rsp, 0xb8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret