joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140475240
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x1404d3080]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, r8
mov rbx, rdx
mov edi, ecx
mov rdx, rsi
mov r8d, 0x400
lea rcx, [rsp + 0x50]
call fcn.1404a8600
test al, al
jne 0x140475292
mov rdx, rsi
lea rcx, str.Error__couldnt_expand_pattern__ls_n
call fcn.1404754d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rsp + 0x50]
test rax, rax
jne 0x140475358
lea rdx, [0x1404b4660]
mov r8, rbx
cmp edi, 0xfffffff6
je 0x1404752be
lea rdx, [0x1404b4668]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfreopen]
mov rsi, rax
test rax, rax
jne 0x1404752e0
lea rcx, [0x1404b4670]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rax, qword [rsi]
mov rcx, rbx
mov qword [rbx], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
test eax, eax
js 0x14047531f
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x40], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1404753e8
mov ecx, 0x42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov edx, 0xc0000000
mov dword [rsp + 0x28], eax
mov r8d, 3
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1404753a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.standard_handle_failed_to_create
call fcn.1404ac770
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4001
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov edi, eax
cmp eax, 0xffffffff
je 0x14047541a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov edx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup2]
cmp eax, 0xffffffff
je 0x14047541a
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
xor edx, edx
mov r9d, 0x1000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1404ada20
add rsp, 0x860
pop rdi
pop rsi
pop rbx
ret
lea rcx, [0x1404b46a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
Function at 0x1404a76a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1404d3080]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1404a76e5
xor al, al
jmp 0x1404a7732
cmp word [rbx], 0
je 0x1404a76fd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x1404a76f0
cmp word [rsp + 0x30], 0
je 0x1404a772b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x1404a7753
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x1404a7710
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1404ada20
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
Function at 0x1404a93d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1404ad9c0
sub rsp, rax
mov rax, qword [0x1404d3080]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x1404a948f
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
cmp rax, 1
jne 0x1404a94c1
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1404a946c
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1404a9460
cmp rcx, 1
jb 0x1404a94c1
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1404a9430
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1404a94c8
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
jmp 0x1404a94ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1404ada20
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1404aa330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x1404f8c0e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x1404aa3c5
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1404f8a60], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x1404f8a60], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x1404f8a60], rdx
call fcn.1404a7fd0
cmp eax, ebx
je 0x1404aa3be
lea rcx, str.Error__corrupted_constants_object
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov byte [0x1404f8c0e], 1
lea rdx, [0x1404b2e38]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1404aa450
cmp byte [0x1404f8c0d], 1
je 0x1404aa450
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1404f9960], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1404f9968], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1404f9970], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1404f9978], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1404f9980], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1404f9988], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1404f9990], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1404f9998], rax
mov byte [0x1404f8c0d], 1
mov r8, qword [0x1404f8a60]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x1404aa477
inc rax
test cl, cl
jne 0x1404aa460
mov ecx, r9d
jmp 0x1404aa47c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x1404aa483
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x1404aa4e8
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x1404aa4c5
inc rax
test cl, cl
jne 0x1404aa4b0
mov ecx, r9d
jmp 0x1404aa4ca
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x1404aa4d1
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x1404aa4a0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x1404aa518
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1404a6500
add rdi, 8
sub rbx, 1
jne 0x1404aa500
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1404ad560
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1404d3080]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1404ad612
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
cmp rax, 1
jne 0x1404ad648
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1404ad5ee
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1404ad5e1
cmp rcx, 1
jb 0x1404ad648
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1404ad5b0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1404ada20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
Function at 0x1404ad710
Capabilities:
Set environment variable

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0xb0
mov rax, qword [0x1404d3080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x1404f9080]
mov rbx, r8
mov rdi, rdx
mov r15, rcx
test rax, rax
jne 0x1404ad763
lea rcx, [0x1404b29ec]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1404f9080], rax
test rax, rax
jne 0x1404ad763
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov qword [rsp + 0xa8], rbp
lea rdx, str.environ
mov qword [rsp + 0xa0], rsi
mov rcx, rax
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r14
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r14, rax
test rbx, rbx
je 0x1404ad808
mov rdx, rbx
mov rcx, rdi
call fcn.1404ad560
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, r14
mov rcx, rbp
mov r8, rax
mov rbx, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x1404ad7ef
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x1404ad8ca
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1404ad8ca
movzx eax, byte [rdi]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov esi, 0x28
mov word [rsp + 0x30], r12w
test al, al
je 0x1404ad8a5
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r12b
lea rcx, [rsp + 0x24]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
cmp rax, 1
jne 0x1404ad927
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r12w
je 0x1404ad87d
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r12w
jne 0x1404ad870
cmp rcx, 1
jb 0x1404ad927
movzx ecx, word [rsp + 0x24]
inc rdi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r12w
dec rsi
movzx eax, byte [rdi]
test al, al
jne 0x1404ad830
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1404ad8ca
mov rcx, r15
call fcn.140003d80
sub qword [r14], 1
jne 0x1404ad8da
mov rax, qword [r14 + 8]
mov rcx, r14
call qword [rax + 0x30]
sub qword [rbp], 1
jne 0x1404ad8eb
mov rax, qword [rbp + 8]
mov rcx, rbp
call qword [rax + 0x30]
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1404ada20
add rsp, 0xb0
pop r15
pop rdi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3

