joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402502e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1402503a5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1402503a5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1402503be
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140250395
cmp byte [rcx], 0x5c
jne 0x14025038e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14025038e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14025037c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14025038b
test r8b, 0x10
jne 0x14025038e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14025038e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140245780
test edi, edi
jne 0x140250300
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140245770
int3
Function at 0x140258af0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140280040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x10], 0
mov rdi, rcx
mov ebx, 0x1e00000
jne 0x140258b89
mov rax, qword [rcx + 0x20]
cmp rax, qword [rcx + 0x28]
je 0x140258b26
mov qword [rcx + 0x28], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
je 0x140258b4c
nop
inc ebx
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
jne 0x140258b40
imul edx, ebx, 0x21
xor ecx, ecx
mov r9d, 4
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rdi + 0x10], rax
mov rdx, rax
test rax, rax
je 0x140258b7f
mov ecx, ebx
mov qword [rdi + 8], rcx
mov dword [rdi], 0x21
mov qword [rdi + 0x18], rax
xor eax, eax
test rdx, rdx
setne al
jmp 0x140258b8b
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14025d7c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140258ec0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rsi, rcx
add rcx, 0x10
mov r8d, 0x4d
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
call fcn.1402389a0
lea rcx, [rsi + 0x30]
xor r8d, r8d
lea rdx, [0x14026b146]
call fcn.1402389a0
lea rcx, [rsi + 0x50]
xor r8d, r8d
lea rdx, [0x14026b146]
call fcn.1402389a0
lea rcx, [rsi + 0x70]
xor r8d, r8d
lea rdx, [0x14026b146]
call fcn.1402389a0
lea rcx, [rsi + 0x90]
xor r8d, r8d
lea rdx, [0x14026b146]
call fcn.1402389a0
lea rcx, [rsi + 0xb0]
xor r8d, r8d
lea rdx, [0x14026b146]
call fcn.1402389a0
lea rcx, [rsi + 0xd0]
mov r8d, 3
lea rdx, [0x14026fa90]
call fcn.1402389a0
lea rcx, [rsi + 0xf0]
xor r8d, r8d
lea rdx, [0x14026b146]
call fcn.1402389a0
lea rcx, [rsi + 0x110]
mov r8d, 0xf
lea rdx, str.www.example.com
call fcn.1402389a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm1
xor r8d, r8d
lea rdx, [0x14026b146]
lea rcx, [rsp + 0x40]
call fcn.140208720
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
xor r8d, r8d
lea rdx, [0x14026b146]
lea rcx, [rsp + 0x60]
call fcn.140208720
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1401f4ac0
lea rdi, [rsi + 0x130]
lea rax, [rsp + 0x20]
cmp rdi, rax
je 0x14025906f
mov rbx, qword [rdi]
mov r8, qword [rbx + 8]
mov rdx, rdi
mov rcx, rdi
call fcn.14023b580
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rdi + 8], 0
mov r8, qword [rdi]
mov rax, qword [rsp + 0x20]
mov qword [rdi], rax
mov qword [rsp + 0x20], r8
mov rcx, qword [rdi + 8]
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov qword [rsp + 0x28], rcx
jmp 0x140259074
mov r8, qword [rsp + 0x20]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14023b580
mov edx, 0x60
mov rcx, qword [rsp + 0x20]
call fcn.14025d7e0
nop
lea r9, [fcn.1401f4c50]
mov edx, 0x40
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.14025dbbc
mov qword [rsi + 0x140], 0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1402590e0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [0x140283590]
mov qword [rsp + 0x80], rdi
xor ebx, ebx
mov qword [0x140283590], rbx
mov qword [0x140283598], rbx
mov ecx, 0x60
call fcn.14025db6c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x140283590], rax
xorps xmm0, xmm0
movups xmmword [0x1402835a0], xmm0
mov qword [0x1402835b0], rbx
mov qword [0x1402835b8], rbx
mov r8d, 0x4d
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
lea rcx, [0x1402835a0]
call fcn.140208720
nop
xorps xmm0, xmm0
movups xmmword [0x1402835c0], xmm0
mov qword [0x1402835d0], rbx
mov qword [0x1402835d8], 0xf
mov byte [0x1402835c0], bl
movups xmmword [0x1402835e0], xmm0
mov qword [0x1402835f0], rbx
mov qword [0x1402835f8], 0xf
mov byte [0x1402835e0], bl
movups xmmword [0x140283600], xmm0
mov qword [0x140283610], rbx
mov qword [0x140283618], 0xf
mov byte [0x140283600], bl
movups xmmword [0x140283620], xmm0
mov qword [0x140283630], rbx
mov qword [0x140283638], 0xf
mov byte [0x140283620], bl
movups xmmword [0x140283640], xmm0
mov qword [0x140283650], rbx
mov qword [0x140283658], 0xf
mov byte [0x140283640], bl
movups xmmword [0x140283660], xmm0
mov qword [0x140283670], rbx
mov qword [0x140283678], rbx
mov r8d, 3
lea rdx, [0x14026fa90]
lea rcx, [0x140283660]
call fcn.140208720
nop
xorps xmm0, xmm0
movups xmmword [0x140283680], xmm0
mov qword [0x140283690], rbx
mov qword [0x140283698], 0xf
mov byte [0x140283680], bl
movups xmmword [0x1402836a0], xmm0
mov qword [0x1402836b0], rbx
mov qword [0x1402836b8], rbx
mov r8d, 0xf
lea rdx, str.www.example.com
lea rcx, [0x1402836a0]
call fcn.140208720
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x40], xmm1
xor r8d, r8d
lea rdx, [0x14026b146]
lea rcx, [rsp + 0x30]
call fcn.140208720
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x14026b146]
lea rcx, [rsp + 0x50]
call fcn.140208720
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [0x1402836c0]
call fcn.1401f4ac0
nop
lea r9, [fcn.1401f4c50]
mov edx, 0x40
mov r8d, 1
lea rcx, [rsp + 0x30]
call fcn.14025dbbc
mov qword [0x1402836d0], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x14025ce8c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14025cec6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14025cecb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14025cf14
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14026ae00]
cmp byte [rcx + rax], 0
je 0x14025cf14
dec r8
sub rdx, 1
jne 0x14025cefa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14025e680
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14025e6ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14025e6ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14025e6ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14025e6ca
cmp dword [rcx + 0x84], 0xe
jbe 0x14025e6ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14025e6cc
xor al, al
add rsp, 0x28
ret
Function at 0x140001750
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 0x140001778
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 0x14000179e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400017a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400017f9
test ecx, ecx
jle 0x1400017d9
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 0x1400017f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400017f9
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 0x140001820
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 0x140001842
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001858
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 0x140001874
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001876
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400018b2
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 0x14000194e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400018ed
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 0x14000192e
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 0x14000194e
cmp rbx, rax
ja 0x140001900
test rbx, rbx
je 0x14000194e
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 0x140001db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001ddd
xor eax, eax
jmp 0x140001f49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001e17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001e17
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 0x140001f49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140001f3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001e5a
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 0x140001e85
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 0x140001f41
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 0x140001ef4
sub eax, 1
je 0x140001ef4
cmp eax, 2
jne 0x140001f3c
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 0x140001f41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140001f22
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 0x140001f3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140001f41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004800
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002150
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002223
cmp byte [rcx + 0x71], 0
je 0x140002223
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000221f
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 0x1400021e4
sub eax, 1
je 0x1400021e8
cmp eax, 2
jne 0x14000221f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004800
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002216
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 0x14000221f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400021cc
xor al, al
jmp 0x1400021cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004800
add rsp, 0x60
pop rbx
ret
Function at 0x140002ec0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
mov eax, 0x1060
call fcn.140005770
sub rsp, rax
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
cmp qword [rcx + 0x18], 7
mov ebx, 0xffffffff
jbe 0x140002ef9
mov rcx, qword [rcx]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov r8d, 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002f7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_opening_file:
mov ebx, eax
call fcn.140002510
mov rcx, rax
lea rdx, [0x140002c10]
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__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
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__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400026f0]
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__::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]
xor eax, eax
jmp 0x140003012
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003005
mov qword [rsp + 0x1078], rsi
lea rsi, [0x1400066a0]
nop dword [rax + rax]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140002ffd
lea rdx, [rsp + 0x50]
mov r8d, eax
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov ecx, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
xor ebx, dword [rsi + rax*4]
sub r8, 1
jne 0x140002fc0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002fb0
mov rsi, qword [rsp + 0x1078]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
not ebx
mov eax, ebx
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140004800
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400040a0
Capabilities:
Create thread
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000414b
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140004142
lea rdi, str.Play.exe
nop word [rax + rax]
lea rdx, [rsp + 0x7c]
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x140004130
add rax, 2
cmp rax, 9
je 0x140004154
movzx ecx, word [rdx + rax*2]
cmp cx, word [rdi + rax*2]
je 0x140004110
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140004100
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 8
call fcn.140004820
lea rcx, [0x140004050]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140004770]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140004218
call fcn.140003260
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400041ea
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400041d9
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
psrldq xmm0, 8
movd eax, xmm0
test eax, eax
je 0x1400041f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140004800
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140005178
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400051c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400051c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400051c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400051c2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400051c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400051c4
xor al, al
add rsp, 0x28
ret
Function at 0x14002953c
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.14001cc04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cc04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002968c
cmp rax, 0xffffffffffffffff
je 0x14002968c
xor edi, edi
test rbp, rbp
jle 0x140029637
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f530
mov rbx, rax
test rax, rax
jne 0x1400295c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002962d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a538
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.14001d8e0
cmp eax, 0xffffffff
je 0x14002960d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400295d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a538
jmp 0x14002962d
cmp byte [rsi + 0x38], dil
je 0x140029624
cmp dword [rsi + 0x34], 5
jne 0x140029624
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002962d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b2cc
jmp 0x1400296a0
jns 0x1400296a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cc04
cmp rax, 0xffffffffffffffff
jne 0x140029658
cmp byte [rsi + 0x30], dil
je 0x1400296a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400296a0
mov ecx, r14d
call fcn.1400189f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400296a0
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 0x1400296a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029699
mov eax, dword [rsi + 0x2c]
jmp 0x14002969e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cc04
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 0x140001dc0
Capabilities:
Parse pe header

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