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

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180221070]
xor rax, rsp
mov qword [rsp + 0x30], rax
movss xmm0, dword [rdx]
mov r8, rcx
subss xmm0, dword [rcx + 0x10]
movss xmm1, dword [rdx + 8]
mov r9d, 0x10
subss xmm1, dword [rcx + 0x10]
cvttss2si eax, xmm0
movss xmm0, dword [rdx + 4]
subss xmm0, dword [rcx + 0x14]
mov dword [rsp + 0x20], eax
cvttss2si eax, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm0, dword [rcx + 0x14]
movsxd rcx, dword [rcx + 0xc0]
mov dword [rsp + 0x24], eax
cvttss2si eax, xmm1
mov dword [rsp + 0x28], eax
cvttss2si eax, xmm0
mov dword [rsp + 0x2c], eax
mov rax, qword [r8 + 0xc8]
lea r8, [rsp + 0x20]
mov edx, dword [rax + rcx*4 - 4]
not edx
movzx eax, byte [r8]
inc r8
movzx ecx, dl
xor rcx, rax
shr edx, 8
lea rax, [0x18015ac00]
xor edx, dword [rax + rcx*4]
sub r9, 1
jne 0x180081150
not edx
mov ecx, edx
call fcn.180081348
mov eax, edx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180118f50
add rsp, 0x48
ret
Function at 0x18008901c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x180252dd0]
mov r10d, 8
mov qword [rsp + 0x30], rcx
mov r9, qword [rax + 0x1a80]
movsxd rcx, dword [r9 + 0xc0]
mov rax, qword [r9 + 0xc8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x30]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x18015ac00]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x180089054
not r8d
lea rdx, [rsp + 0x30]
lea rcx, [r9 + 0xc0]
mov dword [rsp + 0x30], r8d
call fcn.18008ee58
add rsp, 0x28
ret

Function at 0x180089094
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x180252dd0]
mov r10d, 4
mov dword [rsp + 0x30], ecx
mov r9, qword [rax + 0x1a80]
movsxd rcx, dword [r9 + 0xc0]
mov rax, qword [r9 + 0xc8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x30]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x18015ac00]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x1800890cb
not r8d
lea rdx, [rsp + 0x30]
lea rcx, [r9 + 0xc0]
mov dword [rsp + 0x30], r8d
call fcn.18008ee58
add rsp, 0x28
ret

Function at 0x18008df08
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x180252dd0]
cmp byte [rbx + 0x3048], 0
je 0x18008dfc8
cmp qword [rbx + 0x3050], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3058]
je 0x18008dfba
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x18008df73
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18008f7cc
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.18007fb08
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3050]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x180252dc4]
movsxd r8, eax
mov rax, qword [rbx + 0x3060]
test rax, rax
cmovne rcx, rax
call fcn.180125488
jmp 0x18008dfc8
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.18007fb08
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x18008e5dc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x180252dd0]
mov rbx, rcx
and dword [rax + 0x3014], 0
test rcx, rcx
je 0x18008e643
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.18008e650
lea rdx, [0x18015aa48]
mov rcx, rbx
mov rdi, rax
call fcn.18007f088
mov rbx, rax
test rax, rax
je 0x18008e643
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call fcn.180125488
mov rcx, rbx
call fcn.180125e98
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180112120
Capabilities:
Set console window title

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x180221070]
xor rax, rsp
mov qword [rsp + 0xa0], rax
cmp byte [0x18025625d], 0
je 0x180112149
xor al, al
jmp 0x180112353
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x180252f50], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x180252f30], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x180252f38], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x180112197
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x180252f40], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x180252f48], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x180252f28], rax
mov edx, 3
mov rcx, qword [0x180252f40]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov edx, 0xe1
mov rcx, qword [0x180252f28]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
movabs rax, 0xe2e8574de2029120
mov qword [rsp + 0x20], rax
movabs rax, 0x8f4b62302bbab5b2
mov qword [rsp + 0x28], rax
movabs rax, 0xe9c6ed261f54685e
mov qword [rsp + 0x30], rax
movabs rax, 0xbee014354095688f
mov qword [rsp + 0x38], rax
movabs rax, 0x1f621c211f1906ec
mov qword [rsp + 0x40], rax
movabs rax, 0x927b2e26668108ad
mov qword [rsp + 0x48], rax
movabs rax, 0xa26494808821326d
mov qword [rsp + 0x50], rax
movabs rax, 0x5c516127c63498fe
mov qword [rsp + 0x58], rax
movabs rax, 0x8d8125289277e27b
mov qword [rsp + 0x60], rax
movabs rax, 0xfa19426d52cedcc0
mov qword [rsp + 0x68], rax
movabs rax, 0xc9e6cd063f741c2d
mov qword [rsp + 0x70], rax
movabs rax, 0x9e94335b2ff148a2
mov qword [rsp + 0x78], rax
movabs rax, 0x77163c446c766a8f
mov qword [rsp + 0x80], rax
movabs rax, 0xfd08404905a17bc4
mov qword [rsp + 0x88], rax
movabs rax, 0x8209fbf2ee015701
mov qword [rsp + 0x90], rax
movabs rax, 0x5c516127c63498a6
mov qword [rsp + 0x98], rax
movdqa xmm0, xmmword [rsp + 0x20]
pxor xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [rsp + 0x30]
pxor xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [rsp + 0x50]
pxor xmm1, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x50], xmm1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov byte [0x18025625d], 1
mov al, 1
jmp 0x180112353
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180118f50
add rsp, 0xb8
ret
Function at 0x180113810
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180113a30
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180113917
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180113874
mov rax, qword [0x180221008]
cmp qword [rsp + 0x20], rax
ja 0x180113874
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180113836
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18011bf90
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1801138a3
jmp 0x180113917
cmp dword [rsp + 0x50], 0x10000
jne 0x1801138fa
cmp qword [rsp + 0x48], 0x10000
jb 0x1801138fa
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801138e8
mov rax, qword [rsp + 0x28]
jmp 0x180113919
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180113912
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180113a30
mov qword [rsp + 0x20], rax
jmp 0x180113836
xor eax, eax
add rsp, 0x68
ret

