joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f0100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f00e0]
test rbx, rbx
je 0x140001ebc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001eb3
test eax, eax
jne 0x140001eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ce100]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ce100]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ce100]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x1400026c0
cmp byte [rbx], 0
je 0x140002688
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400026d0
test al, 0x10
je 0x140002688
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fullpath
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdx, rax
test rax, rax
je 0x1400026f8
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140002650
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x1400025f8
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x1400025f8
cmp cl, 0x2f
jne 0x1400026a8
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x1400026e0
test eax, eax
je 0x1400025d9
movzx ecx, byte [rsp + 0x20]
mov byte [r8], cl
test al, 2
je 0x1400025d9
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x1400025d9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x1400025f8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x140002695
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor edx, edx
mov dword [rax], 2
jmp 0x140002695
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x1400025d9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x140002695
Function at 0x140002e10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
je 0x140002e60
cmp edx, 7
ja 0x140002e60
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002e6d
xor edx, edx
test al, 0x10
jne 0x140002e3d
test al, 1
je 0x140002e3d
and ebx, 2
mov edx, ebx
jne 0x140002e4a
mov eax, edx
add rsp, 0x20
pop rbx
ret
cmp eax, 5
jne 0x140002e60
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0xd
or edx, 0xffffffff
jmp 0x140002e3d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x16
jmp 0x140002e55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
ja 0x140002e45
cmp eax, 1
jbe 0x140002e60
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 2
jmp 0x140002e55
Function at 0x14003b4f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
test byte [rcx + 0x41], 8
jne 0x14003b4b5
mov rax, qword [rcx + 0xe0]
test rax, rax
je 0x14003b3ac
test byte [rax + 0x45], 0x10
je 0x14003b4cd
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x14003b410
mov rax, qword [0x1400ac6f0]
cmp rax, rbx
je 0x14003b403
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x28]
mov qword [rcx + 0x28], rdx
mov qword [rdx + 0x20], rcx
test rax, rax
je 0x14003b470
mov rdx, qword [rax + 0x20]
movq xmm1, rax
movq xmm0, rdx
punpcklqdq xmm0, xmm1
movups xmmword [rbx + 0x20], xmm0
mov qword [rdx + 0x28], rbx
mov rax, qword [rbx + 0x28]
mov qword [rax + 0x20], rbx
mov qword [0x1400ac6f0], rbx
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
test sil, 1
jne 0x14003b403
mov rcx, rbx
call fcn.140054f80
test rax, rax
je 0x14003b492
mov rcx, qword [rbx + 0x10]
test sil, 2
je 0x14003b448
and dword [rbx + 0x40], 0xffdfffff
mov rdi, rcx
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, qword [rbx + 0x30]
xor r8d, r8d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64
test eax, eax
je 0x14003b45d
and esi, 4
je 0x14003b488
mov rcx, qword [rbx + 0x10]
and dword [rbx + 0x40], 0xffdfffff
mov rdi, rcx
jmp 0x14003b437
movq xmm0, rbx
punpcklqdq xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
jmp 0x14003b3fc
mov ecx, 1
call fcn.1400578d0
call fcn.1400525a0
mov ecx, eax
call fcn.140050b30
mov rdx, rbx
lea rcx, str.reopening__pB:__s
mov r8, rax
call fcn.14002dad0
jmp 0x14003b403
lea r8, str.bfd_cache_lookup_worker
mov edx, 0xf1
lea rcx, str.___w_arm_none_eabi_gcc_xpack_arm_none_eabi_gcc_xpack_build_win32_x64_sources_binutils_gdb_binutils_2.40_arm_none_eabi_12.3.rel1_bfd_cache.c
call fcn.14000f9b0
lea r8, str.bfd_cache_lookup_worker
mov edx, 0xf5
lea rcx, str.___w_arm_none_eabi_gcc_xpack_arm_none_eabi_gcc_xpack_build_win32_x64_sources_binutils_gdb_binutils_2.40_arm_none_eabi_12.3.rel1_bfd_cache.c
call fcn.14000f9b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
add r8, rdx
not eax
cmp rdx, r8
jae 0x14003b528
lea r9, [0x1400d75a0]
nop dword [rax + rax]
movzx ecx, byte [rdx]
add rdx, 1
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [r9 + rcx*4]
cmp r8, rdx
jne 0x14003b508
not eax
ret
mov eax, ecx
ret

Function at 0x140047af0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
movzx edx, byte [rcx]
lea r8, [rcx + 1]
test dl, dl
je 0x140047b16
mov ecx, eax
add r8, 1
shl ecx, 5
add eax, ecx
add eax, edx
movzx edx, byte [r8 - 1]
test dl, dl
jne 0x140047b00
ret
Function at 0x140050e20
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x140050e68
lea rdx, str.default
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140050e80
test rsi, rsi
je 0x140050eb0
and byte [rsi + 0x44], 0xbf
mov rcx, rbx
call fcn.140091700
test rax, rax
je 0x140050e5e
mov qword [rsi + 8], rax
add rsp, 0x28
pop rbx
pop rsi
ret
lea rcx, str.GNUTARGET
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
test rax, rax
jne 0x140050e31
nop dword [rax]
mov rax, qword [0x1400ac6c0]
test rax, rax
cmove rax, qword [0x1400ce320]
test rsi, rsi
je 0x140050e5e
or byte [rsi + 0x44], 0x40
mov qword [rsi + 8], rax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140091700

Function at 0x140056590
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r10d, dword [rcx + 0x18]
mov rbx, r8
mov rsi, rdx
xor edx, edx
mov r8, qword [rcx]
mov eax, dword [rbx + 0x10]
mov rdi, rcx
div r10d
lea rdx, [r8 + rdx*8]
mov rax, qword [rdx]
test rax, rax
jne 0x14005387f
jmp 0x140053912
mov rdx, rax
mov rax, qword [rax]
test rax, rax
je 0x140053912
cmp rbx, rax
jne 0x140053870
mov rax, qword [rbx]
mov qword [rdx], rax
mov qword [rbx + 8], rsi
test rsi, rsi
je 0x1400538f8
movzx ecx, byte [rsi]
lea r9, [rsi + 1]
test ecx, ecx
je 0x1400538e1
xor eax, eax
mov edx, ecx
add r9, 1
shl edx, 0x11
add edx, ecx
movzx ecx, byte [r9 - 1]
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
test ecx, ecx
jne 0x1400538a0
sub r9, rsi
sub r9d, 1
mov edx, r9d
shl edx, 0x11
add edx, r9d
add eax, edx
xor edx, edx
mov ecx, eax
shr ecx, 2
xor ecx, eax
mov eax, ecx
div r10d
lea r8, [r8 + rdx*8]
mov rax, qword [r8]
mov dword [rbx + 0x10], ecx
mov qword [rbx], rax
mov qword [r8], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x1b6
lea rcx, str.___w_arm_none_eabi_gcc_xpack_arm_none_eabi_gcc_xpack_build_win32_x64_sources_binutils_gdb_binutils_2.40_arm_none_eabi_12.3.rel1_bfd_hash.c
call fcn.14003af20
mov r10d, dword [rdi + 0x18]
mov r8, qword [rdi]
jmp 0x140053893
lea r8, str.bfd_hash_rename
mov edx, 0x244
lea rcx, str.___w_arm_none_eabi_gcc_xpack_arm_none_eabi_gcc_xpack_build_win32_x64_sources_binutils_gdb_binutils_2.40_arm_none_eabi_12.3.rel1_bfd_hash.c
call fcn.14000f9b0
nop
nop
nop
nop
nop
nop
mov rax, qword [rcx + 0xe0]
add rax, 0x60
mov qword [rcx], rdx
lea r8, [rcx - 0x18]
mov rcx, rax
jmp 0x140053840

Function at 0x140056680
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8d, 1
mov rdx, rcx
lea rcx, [0x1400ac1a0]
jmp fcn.140053640
Function at 0x140059cd0
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x1400ad2e0]
test rax, rax
je 0x140059cf0
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor edx, edx
xor ecx, ecx
call rsi
mov ebx, eax
test eax, eax
jne 0x140059d20
mov rax, qword [0x1400ad2e0]
test rax, rax
je 0x140059d50
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.1400aacd0
mov ecx, ebx
mov qword [0x1400ad2e0], rax
mov rdx, rax
call rsi
test eax, eax
jne 0x140059d03
mov rcx, qword [0x1400ad2e0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [0x1400ad2e0], 0
lea rcx, [0x1400cd228]
call fcn.1400aadc0
mov qword [0x1400ad2e0], rax
jmp 0x140059ce2
Function at 0x14008a390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 8]
movdqu xmm0, xmmword [rdx]
mov rax, qword [rax + 0x380]
mov rdi, rcx
movzx ebp, byte [rax + 0x3ed]
mov rbx, rdx
mov rsi, r8
movups xmmword [r8], xmm0
mov rax, qword [rdi + 8]
lea rcx, [rdx + 0x10]
and ebp, 1
call qword [rax + 0xa0]
lea rcx, [rbx + 0x12]
mov word [rsi + 0x30], ax
mov rax, qword [rdi + 8]
call qword [rax + 0xa0]
lea rcx, [rbx + 0x14]
mov word [rsi + 0x32], ax
mov rax, qword [rdi + 8]
call qword [rax + 0x88]
lea rcx, [rbx + 0x18]
mov dword [rsi + 0x28], eax
mov rax, qword [rdi + 8]
test bpl, bpl
je 0x14008a4b8
call qword [rax + 0x90]
mov qword [rsi + 0x10], rax
mov rax, qword [rdi + 8]
lea rcx, [rbx + 0x1c]
call qword [rax + 0x88]
lea rcx, [rbx + 0x20]
mov qword [rsi + 0x18], rax
mov rax, qword [rdi + 8]
call qword [rax + 0x88]
lea rcx, [rbx + 0x24]
mov qword [rsi + 0x20], rax
mov rax, qword [rdi + 8]
call qword [rax + 0x88]
lea rcx, [rbx + 0x28]
mov dword [rsi + 0x2c], eax
mov rax, qword [rdi + 8]
call qword [rax + 0xa0]
lea rcx, [rbx + 0x2a]
mov dword [rsi + 0x34], eax
mov rax, qword [rdi + 8]
call qword [rax + 0xa0]
lea rcx, [rbx + 0x2c]
mov dword [rsi + 0x38], eax
mov rax, qword [rdi + 8]
call qword [rax + 0xa0]
lea rcx, [rbx + 0x2e]
mov dword [rsi + 0x3c], eax
mov rax, qword [rdi + 8]
call qword [rax + 0xa0]
lea rcx, [rbx + 0x30]
mov dword [rsi + 0x40], eax
mov rax, qword [rdi + 8]
call qword [rax + 0xa0]
lea rcx, [rbx + 0x32]
mov dword [rsi + 0x44], eax
mov rax, qword [rdi + 8]
call qword [rax + 0xa0]
mov dword [rsi + 0x48], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [rax + 0x88]
jmp 0x14008a40a
Function at 0x14009a880
Capabilities:
Query environment variable

