joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001c70
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r13, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x14001a179]
call fcn.1400047a0
mov r12, rax
test rax, rax
je 0x140001d90
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.1400100b0
test eax, eax
js 0x140001d70
mov esi, dword [r13 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001da5
cmp byte [r13 + 0x10], 1
je 0x140001d50
mov rdi, rax
test rsi, rsi
jne 0x140001cf0
jmp 0x140001d37
add rdi, rbx
sub rsi, rbx
je 0x140001d37
mov ebx, 0x2000
mov r9, r12
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001ce8
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140003170
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r14
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, r13
mov rcx, r12
call fcn.140001860
test eax, eax
je 0x140001d37
jmp 0x140001d2c
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r14d, r14d
lea rcx, str.fseek
call fcn.140003170
jmp 0x140001d37
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140002fe0
jmp 0x140001d3f
mov r9d, esi
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140003170
jmp 0x140001d37
Function at 0x140001e80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5070], 1
mov r12, rcx
mov r15, rdx
jne 0x140002080
cmp byte [rdx + 0x11], 0x6e
je 0x140001fb0
lea rdi, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, rdi
call fcn.140008890
mov r14, rax
test rax, rax
je 0x140002096
lea rcx, [r12 + 0x70]
lea rdx, [0x14001a179]
call fcn.1400047a0
mov r13, rax
test rax, rax
je 0x140002010
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [r12]
mov rcx, rax
call fcn.1400100b0
test eax, eax
js 0x140002060
cmp byte [r15 + 0x10], 1
je 0x140001fd0
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x1400020b6
mov esi, dword [r15 + 0xc]
test rsi, rsi
jne 0x140001f5e
jmp 0x140002030
mov r9, r14
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140002040
sub rsi, rbx
je 0x140002030
mov ebx, 0x2000
mov r9, r13
mov r8d, 1
mov rcx, r12
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001f38
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fread
call fcn.140003170
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001fe3
call fcn.140001dd0
mov ebx, eax
test eax, eax
js 0x140001ff8
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
mov r8, r14
mov rdx, r15
mov rcx, r13
call fcn.140001860
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x140001fbb
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002fe0
jmp 0x140001fbb
mov rdx, rdi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002fe0
jmp 0x140001feb
xor ebx, ebx
jmp 0x140001f9e
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fwrite
call fcn.140003170
jmp 0x140001f9e
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov ebx, 0xffffffff
lea rcx, str.fseek
call fcn.140003170
jmp 0x140001fe3
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov ebx, 0xffffffff
call fcn.140002fe0
jmp 0x140001fbb
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.140003170
jmp 0x140001fbb
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
or ebx, 0xffffffff
call fcn.140003170
jmp 0x140001fe3
Function at 0x1400020e0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x14001a179]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.1400047a0
mov r12, rax
test rax, rax
je 0x1400022e7
mov rax, qword [0x140020280]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, r12
mov r13d, 0xffffffff
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140008f00
mov rsi, rax
test rax, rax
jne 0x140002160
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, r13d
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov edx, eax
mov rcx, r12
call fcn.1400100b0
test eax, eax
js 0x140002290
lea rcx, [rbx + 0x18]
mov r9, r12
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x1400022b0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5074], 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 rsi, rax
bswap edx
mov qword [rbx], rsi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, esi
mov dword [rbx + 0x2c], ecx
mov dword [0x1400260b0], ecx
mov rcx, r12
call fcn.1400100b0
movsxd r14, dword [rbx + 0x28]
mov rcx, r14
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x1400022f2
mov r9, r12
mov r8d, 1
mov rdx, r14
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002270
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, r12
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov r13d, eax
test eax, eax
jne 0x1400022d0
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140002146
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 r8, rax
ja 0x140002240
jmp 0x140002146
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140003170
jmp 0x140002146
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140003170
jmp 0x140002146
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140003170
jmp 0x140002146
lea rcx, str.Error_on_file._n
mov r13d, 0xffffffff
call fcn.140002fe0
jmp 0x140002146
mov r13d, 0xffffffff
jmp 0x14000214e
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140003170
jmp 0x140002146
Function at 0x140008160
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.14000f090
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.140009410
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400081a8
xor eax, eax
add rsp, 0x4020
pop r12
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call fcn.140009240
mov rcx, rax
test rax, rax
je 0x140008197
cmp byte [rax], 0
je 0x140008197
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x140008250
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140009410
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
mov r13d, eax
call sub.msvcrt.dll_free
mov eax, r13d
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x140008560
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.14000f090
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea rbx, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.140009410
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x1400085cc
cmp ax, 0x5c
jne 0x140008620
lea rdx, [0x14001c4da]
mov rcx, rbx
lea rbp, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, rbx
call fcn.14000fc10
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140008638
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, [0x14001c4d6]
mov rcx, rbx
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x1400085cc
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbp
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea r12, [rsp + 0x30]
mov rcx, rbx
mov r8, r12
mov r15, r12
call fcn.1400086a0
jmp 0x14000867f
mov rdi, r12
mov ecx, 0x46
mov rsi, rbp
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, rbx
mov r12, r15
call fcn.1400086a0
mov rdx, rbp
mov rcx, r14
call fcn.14000fcf0
test eax, eax
je 0x140008660
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x1400085f7

