joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001730
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov r11, rsp
push rsi
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [0x1400107c0]
xor edx, edx
mov r13, qword [0x1400107c8]
mov r14, rcx
cmp rsi, r13
je 0x140001938
mov qword [r11 - 0x28], r15
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x20], r12
mov rax, qword [rsi]
movabs rcx, 0x7fffffffffffffff
mov r15, qword [r14 + 0x10]
mov r9d, socket
mov qword [rsp + 0x20], rax
movabs r8, 0x8000000000000000
mov rax, rcx
sub rax, r15
cmp rax, 0x2d
jb 0x14000194f
cmp qword [r14 + 0x18], 0xf
mov r12, r14
jbe 0x1400017be
mov r12, qword [r14]
lea rbp, [r15 + 0x2d]
mov qword [rsp + 0x38], rdx
mov ebx, send
mov qword [rsp + 0x40], rdx
lea rdi, [rsp + 0x28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
cmp rbp, rbx
jbe 0x140001850
mov rbx, rbp
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400017f8
mov rbx, rcx
lea rax, [r8 + 0x27]
jmp 0x140001824
cmp rbx, 0x16
cmovb rbx, r9
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x14000180e
mov rdi, rdx
jmp 0x14000184b
cmp rcx, 0x1000
jb 0x140001843
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001955
mov rcx, rax
call fcn.140008278
test rax, rax
je 0x14000190f
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000184b
call fcn.140008278
mov rdi, rax
mov qword [rsp + 0x28], rdi
movups xmm0, xmmword [str.HTTP_1.1_200_OK_r_nContent_Type:_text_plain_r_n_r_n]
mov qword [rsp + 0x38], rbp
lea rcx, [rdi + 0x2d]
mov qword [rsp + 0x40], rbx
mov r8, r15
movups xmmword [rdi], xmm0
mov rdx, r12
movups xmm1, xmmword [0x14000da00]
movups xmmword [rdi + 0x10], xmm1
movsd xmm0, qword [0x14000da10]
movsd qword [rdi + 0x20], xmm0
mov eax, dword [0x14000da18]
mov dword [rdi + 0x28], eax
movzx eax, byte [0x14000da1c]
mov byte [rdi + 0x2c], al
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov byte [rdi + rbp], 0
cmp qword [rsp + 0x40], 0xf
mov r8d, dword [rsp + 0x38]
cmova rdx, qword [rsp + 0x28]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400018ff
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018fa
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000190f
call fcn.140007fd0
add rsi, 8
cmp rsi, r13
je 0x140001916
xor edx, edx
jmp 0x14000177b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007fb0
add rsp, 0x60
pop r14
pop r13
pop rsi
ret
call fcn.140001210
int3
call fcn.140001170
int3
Function at 0x140008c20
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002c9a
mov ecx, __stdio_common_vfprintf
cmp word [rax], cx
jne 0x140002c9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002c9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002c9a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002c9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002c9c
xor al, al
add rsp, 0x28
ret
Function at 0x14000d1f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14000d290
jmp 0x14000d27f
jae 0x14000d350
cmp r8, 0x201
jae 0x14000d290
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000d2e8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000d2bf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14002d120
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000d311
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d3b8
mov r8d, r14d
cmp r15, r8
jne 0x14000d270
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d3e5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000d27f
jmp 0x14000d290
cmp rsi, r8
jb 0x14000d3ff
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000ee00
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14000d3a1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400064b0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14000d389
jmp 0x14000d3a1
lea rcx, [0x1400301d0]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002dad0
jmp 0x14000d414
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002e020
ud2
Function at 0x14000d470
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.14001e100
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x14000d4c6
lea rcx, [rbp - 0x50]
call fcn.140007600
mov qword [rsi], rdi
jmp 0x14000d6b1
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x418], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x14000d550
jmp 0x14000d53f
jae 0x14000d616
cmp r8, 0x201
jae 0x14000d550
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x14000d5a8
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14000d57f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.14002d120
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x410], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x400], r13
mov rdi, rbx
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14000d5d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d6eb
mov r8d, esi
cmp r12, r8
jne 0x14000d530
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d726
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000d53f
jmp 0x14000d550
cmp r15, r8
jb 0x14000d740
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.14000ee00
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rdi, 0x8000000000000000
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
je 0x14000d678
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.1400064b0
cmp qword [rbp + 0x3d0], rdi
jne 0x14000d6c8
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.140007600
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000d6b1
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400064b0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14000d69c
jmp 0x14000d6b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3d0], rdi
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
jne 0x14000d660
jmp 0x14000d678
lea rcx, [0x1400301d0]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002dad0
jmp 0x14000d755
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14002e020
ud2
Function at 0x140011ef0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14002c640
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x1400177e0]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140017580
cmp qword [rbp + 0xfe8], 0
jne 0x1400120c7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140012093
cmp r12, 0x1000
ja 0x1400120e9
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140012067
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140012010
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14001206d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140012050
jbe 0x140011fc0
jmp 0x1400120d5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140011f75
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140007600
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140007600
jmp 0x140012093
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14002e0a0
jmp 0x1400120fd
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14002e020
ud2
Function at 0x140015060
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140031ff8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400150a4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001510a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140015141
test eax, eax
js 0x14001511b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140015134
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000ebd0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140007b80
mov ecx, 7
int 0x29
ud2
Function at 0x14001d250
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001d293
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000dda0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14002da00
ud2

Function at 0x14001d900
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
invalid
Function at 0x14002b4b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002b52a
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 0x14002b520
cmp r11, r10
ja 0x14002b5c1
cmp r10, rdx
ja 0x14002b5d3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002b522
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002b500
jmp 0x14002b597
ja 0x14002b52a
mov r11, r10
cmp rax, r8
jne 0x14002b4d2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002b59b
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 0x14002b570
mov r8, r10
sub ecx, r9d
jns 0x14002b58e
jmp 0x14002b59d
cmp r10, rdx
je 0x14002b5a9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002b59d
xor al, 1
cmp r8, rdx
jne 0x14002b550
jmp 0x14002b59d
xor eax, eax
jmp 0x14002b59d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140034bab]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002dad0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002e0a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002e020
int3

Function at 0x14002cb88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002cbd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002cbd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002cbd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002cbd2
cmp dword [rcx + 0x84], 0xe
jbe 0x14002cbd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002cbd4
xor al, al
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov edx, 0x19000
xor ecx, ecx
lea r9d, [rsi + 4]
mov r8d, 0x1000
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x60], esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rbp, [0x180003010]
lea r9, [rsp + 0x60]
lea r8d, [rsi + 0x40]
mov rcx, rbp
mov edx, 0x800
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
lea rcx, str.C:ProgramDataABBYYABBYY.dat
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800010ab
lea r9, [rsp + 0x68]
mov r8d, 0x19000
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call rbp
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x4019d8
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x1c
mov ecx, 0x11385def
call fcn.004018ef
add rsp, 0x1c
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x401c98
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x1c
mov ecx, 0x42cdb7dd
call fcn.004018ef
add rsp, 0x1c
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x401d18
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x1c
mov ecx, 0xf798ed1a
call fcn.004018ef
add rsp, 0x1c
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x401d58
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x1c
mov ecx, 0xf768efe9
call fcn.004018ef
add rsp, 0x1c
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x401d98
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x1c
mov ecx, 0x3910913
call fcn.004018ef
add rsp, 0x1c
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1416ae648
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1416ae652
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1416ae67b
pop rbp
sub rbp, 0x33
sub rbp, 0x16ae648
sub rsp, 0x20
add byte [rax], al
jmp 0x1416ae69a
mov rax, 0x16ae648
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x2b9abc34
xor byte [rax], dl
inc rax
dec rcx
jne 0x1416ae6b9
jmp 0x1416ae6d0
jl 0x1416ae68f
fnstsw word [rdi + 0x343408bd]
xor al, 0x7c
mov ch, 0xf5
cmp al, 0x35
xor al, 0x34
jl 0x1416ae717
fnstsw word [rbx + rsi*8 - 0xc]
invalid
xor eax, 0x9f8e7cdd
invalid
Function at 0x140004360
Capabilities:
Manipulate console buffer

Disassembly:
push rsi
sub rsp, 0xa0
mov word [rsp + 0x2c], dx
mov word [rsp + 0x2e], r8w
test dx, dx
js 0x1400043a4
test r8w, r8w
js 0x1400043f2
mov rcx, qword [rcx + 0x10]
shl r8d, 0x10
movzx edx, dx
or edx, r8d
call sub.KERNEL32.dll_SetConsoleCursorPosition
test eax, eax
je 0x140004462
xor eax, eax
add rsp, 0xa0
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x140020740]
mov qword [rsp + 0x38], rax
lea rax, str.Argument_Out_of_Range_Exception_when_setting_cursor_position_to_X:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rsi, [rsp + 0x70]
jmp 0x140004441
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x30], rax
lea rax, [0x140020740]
mov qword [rsp + 0x38], rax
lea rax, str.Argument_Out_of_Range_Exception_when_setting_cursor_position_to_Y:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001bd90
mov cl, 0x27
mov rdx, rsi
call fcn.140004080
nop
add rsp, 0xa0
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.1400013f0
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0xa0
pop rsi
ret
Function at 0x140008e00
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140008ea0
jmp 0x140008e8f
jae 0x140008f60
cmp r8, 0x201
jae 0x140008ea0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140008ef8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140008ecf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140022b50
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140008f21
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008fc8
mov r8d, r14d
cmp r15, r8
jne 0x140008e80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008ff5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140008e8f
jmp 0x140008ea0
cmp rsi, r8
jb 0x14000900f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000b930
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140008fb1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002c20
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140008f99
jmp 0x140008fb1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140023620
jmp 0x140009024
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140023a70
ud2