joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400113f7
Capabilities:
Execute command

Disassembly:
jmp 0x140013c30
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x20]
lea rcx, [0x1400270fa]
call fcn.140011474
mov dword [rbp + 4], 5
jmp 0x140013c60
mov eax, dword [rbp + 4]
dec eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jle 0x140013d28
lea rdx, str.Game_is_Start
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011091
mov qword [rbp + 0xd8], rax
lea rdx, [0x140011041]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Player1_:_1___Player2_:_2
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011091
mov qword [rbp + 0xd8], rax
lea rdx, [0x140011041]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Game_will_start
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011091
mov qword [rbp + 0xd8], rax
mov edx, dword [rbp + 4]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov qword [rbp + 0xe0], rax
lea rdx, [0x140011041]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14001e01c]
call qword [sym.imp.ucrtbased.dll_system]
jmp 0x140013c58
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret
Function at 0x140026010
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140026088
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140026088
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140026088
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14002607c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14002609a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14002606a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14002608a

Function at 0x140027518
Capabilities:
Parse pe header

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

Function at 0x140030538
Capabilities:
Parse pe header

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

Function at 0x140458b8c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14048312c
or rax, rdi
not rax
mov qword [r9], rax
push 0x1db0210a
call fcn.14046b12b
Function at 0x1f64058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01f641df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1f64089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1f6406f
add dl, dl
jne 0x1f64096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1f640f6
xor eax, eax
add dl, dl
jne 0x1f640a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1f641ad
add dl, dl
jne 0x1f640b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f640c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f640d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f640dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1f640ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1f6407e
mov eax, 1
add dl, dl
jne 0x1f64106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f64113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1f640fb
sub eax, ebx
mov ebx, 1
jne 0x1f6414c
mov ecx, 1
add dl, dl
jne 0x1f6412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1f6413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1f64123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1f6407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1f64168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1f64175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1f6415d
cmp eax, 0x7d00
jae 0x1f6419b
cmp eax, 0x500
jb 0x1f64196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1f6407e
cmp eax, 0x7f
ja 0x1f6419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1f6407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1f641d2
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 0x1f6407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001130
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x28
cmp edx, 1
jne 0x180001148
xor edx, edx
lea rcx, str.C:windows_svchost_svchost.exe
call qword [sym.imp.KERNEL32.dll_WinExec]
mov eax, 1
add rsp, 0x28
ret
Function at 0x18000e76c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000e79c
xor eax, eax
jmp 0x18000e85f
mov rbp, rbx
cmp word [rax], si
je 0x18000e7c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000e7a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000e7a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000d010
movsxd r14, eax
test eax, eax
jne 0x18000e7ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000e795
mov rcx, r14
call fcn.18000bfb4
mov rdi, rax
test rax, rax
jne 0x18000e818
xor ecx, ecx
call fcn.18000b690
jmp 0x18000e7f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000d010
test eax, eax
jne 0x18000e849
mov rcx, rdi
call fcn.18000b690
jmp 0x18000e853
xor ecx, ecx
call fcn.18000b690
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180010fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180010fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180010fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001180
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x18006e2f4], 0
jne 0x1800011d2
lea rcx, str.HWLOC_HIDE_ERRORS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1800011bd
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x18006e2f0], eax
mov dword [0x18006e2f4], 1
add rsp, 0x28
ret
mov eax, dword [0x18006e2f0]
mov dword [0x18006e2f4], 1
add rsp, 0x28
ret
mov eax, dword [0x18006e2f0]
add rsp, 0x28
ret
Function at 0x18000b810
Capabilities:
Query environment variable

