joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800190fc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180106040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x180106ee8]
mov dword [rsp + 0x20], ecx
mov rbx, qword [rax + 0x1c10]
cmp dword [rbx + 0xc8], 0
jg 0x180019146
mov r8d, 0x6c1
lea rdx, str.E:_1FiveMzinternalimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rcx, dword [rbx + 0xc8]
mov r9d, 4
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1800c23c0]
xor r8d, dword [rax + rdx*4]
sub r9, 1
jne 0x180019167
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0xc8]
mov dword [rsp + 0x20], r8d
call fcn.18002130c
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004c330
add rsp, 0x30
pop rbx
ret

Function at 0x18001f51c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30f8], 0
lea rbx, [rcx + 0x3100]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001f5b5
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x18001f56d
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180021680
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18000da74
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30f8]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x180106ed9]
movsxd r8, eax
mov rax, qword [rdi + 0x3108]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18001f5bd
mov rcx, rbx
call fcn.18000da74
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001fe40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x180106ee8]
mov rbx, rcx
and dword [rax + 0x3094], 0
test rcx, rcx
je 0x18001fea9
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.18001feb4
lea rdx, [0x1800fbf9c]
mov rcx, rbx
mov rdi, rax
call fcn.18000ceb0
mov rbx, rax
test rax, rax
je 0x18001fea9
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18004b9dc
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18004ba40
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18004ba2e
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004ba27
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18004b9fb
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180106f00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18004ba50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180106040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x180107580]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x18004ba95
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x20]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004bac8
mov eax, 0xa
jmp 0x18004bb15
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x18004bae4
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004c330
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18004bf3c
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18004bf53
cmp r8b, 0x90
je 0x18004bf53
cmp r8b, 0xcc
jne 0x18004bf75
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18004bf71
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18004bf75
add edx, r10d
cmp edx, r9d
jb 0x18004bf61
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x140003b90
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
lea rax, [rcx + rax - 0x10]
mov r8d, 0x10
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005fd0
nop
mov eax, dword [rsp + 0xa8]
sub eax, 0x10
mov eax, eax
mov qword [rsp + 0x28], rax
mov edx, 0x18
lea rcx, [rsp + 0x40]
call fcn.140003ce0
lea rcx, [rsp + 0x20]
call fcn.140006160
mov r8, rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.1400042a0
nop
lea rcx, [rsp + 0x40]
call fcn.140004260
mov rdi, rax
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x40]
call fcn.140004260
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140003af0
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.140004260
mov rdi, qword [rsp + 0x30]
mov rsi, rax
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.GDI32.dll_EnumFontsW]
nop
lea rcx, [rsp + 0x40]
call fcn.140004280
nop
lea rcx, [rsp + 0x58]
call fcn.140005eb0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003c0e0
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140003d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x178
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rdx, [0x1400b2c08]
lea rcx, [rsp + 0x98]
call fcn.140005d00
nop
lea rdx, [0x1400b2bfc]
lea rcx, [rsp + 0xc0]
call fcn.140005d00
nop
lea rdx, [0x1400b2c40]
lea rcx, [rsp + 0xe0]
call fcn.140005d00
nop
lea rdx, [0x1400b2c4c]
lea rcx, [rsp + 0x100]
call fcn.140005d00
nop
lea rdx, [0x1400b2c58]
lea rcx, [rsp + 0x120]
call fcn.140005d00
nop
lea rdx, [0x1400b2c64]
lea rcx, [rsp + 0x140]
call fcn.140005d00
nop
lea rdx, [0x1400b2c70]
lea rcx, [rsp + 0x78]
call fcn.140005d00
nop
mov dword [rsp + 0x24], 0
jmp 0x140003e3d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
cmp rax, 5
jae 0x140003f16
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
lea rax, [rsp + rax + 0xc0]
mov r8, rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x38]
call fcn.140009100
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.1400091f0
nop
lea rcx, [rsp + 0x38]
call fcn.140005c70
lea rcx, [rsp + 0x58]
call fcn.140005c50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003f07
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x58]
call fcn.140005c70
nop
lea rcx, [rsp + 0x78]
call fcn.140005c70
nop
lea r9, [fcn.140005c70]
mov r8d, 5
mov edx, 0x20
lea rcx, [rsp + 0xc0]
call fcn.14003c144
nop
lea rcx, [rsp + 0x98]
call fcn.140005c70
movzx eax, byte [rsp + 0x20]
jmp 0x140003f58
lea rcx, [rsp + 0x58]
call fcn.140005c70
jmp 0x140003e33
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x78]
call fcn.140005c70
nop
lea r9, [fcn.140005c70]
mov r8d, 5
mov edx, 0x20
lea rcx, [rsp + 0xc0]
call fcn.14003c144
nop
lea rcx, [rsp + 0x98]
call fcn.140005c70
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003c0e0
add rsp, 0x178
ret
Function at 0x1400040f0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
call fcn.140003f70
movzx eax, al
test eax, eax
je 0x140004237
call fcn.140003570
mov qword [rsp + 0x28], rax
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400a1240]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r8d, 0x104
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x160]
call fcn.1400659d4
lea r8, [rsp + 0x160]
lea rdx, [0x1400b2d50]
lea rcx, [rsp + 0x50]
call fcn.140009250
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call fcn.140003210
movzx eax, al
test eax, eax
je 0x140004237
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140003430
movzx eax, al
test eax, eax
je 0x140004237
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.140003b90
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.14003c100
cmp qword [rsp + 0x20], 0
jne 0x140004224
mov qword [rsp + 0x30], 0
jmp 0x140004237
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003c0e0
add rsp, 0x288
ret
Function at 0x140004770
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x1400047a4
xor eax, eax
jmp 0x140004950
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x1400047cc
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140005510
jmp 0x140004950
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.140006ef0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140004868
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140004970
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.1400070b0
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140008220
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.140007010
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x140004940
mov rcx, qword [rsp + 0x70]
call fcn.1400068a0
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x140004908
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140066418
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140004906
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140004950
jmp 0x14000488e
cmp qword [rsp + 0x40], 0
jbe 0x140004940
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140066418
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003c0e0
add rsp, 0x68
ret
Function at 0x140006950
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x14000698d
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140006994
mov al, 1
jmp 0x140006adc
call fcn.140008130
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.140008130
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.140008190
movzx eax, al
test eax, eax
je 0x1400069e5
xor al, al
jmp 0x140006adc
mov qword [rsp + 0x50], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call fcn.140008360
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140006a4a
cmp dword [rsp + 0x30], 1
je 0x140006a56
cmp dword [rsp + 0x30], 3
je 0x140006aca
jmp 0x140006ada
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140006aa1
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140065cb4
cmp qword [rsp + 0x40], rax
je 0x140006aa1
xor al, al
jmp 0x140006adc
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140006abb
mov dword [rsp + 0x34], 1
jmp 0x140006ac3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140006adc
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140006adc
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14003c0e0
add rsp, 0x98
ret