Function at 0x1400086a0
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
mov eax, 0x1038
push r12
push rsi
push rbx
call fcn.14000f090
sub rsp, rax
lea r12, [r8 + 0x24]
mov r13, rcx
mov rsi, rdx
mov rbx, r8
lea rdx, [0x14001c4de]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400086e8
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
lea rdx, [0x14001c4e2]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400086d3
xor eax, eax
mov rcx, r13
mov rdx, r12
mov word [r13 + rsi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rbx], 0x10
je 0x140008740
call fcn.140009730
test eax, eax
jne 0x140008768
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, r13
mov rcx, r12
call fcn.140009240
mov rcx, r12
call fcn.140008560
jmp 0x1400086d3
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x1400086d3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rbx
jmp 0x1400086d3
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x1400086d3
Function at 0x1400089c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.14000f090
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x14001c57c]
call fcn.1400047a0
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.140008890
mov r13, rax
test r12, r12
je 0x140008aca
test rax, rax
je 0x140008abd
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140008ab8
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140008a60
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008a10
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140008a8f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140008a81
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008a10
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x140008a8f
test r12, r12
je 0x140008aca
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x140008a97
jmp 0x140008a9f
Function at 0x140008b50
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.14000f090
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
mov rdx, rcx
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, r12
call fcn.140009410
mov edx, 1
lea rcx, [0x140008000]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov rbp, qword [fcn.140018d10]
xor ecx, ecx
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rsi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
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], rdi
mov rcx, r12
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 0x140008d00
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.1400030c0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140008f00
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 rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140009000
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.1400100b0
test eax, eax
js 0x140009000
mov rcx, rdi
call fcn.1400101a0
movsxd r8, eax
cmp r8, rbx
jb 0x140009000
mov r14d, 1
lea rax, [rbx - 1]
sub r14, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov ebp, 0x2000
cmp r8, rbp
cmovae rbp, r8
lea r13, [rbp - 0x2000]
sub r8, r13
mov r15, r8
cmp rbx, r8
ja 0x140009000
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
call fcn.1400100b0
test eax, eax
js 0x140009000
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x140009000
mov rdx, qword [rsp + 0x20]
lea r15, [rdx + rax]
jmp 0x140008fe2
lea r14, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r14]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140009020
mov r15, r14
test r15, r15
jne 0x140008fc8
mov rax, qword [rsp + 0x28]
lea r8, [rax + r13]
test r13, r13
jne 0x140008f72
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [rbp + r15 - 0x2001]
jmp 0x140009003
Function at 0x140009590
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x2068
push r14
push r13
push r12
push rsi
push rbx
call fcn.14000f090
sub rsp, rax
mov r13, rcx
lea r15, [rsp + 0x40]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r15
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140009690
xor r12d, r12d
lea r14, [rsp + 0x60]
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140009609
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, r14
lea r8, str.D:_A__FA____s_
test r12, r12
cmovne r9, r12
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, r14
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140009720
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x2068
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r14, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call r14
test eax, eax
jne 0x1400096c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400095e8
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov rsi, rdx
call sub.msvcrt.dll_calloc
mov rcx, qword [rsp + 0x40]
mov r12, rax
test rax, rax
je 0x1400095e8
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov r8, rax
mov edx, 1
call r14
lea r14, [rsp + 0x60]
test eax, eax
je 0x1400095f0
mov rcx, qword [r12]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x1400095f0
mov eax, 0xffffffff
jmp 0x140009679

Function at 0x140009d60
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov r11d, 0x80000000
test ecx, ecx
je 0x140009ddc
mov ebx, 3
lea rsi, [0x14001c820]
jmp 0x140009d87
add ebx, 1
sar ecx, 1
je 0x140009ddc
test cl, 1
je 0x140009d80
mov eax, ebx
mov edx, 0x80000000
and eax, 0x1f
mov r10d, dword [rsi + rax*4]
mov eax, r11d
xor r11d, r11d
jmp 0x140009dc4
mov r9d, eax
shr eax, 1
mov r8d, eax
and r9d, 1
shr edx, 1
xor r8d, 0xedb88320
test r9d, r9d
cmovne eax, r8d
test r10d, edx
je 0x140009da8
lea r8d, [rdx - 1]
xor r11d, eax
test r8d, r10d
jne 0x140009da8
add ebx, 1
sar ecx, 1
jne 0x140009d87
mov eax, r11d
pop rbx
pop rsi
ret
Function at 0x14000de10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140018d10
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140018d10
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000ea42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140027448]
test eax, eax
je 0x14000eada
lea rax, [0x140027420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140027450]
mov qword [rbp - 8], rax
jmp 0x14000eabe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000eab2
cmp qword [rbp - 0x10], 0
je 0x14000eab2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000ea78
lea rax, [0x140027420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000eadb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000ebe0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000ec08
mov eax, 0
jmp 0x14000ec56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000ec31
mov eax, 0
jmp 0x14000ec56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000ec51
mov eax, 0
jmp 0x14000ec56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000ec5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000ecda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000ecd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000ecd1
mov rax, qword [rbp - 8]
jmp 0x14000ecef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000eca4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140016ee0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
cmp byte [0x1400d580b], 0
xorps xmm0, xmm0
mov eax, dword [0x1400d5808]
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmm0, xmmword [0x1400d57f8]
movups xmmword [rsp + 0x30], xmm0
je 0x1400170df
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400170a3
movdqa xmm0, xmmword [str.11111111111111112222222222222222]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1400e3300]
mov eax, 5
movdqa xmm4, xmmword [0x1400e3430]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x1400e3330]
movd xmm6, eax
mov eax, Ordinal_33
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x38], xmm8
movd xmm8, eax
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400e33c0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400e33c0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140016f80
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0xa0]
cmp ecx, 0x14
jge 0x1400170df
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x14
jl 0x1400170b0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.14001a4f0
add rsp, 0xb8
ret