Disassembly:
mov r9d, 1
jmp fcn.14009a890
Function at 0x14009ae50
Capabilities:
Create directory

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp 0x14009ae60
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rcx
mov rdi, rdx
call fcn.140059cd0
mov r12, rax
test rbp, rbp
je 0x14009af30
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
movsxd r14, eax
test rdi, rdi
je 0x14009af46
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r13d, eax
movsxd rsi, eax
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [r14 + rsi + 7]
movsxd rbx, eax
add rcx, rbx
call fcn.1400aacd0
mov rdx, r12
mov rsi, rax
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea rcx, [rsi + rbx]
mov rdx, rbp
add rbx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea rax, [rsi + rbx]
lea rcx, [rsi + rbx + 6]
mov rdx, rdi
mov dword [rax], 0x58585858
mov dword [rax + 3], 0x585858
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rsi
mov edx, r13d
call fcn.14009b540
mov ecx, eax
cmp eax, 0xffffffff
je 0x14009af57
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
test eax, eax
jne 0x1400ab790
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r14d, 2
lea rbp, [0x1400cd22b]
test rdi, rdi
jne 0x14009ae99
xor esi, esi
xor r13d, r13d
lea rdi, [0x1400cd22e]
jmp 0x14009aea7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
mov r8, r12
lea rdx, str.Cannot_create_temporary_file_in__s:__s_n
mov rcx, rax
call fcn.140092a30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x28
call fcn.1400a9600
mov rcx, rax
mov rsi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__mktemp
mov rcx, rsi
mov rbx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
test rbx, rbx
je 0x14009afc8
test eax, eax
jne 0x14009afc8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rsi
xor ebx, ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14009ae60
Capabilities:
Create directory

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp 0x14009ae60
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rcx
mov rdi, rdx
call fcn.140059cd0
mov r12, rax
test rbp, rbp
je 0x14009af30
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
movsxd r14, eax
test rdi, rdi
je 0x14009af46
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r13d, eax
movsxd rsi, eax
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [r14 + rsi + 7]
movsxd rbx, eax
add rcx, rbx
call fcn.1400aacd0
mov rdx, r12
mov rsi, rax
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea rcx, [rsi + rbx]
mov rdx, rbp
add rbx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea rax, [rsi + rbx]
lea rcx, [rsi + rbx + 6]
mov rdx, rdi
mov dword [rax], 0x58585858
mov dword [rax + 3], 0x585858
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rsi
mov edx, r13d
call fcn.14009b540
mov ecx, eax
cmp eax, 0xffffffff
je 0x14009af57
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
test eax, eax
jne 0x1400ab790
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r14d, 2
lea rbp, [0x1400cd22b]
test rdi, rdi
jne 0x14009ae99
xor esi, esi
xor r13d, r13d
lea rdi, [0x1400cd22e]
jmp 0x14009aea7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
mov r8, r12
lea rdx, str.Cannot_create_temporary_file_in__s:__s_n
mov rcx, rax
call fcn.140092a30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x28
call fcn.1400a9600
mov rcx, rax
mov rsi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__mktemp
mov rcx, rsi
mov rbx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
test rbx, rbx
je 0x14009afc8
test eax, eax
jne 0x14009afc8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rsi
xor ebx, ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14009af90
Capabilities:
Create directory

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp 0x14009ae60
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rcx
mov rdi, rdx
call fcn.140059cd0
mov r12, rax
test rbp, rbp
je 0x14009af30
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
movsxd r14, eax
test rdi, rdi
je 0x14009af46
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r13d, eax
movsxd rsi, eax
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [r14 + rsi + 7]
movsxd rbx, eax
add rcx, rbx
call fcn.1400aacd0
mov rdx, r12
mov rsi, rax
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea rcx, [rsi + rbx]
mov rdx, rbp
add rbx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea rax, [rsi + rbx]
lea rcx, [rsi + rbx + 6]
mov rdx, rdi
mov dword [rax], 0x58585858
mov dword [rax + 3], 0x585858
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rsi
mov edx, r13d
call fcn.14009b540
mov ecx, eax
cmp eax, 0xffffffff
je 0x14009af57
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
test eax, eax
jne 0x1400ab790
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r14d, 2
lea rbp, [0x1400cd22b]
test rdi, rdi
jne 0x14009ae99
xor esi, esi
xor r13d, r13d
lea rdi, [0x1400cd22e]
jmp 0x14009aea7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
mov r8, r12
lea rdx, str.Cannot_create_temporary_file_in__s:__s_n
mov rcx, rax
call fcn.140092a30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x28
call fcn.1400a9600
mov rcx, rax
mov rsi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__mktemp
mov rcx, rsi
mov rbx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
test rbx, rbx
je 0x14009afc8
test eax, eax
jne 0x14009afc8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rsi
xor ebx, ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400a20c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [rcx + 0x44], 0
mov r12d, dword [rcx + 0x40]
mov rdi, rcx
mov rbp, rdx
mov esi, r8d
mov ebx, r9d
jne 0x1400a21c0
xor r14d, r14d
test r12d, r12d
je 0x1400a2120
mov r8d, r12d
xor r14d, r14d
add r8, rdx
nop dword [rax + rax]
movzx ecx, byte [rdx]
add rdx, 1
mov eax, ecx
shl eax, 0x11
add eax, ecx
add eax, r14d
mov r14d, eax
shr r14d, 2
xor r14d, eax
cmp rdx, r8
jne 0x1400a2100
mov eax, r14d
xor edx, edx
div dword [rdi + 0x18]
mov rax, qword [rdi]
mov r13, qword [rax + rdx*8]
test r13, r13
je 0x1400a2180
mov r15d, r12d
jmp 0x1400a2149
mov r13, qword [r13]
test r13, r13
je 0x1400a2180
cmp dword [r13 + 0x10], r14d
jne 0x1400a2140
cmp dword [r13 + 0x18], r12d
jne 0x1400a2140
mov rcx, qword [r13 + 8]
mov r8, r15
mov rdx, rbp
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x1400a2140
cmp dword [r13 + 0x1c], esi
jae 0x1400a21a4
test bl, bl
je 0x1400a22d7
mov qword [r13 + 0x18], 0
jmp 0x1400a2187
xor r13d, r13d
test bl, bl
je 0x1400a21a4
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call fcn.1400534a0
mov r13, rax
test rax, rax
je 0x1400a21a4
mov dword [rax + 0x18], r12d
mov dword [rax + 0x1c], esi
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp r12d, 1
je 0x1400a2272
lea r11d, [r12 - 1]
mov r8d, r12d
xor r10d, r10d
xor ecx, ecx
add r11, 1
add r8, rdx
test r12d, r12d
je 0x1400a2250
mov r9, rdx
xor r10d, r10d
xor ecx, ecx
nop dword [rax + rax]
mov rdx, r9
xor eax, eax
jmp 0x1400a220c
add eax, 1
add rdx, 1
cmp eax, r12d
je 0x1400a2250
cmp byte [rdx], 0
je 0x1400a2200
cmp eax, r12d
je 0x1400a2250
mov rdx, r9
nop dword [rax]
movzx r13d, byte [rdx]
add rdx, 1
mov eax, r13d
shl eax, 0x11
add eax, r13d
add eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, eax
cmp rdx, r8
jne 0x1400a2220
add r9, r11
add r10d, 1
add r8, r11
jmp 0x1400a21f0
mov eax, r10d
shl eax, 0x11
add eax, r10d
add r10d, 1
add eax, ecx
imul r12d, r10d
mov r14d, eax
shr r14d, 2
xor r14d, eax
jmp 0x1400a2120
movzx r14d, byte [rdx]
lea r8, [rdx + 1]
test r14d, r14d
je 0x1400a2120
mov rdx, r8
xor eax, eax
nop dword [rax + rax]
mov ecx, r14d
shl ecx, 0x11
add ecx, r14d
add eax, ecx
mov ecx, eax
shr ecx, 2
xor eax, ecx
mov rcx, rdx
movzx r14d, byte [rdx]
add rdx, 1
test r14d, r14d
jne 0x1400a2290
sub ecx, r8d
lea r12d, [rcx + 1]
mov edx, r12d
shl edx, 0x11
add edx, r12d
add r12d, 1
add eax, edx
mov r14d, eax
shr r14d, 2
xor r14d, eax
jmp 0x1400a2120
xor r13d, r13d
jmp 0x1400a21a4