Function at 0x14002fe38
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140015c56
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140015c39
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140015c24

Function at 0x14002fe4c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140015c8e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140015c71
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140015c5c

Function at 0x1400795dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140079364
Function at 0x140007cf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000c850
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002b8c4]
call fcn.1400045c0
mov rbx, rax
test rax, rax
je 0x140007d52
lea rdx, [0x14002b9bc]
mov rcx, rsi
call fcn.1400045c0
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x140007d5c
call fcn.14001004c
mov eax, 0xffffffff
jmp 0x140007df1
call fcn.1400100e4
test eax, eax
jne 0x140007ddf
nop word [rax + rax]
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14001039c
test rax, rax
je 0x140007dc6
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.140010adc
test rax, rax
je 0x140007dc1
mov rcx, rsi
call fcn.140010110
test eax, eax
jne 0x140007dc1
mov rcx, rbx
call fcn.1400100e4
test eax, eax
je 0x140007d70
jmp 0x140007ddf
mov rcx, rsi
jmp 0x140007dd5
mov rcx, rbx
call fcn.140010110
test eax, eax
je 0x140007ddf
mov rcx, rbx
call fcn.140017318
mov edi, 0xffffffff
mov rcx, rbx
call fcn.14001004c
mov rcx, rsi
call fcn.14001004c
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000c550
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000d2b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call fcn.1400e5cf8
nop
test rax, rax
je 0x14000d302
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d302
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d302
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d302
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d302
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d304
xor al, al
add rsp, 0x28
ret

