joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005b470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400be078]
test ecx, ecx
je 0x14005b586
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005b4a2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005b580
mov ecx, dword [0x1400be078]
test ecx, ecx
je 0x14005b5a8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005b5c5
mov rdi, rax
test rax, rax
jne 0x14005b52c
mov qword [rsp + 0x28], 0
lea rax, case.0x1400335a5.301
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400edd48]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140001930
test rax, rax
je 0x14005b5e4
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400be078]
test ecx, ecx
je 0x14005b5d1
dec ecx
mov rdx, rdi
call fcn.1400bbbc4
test rsi, rsi
je 0x14005b546
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005b548
mov rax, qword [rsi + 8]
jmp 0x14005b548
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005b580
test rcx, rcx
je 0x14005b580
lock dec qword [rcx]
jne 0x14005b580
lea rcx, [rsp + 0x28]
call fcn.14000ee10
add rdi, 0x10
jmp 0x14005b5c7
lea rcx, case.0x1400335a5.301
call fcn.1400511b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005b494
jmp 0x14005b4a2
lea rcx, case.0x1400335a5.301
call fcn.1400511b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005b4c1
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, case.0x1400335a5.301
call fcn.1400511b0
mov ecx, eax
jmp 0x14005b524
mov ecx, 8
mov edx, 0x18
call fcn.140089770
ud2
Function at 0x14005b610
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1400be098]
test ecx, ecx
je 0x14005b63f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005b658
cmp byte [rax + 8], 0
je 0x14005b658
add rax, 9
jmp 0x14005b700
lea rcx, [0x1400be080]
call fcn.1400511b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005b630
mov ecx, dword [0x1400be098]
test ecx, ecx
je 0x14005b6e1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005b6fe
mov rdi, rax
test rax, rax
jne 0x14005b6be
mov rax, qword [0x1400edd48]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001930
test rax, rax
je 0x14005b717
mov rdi, rax
lea rax, [0x1400be080]
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400be098]
test ecx, ecx
je 0x14005b707
dec ecx
mov rdx, rdi
call fcn.1400bbbc4
xor ecx, ecx
test rsi, rsi
je 0x14005b6d4
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14005b700
lea rcx, [0x1400be080]
call fcn.1400511b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005b673
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400be080]
call fcn.1400511b0
mov ecx, eax
jmp 0x14005b6b6
mov ecx, 8
mov edx, 0x10
call fcn.140089770
ud2

Function at 0x14005b730
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1400be0b8]
test ecx, ecx
je 0x14005b75f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005b778
cmp byte [rax + 8], 0
je 0x14005b778
add rax, 9
jmp 0x14005b820
lea rcx, [0x1400be0a0]
call fcn.1400511b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005b750
mov ecx, dword [0x1400be0b8]
test ecx, ecx
je 0x14005b801
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005b81e
mov rdi, rax
test rax, rax
jne 0x14005b7de
mov rax, qword [0x1400edd48]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001930
test rax, rax
je 0x14005b837
mov rdi, rax
lea rax, [0x1400be0a0]
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400be0b8]
test ecx, ecx
je 0x14005b827
dec ecx
mov rdx, rdi
call fcn.1400bbbc4
xor ecx, ecx
test rsi, rsi
je 0x14005b7f4
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14005b820
lea rcx, [0x1400be0a0]
call fcn.1400511b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005b793
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400be0a0]
call fcn.1400511b0
mov ecx, eax
jmp 0x14005b7d6
mov ecx, 8
mov edx, 0x10
call fcn.140089770
ud2
Function at 0x14005b9f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400be0f8]
test ecx, ecx
je 0x14005bb06
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005ba22
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005bb00
mov ecx, dword [0x1400be0f8]
test ecx, ecx
je 0x14005bb28
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005bb45
mov rdi, rax
test rax, rax
jne 0x14005baac
mov qword [rsp + 0x28], 0
lea rax, [0x1400be0e0]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400edd48]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140001930
test rax, rax
je 0x14005bb64
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400be0f8]
test ecx, ecx
je 0x14005bb51
dec ecx
mov rdx, rdi
call fcn.1400bbbc4
test rsi, rsi
je 0x14005bac6
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005bac8
mov rax, qword [rsi + 8]
jmp 0x14005bac8
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005bb00
test rcx, rcx
je 0x14005bb00
lock dec qword [rcx]
jne 0x14005bb00
lea rcx, [rsp + 0x28]
call fcn.14000f0b0
add rdi, 0x10
jmp 0x14005bb47
lea rcx, [0x1400be0e0]
call fcn.1400511b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005ba14
jmp 0x14005ba22
lea rcx, [0x1400be0e0]
call fcn.1400511b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005ba41
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400be0e0]
call fcn.1400511b0
mov ecx, eax
jmp 0x14005baa4
mov ecx, 8
mov edx, 0x18
call fcn.140089770
ud2
Function at 0x1400a2a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400a2aca
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400a2ac0
cmp r11, r10
ja 0x1400a2b63
cmp r10, rdx
ja 0x1400a2b77
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400a2ac2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400a2aa0
jmp 0x1400a2b37
ja 0x1400a2aca
mov r11, r10
cmp rax, r8
jne 0x1400a2a72
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400a2b3b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400a2b10
mov r8, r10
sub ecx, r9d
jns 0x1400a2b2e
jmp 0x1400a2b3d
cmp r10, rdx
je 0x1400a2b49
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400a2b3d
xor al, 1
cmp r8, rdx
jne 0x1400a2af0
jmp 0x1400a2b3d
xor eax, eax
jmp 0x1400a2b3d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400df2b1]
lea r8, [0x1400e1620]
mov edx, 0x2b
call fcn.140098a10
ud2
lea r8, [0x1400e1638]
mov rcx, r11
mov rdx, r10
call fcn.14009f150
ud2
lea r8, [0x1400e1638]
mov rcx, r10
call fcn.14009f0d0
ud2
Function at 0x1400bc9b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400bd750
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400bd750
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400bca20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ff2b4]
mov rbx, rcx
test esi, esi
jle 0x1400bcb50
mov rax, qword [0x1400ff2b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400bca6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400bcaf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400bca50
mov rcx, rbx
call fcn.1400bd470
mov rdi, rax
test rax, rax
je 0x1400bcb72
mov rax, qword [0x1400ff2b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400bd5b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ff2b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400bcb57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400bcaee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400bcb00
add dword [0x1400ff2b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400ff2b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400bcaee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400bc9b0
nop dword [rax]
xor esi, esi
jmp 0x1400bca78
mov rax, qword [0x1400ff2b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400bc9b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400bc9b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400bd0e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ff320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ff300]
test rbx, rbx
je 0x1400bd13c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400bd133
test rsi, rsi
je 0x1400bd133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400bd118
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400bd470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400edc90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400bd490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400bd498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400bd490
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400bd4ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400bd4e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400bd490
add rax, 0x28
cmp rax, r9
jne 0x1400bd4d0
xor eax, eax
ret

Function at 0x1400bd4f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400edc90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400bd50f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400bd518
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400bd50f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400bd5b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400edc90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400bd5cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400bd5d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
ficom word [rdi + 0xa51d217]
test eax, 0x2893f8bd
and dh, dl
invalid
sbb ax, 0xb024
loope 0x14003f5ed
sub edi, edi
mov ch, byte [rcx + 0x153ae754]
adc al, 0x47
test al, 0x1f
mov esp, 0x5116e664
cmpsb byte [rsi], byte [rdi]
invalid
push rcx
pop rdx
sbb dword es:[rdi + rbx*2 + 0x37], 0x6d
pop rsp
pop rdi
invalid
insd dword [rdi], dx
invalid
invalid
and al, 0xc3
call 0x1bae0e640
xchg esi, eax
iretd
adc byte [rax + rdx - 0x7773aea], 0xaf
test dword [rbp + 0x15], ecx
hlt
invalid
push rdi
inc dword [rsi - 0x32]
push rsi
out 0xbe, al
fidivr dword [rsi]
iretd
Function at 0x1400010e0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rdi
mov eax, 0x2258
call fcn.140012590
sub rsp, rax
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x2240], rax
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
mov rbp, rax
test rax, rax
je 0x1400011d6
lea r9, [rsp + 0x20]
mov r8d, 0x2000
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1400011cb
mov qword [rsp + 0x2280], rsi
mov esi, dword [rsp + 0x20]
shr rsi, 3
test rsi, rsi
je 0x1400011c3
mov qword [rsp + 0x2278], rbx
mov rbx, rdi
mov qword [rsp + 0x2250], r14
mov r14d, 1
nop
mov rdx, qword [rsp + rbx*8 + 0x30]
lea r8, [rsp + 0x2030]
mov r9d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x1400011ab
lea rdx, str.taskdll.dll
lea rcx, [rsp + 0x2030]
call fcn.140002860
test rax, rax
cmovne edi, r14d
inc rbx
cmp rbx, rsi
jl 0x140001170
mov r14, qword [rsp + 0x2250]
mov rbx, qword [rsp + 0x2278]
mov rsi, qword [rsp + 0x2280]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x2240]
xor rcx, rsp
call fcn.140001b70
add rsp, 0x2258
pop rdi
pop rbp
ret

Function at 0x140006c80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006a7c
Function at 0x14000aad8
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 0x14000ab08
xor eax, eax
jmp 0x14000abcb
mov rbp, rbx
cmp word [rax], si
je 0x14000ab2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ab14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ab10
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.14000a9f8
movsxd r14, eax
test eax, eax
jne 0x14000ab6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ab01
mov rcx, r14
call fcn.14000bbb4
mov rdi, rax
test rax, rax
jne 0x14000ab84
xor ecx, ecx
call fcn.1400082b0
jmp 0x14000ab60
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.14000a9f8
test eax, eax
jne 0x14000abb5
mov rcx, rdi
call fcn.1400082b0
jmp 0x14000abbf
xor ecx, ecx
call fcn.1400082b0
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 0x14000fba0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140009ac8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000fc2a
cmp byte [rbp - 0x21], r15b
je 0x14000fc25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000fc60
call fcn.14000c59c
test eax, eax
jne 0x14000fc4c
cmp byte [rbp - 0x21], r15b
je 0x14000fc44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000fc60
cmp byte [rbp - 0x21], r15b
je 0x14000fc5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400090a8
test eax, eax
jne 0x14000fd00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009ac8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000fc9f
cmp byte [rbp - 0x21], r15b
je 0x14000fcd4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000fcd4
call fcn.14000c59c
test eax, eax
jne 0x14000fcc0
cmp byte [rbp - 0x21], r15b
je 0x14000fcb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000fcd4
cmp byte [rbp - 0x21], r15b
je 0x14000fcd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400090a8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000fd00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000fd03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000fd11
mov rcx, rdi
call fcn.1400082b0
cmp byte [rbp + 0x3f], r15b
je 0x14000fd20
mov rcx, qword [rbp + 0x27]
call fcn.1400082b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140010270
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.140010d88
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140010d88
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400103c0
cmp rax, 0xffffffffffffffff
je 0x1400103c0
xor edi, edi
test rbp, rbp
jle 0x14001036b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000901c
mov rbx, rax
test rax, rax
jne 0x1400102f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140010361
mov edx, 0x8000
mov ecx, r14d
call fcn.140006cfc
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.14000e98c
cmp eax, 0xffffffff
je 0x140010341
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140010308
mov edx, r15d
mov ecx, r14d
call fcn.140006cfc
jmp 0x140010361
cmp byte [rsi + 0x38], dil
je 0x140010358
cmp dword [rsi + 0x34], 5
jne 0x140010358
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140010361
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400082b0
jmp 0x1400103d4
jns 0x1400103d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140010d88
cmp rax, 0xffffffffffffffff
jne 0x14001038c
cmp byte [rsi + 0x30], dil
je 0x1400103d4
mov edi, dword [rsi + 0x2c]
jmp 0x1400103d4
mov ecx, r14d
call fcn.14000b5f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400103d4
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 0x1400103d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400103cd
mov eax, dword [rsi + 0x2c]
jmp 0x1400103d2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140010d88
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