joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019438
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400194bf
mov rsi, rbx
cmp word [rax], bp
je 0x14001947e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019468
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019464
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016970
mov rdi, rax
test rax, rax
je 0x1400194ac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020060
mov rbp, rdi
xor ecx, ecx
call fcn.140015a50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b580
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b596
mov al, 1
jmp 0x14001b602
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b5a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b600
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019780
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b600
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b600
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b600
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b602
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f840
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f868
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f868
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002e70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002e98
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140002ebe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002ec0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002f19
test ecx, ecx
jle 0x140002ef9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002f19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002f19
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002f40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002f62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002f78
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002f94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002f96
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002fd2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000306e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000300d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000304e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000306e
cmp rbx, rax
ja 0x140003020
test rbx, rbx
je 0x14000306e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400034d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400034fd
xor eax, eax
jmp 0x140003669
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003537
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003537
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003669
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000365c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000357a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400035a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003661
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003614
sub eax, 1
je 0x140003614
cmp eax, 2
jne 0x14000365c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003661
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003642
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000365c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003661
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005460
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003960
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003a33
cmp byte [rcx + 0x71], 0
je 0x140003a33
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003a2f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400039f4
sub eax, 1
je 0x1400039f8
cmp eax, 2
jne 0x140003a2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005460
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003a26
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140003a2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400039dc
xor al, al
jmp 0x1400039dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005460
add rsp, 0x60
pop rbx
ret
Function at 0x140005eb0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400134e0
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]
nop
add rsp, 0x28
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014830
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014850
xor al, al
jmp 0x1400148d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014863
xor al, al
jmp 0x1400148d1
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 0x14001488d
xor al, al
jmp 0x1400148d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400148a1
xor al, al
jmp 0x1400148d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400148b3
xor al, al
jmp 0x1400148d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400148cf
xor al, al
jmp 0x1400148d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012720
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a7
movzx eax, al
test eax, eax
jne 0x140012740
mov ecx, 7
call fcn.140011325
nop
mov byte [rsp + 0x20], 0
call fcn.140011339
mov byte [rsp + 0x21], al
cmp dword [0x14001ea28], 1
jne 0x140012764
mov ecx, 7
call fcn.140011325
nop
jmp 0x1400127bc
cmp dword [0x14001ea28], 0
jne 0x1400127b7
mov dword [0x14001ea28], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a4
test eax, eax
je 0x140012798
mov eax, 0xff
jmp 0x1400128c1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132f
mov dword [0x14001ea28], 2
jmp 0x1400127bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011311
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012819
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012819
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001284d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001284d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011366
nop
call fcn.140012970
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001286c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001287b
call fcn.140011370
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x1400128c1
add rsp, 0x68
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
Function at 0x1400012dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x140001328
cmp rax, rbx
jne 0x14000131b
mov ebx, 1
mov esi, ebx
jmp 0x14000132d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001300
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001343
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013a8
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013a2
mov dword [0x140003640], ebx
lea r15, [0x1400022c0]
lea rdi, [0x1400022a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001394
test eax, eax
jne 0x140001398
cmp qword [rdi], 0
je 0x140001389
mov rax, qword [rdi]
mov rcx, qword [0x140002288]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000136a
test eax, eax
je 0x1400013a8
mov eax, 0xff
jmp 0x140001484
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013cf
lea rdx, [0x1400022a0]
lea rcx, [0x140002290]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x1400013dc
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001410
lea rcx, [0x140003648]
call fcn.140001650
test eax, eax
je 0x140001410
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x140002288]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.14000119c
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001440
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x140001455
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x140001484
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400016d0
add rsp, 0x28
jmp 0x1400012dc

Function at 0x140001550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000159c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001594
cmp dword [rcx + 0x3c], edx
jl 0x140001594
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001594
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000159c
mov rax, rdx
add rsp, 0x18
ret

Function at 0x100411cf0
Capabilities:
Encode data using xor

