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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.14001bf25
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.14001bd79
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001c23f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x140026660]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001c383
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001c2dc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001c297
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001a99c
mov qword [rbp - 0x10], 0
mov eax, dword [0x140026660]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001c383
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001c316
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001c383
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001a99c
mov qword [rbp - 0x10], 0
mov eax, dword [0x140026660]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013780
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Execute command

Disassembly:
jmp 0x140011d20
push rbp
push rdi
sub rsp, 0x6f8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x11e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x6a8], rax
lea rcx, [0x1400230a2]
call fcn.140011393
mov dword [rbp + 0x1d4], 0
mov dword [rbp + 0x1f4], 0
mov byte [rbp + 0x3d4], 0x30
mov byte [rbp + 0x3f4], 0x58
mov dword [rbp + 0x414], 0
jmp 0x140011d99
mov eax, dword [rbp + 0x414]
inc eax
mov dword [rbp + 0x414], eax
cmp dword [rbp + 0x414], 0x13
jge 0x140011de4
mov dword [rbp + 0x434], 0
jmp 0x140011dbc
mov eax, dword [rbp + 0x434]
inc eax
mov dword [rbp + 0x434], eax
cmp dword [rbp + 0x434], 0x13
jge 0x140011de2
movsxd rax, dword [rbp + 0x414]
imul rax, rax, 0x13
lea rax, [rbp + rax + 0x10]
movsxd rcx, dword [rbp + 0x434]
mov byte [rax + rcx], 0x2b
jmp 0x140011dae
jmp 0x140011d8b
lea rax, [rbp + 0x370]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x300]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
lea r8, [rbp + 0x1f4]
lea rdx, [rbp + 0x1d4]
lea rcx, [rbp + 0x10]
call fcn.14001116d
lea rax, [rbp + 0x370]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x300]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
mov r8d, dword [rbp + 0x1f4]
mov edx, dword [rbp + 0x1d4]
lea rcx, [rbp + 0x10]
call fcn.140011271
xor eax, eax
cmp eax, 1
je 0x140011f72
lea rcx, [0x14001b0a8]
call fcn.1400111a9
lea r8, [rbp + 0x1b4]
lea rdx, [rbp + 0x194]
lea rcx, str._d__d
call fcn.140011212
movzx r9d, byte [rbp + 0x3d4]
mov r8d, dword [rbp + 0x1b4]
mov edx, dword [rbp + 0x194]
lea rcx, [rbp + 0x10]
call fcn.140011366
lea rax, [rbp + 0x370]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x300]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
lea r8, [rbp + 0x1f4]
lea rdx, [rbp + 0x1d4]
lea rcx, [rbp + 0x10]
call fcn.14001116d
lea rcx, [0x14001b0e0]
call qword [sym.imp.ucrtbased.dll_system]
lea rax, [rbp + 0x370]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x300]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
mov r8d, dword [rbp + 0x1f4]
mov edx, dword [rbp + 0x1d4]
lea rcx, [rbp + 0x10]
call fcn.140011271
movzx eax, byte [rbp + 0x3d4]
mov byte [rbp + 0x454], al
movzx eax, byte [rbp + 0x3f4]
mov byte [rbp + 0x3d4], al
movzx eax, byte [rbp + 0x454]
mov byte [rbp + 0x3f4], al
jmp 0x140011e67
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001af50]
call fcn.14001132a
mov eax, edi
mov rcx, qword [rbp + 0x6a8]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x6b8]
pop rdi
pop rbp
ret
Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ac0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014ae0
xor al, al
jmp 0x140014b61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014af3
xor al, al
jmp 0x140014b61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014b1d
xor al, al
jmp 0x140014b61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014b31
xor al, al
jmp 0x140014b61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014b43
xor al, al
jmp 0x140014b61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014b5f
xor al, al
jmp 0x140014b61
mov al, 1
add rsp, 0x38
ret
Function at 0x140001790
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.140007500
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.140007500
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 0x140001800
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
mov rbx, rcx
test esi, esi
jle 0x140001930
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000184b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001830
mov rcx, rbx
call fcn.140002250
mov rdi, rax
test rax, rax
je 0x140001952
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002390
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001937
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400018e0
add dword [0x14000d094], 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 [0x14000d098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001790
nop dword [rax]
xor esi, esi
jmp 0x140001858
mov rax, qword [0x14000d098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001790
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001790
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001ec0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x140001f1c
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 0x140001f13
test rsi, rsi
je 0x140001f13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ef8
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 0x140002250
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002270
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002278
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002270
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022cd
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 0x1400022c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002270
add rax, 0x28
cmp rax, r9
jne 0x1400022b0
xor eax, eax
ret

Function at 0x1400022d0
Capabilities:
Parse pe header

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

Function at 0x140002390
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009740]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002858
Capabilities:
Parse pe header

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

Function at 0x14000e610
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e400
Function at 0x14001411c
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 0x14001414c
xor eax, eax
jmp 0x14001420f
mov rbp, rbx
cmp word [rax], si
je 0x140014171
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140014158
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140014154
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.14001406c
movsxd r14, eax
test eax, eax
jne 0x1400141af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014145
mov rcx, r14
call fcn.140010920
mov rdi, rax
test rax, rax
jne 0x1400141c8
xor ecx, ecx
call fcn.14000f1a8
jmp 0x1400141a4
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.14001406c
test eax, eax
jne 0x1400141f9
mov rcx, rdi
call fcn.14000f1a8
jmp 0x140014203
xor ecx, ecx
call fcn.14000f1a8
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 0x140019470
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, [0x14002c660]
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 0x1400194ce
cmp word [rdx], r12w
jne 0x1400194ce
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400194d4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001962f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001960a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001950d
mov rcx, r9
jmp 0x140019530
cmp r9, rdx
jae 0x140019547
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 0x1400194f1
jmp 0x14001962f
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 0x140019604
cmp dword [rsp + 0x80], edi
je 0x140019604
mov rdx, r14
lea r11, [0x14002c660]
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 0x1400195dd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400195b0
mov word [rbx], r12w
jmp 0x14001962b
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 0x1400195b9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001962b
cmp word [rsp + 0x70], r12w
jne 0x1400195ea
cmp rbx, rsi
je 0x1400195aa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001b2a4
cmp word [rsp + 0x70], r12w
je 0x14001962f
mov word [rbx], r13w
jmp 0x14001962b
lea r11, [0x14002c660]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140019627
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001962f
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 0x14001addc
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.14000d000
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001ae66
cmp byte [rbp - 0x21], r15b
je 0x14001ae61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001ae9c
call fcn.14000f3fc
test eax, eax
jne 0x14001ae88
cmp byte [rbp - 0x21], r15b
je 0x14001ae80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001ae9c
cmp byte [rbp - 0x21], r15b
je 0x14001ae99
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.1400127e8
test eax, eax
jne 0x14001af3c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d000
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001aedb
cmp byte [rbp - 0x21], r15b
je 0x14001af10
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001af10
call fcn.14000f3fc
test eax, eax
jne 0x14001aefc
cmp byte [rbp - 0x21], r15b
je 0x14001aef5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001af10
cmp byte [rbp - 0x21], r15b
je 0x14001af0d
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.1400127e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001af3c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001af3f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001af4d
mov rcx, rdi
call fcn.14000f1a8
cmp byte [rbp + 0x3f], r15b
je 0x14001af5c
mov rcx, qword [rbp + 0x27]
call fcn.14000f1a8
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 0x14001c0a4
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.14001b2a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b2a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001c1f4
cmp rax, 0xffffffffffffffff
je 0x14001c1f4
xor edi, edi
test rbp, rbp
jle 0x14001c19f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000f130
mov rbx, rax
test rax, rax
jne 0x14001c12c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001c195
mov edx, 0x8000
mov ecx, r14d
call fcn.14000e68c
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.1400164a4
cmp eax, 0xffffffff
je 0x14001c175
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001c13c
mov edx, r15d
mov ecx, r14d
call fcn.14000e68c
jmp 0x14001c195
cmp byte [rsi + 0x38], dil
je 0x14001c18c
cmp dword [rsi + 0x34], 5
jne 0x14001c18c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001c195
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000f1a8
jmp 0x14001c208
jns 0x14001c208
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b2a4
cmp rax, 0xffffffffffffffff
jne 0x14001c1c0
cmp byte [rsi + 0x30], dil
je 0x14001c208
mov edi, dword [rsi + 0x2c]
jmp 0x14001c208
mov ecx, r14d
call fcn.140014b5c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001c208
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 0x14001c208
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001c201
mov eax, dword [rsi + 0x2c]
jmp 0x14001c206
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b2a4
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 0x14001d420
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001d448
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001d448
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62