joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001bc7
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push rbp
push rdi
mov eax, 0x1258
call fcn.140002fd0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x11f0], rcx
mov dword [rbp + 0x11f8], edx
lea rdx, [rbp + 0x1ac]
lea rax, [rbp + 0x1b0]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sym.K32EnumProcesses
test eax, eax
jne 0x140001c21
lea rax, str.Failed_to_enumerate_processes.
mov rcx, rax
call sym.puts
jmp 0x140001d71
mov eax, dword [rbp + 0x1ac]
shr eax, 2
mov dword [rbp + 0x11c4], eax
mov dword [rbp + 0x11cc], 0
jmp 0x140001d5f
mov eax, dword [rbp + 0x11cc]
cdqe
mov eax, dword [rbp + rax*4 + 0x1b0]
mov dword [rbp + 0x11c0], eax
cmp dword [rbp + 0x11c0], 0
je 0x140001d57
mov eax, dword [rbp + 0x11c0]
mov r8d, eax
mov edx, 0
mov ecx, 0x410
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x11b8], rax
cmp qword [rbp + 0x11b8], 0
je 0x140001d58
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x11b8]
mov r9d, 0x104
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.K32GetModuleBaseNameW
test eax, eax
je 0x140001d42
mov dword [rbp + 0x11c8], 0
jmp 0x140001d34
mov eax, dword [rbp + 0x11c8]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x11f0]
add rax, rdx
mov rdx, qword [rax]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.wcscmp
test eax, eax
jne 0x140001d2d
mov edx, dword [rbp + 0x11c0]
lea rax, [rbp - 0x60]
mov r8d, edx
mov rdx, rax
lea rax, str.Process_found:__ls__PID:__lu__n
mov rcx, rax
call dbg.printf
mov ecx, 0
call sym.exit
add dword [rbp + 0x11c8], 1
mov eax, dword [rbp + 0x11c8]
cmp eax, dword [rbp + 0x11f8]
jl 0x140001cd7
mov rax, qword [rbp + 0x11b8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001d58
nop
add dword [rbp + 0x11cc], 1
mov eax, dword [rbp + 0x11cc]
cmp eax, dword [rbp + 0x11c4]
jl 0x140001c3f
add rsp, 0x1258
pop rdi
pop rbp
ret

Function at 0x140001dd7
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov eax, dword [0x140009030]
cmp eax, 3
jne 0x140001e03
lea rax, str.Sandbox_detected__exisiting....
mov rcx, rax
call dbg.printf
mov ecx, 0
call sym.exit
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002200
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002270
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x1400023a0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400022bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002345
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400022a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400023c2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400023a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000233e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002350
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000233e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400022c8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002960
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400029bc
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 rsi, rsi
je 0x1400029b3
test eax, eax
jne 0x1400029b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002998
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 0x140002bd0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002be8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002bf0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002c00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140002c4d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002c44
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002c4f
add rax, 0x28
cmp rax, r9
jne 0x140002c30
xor eax, eax
ret

Function at 0x140002c50
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002ce0
mov rdx, qword [0x1400063c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002cce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002cce
cmp word [rax + 0x18], 0x20b
jne 0x140002cce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002ce0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002cb9
add rbx, 0x28
cmp rbx, rdi
je 0x140002ce0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002cb0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002cf0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002d70
Capabilities:
Parse pe header

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

Function at 0x140002db0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400063c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002dd0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002dd8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002dd0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002e20
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002e17
test rcx, rcx
je 0x140002dd0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002e08
xor eax, eax
ret
Function at 0x140002e30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400063c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002e4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002e58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002e70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400063c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002e90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002e98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002e90
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002e90
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002ee4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ef0
add rdx, 0x28
cmp r9, rdx
jne 0x140002ed0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002f00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400063c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002f22
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002f30
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f22
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002f22
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002f22
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002f85
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002f98
add rdx, 0x28
cmp r10, rdx
jne 0x140002f70
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002fa7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002fb7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002f8e
test ecx, ecx
jg 0x140002fa0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a460
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a4a5
xor al, al
jmp 0x14000a4f2
cmp word [rbx], 0
je 0x14000a4bd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4b0
cmp word [rsp + 0x30], 0
je 0x14000a4eb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a513
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4d0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b740
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000d780
int3
Function at 0x14000acb0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001c7b0
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002e520]
lea rsi, [0x140030560]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad29
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a520
test al, al
je 0x14000ae0f
lea rcx, [rsp + 0x20]
call fcn.140011198
movsxd r11, dword [0x14002e520]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002e520], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad64
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad54
add rax, 2
test ecx, ecx
jne 0x14000ad40
test edx, edx
je 0x14000ad87
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad34
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad70
cmp rax, 2
jne 0x14000ad8b
cmp word [rdi + 2], 0x3a
jne 0x14000ad8b
mov al, 1
jmp 0x14000adee
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000adb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000adb8
mov bl, 1
jmp 0x14000adbc
test bl, bl
je 0x14000ade3
cmp dword [0x14002e520], 0x400
jge 0x14000ade3
mov rcx, rdi
call fcn.140011198
movsxd rdx, dword [0x14002e520]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002e520], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b740
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000ab50
int3
Function at 0x14000af30
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002e528]
test rcx, rcx
je 0x14000af6b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af5e
mov rcx, qword [0x14002e528]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002e528]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140032578], 0
je 0x14000b05e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025968]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002e560]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b03f
test al, 0x10
je 0x14000b03f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000afe5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000d774
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d607
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d607
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d607
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d607
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d607
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d607
cmp dword [rcx + 0xf8], 0
je 0x14000d607
mov ecx, ebx
call fcn.14000d6a8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d498
cmp dword [rbp + 0x20], 0
je 0x14000d654
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d65c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d5a0
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
out 0x2f, eax
xchg byte [rdi - 0x14], bl
push rax
mov bh, 0x25
mov ebp, 0xa9951557
imul ebp, dword [rax], 0x9883a6c3
imul edi, dword [rbx - 0x1becd12c], 0xac423dcd
wait
sbb edi, dword [rdx]
adc al, 5
cmp byte fs:[rax - 0x27], r15b
js 0x14003f5d7
rcr byte [rsi - 0x4d], cl
xchg esp, eax
invalid
jmp 0x14003f668
shl al, 1
invalid
push rdx
jg 0x14003f64e
js 0x14003f5fc
in eax, 0x68
pop rdx
not byte [0x13901fb9d]
invalid
invalid
xor ebp, dword [rbx]
jl 0x14003f6e1
add ah, ch
mov eax, 0xa94dba9b
movabs al, byte [0x9b2e6575a1444272]
invalid
push rdi
pop rsp
jp 0x14003f66f
imul ebp, dword [rax - 0x329e7286], 0xffffffd9
and al, 0x98
loop 0x14003f6e1
invalid
push rdx
and dword [rdi + 0x16], ebp
out dx, al
test al, 0x71
invalid
xor eax, 0x89b1896
fadd st(6)
stc
iretd
pushfq
and al, 0x19
stosb byte [rdi], al
movabs byte [0x6e9935f1517ecd02], al
mov cl, 0xf4
int 0x7e
push rcx
int1
xor eax, 0xf4b16e99
test eax, 0xf2e5d2c8
invalid
jrcxz 0x14003f6cd
sbb dword [rdx + 0x1b0a72d8], 0x37
jb 0x14003f703
sbb esi, dword [rdi]
cmp ecx, esp
invalid
fisubr dword [r10 - 0x30d126b3]
xchg ecx, eax
push rsp
test byte [rdi + rdi*8 - 0x33ff4081], ch
lodsb al, byte [rsi]
invalid
jg 0x14003f6d5
add ah, cl
jg 0x14003f6d5
add ah, cl
sbb eax, 0x5fb1687f
fidivr dword [rbx]
invalid
Function at 0x14000c460
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x14000c4ac
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000c4fa
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000c4f5
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c519
mov rcx, r8
call fcn.1400387a0
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14003f69c
int3

Function at 0x14000c520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 7
jbe 0x14000c575
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14000c5c4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000c5bf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c5e3
mov rcx, r8
call fcn.1400387a0
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14003f69c
int3