Disassembly:
xor byte [rsi], ch
push rsp
xchg dword cs:[rsi + 0x2e4c2e30], ecx
scasb al, byte [rdi]
invalid
Function at 0x140003240
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x17c0
call fcn.14001a100
sub rsp, rax
mov rax, qword [0x14006a868]
xor rax, rsp
mov qword [rsp + 0x17b0], rax
xor edi, edi
mov bpl, r9b
mov rsi, r8
mov r15, rdx
mov r14, rcx
test r8, r8
jle 0x140003334
mov r12d, 0x1770
mov r8d, esi
lea r9, [rsp + 0x30]
sub r8d, edi
lea rdx, [rsp + 0x40]
mov rax, rsi
mov rcx, r14
sub rax, rdi
cmp rax, r12
cmovg r8d, r12d
and qword [rsp + 0x20], 0
call qword [0x14004e138]
test eax, eax
je 0x14000337a
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14000337a
test bpl, bpl
je 0x1400032e3
test ecx, ecx
je 0x1400032e3
lea rax, [rsp + 0x40]
mov edx, ecx
xor byte [rax], 0x88
inc rax
sub rdx, 1
jne 0x1400032d7
xor ebx, ebx
test ecx, ecx
je 0x14000331d
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
sub ecx, ebx
movsxd rax, ebx
mov r8d, ecx
lea r9, [rsp + 0x34]
mov rcx, r15
add rdx, rax
call qword [0x14004e148]
test eax, eax
je 0x140003358
add ebx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
cmp ebx, ecx
jb 0x1400032e9
mov eax, ecx
add rdi, rax
call fcn.1400046d0
test al, al
jne 0x140003334
cmp rdi, rsi
jl 0x140003287
xor eax, eax
mov rcx, qword [rsp + 0x17b0]
xor rcx, rsp
call fcn.14001a160
add rsp, 0x17c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [0x14004e158]
mov edx, dword [rsp + 0x30]
lea rcx, str.WriteFile_failed__d__d
sub edx, ebx
mov r8d, eax
call fcn.140014080
mov eax, 2
jmp 0x140003336
call qword [0x14004e158]
mov edx, dword [rsp + 0x30]
lea rcx, str.ReadFile_failed__d__d__I64d
mov r8d, eax
mov r9, rdi
call fcn.140014080
mov eax, 1
jmp 0x140003336
Function at 0x1400068e0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x2f20
call fcn.14001a100
sub rsp, rax
mov rax, qword [0x14006a868]
xor rax, rsp
mov qword [rsp + 0x2f10], rax
xor ebp, ebp
mov r14, r9
mov byte [r9], bpl
mov dil, r8b
mov bl, dl
mov rsi, rcx
call fcn.140028500
test rax, rax
je 0x140006aa4
test bl, bl
je 0x140006937
mov rcx, rsi
call fcn.1400297e0
mov rcx, rsi
call fcn.140005ce0
test al, al
je 0x14000694c
mov byte [r14], 1
jmp 0x140006aa4
or r8d, 0xffffffff
mov word [rsp + 0x30], bp
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 0x176f
mov rdx, rsi
lea ecx, [r8 + 0x21]
call qword [0x14004e280]
test eax, eax
je 0x140006a73
mov rcx, rsi
call fcn.140028500
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.140028500
cmp rbx, rax
jne 0x140006a73
test dil, dil
je 0x140006a2e
mov ecx, 0x2ee0
call fcn.140019b70
mov r8d, 0x1770
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [0x14004e190]
mov rcx, rdi
call fcn.140005ce0
mov byte [r14], al
test al, al
jne 0x140006a69
mov edx, 0x3f
mov rcx, rdi
call fcn.14001c780
test rax, rax
jne 0x140006a69
lea r9, [rsp + 0x30]
mov word [rsp + 0x30], bp
or r8d, 0xffffffff
mov dword [rsp + 0x20], 0x176f
mov rdx, rdi
lea ecx, [rax + 0x20]
call qword [0x14004e280]
test eax, eax
je 0x140006a38
mov rcx, rdi
call fcn.140028500
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.140028500
cmp rbx, rax
jne 0x140006a38
mov rcx, rdi
call fcn.140019b60
mov rcx, rsi
call fcn.140006ba0
jmp 0x140006aa6
mov rcx, rdi
call fcn.140028500
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.140028500
mov r8, rax
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea rdx, [rsp + 0x30]
lea rcx, str.folding_error2__s__d__s__d
call fcn.1400144d0
mov rcx, rdi
call fcn.140019b60
jmp 0x140006aa4
mov rcx, rsi
call fcn.140028500
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.140028500
mov r8, rax
mov qword [rsp + 0x20], rbx
mov r9, rsi
lea rdx, [rsp + 0x30]
lea rcx, str.folding_error__s__d__s__d
call fcn.1400144d0
xor al, al
mov rcx, qword [rsp + 0x2f10]
xor rcx, rsp
call fcn.14001a160
lea r11, [rsp + 0x2f20]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140006ba0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2f20
call fcn.14001a100
sub rsp, rax
mov rax, qword [0x14006a868]
xor rax, rsp
mov qword [rsp + 0x2f10], rax
mov rdi, rcx
xor ecx, ecx
call fcn.140029700
mov rbx, rax
call qword [0x14004e238]
imul eax, ebx
mov ecx, eax
call fcn.1400297c0
call fcn.140029790
mov ebx, eax
call qword [0x14004e238]
mov r8, rdi
mov dword [rsp + 0x20], ebx
mov r9d, eax
lea rdx, str._se4jtw_d_d
lea rcx, [rsp + 0x30]
call fcn.140004710
lea rcx, [rsp + 0x30]
call fcn.140029810
lea rcx, [rsp + 0x30]
call fcn.1400297e0
test eax, eax
jne 0x140006c43
lea rcx, [rsp + 0x30]
call fcn.140004c60
lea rcx, [rsp + 0x30]
test al, al
je 0x140006c3e
call fcn.140029810
mov al, 1
jmp 0x140006c45
call fcn.140029810
xor al, al
mov rcx, qword [rsp + 0x2f10]
xor rcx, rsp
call fcn.14001a160
mov rbx, qword [rsp + 0x2f38]
add rsp, 0x2f20
pop rdi
ret
Function at 0x140011cf0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14006a868]
xor rax, rsp
mov qword [rbp - 0x10], rax
and qword [rbp - 0x30], 0
lea r8, [0x1400526ec]
mov rbx, rcx
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.14002a050
mov r9, qword [rbp - 0x30]
test eax, eax
jne 0x140011e83
test r9, r9
je 0x140011e83
lea esi, [rax + 1]
mov edx, esi
lea r8d, [rax + 2]
lea rcx, [rbp - 0x20]
call fcn.140030d40
cmp rax, 2
jne 0x140011e6e
cmp byte [rbp - 0x20], 0x4d
jne 0x140011e6e
cmp byte [rbp - 0x1f], 0x5a
jne 0x140011e6e
mov rcx, qword [rbp - 0x30]
lea edx, [rsi + 0x3b]
xor r8d, r8d
call fcn.140031080
test eax, eax
je 0x140011da0
mov rcx, qword [rbp - 0x30]
call fcn.14002a1d0
lea rcx, str.no_PE32_file_2__S
mov rdx, rbx
call fcn.1400144d0
jmp 0x140011e95
mov r9, qword [rbp - 0x30]
lea rcx, [rbp - 0x24]
mov r8, rsi
mov edx, 4
call fcn.140030d40
mov rcx, qword [rbp - 0x30]
cmp rax, rsi
je 0x140011dcc
call fcn.14002a1d0
lea rcx, str.no_PE32_file_3__S
jmp 0x140011d93
mov edx, dword [rbp - 0x24]
xor r8d, r8d
call fcn.140031080
test eax, eax
je 0x140011ded
mov rcx, qword [rbp - 0x30]
call fcn.14002a1d0
lea rcx, str.no_PE32_file_4__S
jmp 0x140011d93
mov r9, qword [rbp - 0x30]
lea rcx, [rbp - 0x20]
mov r8d, 4
mov rdx, rsi
call fcn.140030d40
cmp rax, 4
jne 0x140011e59
cmp byte [rbp - 0x20], 0x50
jne 0x140011e59
cmp byte [rbp - 0x1f], 0x45
jne 0x140011e59
cmp byte [rbp - 0x1e], 0
jne 0x140011e59
cmp byte [rbp - 0x1d], 0
jne 0x140011e59
mov r9, qword [rbp - 0x30]
lea edx, [rax - 2]
mov r8, rsi
lea rcx, [rbp - 0x28]
call fcn.140030d40
mov rcx, qword [rbp - 0x30]
cmp rax, rsi
je 0x140011e4e
call fcn.14002a1d0
lea rcx, str.no_PE32_file_6__S
jmp 0x140011d93
call fcn.14002a1d0
movzx eax, word [rbp - 0x28]
jmp 0x140011e97
mov rcx, qword [rbp - 0x30]
call fcn.14002a1d0
lea rcx, str.no_PE32_file_5__S
jmp 0x140011d93
mov rcx, qword [rbp - 0x30]
call fcn.14002a1d0
lea rcx, str.no_PE32_file__S
jmp 0x140011d93
mov r8d, eax
lea rcx, str.could_not_open__S__d__p
mov rdx, rbx
call fcn.1400144d0
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001a160
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret

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

Disassembly:
mov r9, rdx
test r8d, r8d
jle 0x1400138f3
mov r10d, r8d
movsx eax, byte [r9]
inc r9
mov r8d, dword [rcx]
xor rax, r8
movzx edx, al
lea rax, [0x14006a030]
shr r8d, 8
xor r8d, dword [rax + rdx*4]
mov dword [rcx], r8d
sub r10, 1
jne 0x1400138cb
ret