Function at 0x180113920
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180113a70
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180113a23
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18011397b
mov rax, qword [0x180221008]
cmp qword [rsp + 0x20], rax
ja 0x18011397b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18011393d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18011bf90
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1801139aa
jmp 0x180113a23
cmp dword [rsp + 0x50], 0x10000
jne 0x180113a01
cmp qword [rsp + 0x48], 0x10000
jb 0x180113a01
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801139ef
mov rax, qword [rsp + 0x28]
jmp 0x180113a25
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180113a1e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180113a70
mov qword [rsp + 0x20], rax
jmp 0x18011393d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180113ac0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180114050
mov qword [rsp + 0x28], 0
cmp qword [0x180251508], 0
jne 0x180113b08
cmp qword [0x180251500], 0
je 0x180113b08
mov rax, qword [0x180251500]
mov qword [0x180251508], rax
cmp qword [0x180251508], 0
je 0x180113bae
mov rax, qword [0x180251508]
cmp qword [rax + 0x10], 0
je 0x180113bae
mov rax, qword [0x180251508]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180113bae
mov rax, qword [0x180251508]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180113bae
mov rax, qword [0x180251508]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180113b74
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180113b7b
xor eax, eax
jmp 0x180113d29
mov rax, qword [0x180251508]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18011bf90
mov rax, qword [rsp + 0x28]
jmp 0x180113d29
mov rax, qword [0x180251500]
mov qword [0x180251508], rax
jmp 0x180113bd0
mov rax, qword [0x180251508]
mov rax, qword [rax + 8]
mov qword [0x180251508], rax
cmp qword [0x180251508], 0
je 0x180113c1d
cmp qword [0x180251508], 0
je 0x180113c1b
mov rax, qword [0x180251508]
cmp qword [rax + 0x10], 0
je 0x180113c1b
mov rax, qword [0x180251508]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180113c1b
mov rax, qword [0x180251508]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180113c1b
jmp 0x180113b4c
jmp 0x180113bbe
mov rcx, qword [rsp + 0x60]
call fcn.180115ed0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180113d30
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180113d27
mov rax, qword [rsp + 0x48]
mov qword [0x180251508], rax
mov rax, qword [0x180251508]
mov dword [rax], 0x52727464
mov rax, qword [0x180251508]
mov qword [rax + 0x10], 0
mov rax, qword [0x180251508]
mov rcx, qword [0x180251500]
mov qword [rax + 8], rcx
mov rax, qword [0x180251508]
mov qword [0x180251500], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180251508]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180113cd8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180113d12
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180113cce
mov rax, qword [0x180251508]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180113b4c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180135be8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180135c08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801245f0
or eax, 0xffffffff
jmp 0x180135c0a
xor eax, eax
add rsp, 0x28
ret
Function at 0x14013ee5e
Capabilities:
Encode data using xor

