joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e8a0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
lea rsi, [0x1400d4824]
lea rdi, [0x140033f7d]
mov rbp, qword [sym.imp.KERNEL32.dll_CreateFileA]
lea rbx, [rsp + 0x40]
mov r14, qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov r15b, 1
jmp 0x14002e906
mov r15d, eax
mov qword [rsp + 0x40], 1
mov rcx, rbx
call fcn.14002c520
mov ecx, 0xfffffff5
call r14
mov rcx, rax
mov dx, 7
call r12
mov rcx, rsi
mov rdx, rdi
call fcn.14002eb50
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbp
cmp rax, 0xffffffffffffffff
jne 0x14002e9ea
mov eax, r15d
test r15b, 1
je 0x14002e8e0
mov ecx, 0xfffffff5
call r14
mov rcx, rax
mov dx, 0xa
call r12
lea r15, [0x1400d42d8]
mov rcx, r15
lea rdx, [0x140032eba]
call fcn.14000ffd0
mov r13, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rcx, r13
mov rdx, r15
call fcn.14000ca20
mov ecx, 0xfffffff5
call r14
mov rcx, rax
mov dx, 7
call r12
lea r15, [0x1400d48a0]
mov rcx, r15
lea rdx, [0x140034078]
call fcn.14002eca0
mov rcx, r13
mov rdx, r15
call fcn.14000ca20
mov r15, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r15
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, r15
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, r15
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
xor eax, eax
jmp 0x14002e8e0
mov rsi, rax
call fcn.140010af0
lea rdi, [0x1400d4840]
lea rdx, [0x140033fc9]
mov rcx, rdi
call fcn.14002ebc0
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rcx, rbx
mov rdx, rdi
call fcn.14000ca20
mov rcx, rax
call fcn.14000d200
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140010af0
lea rsi, [0x1400d4874]
lea rdx, [0x140034023]
mov rcx, rsi
call fcn.14002ec30
mov rcx, rbx
mov rdx, rsi
call fcn.14000ca20
mov rcx, rax
call fcn.14000d200
mov ecx, 0x4e20
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14002eb50
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400d483c], 1
je 0x14002ebb3
mov r8, rdx
movabs r10, 0x8888888888888889
xor r9d, r9d
mov eax, 0x1e
nop
mov r11, rax
mov rsi, rdx
mov rax, r9
mul r10
shr rdx, 4
imul rax, rdx, 0xffffffffffffffe2
movzx edx, byte [r8 + r11]
xor dl, byte [rsi + rax]
mov byte [rcx + r11 - 0x1e], dl
inc r11
mov rax, r11
mov edx, r11d
inc rsi
inc r9
cmp r11d, 0x36
mov rdx, rsi
jne 0x14002eb70
mov dword [0x1400d483c], 1
mov eax, 0x7bce7523
pop rsi
ret
Function at 0x14002ebc0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x1400d4870], 1
je 0x14002ec21
mov r8, rdx
movabs r9, 0x4924924924924925
xor eax, eax
nop dword [rax + rax]
mov r10, rax
shr rax, 2
mul r9
shr rdx, 1
mov eax, edx
imul eax, edx, 0xffffffe4
movzx edx, byte [r8 + r10 + 0x1c]
mov r11d, r10d
add eax, r10d
cdqe
xor dl, byte [r8 + rax]
mov byte [rcx + r10], dl
inc r10
mov rax, r10
mov edx, r10d
cmp r10d, 0x2e
jne 0x14002ebe0
mov dword [0x1400d4870], 1
mov eax, 0xa8153644
ret

Function at 0x14002ec30
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x1400d489c], 1
je 0x14002ec97
mov r8, rdx
movabs r10, 0x642c8590b21642c9
xor r9d, r9d
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul eax, eax, 0xffffffe9
movzx edx, byte [r8 + r9 + 0x17]
mov r11d, r9d
add eax, r9d
cdqe
xor dl, byte [r8 + rax]
mov byte [rcx + r9], dl
mov rax, r9
inc rax
mov r9, rax
cmp eax, 0x25
jne 0x14002ec50
mov dword [0x1400d489c], 1
mov eax, 0xf6f353fd
ret

Function at 0x14002eca0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x1400d48bc], 1
je 0x14002ecde
xor eax, eax
nop dword [rax + rax]
movzx r8d, byte [rdx + rax + 0x10]
mov r9d, eax
and r9d, 0xf
xor r8b, byte [rdx + r9]
mov byte [rcx + rax], r8b
mov r8, rax
inc r8
mov rax, r8
cmp r8d, 0x1a
jne 0x14002ecb0
mov dword [0x1400d48bc], 1
mov eax, 0xbe36404b
ret

Function at 0x14002fc70
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400d4770], 1
je 0x14002fce0
mov r8, rdx
movabs r9, 0x4924924924924925
xor eax, eax
mov r10, rdx
mov r11d, 0x1c
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, rax
shr rax, 2
mul r9
shr rdx, 1
imul rax, rdx, 0xffffffffffffffe4
movzx edx, byte [r8 + r11]
xor dl, byte [r10 + rax]
mov byte [rcx + r11 - 0x1c], dl
mov rax, r11
inc rax
mov r11, rax
inc r10
inc rsi
cmp eax, 0x1f
mov rax, rsi
jne 0x14002fca0
mov dword [0x1400d4770], 1
mov eax, 0x21daf23b
pop rsi
ret

Function at 0x140030754
Capabilities:
Parse pe header

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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r13, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov r12, r8
mov rbx, r8
test r8, r8
jne 0x140011b08
jmp 0x140011b53
add rsi, rax
sub rbx, rax
je 0x140011b53
mov r8d, 0x7fffffff
mov ecx, dword [rdi]
mov rdx, rsi
cmp rbx, r8
cmovbe r8, rbx
call rbp
cdqe
test rax, rax
je 0x140011b50
jns 0x140011b00
call r13
cmp dword [rax], 0xb
je 0x140011b08
call r13
cmp dword [rax], 4
je 0x140011b08
mov rdx, qword [rdi + 8]
lea rcx, str.Error_reading_from__ls
call fcn.140011700
mov rax, 0xffffffffffffffff
jmp 0x140011b56
sub r12, rbx
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140011c50
Capabilities:
Read file via mapping

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rcx
mov ecx, 0x1000
call sub.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
je 0x140011c3e
xor esi, esi
mov ebx, 0x1000
nop word [rax + rax]
mov r8, rbx
lea rdx, [rdi + rsi]
mov rcx, rbp
sub r8, rsi
call fcn.140011ad0
mov r12d, eax
test eax, eax
js 0x140011c0e
movsxd rdx, eax
add rsi, rdx
test eax, eax
je 0x140011c28
cmp rbx, rsi
jne 0x140011ba0
cmp rbx, 0xffffffffffffffff
je 0x140011bf8
mov rax, rbx
mov rcx, rdi
not rax
cmp rax, rbx
cmova rax, rbx
add rbx, rax
mov rdx, rbx
call sub.msvcrt.dll_realloc
test rax, rax
je 0x140011bf8
mov rdi, rax
jmp 0x140011ba0
mov rdx, qword [rbp + 8]
lea rcx, str.Out_of_memory____ls_is_too_large_to_be_processed_by_this_program_as_currently_implemented.
mov r12d, 0xffffffff
call fcn.140011630
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, r12d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, r12d
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, str.Out_of_memory
or r12d, 0xffffffff
call fcn.140011630
jmp 0x140011c16
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140011cdd
mov ecx, dword [rcx]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x18], rax
mov rcx, rax
test rax, rax
je 0x140011cd0
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140011d05
mov qword [rbx + 0x28], rsi
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x140011ceb
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x140011b70
mov rdx, qword [rbx + 8]
mov r8d, eax
lea rcx, str.Unable_create_file_mapping_for__ls:_Windows_error__u
call fcn.140011630
mov eax, 0xffffffff
jmp 0x140011cbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx + 8]
lea rcx, str.Unable_to_map__ls_into_memory:_Windows_error__u
mov r8d, eax
call fcn.140011630
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011cfe
Function at 0x14001deb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140023de0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140023de0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14001df20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002e0d4]
mov rbx, rcx
test esi, esi
jle 0x14001e050
mov rax, qword [0x14002e0d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001df6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001dff5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001df50
mov rcx, rbx
call fcn.14001e990
mov rdi, rax
test rax, rax
je 0x14001e072
mov rax, qword [0x14002e0d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001ead0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002e0d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001e057
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001dfee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001e000
add dword [0x14002e0d4], 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 [0x14002e0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001dfee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001deb0
nop dword [rax]
xor esi, esi
jmp 0x14001df78
mov rax, qword [0x14002e0d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001deb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14001deb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001e600
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002e140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002e120]
test rbx, rbx
je 0x14001e65c
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 0x14001e653
test eax, eax
jne 0x14001e653
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001e638
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 0x14001e990
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14001ea10
Capabilities:
Parse pe header

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

Function at 0x14001ead0
Capabilities:
Parse pe header

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

Function at 0x14001ecb0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14001ece0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001820
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 fcn.1400077d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400077d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002004
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001ffb
test r12, r12
je 0x140001ffb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe0
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140009720]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023b9
mov rcx, r10
call fcn.140002210
test eax, eax
je 0x1400023b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400023b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400023ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023b9
add r8, 0x28
cmp r8, r9
jne 0x140002398
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400079e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r14
push rdi
push rsi
push rbx
mov rbx, rcx
test edx, edx
jle 0x140007a41
movsxd rdi, edx
xor r10d, r10d
xor esi, esi
xor r11d, r11d
nop word [rax + rax]
lea eax, [r11 + 1]
movzx r11d, al
movzx eax, al
add rax, r9
movzx edx, byte [rax]
lea ecx, [rdx + rsi]
movzx esi, cl
movzx ecx, cl
add rcx, r9
movzx r14d, byte [rcx]
mov byte [rax], r14b
mov byte [rcx], dl
add dl, byte [rax]
movzx edx, dl
movzx eax, byte [r9 + rdx]
xor al, byte [rbx + r10]
mov byte [r8 + r10], al
add r10, 1
cmp rdi, r10
jne 0x140007a00
pop rbx
pop rsi
pop rdi
pop r14
ret
Function at 0x140007a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r13, rdx
lea rdx, section..rdata
mov rbx, r8
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x140007b65
lea rdx, [0x14000901e]
mov rcx, r13
call sub.msvcrt.dll_fopen
mov r15, rax
test rax, rax
je 0x140007bc5
mov r8d, 2
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, r12
movsxd rdi, eax
call sub.msvcrt.dll_fseek
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x140007bab
mov r9, r12
mov r8, rdi
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov ecx, 0x100
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140007b89
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8, r14
mov rcx, rbx
mov rdx, rax
call 0x140007c00
mov r9, r14
mov r8, r13
mov edx, edi
mov rcx, r13
call fcn.1400079e0
mov r9, r15
mov r8, rdi
mov edx, 1
mov rcx, r13
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r15
call sub.msvcrt.dll_fclose
mov rcx, r13
call fcn.1400071f8
mov rcx, r14
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400071f8
mov ecx, 2
call qword [fcn.1400077d0]
lea rdx, str.Error_opening_input_file._n
mov rcx, rax
call fcn.1400079b0
mov ecx, 1
call sub.msvcrt.dll_exit
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r15
call sub.msvcrt.dll_fclose
mov rcx, r13
call fcn.1400071f8
mov ecx, 1
call sub.msvcrt.dll_exit
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r15
call sub.msvcrt.dll_fclose
mov ecx, 1
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.1400077d0]
lea rdx, str.Error_opening_output_file._n
mov rcx, rax
call fcn.1400079b0
mov rcx, r12
call sub.msvcrt.dll_fclose
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rbx
xor eax, eax
mov r11, rcx
mov r10d, edx
nop dword [rax]
mov byte [r8 + rax], al
add rax, 1
cmp rax, 0x100
jne 0x140007c10
xor ecx, ecx
xor ebx, ebx
nop dword [rax]
mov eax, ecx
movzx r9d, byte [r8 + rcx]
cdq
idiv r10d
movsxd rdx, edx
movzx eax, byte [r11 + rdx]
add eax, r9d
add eax, ebx
movzx ebx, al
movzx eax, al
add rax, r8
movzx edx, byte [rax]
mov byte [r8 + rcx], dl
add rcx, 1
mov byte [rax], r9b
cmp rcx, 0x100
jne 0x140007c28
pop rbx
ret
Function at 0x140007c00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r13, rdx
lea rdx, section..rdata
mov rbx, r8
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x140007b65
lea rdx, [0x14000901e]
mov rcx, r13
call sub.msvcrt.dll_fopen
mov r15, rax
test rax, rax
je 0x140007bc5
mov r8d, 2
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, r12
movsxd rdi, eax
call sub.msvcrt.dll_fseek
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x140007bab
mov r9, r12
mov r8, rdi
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov ecx, 0x100
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140007b89
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8, r14
mov rcx, rbx
mov rdx, rax
call 0x140007c00
mov r9, r14
mov r8, r13
mov edx, edi
mov rcx, r13
call fcn.1400079e0
mov r9, r15
mov r8, rdi
mov edx, 1
mov rcx, r13
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r15
call sub.msvcrt.dll_fclose
mov rcx, r13
call fcn.1400071f8
mov rcx, r14
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400071f8
mov ecx, 2
call qword [fcn.1400077d0]
lea rdx, str.Error_opening_input_file._n
mov rcx, rax
call fcn.1400079b0
mov ecx, 1
call sub.msvcrt.dll_exit
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r15
call sub.msvcrt.dll_fclose
mov rcx, r13
call fcn.1400071f8
mov ecx, 1
call sub.msvcrt.dll_exit
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r15
call sub.msvcrt.dll_fclose
mov ecx, 1
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.1400077d0]
lea rdx, str.Error_opening_output_file._n
mov rcx, rax
call fcn.1400079b0
mov rcx, r12
call sub.msvcrt.dll_fclose
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rbx
xor eax, eax
mov r11, rcx
mov r10d, edx
nop dword [rax]
mov byte [r8 + rax], al
add rax, 1
cmp rax, 0x100
jne 0x140007c10
xor ecx, ecx
xor ebx, ebx
nop dword [rax]
mov eax, ecx
movzx r9d, byte [r8 + rcx]
cdq
idiv r10d
movsxd rdx, edx
movzx eax, byte [r11 + rdx]
add eax, r9d
add eax, ebx
movzx ebx, al
movzx eax, al
add rax, r8
movzx edx, byte [rax]
mov byte [r8 + rcx], dl
add rcx, 1
mov byte [rax], r9b
cmp rcx, 0x100
jne 0x140007c28
pop rbx
ret

Function at 0x140007c90
Capabilities:
Delete file

Disassembly:
sub rsp, 0x38
call fcn.140001600
lea r8, [rsp + 0x22]
movabs rax, 0x7577646565726166
lea rdx, str.flag_encrypted.remsumwei
mov qword [rsp + 0x22], rax
lea rcx, str.flag.txt
mov eax, 0x65
mov word [rsp + 0x2e], ax
mov dword [rsp + 0x2a], 0x7265687a
call fcn.140007a50
lea rcx, str.flag.txt
call sub.msvcrt.dll_remove
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800444e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18004453d
lea rbx, [0x1801d6a50]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180044524
cmp r10, 2
jb 0x180044524
cmp byte [r9], r8b
jne 0x180044524
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180044500
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18004457f
lea rbx, [0x1801d6a50]
cmp r8b, 0x23
jne 0x180044563
cmp byte [r9], r8b
jne 0x180044563
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180044550
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1800446c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1800446da
mov qword [r8], 0
lea rdx, [0x1801d6570]
call fcn.180044590
mov rbx, rax
test rax, rax
jne 0x1800446fa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1800447d3
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800447d3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800447d3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800447d3
cmp rdi, 0xffffffffffffffff
je 0x1800447d3
mov rax, qword [0x1802563d0]
test rax, rax
je 0x180044770
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1800447d3
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1800447c0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1802563d0]
test rax, rax
je 0x1800447b5
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800447dc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800447ce
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800447de
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret