joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015c70c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14015c722
mov al, 1
jmp 0x14015c782
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14015c733
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14015c780
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401608ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14015c780
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14015c780
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14015c780
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14015c782
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140160df4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140150038
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140150038
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140160f44
cmp rax, 0xffffffffffffffff
je 0x140160f44
xor edi, edi
test rbp, rbp
jle 0x140160eef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14015c854
mov rbx, rax
test rax, rax
jne 0x140160e7c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140160ee5
mov edx, 0x8000
mov ecx, r14d
call fcn.140151f8c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140152a30
cmp eax, 0xffffffff
je 0x140160ec5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140160e8c
mov edx, r15d
mov ecx, r14d
call fcn.140151f8c
jmp 0x140160ee5
cmp byte [rsi + 0x38], dil
je 0x140160edc
cmp dword [rsi + 0x34], 5
jne 0x140160edc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140160ee5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14015a64c
jmp 0x140160f58
jns 0x140160f58
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140150038
cmp rax, 0xffffffffffffffff
jne 0x140160f10
cmp byte [rsi + 0x30], dil
je 0x140160f58
mov edi, dword [rsi + 0x2c]
jmp 0x140160f58
mov ecx, r14d
call fcn.1401608ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140160f58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140160f58
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140160f51
mov eax, dword [rsi + 0x2c]
jmp 0x140160f56
mov eax, SafeArrayCopy
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140150038
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1401631d8
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 0x140163208
xor eax, eax
jmp 0x1401632cb
mov rbp, rbx
cmp word [rax], si
je 0x14016322d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140163214
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140163210
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.14015e2d4
movsxd r14, eax
test eax, eax
jne 0x14016326b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140163201
mov rcx, r14
call fcn.14015a688
mov rdi, rax
test rax, rax
jne 0x140163284
xor ecx, ecx
call fcn.14015a64c
jmp 0x140163260
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.14015e2d4
test eax, eax
jne 0x1401632b5
mov rcx, rdi
call fcn.14015a64c
jmp 0x1401632bf
xor ecx, ecx
call fcn.14015a64c
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 0x1401632e8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14016336f
mov rsi, rbx
cmp word [rax], bp
je 0x14016332e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140163318
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140163314
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14015a688
mov rdi, rax
test rax, rax
je 0x14016335c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401384f0
mov rbp, rdi
xor ecx, ecx
call fcn.14015a64c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140166074
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14015ab04
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140166115
cmp ebx, dword [rsp + 0x30]
je 0x14016610e
test esi, esi
je 0x14016610e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401660e9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401660f6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401660d3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401660fa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140166117
mov eax, 1
jmp 0x140166117
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140168b0c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140168b56
call fcn.14014d944
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.14014d964
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14013d074
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401339b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140168b61
lea eax, [rbx + 1]
jmp 0x140168b43
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140168b41
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140168b43
Function at 0x1400049c0
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 8
call fcn.140005d74
lea rcx, [0x1400020f0]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1400055a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140004b3f
cmp dword [rsp + 0x38], ebx
je 0x140004b33
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140004b33
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
xor r9d, r9d
mov r8, rdi
lea rdx, [0x1400047a0]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140009800], rax
test rax, rax
jne 0x140004aa2
mov ebx, 0xffffffff
jmp 0x140004b02
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140004aed
nop dword [rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140004ac0
mov byte [0x140009130], 0
mov rcx, qword [0x140009800]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop
cmp dword [rsp + 0x38], 0
je 0x140004b10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140005c70
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140006898
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x40c93d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x40c94d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x40c935
lea eax, [rcx + 1]
jmp 0x40c95b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x40c96e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x40c954
sub eax, 3
jb 0x40c98e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x40c9dd
sar eax, 1
movsxd rbp, eax
jb 0x40c9c4
jmp 0x40c99c
add ebx, ebx
jne 0x40c99a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x40c9c4
inc ecx
add ebx, ebx
jne 0x40c9aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x40c9c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x40c9bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x40c9ac
add ecx, 2
jmp 0x40c9c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0040c8f2
jmp 0x40c93d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1e00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x40ca29
cmp rsi, rcx
jae 0x40ca31
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x40ca10
cmp al, 0x8f
ja 0x40ca10
cmp byte [rsi - 2], 0xf
je 0x40ca16
sub al, 0xe8
cmp al, 1
ja 0x40c9fa
cmp rsi, rcx
jae 0x40ca31
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x40ca00
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x40ca31
lodsb al, byte [rsi]
jmp 0x40ca10
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa000]
mov eax, dword [rdi]
or eax, eax
je 0x40ca8e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x40ca3e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x40ca88
mov qword [rbx], rax
add rbx, 8
jmp 0x40ca5e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0040cb11], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0040cb11
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x40cb01
sub rsp, 0xffffffffffffff80
jmp 0x4014d0
Function at 0x1400056d0
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 0x140005770
jmp 0x14000575f
jae 0x140005830
cmp r8, 0x201
jae 0x140005770
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400057c8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000579f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001cc20
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 0x1400057f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005898
mov r8d, r14d
cmp r15, r8
jne 0x140005750
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400058c5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000575f
jmp 0x140005770
cmp rsi, r8
jb 0x1400058df
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140008510
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 0x140005881
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002f00
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 0x140005869
jmp 0x140005881
lea rcx, str.internal_error:_entered_unreachable_code_rustc_7cf61ebde7b22796c69757901dd346d0fe70bd97library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14001d650
jmp 0x1400058f4
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001daa0
ud2
Function at 0x14000cf40
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 [0x1400207a8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000cf84
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 0x14000cfea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000d021
test eax, eax
js 0x14000cffb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000d014
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.1400081e0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003a40
mov ecx, 7
int 0x29
ud2
Function at 0x14001adf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001ae6a
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 0x14001ae60
cmp r11, r10
ja 0x14001aef5
cmp r10, rdx
ja 0x14001af07
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001ae62
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001ae40
jmp 0x14001aed7
ja 0x14001ae6a
mov r11, r10
cmp rax, r8
jne 0x14001ae12
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001aedb
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 0x14001aeb0
mov r8, r10
sub ecx, r9d
jns 0x14001aece
jmp 0x14001aedd
cmp r10, rdx
je 0x14001aee9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001aedd
xor al, 1
cmp r8, rdx
jne 0x14001ae90
jmp 0x14001aedd
xor eax, eax
jmp 0x14001aedd
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.14001d4f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001db20
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001daa0
int3

Function at 0x14001c4b0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0x45f9
mov dword [rbp - 0xc], 0x22ee
mov dword [rbp - 0x3c], 0x429d
mov eax, dword [rbp - 0x10]
mov ecx, dword [rbp - 0xc]
add ecx, 0xffffdd11
mov edx, eax
xor edx, ecx
mov dword [rbp - 0x10], edx
mov ecx, dword [rbp - 0x3c]
mov qword [rbp - 0x18], 0x14df
mov r8, qword [rbp - 0x18]
mov r9, qword [rbp - 8]
add r9, 0x3427
and r9, r8
mov qword [rbp - 0x18], r9
cmp ecx, 0x2720
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x50], r8
jb 0x7c004090
mov edx, 0x16
mov eax, 0x9eb9
mov ecx, dword [rbp - 0xc]
mov r8d, dword [rbp - 0xc]
sub eax, ecx
xor r8d, 0x558aebb5
mov dword [rbp - 0x40], eax
mov r9, qword [rbp - 8]
add r9, 0xffffffffffffed78
mov qword [rbp - 0x38], r9
mov ecx, r8d
call fcn.7c0037b0
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x24], 0x623e
mov rax, qword [rbp - 0x50]
or rax, 0x784e
mov r9, qword [rbp - 0x38]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 8]
xor rax, 0x424a
and r9, 0x4f47
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x48]
mov dword [rbp - 0x10], edx
mov dword [rbp - 0x1c], ecx
add edx, 0x996
mov dword [rbp - 0x10], edx
cmp rax, r9
jbe 0x7c0040aa
mov eax, 0xe65
mov ecx, 0x7f53
mov edx, dword [rbp - 0xc]
xor edx, 0x64b
mov r8, qword [rbp - 8]
xor r8, 0x368b
mov r9, qword [rbp - 0x50]
mov qword [rbp - 0x18], r9
mov r10d, dword [rbp - 0x48]
imul r10d, edx
mov dword [rbp - 0x10], r10d
mov edx, dword [rbp - 0x1c]
mov r10d, dword [rbp - 0x48]
sub ecx, r10d
mov dword [rbp - 0x10], ecx
imul edx, edx
mov dword [rbp - 0x44], edx
mov ecx, dword [rbp - 0x44]
imul ecx, ecx
mov edx, dword [rbp - 0x44]
mov qword [rbp - 0x18], r8
imul ecx, edx
mov dword [rbp - 0x20], ecx
cmp eax, dword [rbp - 0x40]
je 0x7c004033
mov rax, qword [rbp - 0x50]
add rax, rax
mov qword [rbp - 0x18], rax
mov ecx, dword [rbp - 0x44]
imul ecx, dword [rbp - 0x1c]
imul ecx, ecx
cmp dword [rbp - 0x20], ecx
jbe 0x7c0040aa
mov rax, qword [rbp - 0x30]
add rsp, 0x70
pop rbp
ret
Function at 0x180002da0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x290
movdqa xmmword [rsp + 0x2f0], xmm6
movdqa xmmword [rsp + 0x300], xmm7
movdqa xmmword [rsp + 0x310], xmm8
movdqa xmmword [rsp + 0x320], xmm9
movdqa xmmword [rsp + 0x330], xmm10
movdqa xmmword [rsp + 0x340], xmm11
movdqa xmmword [rsp + 0x350], xmm12
movdqa xmmword [rsp + 0x360], xmm13
movdqa xmmword [rsp + 0x370], xmm14
movdqa xmmword [rsp + 0x380], xmm15
mov eax, dword [0x18031605c]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x290]
mov qword [rdx + 8], r8
call fcn.1800a0590
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x18031605c]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x180002f30
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x180002f4c
cmp rcx, r8
jl 0x180002f3f
mov qword [rdx + 0x80], rcx
test dword [0x18030fc40], 1
je 0x180002f7b
cmp byte [rsp + 0xd0], 0
je 0x180002f7b
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x180002aa0
mov rsp, r8
jmp rax