joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41daee
Capabilities:
Impersonate user

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x41dc99
mov rdi, rcx
mov r14, qword [rcx + 0x28]
test r14, r14
je 0x41dc99
mov rbx, qword [rdi + 0x40]
test rbx, rbx
je 0x41dc99
mov rdx, qword [rdi]
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.0042a5d0
mov rdx, qword [rdi + 0x18]
lea r15, [rsp + 0x50]
mov rcx, r15
mov r8, r14
call fcn.0042a5d0
mov rdx, qword [rdi + 0x30]
lea rdi, [rsp + 0x68]
mov rcx, rdi
mov r8, rbx
call fcn.0042a5d0
lea r12, [rsp + 0x30]
mov qword [r12], 0
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.00427914
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea r14, [rsp + 0x98]
mov rcx, r14
call fcn.00427914
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea r15, [rsp + 0xb0]
mov rcx, r15
call fcn.00427914
mov rsi, qword [rbx]
mov rdi, qword [r14]
mov rbx, qword [r15]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, 3
call sub.ADVAPI32.dll_LogonUserW
test eax, eax
je 0x41dbf4
mov rcx, qword [rsp + 0x30]
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_CloseHandle
cmp qword [rsp + 0xb8], 0
je 0x41dc10
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0xa0], 0
je 0x41dc2c
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x88], 0
je 0x41dc48
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x70], 0
je 0x41dc63
mov r8, qword [rsp + 0x68]
mov rcx, qword [0x004a30e8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x58], 0
je 0x41dc7e
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x004a30e8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x40], 0
je 0x41dc99
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x004a30e8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x42784d
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx + 8]
jne 0x427874
mov rcx, rsi
call fcn.00436713
mov rdx, qword [rsi + 0x10]
mov rbx, qword [rsi]
mov byte [rbx + rdx], 0
inc rdx
mov qword [rsi + 0x10], rdx
mov r15, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
cmp rdx, r15
jne 0x42789f
mov rcx, rdi
call fcn.00436713
mov r15, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov r14, qword [rdi]
mov byte [r14 + rdx], 0
inc rdx
mov qword [rdi + 0x10], rdx
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rbx
mov r9, r14
call sub.SHELL32.dll_ShellExecuteA
test r15, r15
je 0x4278e4
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
cmp qword [rsi + 8], 0
je 0x427907
mov r8, qword [rsi]
mov rcx, qword [0x004a30e8]
xor edx, edx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140440058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1404401df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140440089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14044006f
add dl, dl
jne 0x140440096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404400f6
xor eax, eax
add dl, dl
jne 0x1404400a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404401ad
add dl, dl
jne 0x1404400b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404400c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404400d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404400dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1404400ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14044007e
mov eax, 1
add dl, dl
jne 0x140440106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140440113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404400fb
sub eax, ebx
mov ebx, 1
jne 0x14044014c
mov ecx, 1
add dl, dl
jne 0x14044012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14044013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140440123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14044007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140440168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140440175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14044015d
cmp eax, 0x7d00
jae 0x14044019b
cmp eax, 0x500
jb 0x140440196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14044007e
cmp eax, 0x7f
ja 0x14044019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14044007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1404401d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14044007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x28
mov edx, 1
mov ecx, 0x2faf0800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
test rax, rax
je 0x140001115
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
mov edx, 0x1ff
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x140005080]
mov r8d, 3
mov r9, rax
mov rdx, rax
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub r8, 1
jne 0x140001050
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
mov rax, qword [rcx + 0x70]
mov qword [rdx + 0x70], rax
mov eax, dword [rcx + 0x78]
mov dword [rdx + 0x78], eax
movzx eax, word [rcx + 0x7c]
mov word [rdx + 0x7c], ax
movzx eax, byte [rcx + 0x7e]
mov byte [rdx + 0x7e], al
call r9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001120
mov rcx, rax
lea rdx, [0x1400012d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001c58
Capabilities:
Parse pe header

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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140019129]
call fcn.140004540
mov rbp, rax
test rax, rax
je 0x1400019e0
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.14000f4d0
test eax, eax
js 0x1400019c0
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x1400019f6
cmp byte [r12 + 0x10], 1
je 0x1400019a0
mov rdi, rax
test rsi, rsi
jne 0x140001938
jmp 0x140001980
add rdi, rbx
sub rsi, rbx
je 0x140001980
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001930
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002d90
mov rcx, r13
call sub.msvcrt.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001980
jmp 0x140001975
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002d90
jmp 0x14000197d
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002c10
jmp 0x140001988
mov r9d, esi
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002d90
jmp 0x14000197d
Function at 0x140001ac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [rcx + 0x5074], 1
mov rsi, rcx
mov rbx, rdx
jne 0x140001cc0
cmp byte [rdx + 0x11], 0x6e
je 0x140001be0
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.1400084e0
mov r12, rax
test rax, rax
je 0x140001cd6
lea rcx, [rsi + 0x70]
lea rdx, [0x140019129]
call fcn.140004540
mov rbp, rax
test rax, rax
je 0x140001c50
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rsi]
mov rcx, rax
call fcn.14000f4d0
test eax, eax
js 0x140001ca0
cmp byte [rbx + 0x10], 1
je 0x140001c00
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001cee
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001b96
jmp 0x140001c70
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001c80
sub rsi, rbx
je 0x140001c70
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001b70
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002d90
mov esi, 0xffffffff
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x140001c13
call fcn.140001a20
mov esi, eax
test eax, eax
js 0x140001c38
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.140001490
mov esi, eax
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rbx + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002c10
jmp 0x140001beb
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov esi, 0xffffffff
call fcn.140002c10
jmp 0x140001c1b
xor esi, esi
jmp 0x140001bd6
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002d90
jmp 0x140001bd1
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002d90
mov esi, 0xffffffff
jmp 0x140001c13
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002c10
mov esi, 0xffffffff
jmp 0x140001beb
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002d90
jmp 0x140001ccc
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002d90
jmp 0x140001cb6
Function at 0x140001d10
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140019129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.140004540
mov rsi, rax
test rax, rax
je 0x140001f11
mov rax, qword [0x14001f3a0]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rsi
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140008b00
mov rdi, rax
test rax, rax
jne 0x140001d88
mov edi, 0xffffffff
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor r8d, r8d
mov edx, eax
mov rcx, rsi
call fcn.14000f4d0
test eax, eax
js 0x140001ec0
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001ee0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rdi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov edx, dword [rbx + 0x24]
bswap eax
bswap ecx
mov dword [rbx + 0x20], eax
mov eax, eax
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
sub rdi, rax
bswap edx
mov qword [rbx], rdi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, edi
mov dword [rbx + 0x2c], ecx
mov dword [0x140023040], ecx
mov rcx, rsi
call fcn.14000f4d0
movsxd rdi, dword [rbx + 0x28]
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x140001f1b
mov r9, rsi
mov r8d, 1
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001ea0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov edi, eax
test eax, eax
jne 0x140001f00
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001d70
nop word [rax + rax]
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, r8
jb 0x140001e70
jmp 0x140001d70
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002d90
jmp 0x140001d6b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002d90
jmp 0x140001d6b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002d90
jmp 0x140001d6b
lea rcx, str.Error_on_file._n
call fcn.140002c10
jmp 0x140001d6b
mov edi, 0xffffffff
jmp 0x140001d78
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002d90
jmp 0x140001d6b
Function at 0x140007d80
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000eb80
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea rbx, [rsp + 0x20]
call fcn.140009100
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007dc8
xor eax, eax
add rsp, 0x4020
pop rbx
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, rbx
call fcn.140008f30
mov rcx, rax
test rax, rax
je 0x140007db6
cmp byte [rax], 0
je 0x140007db6
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x140007e70
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140009100
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400081b0
Capabilities:
Delete directory

Disassembly:
push r15
mov eax, 0x44b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000eb80
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea r12, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.140009100
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
mov rcx, r12
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000821c
cmp ax, 0x5c
jne 0x140008270
lea rdx, [0x14001b4ca]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000f120
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140008288
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x14001b4c6]
mov rcx, r12
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000821c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsp + 0x30]
mov rcx, r12
mov r8, rbp
mov r15, rbp
call fcn.1400082f0
jmp 0x1400082cf
mov rdi, rbp
mov ecx, 0x46
mov rsi, rbx
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, r12
mov rbp, r15
call fcn.1400082f0
mov rdx, rbx
mov rcx, r14
call fcn.14000f1f0
test eax, eax
je 0x1400082b0
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140008247

Function at 0x1400082f0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000eb80
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x14001b4ce]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140008330
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x14001b4d2]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140008321
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, rbp
test byte [rbx], 0x10
je 0x140008390
call fcn.1400093e0
test eax, eax
jne 0x1400083b8
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008f30
mov rcx, rbx
call fcn.1400081b0
jmp 0x140008321
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x140008321
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x140008321
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140008321
Function at 0x140008600
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000eb80
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001b56c]
call fcn.140004540
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.1400084e0
mov rdi, rax
test rbx, rbx
je 0x1400086f9
test rax, rax
je 0x1400086ec
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x1400086e8
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140008698
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008650
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x1400086c1
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x1400086b9
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008650
mov rcx, rdi
call sub.msvcrt.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x1400086c6
test rbx, rbx
je 0x1400086f9
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x140008706
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
jmp 0x1400086d6
Function at 0x140008770
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000eb80
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
mov rdx, rcx
lea rbp, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, rsi
call fcn.140009100
mov edx, 1
lea rcx, [0x140007c30]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov r12, qword [fcn.140016d30]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rdi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140008918
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002cf0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140008b00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140008bf0
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000f4d0
test eax, eax
js 0x140008bf0
mov rcx, r12
call fcn.14000f570
movsxd rbx, eax
cmp rbx, rdi
jb 0x140008bf0
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140008bf0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000f4d0
test eax, eax
js 0x140008bf0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140008bf0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140008bda
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008c10
mov rbx, r15
test rbx, rbx
jne 0x140008bc0
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140008b69
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140008bf2

Function at 0x140009390
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140023300]
test rax, rax
je 0x1400093ca
mov dword [rsp + 0x20], 0x18
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x48
ret
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002c80
mov eax, 0xffffffff
jmp 0x1400093c5