Disassembly:
lea rax, [0x14016cf70]
lea rsp, [rsp + 8]
movzx edi, byte [rsi]
xor edi, ecx
push 0x1495bd96
and edi, 0xff
mov edi, dword [rax + rdi*4]
shr ecx, 8
xor ecx, edi
shl word [rsp + 3], 0xc4
inc rsi
push 0x6f32879b
xor ecx, 0x82f46ab
dec rbp
lea rsp, [rsp + 0x10]
jne 0x14013ee6a
call fcn.140156d7e
Function at 0x140007c4c
Capabilities:
Parse pe header

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

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
mov dl, 0xa7
movsb byte [rdi], byte [rsi]
movabs al, byte [0x6097a8a1a1a4996c]
movabs al, byte [0xa1a29fa1756ca697]
movabs al, byte [0x3332323336a6a097]
xor dh, byte [rdx]
xor dh, byte [rsi]
xor dh, byte [rdx]
mov dl, pe_nt_image_headers64
xchg ebx, eax
lahf
xchg edi, eax
xor r14b, byte [rdx]
xor dh, byte [rbp + 0x32]
movabs eax, dword [0xa0329332a2329f32]
xor ch, byte [rbx - 0x6ccd87ce]
xor ch, byte [rdx - 0x6acdcdce]
xor dh, byte [rdx + rsi]
xor dh, byte [rdx]
xor dl, byte [rdx + 0x32]
xor dh, byte [rdx + 0x6ca0a4a7]
cdq
movsb byte [rdi], byte [rsi]
movabs eax, dword [0x6ca697a06097a8a1]
jne 0x100411c19
lahf
movabs byte [0xa59784a6a097a0a1], al
movabs eax, dword [0x3232338c9795a4a7]
xor cl, byte [rbp + 0x32]
xor dh, byte [rdx + 0x6ca0a4a7]
cdq
movsb byte [rdi], byte [rsi]
movabs eax, dword [0x6ca697a06097a8a1]
invalid
xor esi, dword [rdx]
xor cl, byte [rbx + rsi + 0x32523232]
xor dh, byte [rdx + 0x6ca0a4a7]
cdq
movsb byte [rdi], byte [rsi]
movabs eax, dword [0x6ca697a06097a8a1]
jne 0x100411c6d
lahf
movabs byte [0xa59784a6a097a0a1], al
xchg edi, eax
movabs al, byte [0x95a4a7a1a59784a6]
xchg edi, eax
mov esi, dword [rbx]
xor dh, byte [rdx]
xor esi, dword [rdx]
xor dh, byte [rdx]
xor eax, 0x87b23232
test byte [rsi + 0x5a], bh
xor esi, dword [rdx]
invalid
invalid
invalid
Function at 0x141cb0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141cb01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141cb0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb006f
add dl, dl
jne 0x141cb0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb00f6
xor eax, eax
add dl, dl
jne 0x141cb00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb01ad
add dl, dl
jne 0x141cb00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141cb00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141cb007e
mov eax, 1
add dl, dl
jne 0x141cb0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb00fb
sub eax, ebx
mov ebx, 1
jne 0x141cb014c
mov ecx, 1
add dl, dl
jne 0x141cb012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cb013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141cb0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cb0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb015d
cmp eax, 0x7d00
jae 0x141cb019b
cmp eax, 0x500
jb 0x141cb0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb007e
cmp eax, 0x7f
ja 0x141cb019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141cb01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141cb007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

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
Function at 0x140029bbc
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.14001d294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d0c
cmp rax, 0xffffffffffffffff
je 0x140029d0c
xor edi, edi
test rbp, rbp
jle 0x140029cb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fbc0
mov rbx, rax
test rax, rax
jne 0x140029c44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abfc
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.14001df70
cmp eax, 0xffffffff
je 0x140029c8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c54
mov edx, r15d
mov ecx, r14d
call fcn.14001abfc
jmp 0x140029cad
cmp byte [rsi + 0x38], dil
je 0x140029ca4
cmp dword [rsi + 0x34], 5
jne 0x140029ca4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b960
jmp 0x140029d20
jns 0x140029d20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d294
cmp rax, 0xffffffffffffffff
jne 0x140029cd8
cmp byte [rsi + 0x30], dil
je 0x140029d20
mov edi, dword [rsi + 0x2c]
jmp 0x140029d20
mov ecx, r14d
call fcn.1400190b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d20
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 0x140029d20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d19
mov eax, dword [rsi + 0x2c]
jmp 0x140029d1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d294
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 0x14002ae10
Capabilities:
Parse pe header

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

Function at 0x140148c62
Capabilities:
Encode data using xor

Disassembly:
pop rbp
lea rbx, [rbp + rbx - 0x382e12a8]
mov edx, ebp
xor bp, dx
xor al, r11b
sub edx, 0x1e80dc36
sbb al, 0x3e
not al
or rdx, 0xffffffff92b9c91d
push rdx
adc al, 0xd
xor dx, bp
rol al, 1
xor r11b, al
call fcn.140140dd6
mov qword [rsp + rax - 0x382e12a9], rax
movzx eax, byte [rbx + rax*2 - 0x705c2552]
jmp 0x140147d24
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0041b810]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0041b820]
mov dword [rax], 1
mov rax, qword [0x0041b830]
mov dword [rax], 1
mov rax, qword [0x0041b800]
mov dword [rax], 1
mov rax, qword [0x0041b6f0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0041b7f0]
mov dword [0x0042100c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x0041b7b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0041b620]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x40c140
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]