Function at 0x1404ae428
Capabilities:
Parse pe header

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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov esi, edx
lea r14d, [rdx - 0xa20]
mov edi, edx
lea ecx, [r14 + 0xfa1]
mov r13, r9
mov ebx, r8d
mov r8d, dword [rsp + 0x90]
xor edi, 0xdec
mov r10d, edi
xor esi, 0x37b
xor r10d, 0xdb7
mov dword [r11 - 0x38], r10d
lea ebp, [r8 - 0x8b2]
lea eax, [rsi + 0x668]
mov edx, ebp
mov dword [rsp + 0x28], eax
lea r12d, [r8 + 0x2a2]
mov dword [rsp + 0x20], ecx
lea r9d, [r12 - 0x22c]
mov rcx, r13
xor edx, 0x18a9
call fcn.1400044fc
add ebx, 0xfffffc5f
movsxd rdx, eax
xor ebx, 0x101
mov eax, ebp
sub ebx, 0xafa
xor eax, 0x3b8
xor r14d, 0x11bf
cmp r12d, eax
jle 0x1400011b2
xor esi, 0x98
cmp r12d, esi
jle 0x1400010f0
xor edi, 0x15f9
lea r8d, [rdx - 0x757]
xor ebx, 0x178c
lea r9d, [rbp + 0x84b]
mov edx, edi
mov dword [rsp + 0x20], ebx
mov rcx, r13
call fcn.14000390c
mov edi, eax
jmp 0x1400011b2
mov eax, ebx
xor eax, ebp
cmp r14d, eax
jge 0x1400011b2
mov rcx, qword [section..data]
mov eax, dword [rcx + 0xfc]
mov r15d, dword [rcx + 0xf0]
add eax, 0x220
and eax, 0x7cc
cmp r15d, eax
jbe 0x1400011b2
mov rsi, rdx
mov ebp, edi
or rsi, 0x1b7f
or ebp, r14d
mov edx, dword [r13 + 0x10]
mov r8d, dword [rcx + 0xc]
sub edx, ebx
mov eax, dword [0x1400d1094]
xor r8d, ebx
mov r9d, dword [r13 + 0x1c]
add r8d, r12d
xor r9, rax
mov qword [rsp + 0x20], rdx
mov eax, dword [0x1400d1030]
mov rdx, rsi
xor r9, rax
mov ecx, ebp
mov eax, dword [r13 + 0xc0]
xor rcx, rax
call qword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov eax, dword [r13 + 0x24]
mov ecx, r14d
and rcx, rax
mov rax, qword [section..data]
mov edx, dword [rax + 0x84]
or rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentActCtx]
mov rcx, qword [section..data]
inc r15d
mov eax, dword [rcx + 0xfc]
add eax, 0x220
and eax, 0x7cc
cmp r15d, eax
ja 0x140001133
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
lea eax, [rdi + 0x6b6]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001424
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, dword [rsp + 0x80]
lea r12d, [r8 - 0xbaf]
mov ebp, eax
mov esi, r8d
xor ebp, 0xfea
xor esi, 0x15cf
mov rbx, r9
mov dword [rsp + 0x70], ebp
lea edi, [rax - 0x81e]
lea r13d, [rax - 0x49]
add eax, 0x5e5
mov dword [rsp + 0x80], eax
lea eax, [rdi + 0xa69]
cmp r12d, eax
jg 0x14000154a
mov eax, r12d
xor eax, 0x581
cmp r13d, eax
jg 0x1400014a3
add edi, 0x7f7
jmp 0x14000154a
mov rax, qword [section..data]
mov ecx, dword [rax + 0xe8]
sub ecx, dword [r9 + 0xec]
cmp edi, ecx
jb 0x14000154a
mov eax, dword [r9 + 0x1c]
mov ecx, 0x13a3
imul eax, edi
add eax, ecx
cmp edi, eax
je 0x14000154a
mov r14d, ebp
mov r15d, r12d
or r14d, edi
btc r15d, 0xc
and r14d, ecx
mov ebp, edi
or r15d, 0xa7b
movsxd rax, r13d
mov ecx, r14d
movsxd rdx, esi
or rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov r9d, dword [rbx + 0xfc]
xor esi, r15d
mov eax, dword [rbx + 0x24]
or r9d, r12d
or eax, dword [rsp + 0x80]
sub r9d, r13d
imul ecx, esi, 0x13a3
mov r8, rbx
lea edx, [rsi + r13]
mov dword [rsp + 0x20], eax
xor edx, dword [rbx + 0x68]
call fcn.1400030e0
mov edx, dword [rbx + 0x1c]
add ebp, 2
imul edx, edi
mov r13d, eax
add edx, 0x13a3
cmp ebp, edx
jne 0x1400014eb
mov ebp, dword [rsp + 0x70]
add dword [rbx + 0xf8], 0xfffffa8e
lea r8d, [r13 + 0x49]
mov edx, esi
mov dword [rsp + 0x20], r8d
mov r8, rbx
lea r9d, [r13 - 0x5de]
xor edx, 0x1040
mov ecx, edi
call fcn.1400030e0
mov edx, dword [rbx + 0x68]
add eax, 0xfffffb5c
mov ecx, dword [rbx + 0x3c]
add edx, 0x33e6cc2c
add edx, ecx
mov dword [rbx + 4], edx
cmp esi, eax
jge 0x1400015c2
mov eax, ecx
sub eax, dword [rbx + 0x10]
sub eax, 0x43dd1
mov dword [rbx + 0x88], eax
mov eax, dword [rbx + 0x24]
xor eax, dword [rbx + 0x1c]
mov rcx, qword [section..data]
xor eax, 0x1695a6
add dword [rcx + 0x88], eax
add dword [rbx + 0x88], 0xfffffdb0
mov rbx, qword [rsp + 0x60]
lea eax, [rbp + 0x95b]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400020e8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rsp + 0x68]
lea r8d, [rcx - 0x56]
mov ebx, r9d
mov r10d, eax
mov r11d, ecx
lea r9d, [rdx + 0x1d5]
xor r10d, 0x115
xor ebx, 0x13c7
lea edx, [rax + 0xd1]
xor r11d, 0x3e3
lea edi, [rax + 0x496]
lea eax, [r8 - 0x836]
cmp r11d, eax
je 0x140002190
lea eax, [r8 - 0x49]
cmp r10d, eax
je 0x140002201
lea eax, [rdi - 0x139]
cmp r8d, eax
je 0x140002201
mov rdx, qword [rsp + 0x60]
mov rcx, qword [section..data]
mov eax, dword [rdx + 0xfc]
cmp dword [rcx + 8], eax
je 0x14000217f
mov eax, dword [rcx + 0x118]
add eax, 0x4dc52
mov dword [rdx + 0xd0], eax
jmp 0x140002201
mov ecx, dword [rdx + 0x20]
mov eax, dword [rdx + 0x98]
lea ecx, [rax + rcx*2]
mov dword [rdx + 0x20], ecx
jmp 0x140002201
mov rcx, qword [rsp + 0x60]
or edx, r10d
sub edx, dword [rcx + 0x1c]
cmp r8d, edx
jae 0x140002201
mov eax, r9d
and eax, r8d
add eax, r10d
cmp r8d, eax
jle 0x140002201
mov edx, dword [rcx + 0x28]
mov eax, r11d
sub eax, ebx
imul edx, r11d
sub eax, 0x7cc
add r9d, 0xfffff585
imul r9d, dword [rcx + 0xf0]
movsxd r10, eax
mov rax, qword [section..data]
mov qword [rsp + 0x20], r10
mov r8d, dword [rax + 0xec]
imul r8d, dword [rcx + 0xf4]
mov ecx, dword [rcx + 0x10]
mov eax, edi
or rcx, rax
or rcx, 0x132d
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [rbx + 0xa7b]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400030e0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
xor dword [0x1400d1108], 0xb2619
lea r10d, [r9 - 0x9c3]
mov r9d, dword [r8 + 0x100]
lea ecx, [r10 + 0x7cc]
mov ebx, dword [rsp + 0x50]
lea eax, [rdx - 0x9f]
xor r9d, 0x3ae8cb27
lea r11d, [rdx - 0x1040]
add ebx, 0xfffff016
mov dword [r8], r9d
cmp eax, ecx
jl 0x14000318a
lea eax, [r10 + 0xfa1]
cmp r11d, eax
je 0x14000314e
mov eax, dword [r8 + 0xc8]
add eax, dword [r8 + 0x60]
xor eax, 0xfff4cb9f
sub r9d, eax
mov dword [r8], r9d
jmp 0x14000318a
mov rcx, qword [section..data]
mov eax, dword [rcx + 0x80]
xor eax, r10d
xor eax, 0xfc3
cmp dword [r8 + 0xf0], eax
ja 0x14000318a
mov ecx, dword [rcx + 0xf0]
mov edx, ebx
and edx, 0x11bf
sub edx, dword [r8 + 0x38]
mov r8d, r11d
and rcx, r8
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor ebx, 0x13c7
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140003198
Capabilities:
Create pipe
Encode data using xor

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, 0x40
mov rbx, qword [rsp + 0x88]
lea r9d, [rcx + 0x50f]
mov ecx, dword [rsp + 0x80]
lea ebp, [r8 - 0xa48]
mov edi, edx
lea eax, [rbp + 0xce5]
xor edi, 0x15cf
mov edx, ecx
mov esi, ecx
mov r10d, r8d
xor edx, 0x699
xor esi, 0x1a04
xor r10d, 0x1c02
mov r11d, edi
cmp r9d, eax
je 0x140003220
xor ecx, 0x101
add ecx, 0xdd
cmp ebp, ecx
jg 0x140003220
lea rax, [0x1400d1010]
mov qword [rbx + 0x110], rax
cmp edx, r9d
jle 0x14000328a
add edi, 0x9c3
xor r8d, r8d
mov rcx, qword [section..data]
mov eax, dword [rbx + 0x54]
sub eax, dword [rbx + 0x8c]
add eax, 0x10e205
xor dword [rcx + 0x60], eax
mov eax, 0xc
sub eax, dword [rbx + 0x54]
add dword [rbx + 0x34], eax
mov eax, dword [rbx + 0xa0]
mov rcx, qword [rbx + 0xd8]
xor dword [rcx + r8], eax
add r8, 4
mov eax, dword [rbx + 0xe0]
add dword [rbx + 0xa0], eax
mov eax, dword [rbx + 0x100]
xor eax, dword [rbx + 0x34]
xor eax, 0x52
mov dword [rbx + 0x34], eax
cmp r8, 0x12858
jl 0x14000322e
lea eax, [r9 - 0x62f]
cmp r11d, eax
jle 0x140003346
mov eax, dword [rbx + 0x18]
or eax, edx
cmp edi, eax
ja 0x140003346
mov ecx, dword [0x1400d1114]
add ecx, esi
cmp edi, ecx
jae 0x140003346
sub edx, ebp
mov eax, r10d
sub eax, ebp
movsxd r15, edx
mov r14d, ebp
movsxd r12, eax
imul r14d, r10d
or r15, 0xf8a
mov ecx, dword [0x1400d1044]
mov rax, qword [section..data]
mov r11d, dword [rbx + 0x2c]
mov r10d, dword [rbx + 0x50]
and r11d, 0x11bf
or r10d, dword [rbx + 0x58]
mov r8d, dword [rax + 0x118]
mov r9d, dword [rbx + 0x74]
sub r8d, dword [rbx + 0xc0]
add r9d, dword [rbx + 0x118]
mov edx, dword [rbx + 0x40]
add r8d, dword [rbx + 0x20]
add edx, r14d
or r9d, dword [rbx + 0x54]
imul ecx, ebp
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [0x1400d1114]
inc edi
add ecx, esi
cmp edi, ecx
jb 0x1400032d2
mov rbx, qword [rsp + 0x60]
lea eax, [rsi + 0x5de]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret