joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b960
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 [0x14001efb8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000b9a4
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 0x14000ba0a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000ba41
test eax, eax
js 0x14000ba1b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000ba34
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.1400061f0
mov rcx, rax
call fcn.140001bd0
mov ecx, 7
int 0x29
ud2

Function at 0x1400198e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001995a
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 0x140019950
cmp r10, r11
jb 0x1400199f3
cmp r10, rdx
ja 0x140019a07
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140019952
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140019930
jmp 0x1400199c7
ja 0x14001995a
mov r11, r10
cmp rax, r8
jne 0x140019902
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400199cb
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 0x1400199a0
mov r8, r10
sub ecx, r9d
jns 0x1400199be
jmp 0x1400199cd
cmp r10, rdx
je 0x1400199d9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400199cd
xor al, 1
cmp r8, rdx
jne 0x140019980
jmp 0x1400199cd
xor eax, eax
jmp 0x1400199cd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001c410
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c8e0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c860
ud2
Function at 0x140001070
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14d, edx
xor r15d, r15d
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, 1
xor r8d, r8d
mov rcx, rax
mov edx, r14d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, 0xffffffffffffffff
mov ebx, 0x7a00
mov ecx, ebx
add ecx, 1
movsxd rcx, ecx
cmovo rcx, rax
call fcn.14000b070
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, 0xffffffff
mov dword [rdi + 0xc], r15d
mov rdx, rdi
lea r10, [0x140028a80]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
xor r9d, dword [r10 + rcx*4]
sub ebx, 1
jne 0x140001130
not r9d
mov rcx, rsi
mov dword [rsp + 0x44], r9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14000ac60
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea edx, [r14 + 0xc]
mov r9d, 1
mov rcx, rax
xor r8d, r8d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004c90
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001fe0
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r14, rdx
mov dword [rsp + 0x20], 0
mov edx, 0x1000
mov r15, r9
mov ebp, r8d
xor ecx, ecx
mov r8d, edx
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140002099
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [rsp + 0x20]
mov r9d, 4
mov edx, ebx
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x140002172
lea r9, [rsp + 0x20]
mov r8d, ebx
mov rdx, rax
mov ecx, 0x42
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140002045
mov qword [rsp + 0x60], rsi
xor ebx, ebx
mov esi, dword [rdi]
test rsi, rsi
je 0x14000215c
mov r8d, dword [0x14002a0a8]
lea r11, [rsi - 1]
lea r11, [rsi + r11*2]
mov qword [rsp + 0x68], r12
lea r11, [rdi + r11*8]
lea r12, [0x14002a0b0]
nop word [rax + rax]
mov rcx, qword [r11]
mov rax, qword [r11 + 8]
mov r10, rcx
and r10, 0xfffffffffffffffe
test cl, 1
cmove r10, rcx
sub rax, 0x7a00
test rax, 0xffffffffffffffef
jne 0x14000212c
lea r9, [r11 + 0x10]
mov rax, r14
sub r9, r14
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140002113
inc rax
test ecx, ecx
jne 0x140002100
test edx, edx
jne 0x14000212c
test ebp, ebp
je 0x14000213a
mov eax, r8d
inc r8d
mov dword [0x14002a0a8], r8d
mov qword [r12 + rax*8], r10
inc rbx
sub r11, 0x18
cmp rbx, rsi
jb 0x1400020d0
jmp 0x140002157
xor ecx, ecx
test r8d, r8d
je 0x140002154
mov rax, r12
cmp qword [rax], r10
je 0x14000212c
inc ecx
add rax, 8
cmp ecx, r8d
jb 0x140002144
mov qword [r15], r10
mov r12, qword [rsp + 0x68]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rsp + 0x60]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140004c90
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret

Function at 0x140002190
Capabilities:
Load ntoskrnl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.SystemRoot_system32_ntoskrnl.exe
call fcn.1400016c0
xor edx, edx
lea rcx, str.ntoskrnl.exe
mov r8d, 1
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x1400021de
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140002212
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub rbx, rdi
lea rax, [rsi + rbx]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 1
call fcn.140008540
int3
Function at 0x140002220
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov rsi, rcx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov r8d, 7
mov dword [rsp + 0x40], ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, 1
xor r8d, r8d
mov rcx, rax
mov edx, 0x8270
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbp
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test al, al
je 0x140002412
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov dword [rsp + 0x48], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, 1
xor r8d, r8d
mov rcx, rax
mov edx, 0x900
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbp
mov r8d, 4
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
je 0x140002429
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov dword [rsp + 0x40], 0x1100
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, 1
xor r8d, r8d
mov rcx, rax
mov edx, 0x900
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbp
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test al, al
je 0x140002434
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x800
mov rcx, rbx
call fcn.140001070
mov edx, 0x8200
mov rcx, rbx
call fcn.140001070
xor r9d, r9d
mov dword [rsp + 0x28], ebp
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.clfsw32.dll_CreateLogFile]
cmp rax, 0xffffffffffffffff
jne 0x14000244b
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140004c90
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.Fail_n
call fcn.140001010
mov ecx, 1
call fcn.140008540
int3
mov ecx, 1
call fcn.140008540
int3
lea rcx, str.Fail_n
call fcn.140001010
mov ecx, 1
call fcn.140008540
int3
lea rcx, str.old_system__using_other_1d_n
call fcn.140001010
lea rcx, str.pause
call fcn.14000a8f0
xor ecx, ecx
call fcn.140008540
int3
Function at 0x140005724
Capabilities:
Parse pe header

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

Function at 0x140008358
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400083c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400083c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400083c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400083c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400083c7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400083c7
cmp dword [rcx + 0xf8], 0
je 0x1400083c7
mov ecx, ebx
call fcn.14000846c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140008260
nop
cmp dword [rbp + 0x20], 0
jne 0x140008428
call fcn.14000c4b8
cmp eax, 1
jne 0x140008418
xor dl, dl
jmp 0x140008422
call fcn.14000c484
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140008433
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000843c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140008358

Function at 0x140008540
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400083c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400083c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400083c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400083c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400083c7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400083c7
cmp dword [rcx + 0xf8], 0
je 0x1400083c7
mov ecx, ebx
call fcn.14000846c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140008260
nop
cmp dword [rbp + 0x20], 0
jne 0x140008428
call fcn.14000c4b8
cmp eax, 1
jne 0x140008418
xor dl, dl
jmp 0x140008422
call fcn.14000c484
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140008433
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000843c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140008358
Function at 0x1400122c4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400122f4
xor eax, eax
jmp 0x1400123b7
mov rbp, rbx
cmp word [rax], si
je 0x140012319
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140012300
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400122fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400121e4
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14001235a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400122ed
call fcn.14000e0d0
mov rdi, rax
test rax, rax
jne 0x140012370
xor ecx, ecx
call fcn.14000d410
jmp 0x14001234f
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400121e4
test eax, eax
jne 0x1400123a1
mov rcx, rdi
call fcn.14000d410
jmp 0x1400123ab
xor ecx, ecx
call fcn.14000d410
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400163cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400163e2
mov al, 1
jmp 0x14001644e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400163f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001644c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140012ac8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001644c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001644c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001644c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001644e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140017c14
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000aa38
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140017c9e
cmp byte [rbp - 0x21], r15b
je 0x140017c99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017cd4
call fcn.14000d6b0
test eax, eax
jne 0x140017cc0
cmp byte [rbp - 0x21], r15b
je 0x140017cb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140017cd4
cmp byte [rbp - 0x21], r15b
je 0x140017cd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140010720
test eax, eax
jne 0x140017d74
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000aa38
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017d13
cmp byte [rbp - 0x21], r15b
je 0x140017d48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140017d48
call fcn.14000d6b0
test eax, eax
jne 0x140017d34
cmp byte [rbp - 0x21], r15b
je 0x140017d2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140017d48
cmp byte [rbp - 0x21], r15b
je 0x140017d45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140010720
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140017d74
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140017d77
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140017d85
mov rcx, rdi
call fcn.14000d410
cmp byte [rbp + 0x3f], r15b
je 0x140017d94
mov rcx, qword [rbp + 0x27]
call fcn.14000d410
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001a1b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001a1d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001a1d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400010d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rdx, str.Russian
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
lea rdx, str.AutoBreak__by_Zero3epo_n_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001270
lea rdi, [0x140001020]
nop word [rax + rax]
lea rdx, [0x140003458]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001270
lea rdx, [rsp + 0x32]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140001450
lea rdx, [0x140003478]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001270
lea rdx, [rsp + 0x31]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140001450
lea rdx, [0x140003490]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001270
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140001450
mov ecx, 0x10
call fcn.140001640
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
movzx ecx, byte [rsp + 0x31]
mov byte [rax + 1], cl
movzx ecx, byte [rsp + 0x32]
mov byte [rax + 2], cl
mov qword [rax + 8], rdi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1400015d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001253
cmp dword [rsp + 0x48], 0
je 0x140001247
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x48], eax
je 0x14000123b
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x14000122f
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x140001130
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400020cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002116
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002116
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002116
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002116
cmp dword [rcx + 0x84], 0xe
jbe 0x140002116
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002118
xor al, al
add rsp, 0x28
ret
Function at 0x140008590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x14002a6c0
push rsi
push rdi
push rbx
sub rsp, 0x70
mov esi, dword [0x1400a9178]
test esi, esi
je 0x14002a7c2
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002a805
je 0x14002a7be
movups xmm0, xmmword [0x1400c0be8]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x1400c0bd8]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1400c0bc8]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1400c0bb8]
movaps xmmword [rsp + 0x20], xmm0
movabs rax, 0x2000000000000
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], esi
movzx eax, byte [0x1400d3130]
mov edx, 0x50
xor ecx, ecx
call fcn.14008b3c0
test rax, rax
je 0x14002a80d
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14002a802
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x14002a7f1
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x14002a7e3
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14002a7f1
call fcn.140028230
jmp 0x14002a7f1
xor eax, eax
jmp 0x14002a805
lea rcx, [0x1400a9160]
call fcn.140057530
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002a6e8
jmp 0x14002a805
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14002a7f1
call fcn.140027360
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rdi
call fcn.1400a6040
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call fcn.14000bba0
ud2