joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ead0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
lea rcx, str.wintun.dll
mov r8d, 0xa00
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14000ecc5
lea rdx, str.WintunCreateAdapter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140055498], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunCloseAdapter
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554a0], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunOpenAdapter
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554a8], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunGetAdapterLUID
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554b0], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunGetRunningDriverVersion
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554b8], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunDeleteDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554c0], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunSetLogger
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554c8], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunStartSession
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554d0], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunEndSession
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554d8], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunGetReadWaitEvent
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554e0], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunReceivePacket
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554e8], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunReleaseReceivePacket
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554f0], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunAllocateSendPacket
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400554f8], rax
test rax, rax
je 0x14000ecac
lea rdx, str.WintunSendPacket
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140055500], rax
test rax, rax
je 0x14000ecac
mov rax, rdi
jmp 0x14000ecc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000f568
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 0x18
call fcn.1400131fc
test rax, rax
je 0x14000f597
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movsd xmm1, qword [rbx + 0x10]
movsd qword [rax + 0x10], xmm1
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14000f268]
xor edx, edx
xor ecx, ecx
call fcn.14001e4c0
mov qword [rdi], rax
test rax, rax
je 0x14000f5d0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call fcn.140012018
int3

Function at 0x1400104b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rdi
sub rsp, 0x30
and dword [rax + 8], 0
mov rdi, rcx
mov dword [rax + 0x10], 4
lea rax, [rax + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010535
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.AppsUseLightTheme
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14001053d
mov dword [rsp + 0x40], 1
xor ecx, ecx
mov dword [0x1400530b0], 0x3d0
mov qword [0x1400530b8], rdi
mov dword [0x1400530c0], 1
mov dword [0x1400530c4], 7
mov dword [0x1400530c8], 0x402
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x65
call qword [sym.imp.USER32.dll_LoadIconW]
mov rdx, qword [0x1400530a8]
lea rcx, [0x1400530d8]
mov qword [0x1400530d0], rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1400530b0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400110d0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400534d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x14003d740]
movdqu xmmword [rsp + 0x40], xmm1
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x30]
call fcn.140010cf4
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14001117e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011179
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011191
call fcn.140013238
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140013350
add rsp, 0x60
pop rbx
ret
call fcn.140019ab4
int3
mov rcx, qword [rcx]
jmp 0x1400110d0
Function at 0x1400111a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400534d8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rcx, rdx
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor edi, edi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
lea rdx, [rbp - 0x30]
call fcn.140010cf4
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14001125b
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rbp - 0x20]
lea rdx, [rdx*2 + 2]
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140011254
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rbp - 0x20]
lea r8, [rcx*2 + 2]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov rcx, rax
call fcn.1400142d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
lea ecx, [rdi + 0xd]
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140011297
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011292
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112b3
call fcn.140013238
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140013350
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.140019ab4
int3
mov rcx, qword [rcx]
jmp 0x1400111a0
Function at 0x1400112bc
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400534d8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rcx, rdx
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor edi, edi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
lea rdx, [rbp - 0x30]
call fcn.140010cf4
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14001125b
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rbp - 0x20]
lea rdx, [rdx*2 + 2]
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140011254
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rbp - 0x20]
lea r8, [rcx*2 + 2]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov rcx, rax
call fcn.1400142d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
lea ecx, [rdi + 0xd]
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140011297
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011292
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112b3
call fcn.140013238
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140013350
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.140019ab4
int3
mov rcx, qword [rcx]
jmp 0x1400111a0

Function at 0x140012d6c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140012df0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003e840]
cmp byte [rcx + rax], 0
je 0x140012df0
dec r8
sub rdx, 1
jne 0x140012dd6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140013ebc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013f06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013f06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013f06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013f06
cmp dword [rcx + 0x84], 0xe
jbe 0x140013f06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013f08
xor al, al
add rsp, 0x28
ret