Function at 0x140019968
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400199d7
xor ecx, ecx
call fcn.1400e5cf8
nop
test rax, rax
je 0x1400199d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400199d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400199d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400199d7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400199d7
cmp dword [rcx + 0xf8], 0
je 0x1400199d7
mov ecx, ebx
call fcn.140019a88
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140019864
nop
cmp dword [rbp + 0x20], 0
je 0x140019a25
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140019a30
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140019968

Function at 0x140019b6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019968

Function at 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400eb298
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.14011bd88
mov edx, 0x14ac7637
invalid
jmp 0x140065150
Function at 0x14014ec88
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r11d, dword [rcx]
mov rsi, r8
mov ebx, dword [rcx + 4]
mov rdi, rdx
movsxd rbp, r9d
mov r10, rcx
test r9d, r9d
jle 0x14014ecef
sub rdi, r8
inc r11b
movzx r11d, r11b
mov r8b, byte [r11 + r10 + 8]
add bl, r8b
movzx ebx, bl
mov cl, byte [rbx + r10 + 8]
mov byte [r11 + r10 + 8], cl
add cl, r8b
mov byte [rbx + r10 + 8], r8b
movzx eax, cl
mov cl, byte [rax + r10 + 8]
xor cl, byte [rdi + rsi]
mov byte [rsi], cl
inc rsi
sub rbp, 1
jne 0x14014ecb5
mov rbp, qword [rsp + 0x10]
mov eax, r9d
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r10 + 4], ebx
mov rbx, qword [rsp + 8]
mov dword [r10], r11d
ret
Function at 0x1400014e8
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdi, rcx
lea edx, [rbx + 4]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
nop dword [rax + rax]
cmp eax, 3
je 0x14001aaf0
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001ab0f
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140018f80
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp word [rsp + 0x2a], 0x3a
jne 0x140001528
cmp word [rsp + 0x2c], 0x5c
jne 0x140001528
xor eax, eax
jmp 0x140001541
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 5
jne 0x14000153f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000153f
test al, 1
je 0x14000153f
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
je 0x14000153f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001ab7c
xor ebx, ebx
jmp 0x14000153f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000153f
Function at 0x140003540
Capabilities:
Move file

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, 0x20
mov eax, dword [r8]
mov r14, r8
neg eax
mov rdi, r9
mov rsi, rdx
mov rbp, rcx
sbb ebx, ebx
and dword [r9], 0
add ebx, 3
mov r8d, ebx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
je 0x140021368
mov dword [rdi], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x1400213bc
mov edx, 0x400023d3
mov rcx, rsi
lea r8d, [rdx + 1]
call fcn.14002ee88
test eax, eax
je 0x140003590
cmp eax, 2
jne 0x14002139d
and dword [r14], 0
or ebx, 1
mov rdx, rsi
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
mov dword [rdi], eax
jmp 0x140003595
xor eax, eax
jmp 0x140003595
Function at 0x140004f58
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, 0x1a
mov rsi, r9
mov word [rsp + 0x50], ax
mov ebx, r8d
mov rax, qword [rdx + 0x40]
mov rdi, rcx
test rax, rax
cmovne rdx, rax
cmp r8d, 0xffffffff
jne 0x140022994
inc dword [0x140045acc]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dword [rdx + 0x38], 0x4000
jne 0x1400229f5
test byte [rdx + 0x38], 2
jne 0x1400229b7
test byte [rdx + 0x38], 4
je 0x1400229f5
mov eax, dword [0x140045abc]
add eax, 0xfffffffd
cmp eax, 1
ja 0x1400229f5
mov ecx, ebx
call fcn.1400101b8
test eax, eax
jne 0x1400229f5
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 1
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test rdi, rdi
je 0x140022a45
test byte [rdi + 0x38], 0x80
jne 0x140022a45
mov ecx, ebx
call fcn.1400101b8
test eax, eax
jne 0x140022a45
mov eax, dword [0x140045abc]
cmp eax, 3
je 0x140022a45
test rsi, rsi
je 0x140022a45
cmp eax, 2
je 0x140022a45
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
mov r9, rsi
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
nop dword [rax + rax]
mov ecx, ebx
call fcn.14000d208
nop
jmp 0x140004f8f