Disassembly:
push rbx
push r14
sub rsp, 0x28
mov r14, rcx
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x18006e308], ebx
je 0x18000b842
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg dword [0x18006e308], ebx
jne 0x18000b830
mov eax, dword [0x18006e310]
mov ecx, eax
inc eax
mov qword [rsp + 0x50], rdi
mov dword [0x18006e310], eax
test ecx, ecx
jne 0x18000b9f4
mov qword [rsp + 0x40], rbp
lea rcx, str.HWLOC_COMPONENTS_VERBOSE
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor edi, edi
test rax, rax
je 0x18000b888
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
jmp 0x18000b88a
mov eax, edi
mov rcx, qword [0x180060ba0]
lea r15, [0x180060ba0]
mov dword [0x18006e30c], eax
mov edx, edi
mov qword [0x18006e348], rdi
mov dword [0x18006e340], edi
test rcx, rcx
je 0x18000b8f3
mov r8d, dword [0x18006e340]
lea edx, [rdx + 1]
inc r8d
mov dword [0x18006e340], r8d
cmp qword [r15 + rdx*8], rdi
jne 0x18000b8b2
test r8d, r8d
je 0x18000b8f3
mov ecx, r8d
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rcx, qword [0x180060ba0]
mov qword [0x18006e348], rax
mov dword [0x18006e340], edi
mov ebp, edi
test rcx, rcx
je 0x18000b9e8
mov qword [rsp + 0x48], rsi
mov rbx, r15
mov esi, dword [rcx + 0x1c]
test esi, esi
je 0x18000b92f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, esi
lea rdx, str.Ignoring_static_component_with_invalid_flags__lx_n
mov rcx, rax
call fcn.180001030
jmp 0x18000b9d0
mov rax, qword [rcx + 8]
test rax, rax
je 0x18000b968
xor ecx, ecx
call rax
test eax, eax
jns 0x18000b968
cmp dword [0x18006e30c], edi
je 0x18000b9d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Ignoring_static_component__failed_to_initialize_n
call fcn.180001030
jmp 0x18000b9d0
mov rax, qword [rbx]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x18000b98e
mov ecx, dword [0x18006e340]
mov rax, qword [0x18006e348]
mov qword [rax + rcx*8], rdx
inc dword [0x18006e340]
mov rax, qword [rbx]
mov ecx, dword [rax + 0x18]
test ecx, ecx
jne 0x18000b9a0
mov rcx, qword [rax + 0x20]
call fcn.18000b510
jmp 0x18000b9d0
cmp ecx, 1
jne 0x18000b9d0
cmp qword [0x18006e320], rdi
mov rcx, qword [rax + 0x20]
jne 0x18000b9bc
mov rax, qword [rcx]
mov qword [0x18006e320], rax
cmp qword [0x18006e330], rdi
jne 0x18000b9d0
mov rax, qword [rcx + 8]
mov qword [0x18006e330], rax
inc ebp
mov rcx, qword [r15 + rbp*8]
lea rbx, [r15 + rbp*8]
test rcx, rcx
jne 0x18000b906
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x40]
jmp 0x18000b9f6
xor edi, edi
mov dword [0x18006e308], edi
mov qword [r14 + 0x7e8], rdi
mov rdi, qword [rsp + 0x50]
add rsp, 0x28
pop r14
pop rbx
ret
Function at 0x18000e920
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x18006d248]
mov eax, dword [rsp + 0x40]
cmp ecx, 1
jbe 0x18000e96c
mov rax, qword [0x18006e350]
test rax, rax
je 0x18000e967
dec cx
call rax
movzx ecx, ax
mov eax, dword [0x18006d248]
shl eax, 6
add eax, 0xffffffc0
add eax, ecx
jmp 0x18000e96c
mov eax, ecx
shl eax, 6
cmp eax, 1
jl 0x18000e981
mov rcx, qword [rbx + 0x7a8]
mov byte [rcx], 1
add rsp, 0x50
pop rbx
ret
mov eax, 1
add rsp, 0x50
pop rbx
ret

Function at 0x18000ea50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x18006d24c], 0
je 0x18000eaa2
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18000ea8d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x18006e328], eax
mov dword [0x18006d24c], 0
add rsp, 0x28
ret
mov eax, dword [0x18006e328]
mov dword [0x18006d24c], 0
add rsp, 0x28
ret
mov eax, dword [0x18006e328]
add rsp, 0x28
ret

Function at 0x18000eab0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x18006d2b0], 0
je 0x18000eb55
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x18000eae5
lea rcx, str.HWLOC_LIBXML_IMPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18000eb0c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor ecx, ecx
mov dword [0x18006d2b0], 0
test eax, eax
sete cl
mov dword [0x18006e32c], ecx
mov eax, ecx
add rsp, 0x28
ret
lea rcx, str.HWLOC_NO_LIBXML_IMPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18000eb3e
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
mov dword [0x18006e32c], eax
mov dword [0x18006d2b0], 0
add rsp, 0x28
ret
mov ecx, dword [0x18006e32c]
mov eax, ecx
mov dword [0x18006d2b0], 0
add rsp, 0x28
ret
mov eax, dword [0x18006e32c]
add rsp, 0x28
ret
Function at 0x180012700
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x78
mov rax, qword [0x18006d210]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx]
mov r13, r8
cmp al, byte [0x180062a78]
mov r12, rdx
jne 0x18001273b
movzx eax, byte [rcx + 1]
cmp al, byte [0x180062a79]
jne 0x18001273b
xor eax, eax
jmp 0x180012740
sbb eax, eax
or eax, 1
mov qword [rsp + 0xb8], rsi
lea rbx, str._dev_stdin
test eax, eax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
lea rdx, [0x180062a8c]
cmovne rbx, rcx
mov qword [rsp + 0x60], r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
je 0x18001285e
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov edi, 0x1000
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x1800127ac
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x1800127ac
mov eax, dword [rsp + 0x34]
inc eax
movsxd rdi, eax
lea rcx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180012855
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r15, rax
mov byte [rax + rsi], 0
cmp rax, rdi
jne 0x180012833
nop dword [rax]
nop word [rax + rax]
add rdi, rdi
mov rcx, rsi
lea rdx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r14, rax
test rax, rax
je 0x18001284c
mov rbx, rdi
lea rcx, [rax + r15]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r15, rax
mov byte [rsi + r15], 0
cmp rax, rbx
je 0x1800127f0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rax, [r15 + 1]
mov qword [r12], rsi
mov qword [r13], rax
xor eax, eax
jmp 0x180012861
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
or eax, 0xffffffff
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180043e10
add rsp, 0x78
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x180023450
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180023484
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180023470
ret
Function at 0x18002bee0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18006d210]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18002c075
cmp byte [rcx + 0x71], 0
je 0x18002c075
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x18002bf34
xor al, al
jmp 0x18002c077
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.180028990
nop
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rsp + 0x40]
cmovae r8, rcx
mov r9, qword [rsp + 0x50]
add r9, rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
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 0x18002bfa9
sub eax, 1
je 0x18002bfad
sub eax, 2
mov r9, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
je 0x18002c026
xor bl, bl
jmp 0x18002c028
mov byte [rbx + 0x71], 0
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
cmp r9, 0x10
cmovae rax, rcx
mov rdi, qword [rsp + 0x30]
sub rdi, rax
je 0x18002c002
lea rax, [rsp + 0x40]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
cmp rdi, rax
jne 0x18002bfa2
cmp byte [rbx + 0x71], 0
je 0x18002c026
test rdi, rdi
jne 0x18002bf50
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rsp + 0x40]
call fcn.180022f80
jmp 0x18002bf46
mov bl, 1
cmp r9, 0x10
jb 0x18002c070
mov rax, rcx
lea rdx, [r9 + 1]
cmp rdx, 0x1000
jb 0x18002c06b
lea r8, [rdx + 0x27]
cmp r8, rdx
jbe 0x18002c064
mov rdx, r8
test al, 0x1f
jne 0x18002c064
mov rcx, qword [rcx - 8]
cmp rcx, rax
jae 0x18002c064
sub rax, rcx
sub rax, 8
cmp rax, 0x1f
jbe 0x18002c06b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180043c8c
movzx eax, bl
jmp 0x18002c077
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180043e10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180031080
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
xor r8d, r8d
lea r9, str.XMRSTAK_NOWAIT
xor edx, edx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv_s]
cmp qword [rsp + 0x38], 0
jne 0x1800310ca
call fcn.180024860
mov rcx, rax
lea rdx, str.Press_any_key_to_exit.
call fcn.180030fe0
call fcn.180030db0
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x18003a900
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
pshufd xmm0, xmmword [rdx], 0x55
lea rbp, [0x18005dc20]
mov rdi, rcx
movd eax, xmm0
pshufd xmm0, xmmword [rdx], 0xff
mov rsi, rdx
movzx ebx, r8b
mov r10d, eax
movdqu xmm5, xmmword [rdi]
shr rax, 0x10
movzx r9d, al
mov eax, r10d
shr rax, 0x18
pslldq xmm5, 4
movdqa xmm4, xmm5
pslldq xmm5, 4
movzx r11d, byte [r9 + rbp]
movzx eax, byte [rax + rbp]
pxor xmm4, xmmword [rdi]
shl eax, 8
or r11d, eax
mov eax, r10d
shr rax, 8
movzx ecx, al
shl r11d, 8
movzx eax, byte [rcx + rbp]
or r11d, eax
movzx eax, r10b
shl r11d, 8
movzx ecx, byte [rax + rbp]
movd eax, xmm0
or r11d, ecx
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r11d
movzx r8d, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rbp]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rbp]
mov eax, r11d
ror eax, 8
or r8d, ecx
xor eax, ebx
mov edx, r8d
ror edx, 8
xor edx, ebx
movd xmm0, r8d
movd xmm2, eax
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, edx
pxor xmm0, xmm4
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pslldq xmm5, 4
pxor xmm0, xmm5
pshufd xmm1, xmm3, 0xff
pxor xmm1, xmm0
pshufd xmm0, xmm1, 0x55
movd eax, xmm0
movdqu xmmword [rdi], xmm1
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movzx r9d, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
movdqu xmm5, xmmword [rsi]
or r9d, eax
mov rbx, qword [rsp + 8]
mov eax, edx
mov rdi, qword [rsp + 0x20]
shr rax, 8
movzx ecx, al
pshufd xmm0, xmm1, 0xff
shl r9d, 8
pslldq xmm5, 4
movzx eax, byte [rcx + rbp]
movdqa xmm4, xmm5
pxor xmm4, xmmword [rsi]
or r9d, eax
movzx eax, dl
shl r9d, 8
pslldq xmm5, 4
movzx ecx, byte [rax + rbp]
movd eax, xmm0
or r9d, ecx
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r9d
movzx r8d, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rbp]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rbp]
mov rbp, qword [rsp + 0x10]
or r8d, ecx
mov eax, r8d
mov ecx, r9d
ror eax, 8
ror ecx, 8
movd xmm0, r8d
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, eax
pxor xmm0, xmm4
movd xmm2, ecx
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pslldq xmm5, 4
pshufd xmm1, xmm3, 0xaa
pxor xmm0, xmm5
pxor xmm1, xmm0
movdqu xmmword [rsi], xmm1
mov rsi, qword [rsp + 0x18]
ret