Function at 0x140023fbc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140023dac
Function at 0x140029f60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140029f92
call fcn.14001f428
mov dword [rax], 0x16
call fcn.140019a94
jmp 0x14002a0b1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002a0b1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002a0b1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140029fc1
lock or dword [rcx + 0x14], 0x10
jmp 0x14002a0b1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140029fd5
call fcn.14002b710
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140028d28
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002ad40
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002a09f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002a06a
mov rcx, rsi
call fcn.140028d28
cmp eax, edi
je 0x14002a055
mov rcx, rsi
call fcn.140028d28
cmp eax, 0xfffffffe
je 0x14002a055
mov rcx, rsi
call fcn.140028d28
movsxd rbx, eax
lea r14, [0x14005ab40]
mov rcx, rsi
sar rbx, 6
call fcn.140028d28
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002a05c
lea rdx, [0x140053890]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002a06a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002a08e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002a08e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002a08e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002a0b4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002a3dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140013880
sub rsp, rax
mov rax, qword [0x1400534d8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028d28
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002a42b
mov rax, rbp
jmp 0x14002a533
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5ab40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002b518
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5ab40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002a52f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a52f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002b518
test rax, rax
js 0x14002a52f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002a52f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002a521
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002a521
cmp byte [rcx], 0xd
jne 0x14002a507
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002a516
cmp byte [rcx + 1], 0xa
jne 0x14002a516
inc rcx
jmp 0x14002a516
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x538e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002a4e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002a533
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140013350
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a894
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14005ab40]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002a8f2
cmp word [rdx], r12w
jne 0x14002a8f2
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002a8f8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002aa53
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002aa2e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002a931
mov rcx, r9
jmp 0x14002a954
cmp r9, rdx
jae 0x14002a96b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002a915
jmp 0x14002aa53
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002aa28
cmp dword [rsp + 0x80], edi
je 0x14002aa28
mov rdx, r14
lea r11, [0x14005ab40]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002aa01
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002a9d4
mov word [rbx], r12w
jmp 0x14002aa4f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002a9dd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002aa4f
cmp word [rsp + 0x70], r12w
jne 0x14002aa0e
cmp rbx, rsi
je 0x14002a9ce
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002b520
cmp word [rsp + 0x70], r12w
je 0x14002aa53
mov word [rbx], r13w
jmp 0x14002aa4f
lea r11, [0x14005ab40]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002aa4b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002aa53
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003110c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003113c
xor eax, eax
jmp 0x1400311ff
mov rbp, rbx
cmp word [rax], si
je 0x140031161
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140031148
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031144
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140027b0c
movsxd r14, eax
test eax, eax
jne 0x14003119f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031135
mov rcx, r14
call fcn.140027a50
mov rdi, rax
test rax, rax
jne 0x1400311b8
xor ecx, ecx
call fcn.140027a14
jmp 0x140031194
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140027b0c
test eax, eax
jne 0x1400311e9
mov rcx, rdi
call fcn.140027a14
jmp 0x1400311f3
xor ecx, ecx
call fcn.140027a14
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14003121c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400312a3
mov rsi, rbx
cmp word [rax], bp
je 0x140031262
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003124c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140031248
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140027a50
mov rdi, rax
test rax, rax
je 0x140031290
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400142d0
mov rbp, rdi
xor ecx, ecx
call fcn.140027a14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140039394
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002b520
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002b520
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400394e4
cmp rax, 0xffffffffffffffff
je 0x1400394e4
xor edi, edi
test rbp, rbp
jle 0x14003948f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140027c94
mov rbx, rax
test rax, rax
jne 0x14003941c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140039485
mov edx, 0x8000
mov ecx, r14d
call fcn.140024fc8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140029c50
cmp eax, 0xffffffff
je 0x140039465
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003942c
mov edx, r15d
mov ecx, r14d
call fcn.140024fc8
jmp 0x140039485
cmp byte [rsi + 0x38], dil
je 0x14003947c
cmp dword [rsi + 0x34], 5
jne 0x14003947c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140039485
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140027a14
jmp 0x1400394f8
jns 0x1400394f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002b520
cmp rax, 0xffffffffffffffff
jne 0x1400394b0
cmp byte [rsi + 0x30], dil
je 0x1400394f8
mov edi, dword [rsi + 0x2c]
jmp 0x1400394f8
mov ecx, r14d
call fcn.140031edc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400394f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400394f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400394f1
mov eax, dword [rsi + 0x2c]
jmp 0x1400394f6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002b520
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140005050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140005081
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1400050fb
mov rdi, r14
mov rcx, rbx
call fcn.140006550
test rax, rax
jle 0x1400050d3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140024430
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400050eb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x1400050f3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140005095
sub r14, rdi
jmp 0x1400051df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005112
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005114
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005146
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140024430
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400051dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005181
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400051bd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002d808
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400051dc
cmp rbp, rax
ja 0x140005190
test rbp, rbp
je 0x1400051dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002d808
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret