joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180146d90
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180146db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180126bd0
or eax, 0xffffffff
jmp 0x180146db2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1801498e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x18014995b
cmp word [rcx], si
je 0x18014995b
lea rdx, [0x1801789f0]
call fcn.18014c8f8
test eax, eax
je 0x18014995b
lea rdx, [0x180178a08]
mov rcx, rbx
call fcn.18014c8f8
test eax, eax
jne 0x180149951
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180149978
mov eax, dword [rsp + 0x30]
jmp 0x18014998a
mov rcx, rbx
call fcn.18012d718
jmp 0x18014998a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x18014997c
xor eax, eax
jmp 0x18014998a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18014998a
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18014999c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.18013b958
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180149a3f
cmp edi, dword [rsp + 0x30]
je 0x180149a38
test ebp, ebp
je 0x180149a38
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x180149a14
sub dx, 0x61
cmp dx, 0x19
ja 0x180149a20
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x180149a01
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x180149a24
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x180149a41
mov eax, 1
jmp 0x180149a41
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18014c22c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180356880]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18014c276
call fcn.180126c1c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.180126c40
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.180122170
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18011b930
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18014c281
lea eax, [rbx + 1]
jmp 0x18014c263
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 0x18014c261
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18014c263
Function at 0x18014c478
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.180122f3c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18014c502
cmp byte [rbp - 0x21], r15b
je 0x18014c4fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18014c538
call fcn.18013be20
test eax, eax
jne 0x18014c524
cmp byte [rbp - 0x21], r15b
je 0x18014c51c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18014c538
cmp byte [rbp - 0x21], r15b
je 0x18014c535
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.180132c70
test eax, eax
jne 0x18014c5d8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180122f3c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18014c577
cmp byte [rbp - 0x21], r15b
je 0x18014c5ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18014c5ac
call fcn.18013be20
test eax, eax
jne 0x18014c598
cmp byte [rbp - 0x21], r15b
je 0x18014c591
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18014c5ac
cmp byte [rbp - 0x21], r15b
je 0x18014c5a9
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.180132c70
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18014c5d8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18014c5db
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18014c5e9
mov rcx, rdi
call fcn.18013b480
cmp byte [rbp + 0x3f], r15b
je 0x18014c5f8
mov rcx, qword [rbp + 0x27]
call fcn.18013b480
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 0x18014def0
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140015c20]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140015c30]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140019008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140015b90]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000d170
mov rcx, qword [0x140015cb0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140015c10]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000cf80
mov ebx, dword [0x140019028]
lea r12d, [rbx + 1]
movsxd r12, r12d
shl r12, 3
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, qword [0x140019020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub r12, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [rdi + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [rdi + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rbx, r12
jne 0x140001288
add rbx, rbp
mov qword [rbx], 0
mov qword [0x140019020], rbp
call fcn.14000ccc0
mov rax, qword [0x140015ba0]
mov r8, qword [0x140019018]
mov ecx, dword [0x140019028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140019020]
call fcn.14000cce0
mov ecx, dword [0x14001900c]
mov dword [0x140019010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140019008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140015c30]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000e540
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140015c50]
mov rcx, qword [0x140015c40]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140019010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140015c70]
mov rcx, qword [0x140015c60]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rbx, rax
jmp 0x1400012be
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001880
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rdx
lea rdx, [0x140010129]
mov rbx, rcx
call fcn.1400040f0
mov rbp, rax
test rax, rax
je 0x1400019b0
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001990
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r13, rax
test rax, rax
je 0x1400019c6
cmp byte [r12 + 0x10], 1
je 0x140001970
mov rdi, rax
test rsi, rsi
jne 0x140001908
jmp 0x140001950
add rdi, rbx
sub rsi, rbx
je 0x140001950
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001900
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002a40
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.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 0x140001950
jmp 0x140001945
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.140002a40
jmp 0x14000194d
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.1400028e0
jmp 0x140001958
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.140002a40
jmp 0x14000194d
Function at 0x1400019f0
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 byte [rdx + 0x11], 0x6e
mov rbx, rcx
mov r13, rdx
mov rsi, r8
je 0x140001b10
lea rdx, [0x140010254]
mov rcx, r8
call fcn.1400040f0
mov r12, rax
test rax, rax
je 0x140001c01
lea rdx, [0x140010129]
mov rcx, rbx
call fcn.1400040f0
mov rbp, rax
test rax, rax
je 0x140001b98
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx + 0x1000]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001be0
cmp byte [r13 + 0x10], 1
je 0x140001b48
mov ecx, 0x2000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001c22
mov esi, dword [r13 + 0xc]
test rsi, rsi
jne 0x140001abe
jmp 0x140001bb0
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140001bc0
sub rsi, rbx
je 0x140001bb0
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001a98
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002a40
mov ebx, 0xffffffff
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140001b5b
call fcn.140001880
mov rdi, rax
test rax, rax
je 0x140001b7a
mov rcx, rax
mov rdx, rsi
call fcn.140004190
mov rcx, rdi
mov ebx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test ebx, ebx
js 0x140001b80
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, r13
mov rcx, rbp
call fcn.140001490
mov ebx, eax
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ebx, 0xffffffff
nop
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.1400028e0
jmp 0x140001b36
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.1400028e0
jmp 0x140001b63
xor ebx, ebx
jmp 0x140001aff
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002a40
jmp 0x140001afa
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002a40
mov ebx, 0xffffffff
jmp 0x140001b5b
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.140002a40
jmp 0x140001b36
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002a40
jmp 0x140001bf7
Function at 0x1400072c0
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000dd50
sub rsp, rax
mov rbx, r8
mov r14, rcx
mov rcx, rdx
mov rdi, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rax, [rsi + rax + 1]
cmp rax, 0xfff
ja 0x1400073c0
mov dword [rsp + 0x20], 0x5c
lea rsi, [rsp + 0x30]
mov r9, rdi
lea r8, str._s_c
mov edx, 0x1000
mov rcx, rsi
mov ebp, 0x1000
lea r12, [0x140011be5]
lea r13, [rsp + 0x1030]
call fcn.14000e390
mov edx, 0x5c
mov rcx, rbx
movsxd rdi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
sub rbp, rdi
add rdi, rsi
mov r15, rax
test rax, rax
jne 0x140007376
jmp 0x1400073d0
lea rcx, [r15 + 1]
mov edx, 0x5c
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov r15, rax
test rax, rax
je 0x1400073d0
mov qword [rsp + 0x20], rbx
mov r9d, r15d
mov rcx, rdi
mov r8, r12
sub r9d, ebx
mov rdx, rbp
call fcn.14000e390
mov rcx, rsi
call fcn.1400040b0
test eax, eax
jne 0x140007360
mov rdx, r13
mov rcx, rsi
mov r8d, 0x1000
call fcn.140008420
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007360
mov eax, 0xffffffff
jmp 0x1400073d2
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400073f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000dd50
sub rsp, rax
mov rsi, rdx
lea rdx, [0x140011bea]
call fcn.1400040f0
mov rbx, rax
test rax, rax
je 0x1400074de
mov rcx, rsi
lea rdx, [0x140011bed]
call fcn.1400040f0
mov rsi, rax
test rax, rax
je 0x1400074d6
lea rdi, [rsp + 0x20]
jmp 0x14000747f
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r8, rax
test rax, rax
je 0x1400074c0
mov r9, rsi
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x1400074b0
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x1400074b0
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
je 0x140007440
xor edi, edi
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, edi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov edi, 0xffffffff
jmp 0x14000748d
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x14000748b
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
jmp 0x1400074b8
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov edi, 0xffffffff
jmp 0x14000749d
Function at 0x1400074f0
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.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x1400075e0
xor edx, edx
mov r8d, 2
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x1400075e0
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
movsxd rbx, eax
cmp rbx, rdi
jb 0x1400075e0
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 0x1400075e0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x1400075e0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, rbx
jne 0x1400075e0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x1400075ca
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
je 0x140007600
mov rbx, r15
test rbx, rbx
jne 0x1400075b0
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007559
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.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 0x1400075e2
Function at 0x140007650
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000dd50
sub rsp, rax
lea r8, str._s
mov edx, 0x1000
lea r14, [rsp + 0x280]
mov qword [rsp + 0x22d0], rcx
mov r9, rcx
mov rcx, r14
call fcn.140007610
cmp eax, 0xfff
jg 0x1400077b8
lea rsi, [rsp + 0x30]
lea ebx, [rax - 1]
mov r12d, 0x1000
mov rcx, r14
mov rdx, rsi
sub r12d, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400077b8
movsxd rax, ebx
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [rsp + 0x5c]
lea rbp, [0x140011c0a]
lea rax, [r14 + rax*2]
lea r15, [0x140011c0e]
mov qword [rsp + 0x20], rax
movsxd rax, r12d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140007750
mov rdx, r15
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140007750
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
lea r8, [0x140011c14]
call fcn.140007610
cmp eax, r12d
jge 0x140007750
mov eax, dword [rsp + 0x30]
mov rcx, r14
test al, 0x10
je 0x140007798
test ah, 4
je 0x140007749
cmp dword [rsp + 0x54], 0xa000000c
je 0x1400077b0
call fcn.140007650
nop
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x1400076f3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x22d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x1400076f3
jmp 0x14000775c
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007750
mov eax, 0xffffffff
jmp 0x14000777e

Function at 0x140007950
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.14000dd50
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140008420
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x1400079c8
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x1400079c8
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140008320
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x140007e80
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.14000dd50
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
add rcx, 0x10
lea rbp, [rsp + 0xa0]
mov rdx, rsi
call fcn.140008420
mov edx, 1
lea rcx, [0x1400077c0]
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 [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call r12
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.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.api_ms_win_crt_stdio_l1_1_0.dll__fileno
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.api_ms_win_crt_stdio_l1_1_0.dll__fileno
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 0x140008020
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.Failed_to_create_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002cc0
mov eax, 0xffffffff
jmp 0x14000800e