joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065604
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rax - 0x18], xmm6
lea rcx, [rax - 0x38]
mov rdi, rdx
call fcn.14006bf7c
mov rcx, rbx
movups xmm6, xmmword [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
mov rdx, rax
mov edi, 1
jmp 0x140065687
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14006bf7c
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.14006bff4
cmp rax, 0x3e8
ja 0x1400656ca
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rbx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14006564c
test rsi, rsi
je 0x1400656a5
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400656b3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1400656d8
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400656e6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
jmp 0x1400656b5
Function at 0x14006b230
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13, rcx
mov rbx, rdx
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp byte [rbx], 0x5b
mov rdi, rax
jne 0x14006b3a9
cmp rax, 4
jb 0x14006b3be
inc rbx
sub rdi, 2
cmp byte [rbx + rdi], 0x5d
jne 0x14006b3be
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
mov rbp, rax
cmp rdi, rax
je 0x14006b358
cmp byte [rbx + rax], 0x25
mov rdi, rax
jne 0x14006b3be
lea r15, [rbx + rax]
xor r14d, r14d
lea rdx, [0x14008bb5c]
lea rcx, [r15 + 1]
lea rsi, [r15 + 1]
lea r8d, [r14 + 2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14006b2e7
lea rcx, [r15 + 3]
mov al, byte [rcx]
test al, al
je 0x14006b2e7
cmp al, 0x5d
cmovne rsi, rcx
mov al, byte [rsi]
test al, al
je 0x14006b3be
xor ecx, ecx
cmp al, 0x5d
je 0x14006b310
cmp rcx, 0xf
jge 0x14006b310
inc rsi
mov byte [rsp + rcx + 0x20], al
inc r14d
inc rcx
mov al, byte [rsi]
test al, al
jne 0x14006b2f3
test r14d, r14d
je 0x14006b3be
cmp byte [rsi], 0x5d
jne 0x14006b3be
movsxd rax, r14d
cmp rax, 0x10
jae 0x14006b3c5
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x14007524c.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x14006b34f
mov eax, 7
jmp 0x14006b383
mov byte [rbx + rbp], 0x5d
mov byte [r15 + 1], 0
lea r8, [rsp + 0x30]
mov byte [rbx + rdi], 0
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14006b3be
mov byte [rbx + rdi], 0x5d
mov al, byte [rbx]
neg al
sbb eax, eax
not eax
and eax, 0xe
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007ae30
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
lea rdx, [0x140080e8c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp rdi, rax
je 0x14006b378
mov eax, 3
jmp 0x14006b383
call fcn.14007b3e8
int3
Function at 0x14006c218
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r9
xor edi, edi
and qword [r9], rdi
xor r13d, r13d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x14006c37a
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14006c367
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14006c275
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r14, [rax + 1]
jmp 0x14006c278
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x14006c286
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14006c296
cmp dword [rbx + 4], 0x17
jne 0x14006c32e
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x14006c32e
cmp qword [rbx + 0x10], 0
jbe 0x14006c32e
cmp qword [rbx + 0x10], r15
jb 0x14006c32e
lea rcx, [r14 + 0x30]
add rcx, r15
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14006c33d
mov ecx, dword [rbx]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x10], r15d
mov rdx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
je 0x14006c31b
mov rcx, qword [rsi + 0x20]
mov r8, r14
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x14006c32b
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14006c261
jmp 0x14006c342
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006c352
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x14006c362
mov rcx, rdi
call fcn.14006c1f4
xor edi, edi
jmp 0x14006c374
test rdi, rdi
jne 0x14006c374
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rdi
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006d40c
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r11, qword [rsp + 0x60]
mov r10, rdx
mov rdi, rcx
test rdx, rdx
je 0x14006d42b
cmp dword [rdx], 0
jne 0x14006d449
test r8, r8
je 0x14006d436
cmp dword [r8], 0
jne 0x14006d449
test r9, r9
je 0x14006d4e4
cmp dword [r9], 0
je 0x14006d4e4
lea rbx, [rsp + 0x48]
test r11, r11
jns 0x14006d457
xor ebx, ebx
jmp 0x14006d4a7
jle 0x14006d49d
mov rcx, r11
movabs rax, 0x624dd2f1a9fbe77
mul r11
sub rcx, rdx
shr rcx, 1
add rcx, rdx
mov edx, 0x7fffffff
shr rcx, 9
imul rax, rcx, 0x3e8
sub r11, rax
imul rax, r11, 0x3e8
cmp rcx, rdx
mov dword [rsp + 0x4c], eax
cmovg rcx, rdx
mov dword [rsp + 0x48], ecx
jmp 0x14006d4a7
and dword [rsp + 0x48], 0
and dword [rsp + 0x4c], 0
test r9, r9
je 0x14006d4b2
cmp dword [r9], 0
jne 0x14006d4b5
xor r9d, r9d
test r8, r8
je 0x14006d4c0
cmp dword [r8], 0
jne 0x14006d4c3
xor r8d, r8d
test r10, r10
je 0x14006d4ce
cmp dword [r10], 0
jne 0x14006d4d1
xor r10d, r10d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rbx
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
jmp 0x14006d4ec
mov rcx, r11
call fcn.14006d3cc
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400703d0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x20], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 + 0x10]
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
mov qword [r11 - 0x38], rax
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140070433
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret
Function at 0x14007280c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x14007283d
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140073f94
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor esi, esi
xor edi, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbp, rax
test rax, rax
jne 0x140074014
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140063150
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.14005a384
mov ebx, 0x4d
jmp 0x140074159
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140074068
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140063150
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x140073ffc
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400740b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140063150
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.14005a384
mov ebx, 0x4d
jmp 0x140074150
mov rbx, qword [rsp + 0x48]
mov r8d, 0x100000
cmp rbx, r8
jle 0x1400740d2
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.14005a384
jmp 0x1400740a7
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x1400740e9
lea ebx, [rax + 0x1b]
jmp 0x140074150
test rbx, rbx
je 0x140074132
and dword [rsp + 0x40], 0
lea rdx, [rsi + rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov r13d, edi
sub r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007419d
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140074129
mov ebx, r13d
jmp 0x14007412b
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x1400740ee
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rbx
mov byte [rbx + rsi], 0
mov rdx, rsi
mov qword [rsp + 0x20], r15
call fcn.140073d58
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [0x1400a0210]
test rbp, rbp
je 0x140074170
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14007ae30
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140063150
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x140074099
Function at 0x140079c58
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rdi, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140079d6c
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
lea rsi, [rdi + 8]
mov eax, dword [rdi + 0x18]
add rax, rcx
mov qword [rbx + 0x10], rax
cmp r15d, dword [rdi + 0x1c]
jbe 0x140079ce1
call qword [rdi]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rsi]
mov r14d, dword [rdi + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rdi + reloc.WS2_32.dll_recv]
mov r15d, dword [rdi + 0x20]
mov rcx, qword [rbx + 8]
call qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [rdi]
test r15, r15
je 0x140079d61
mov rbp, r15
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rsi]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r14
mov rcx, qword [rbx + 0x10]
call qword [rsi]
sub r15, 1
jne 0x140079cf5
lea rsi, [rdi + 8]
jmp 0x140079d61
mov rcx, qword [rbx + 8]
lea rdx, [0x14008f049]
mov r8d, 1
call qword [rsi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14008f04a]
mov r8d, 1
call qword [rsi]
inc rbp
mov eax, dword [rdi + 0x1c]
cmp rbp, rax
jb 0x140079d38
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14007a04c
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 0x14007a086
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007a08b
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 0x14007a0d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14007a0d4
dec r8
sub rdx, 1
jne 0x14007a0ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007b744
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x168], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov ecx, 0x30
call fcn.140004470
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x25
mov qword [rsp + 0x48], 0x2f
movups xmm0, xmmword [str.C:WindowsSystem32driversetchosts]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140006808]
movups xmmword [rax + 0x10], xmm1
mov eax, dword [0x140006818]
mov dword [rbx + 0x20], eax
movzx eax, byte [0x14000681c]
mov byte [rbx + 0x24], al
mov byte [rbx + 0x25], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400036e0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
cmp qword [rsp + 0xd8], 0
je 0x140002378
lea rdx, str.127.0.0.1_xboxlive.com_n
lea rcx, [rsp + 0x50]
call fcn.140003b90
lea rdx, str.127.0.0.1_user.auth.xboxlive.com_n
lea rcx, [rsp + 0x50]
call fcn.140003b90
lea rdx, str.127.0.0.1_presence_heartbeat.xboxlive.com_n
lea rcx, [rsp + 0x50]
call fcn.140003b90
lea rcx, [rsp + 0x58]
call fcn.140003620
test rax, rax
jne 0x140002378
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.140002400
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400023c4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400047bc
nop
lea rdx, str.do_you_want_spoof___n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003b90
nop word [rax + rax]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400023e0
call fcn.140001740
int3
Function at 0x1400024c0
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rsi, [0x14000aa18]
cmp qword [0x14000aa30], 0xf
cmova rsi, qword [0x14000aa18]
mov rdi, qword [0x14000aa28]
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
jbe 0x14000252a
call fcn.1400012b0
mov edx, 0xf
mov qword [rsp + 0x70], rdx
cmp rdi, rdx
ja 0x14000254b
mov qword [rsp + 0x68], rdi
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x58], xmm0
jmp 0x1400025e0
mov rcx, rdi
or rcx, rdx
cmp rcx, rbx
jbe 0x140002582
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140004470
mov rcx, rax
test rax, rax
je 0x1400025ac
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400025bd
mov rbx, rcx
mov edx, 0x16
cmp rcx, rdx
cmovb rbx, rdx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1400025b3
lea rax, [rcx + 0x27]
cmp rax, rcx
ja 0x140002564
call fcn.140001210
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400025bd
call fcn.140004470
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
cmp rdx, 0xf
cmova rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x14000263a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000263a
lea r8, [rsp + 0x58]
lea rdx, str.Error_deleting_directory:
lea rcx, [rsp + 0x38]
call fcn.140003950
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400012d0
lea rdx, [0x140007f60]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x58]
call fcn.1400032e0
nop
call fcn.140002240
int3
Function at 0x140002a10
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 0x140002a38
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 0x140002a5e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002a60
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002ab9
test ecx, ecx
jle 0x140002a99
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 0x140002ab9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002ab9
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 0x140002ae0
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 0x140002b02
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002b18
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 0x140002b34
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002b36
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002b72
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 0x140002c0e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002bad
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 0x140002bee
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 0x140002c0e
cmp rbx, rax
ja 0x140002bc0
test rbx, rbx
je 0x140002c0e
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 0x140003070
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 0x14000309d
xor eax, eax
jmp 0x140003209
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400030d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400030d7
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 0x140003209
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400031fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000311a
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 0x140003145
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 0x140003201
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 0x1400031b4
sub eax, 1
je 0x1400031b4
cmp eax, 2
jne 0x1400031fc
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 0x140003201
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400031e2
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 0x1400031fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003201
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004450
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret