joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401573e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14015745a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140157450
cmp r11, r10
ja 0x1401574e5
cmp r10, rdx
ja 0x1401574f7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140157452
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140157430
jmp 0x1401574c7
ja 0x14015745a
mov r11, r10
cmp rax, r8
jne 0x140157402
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1401574cb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1401574a0
mov r8, r10
sub ecx, r9d
jns 0x1401574be
jmp 0x1401574cd
cmp r10, rdx
je 0x1401574d9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1401574cd
xor al, 1
cmp r8, rdx
jne 0x140157480
jmp 0x1401574cd
xor eax, eax
jmp 0x1401574cd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140219e80
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14021a530
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14021a4b0
int3
Function at 0x140184d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xad
jne 0x140184d29
movzx eax, byte [rdx + 2]
cmp al, 0xae
jne 0x140184d33
mov rcx, qword [rdx + 0x20]
jmp 0x140184d43
cmp al, 0x88
jne 0x140184ec7
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x20]
movsxd rcx, dword [rcx]
cmp ecx, 1
je 0x140184ec7
mov dword [r8], 0
cmp byte [rdx], 0x88
jne 0x140184d6a
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1401acc40
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x140184eb2
mov qword [rsp + 0x80], rbx
lea rcx, [0x1401d5740]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r15
lea r13, [fcn.140185ce0]
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea edx, [r15 + 2]
nop dword [rax + rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [r15 + rax + 8]
je 0x140184e20
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x140184e10
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140200ba0
cmp word [rsp + 0x44], 0
je 0x140184e20
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1401b52e0
jmp 0x140184e60
mov rsi, qword [rdi]
test rbx, rbx
je 0x140184e3c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1401851a0
mov rbx, rax
cmp byte [rsi + 0x61], 0
jne 0x140184e50
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1401b3920
test rbx, rbx
je 0x140184e60
mov rdx, rbx
mov rcx, rsi
call fcn.1401b7260
inc ebp
lea rcx, [0x1401d5740]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x140184dd0
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1401b6be0

Function at 0x14019d6e0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
mov rdi, rdx
mov r8, rdx
mov dword [rsp + 0x20], ebx
mov r9, rdx
mov rsi, rcx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
call fcn.1401c5c70
test ebx, ebx
jne 0x14019d724
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.1401c5c70
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1401b99e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1401b9ae9
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, [0x140228064]
mov qword [rsp + 0x20], r15
lea r15, [0x140223de0]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1401b9a61
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x1401b9a9c
test ecx, ecx
jne 0x1401b9aaa
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.140186e30
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x1401b9a80
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1401b9a20
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x1401b9aaf
inc r8
jmp 0x1401b9a50
test r10d, r10d
jne 0x1401b9a79
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1401b9ad5
test edx, edx
je 0x1401b9a61
inc rax
jmp 0x1401b9ac0
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x1401b9a79
inc rax
jmp 0x1401b9ac0
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401fc850
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rbp, r8
mov r15, rdx
call fcn.1401c5350
mov rbx, rax
test rax, rax
jne 0x1401fc892
lea eax, [rbx + 7]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
cmp byte [0x1402da034], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
je 0x1401fc8f7
mov rax, qword [0x1402da1b8]
test rax, rax
je 0x1401fc8bc
mov ecx, 0xc8
call rax
test eax, eax
jne 0x1401fc8f7
lea rsi, [rbx + 8]
mov qword [rbx + 0x10], r15
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0
lea r8, [0x1401d7720]
mov qword [rbx + 0x18], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
jne 0x1401fc90f
jmp 0x1401fc8ff
lea rdi, [rbx + 0x10]
lea rsi, [rbx + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rdi], 0
mov rdi, qword [rsp + 0x58]
jne 0x1401fc92c
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [rsi], eax
call r15
mov qword [rbx + 0x20], rax
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [r14], rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x140210d0c
Capabilities:
Parse pe header

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

Function at 0x140219230
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14014b010
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1402192c9
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1402192fb
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x140219319
jmp 0x14021932a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x14021932a
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140019aa0
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x14021932a
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140019aa0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140008c50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140008ccd
nop dword [rax]
lea rdx, str.macspoof.exe
lea rcx, [rsp + 0x4c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140008cc9
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140008ca0
jmp 0x140008ccd
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140022090
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14000bdb0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x14000bf32
test byte [r8 + 0x5e], 0x40
jne 0x14000bddd
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x14000bf32
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000be16
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000be2d
add rdx, 0x28
cmp rdx, r9
jb 0x14000be04
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x14000bf28
cmp rbx, r15
jae 0x14000bf28
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x14000bf23
add eax, 0xfffffff8
shr eax, 1
je 0x14000bf14
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x14000bea2
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x14000beae
cmp ax, 0xa
jne 0x14000bf06
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x14000befb
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x14000bee2
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x14000beed
add rax, 0x28
cmp rax, r10
jb 0x14000bed0
jmp 0x14000befb
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x14000befe
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x14000be80
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x14000be64
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret
Function at 0x14000bf40
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x20
movzx eax, word [r8 + 0x14]
lea r10, [r8 + 0x18]
mov r11d, dword [r8 + 0x90]
add r10, rax
movzx eax, word [r8 + 6]
mov rsi, r8
mov r15, rdx
mov r12d, ecx
lea r9, [rax + rax*4]
lea r8, [r10 + r9*8]
cmp r10, r8
jae 0x14000bfa1
nop dword [rax + rax]
mov ecx, dword [r10 + 0xc]
cmp r11, rcx
jb 0x14000bf98
mov eax, dword [r10 + 8]
add eax, ecx
cmp r11, rax
jb 0x14000c02e
add r10, 0x28
cmp r10, r8
jb 0x14000bf80
xor eax, eax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
test r11d, r11d
je 0x14000c00b
cmp dword [rsi + 0x94], 0
je 0x14000c00b
lea r14, [rax + 0x10]
nop dword [rax]
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r14 - 4]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x14000c00b
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000c002
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000c040
add rdx, 0x28
cmp rdx, r9
jb 0x14000bff0
mov eax, 1
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r12
pop rsi
ret
mov eax, dword [r10 + 0x14]
sub rax, rcx
add rax, r11
add rax, r15
jmp 0x14000bfa3
mov edi, dword [rdx + 0x14]
sub rdi, rcx
add rdi, r8
add rdi, r15
je 0x14000c00b
mov rdx, rdi
mov ecx, r12d
call fcn.14000a620
mov rbp, rax
test rax, rax
je 0x14000c135
movzx r8d, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add r8, 0x18
mov r9d, dword [r14]
add r8, rsi
lea rdx, [rcx + rcx*4]
lea r10, [r8 + rdx*8]
cmp r8, r10
jae 0x14000c0a2
mov ecx, dword [r8 + 0xc]
cmp r9, rcx
jb 0x14000c099
mov eax, dword [r8 + 8]
add eax, ecx
cmp r9, rax
jb 0x14000c0b4
add r8, 0x28
cmp r8, r10
jb 0x14000c085
xor ebx, ebx
mov r8, qword [rbx]
test r8, r8
je 0x14000c11e
jns 0x14000c0c3
movzx edx, r8w
jmp 0x14000c101
mov ebx, dword [r8 + 0x14]
sub rbx, rcx
add rbx, r9
add rbx, r15
jmp 0x14000c0a4
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r9, [rax + rdx*8]
cmp rax, r9
jae 0x14000c0fb
nop
mov edx, dword [rax + 0xc]
cmp r8, rdx
jb 0x14000c0f2
mov ecx, dword [rax + 8]
add ecx, edx
cmp r8, rcx
jb 0x14000c127
add rax, 0x28
cmp rax, r9
jb 0x14000c0e0
xor ecx, ecx
lea rdx, [rcx + 2]
mov rax, rdi
mov rcx, rax
call fcn.14000bae0
add rax, rbp
mov qword [rbx], rax
add rbx, 8
mov r8, qword [rbx]
test r8, r8
jne 0x14000c0ac
add r14, 0x14
jmp 0x14000bfd0
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r8
add rcx, r15
jmp 0x14000c0fd
jmp 0x14000c010
Function at 0x1400107f0
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 case.default.0x140010811
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 0x14001083e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140010840
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140010899
test ecx, ecx
jle 0x140010879
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 0x140010899
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140010899
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
add byte [rax], al
xchg esp, eax
xor dword [rdx], eax
add byte [rcx], ah
add byte [rsi], al
add byte [rax], al
in al, 4
add byte [rax], al
invalid
Function at 0x1400108c0
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 0x1400108e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400108f1
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 0x140010914
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140010916
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140010952
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 0x1400109ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001098d
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 0x1400109ce
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 0x1400109ee
cmp rbx, rax
ja 0x1400109a0
test rbx, rbx
je 0x1400109ee
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
add al, 0
add byte [rbp + rax], ah
add byte [rsi + rax], dl
add byte [rsi + rcx], dh
add byte [rax - 0x50ffff44], al
mov esp, 0x31340000
add al, byte [rax]
add dword [rdx], ecx
add eax, 0x6420a00
invalid
Function at 0x140010e50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140010e7d
xor eax, eax
jmp 0x140010fe9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140010eb7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140010eb7
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 0x140010fe9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140010fdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140010efa
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 0x140010f25
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 0x140010fe1
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 0x140010f94
sub eax, 1
je 0x140010f94
cmp eax, 2
jne 0x140010fdc
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 0x140010fe1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140010fc2
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 0x140010fdc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140010fe1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140022090
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140012c50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140012d23
cmp byte [rcx + 0x71], 0
je 0x140012d23
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140012d1f
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 0x140012ce4
sub eax, 1
je 0x140012ce8
cmp eax, 2
jne 0x140012d1f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140022090
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140012d16
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 0x140012d1f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140012ccc
xor al, al
jmp 0x140012ccc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140022090
add rsp, 0x60
pop rbx
ret