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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400021e0
mov rax, qword [0x140020380]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.1400082c0
mov rsi, rax
test rax, rax
je 0x140002207
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call fcn.14000f460
test eax, eax
js 0x1400021f4
mov r9, qword [rbx]
lea rcx, [rbx + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002210
mov eax, dword [rbx + 0x28]
mov ecx, dword [rbx + 0x30]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x507c], 0
mov edx, dword [rbx + 0x2c]
bswap eax
bswap ecx
mov dword [rbx + 0x28], eax
mov eax, eax
mov dword [rbx + 0x30], ecx
mov ecx, dword [rbx + 0x34]
sub rsi, rax
bswap edx
mov qword [rbx + 8], rsi
bswap ecx
mov dword [rbx + 0x2c], edx
add edx, esi
mov dword [rbx + 0x34], ecx
mov dword [0x140026090], ecx
mov rcx, qword [rbx]
call fcn.14000f460
movsxd r12, dword [rbx + 0x30]
mov rcx, r12
call sub.msvcrt.dll_malloc
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x14000225d
mov r9, qword [rbx]
mov r8d, 1
mov rdx, r12
call sub.msvcrt.dll_fread
test rax, rax
je 0x14000222b
movsxd rax, dword [rbx + 0x30]
add rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rax
mov rcx, qword [rbx]
call sub.msvcrt.dll_ferror
mov r12d, eax
test eax, eax
jne 0x140002246
mov rax, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
lea rsi, str.Cannot_read_Table_of_Contents._n
cmp rax, r8
jae 0x1400021b8
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, qword [rbx + 0x10]
jae 0x140002170
mov rcx, rsi
call fcn.140002f50
mov rax, qword [rbx + 0x18]
mov r8, rax
cmp rax, r8
jb 0x140002175
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400021cc
call sub.msvcrt.dll_fclose
mov qword [rbx], 0
mov eax, r12d
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov rcx, rbx
call fcn.140001830
test eax, eax
jne 0x140002207
mov rcx, qword [rbx]
jmp 0x140002057
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.1400030e0
mov r12d, 0xffffffff
jmp 0x1400021cc
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
mov r12d, 0xffffffff
call fcn.1400030e0
jmp 0x1400021cc
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
mov r12d, 0xffffffff
call fcn.1400030e0
jmp 0x1400021cc
lea rcx, str.Error_on_file._n
mov r12d, 0xffffffff
call fcn.140002f50
jmp 0x1400021cc
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, [0x14001a0ea]
or r12d, 0xffffffff
call fcn.1400030e0
jmp 0x1400021cc
Function at 0x140007490
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.14000e410
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.140008780
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400074d8
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.1400084e0
mov rcx, rax
test rax, rax
je 0x1400074c7
cmp byte [rax], 0
je 0x1400074c7
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x140007580
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008780
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 0x1400075c0
Capabilities:
Create directory
Query environment variable

Disassembly:
push r13
mov eax, 0x4020
push r12
push rdi
push rsi
push rbx
call fcn.14000e410
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008780
mov r12, rax
test rax, rax
je 0x140007700
lea r13, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x1000
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
je 0x1400076e8
mov rcx, r13
call fcn.140008bd0
test eax, eax
jne 0x1400076d0
mov r8d, 0x1000
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__wfullpath]
mov r12, rax
test r12, r12
je 0x14000770e
lea rsi, [rsp + 0x2020]
xor eax, eax
mov ecx, 0x400
mov edx, 0x5c
mov rdi, rsi
rep stosq qword [rdi], rax
mov rcx, r12
call sub.msvcrt.dll_wcschr
mov rdi, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rbx, rax
test rax, rax
je 0x1400076ad
nop dword [rax]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
sub r8, r12
sar r8, 1
add r8, 1
call sub.msvcrt.dll_wcsncpy
xor edx, edx
mov rcx, rsi
call rdi
lea rcx, [rbx + 2]
mov edx, 0x5c
call sub.msvcrt.dll_wcschr
mov rbx, rax
test rax, rax
jne 0x140007678
xor edx, edx
mov rcx, r12
call rdi
mov rax, r12
add rsp, 0x4020
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wcsdup_1]
mov r12, rax
jmp 0x14000763a
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor r12d, r12d
call fcn.140002f50
jmp 0x1400076b4
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002f50
jmp 0x1400076b4
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002f50
jmp 0x1400076b4
Function at 0x140007720
Capabilities:
Get common file path

Disassembly:
push r15
mov eax, 0x2048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e410
sub rsp, rax
mov r15, rcx
mov rsi, rdx
test rdx, rdx
je 0x140007789
lea rcx, [0x14001c563]
call fcn.140007490
mov rcx, rsi
mov r14, rax
call fcn.1400075c0
mov r12, rax
test rax, rax
je 0x14000783c
lea rcx, [0x14001c568]
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wputenv_s]
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x140007848
lea rbp, [rsp + 0x40]
mov ecx, 0x1000
lea rdi, [rsp + 0x20]
mov ebx, 5
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.msvcrt.dll__getpid
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, rdi
mov r9d, eax
call fcn.140007310
mov r13, qword [sym.imp.msvcrt.dll__wtempnam]
mov rcx, rbp
mov rdx, rdi
call r13
mov rcx, rax
mov r12, rax
call fcn.1400089c0
test eax, eax
je 0x140007860
mov rcx, r12
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x1400077c9
test rsi, rsi
je 0x14000783c
test r14, r14
je 0x140007830
mov rdx, r14
lea rcx, [0x14001c563]
xor r12d, r12d
call fcn.140007520
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, r12d
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14001c563]
call fcn.140007580
xor r12d, r12d
jmp 0x140007812
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
xor r12d, r12d
call fcn.140002f50
jmp 0x140007812
mov rdx, r12
mov r8d, 0x1000
mov rcx, r15
call fcn.1400084e0
mov rcx, r12
mov r12d, 1
call sub.msvcrt.dll_free
test rsi, rsi
je 0x140007812
test r14, r14
je 0x1400078a5
mov rdx, r14
lea rcx, [0x14001c563]
call fcn.140007520
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x140007812
lea rcx, [0x14001c563]
call fcn.140007580
jmp 0x140007812
Function at 0x140007930
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.14000e410
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.140008780
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 0x14000799c
cmp ax, 0x5c
jne 0x1400079f0
lea rdx, [0x14001c5f0]
mov rcx, rbx
lea rbp, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, rbx
call fcn.14000efc0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140007a08
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, [0x14001c5ec]
mov rcx, rbx
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000799c
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.140007a70
jmp 0x140007a4f
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.140007a70
mov rdx, rbp
mov rcx, r14
call fcn.14000f0a0
test eax, eax
je 0x140007a30
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x1400079c7

Function at 0x140007a70
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
mov eax, 0x1038
push r12
push rsi
push rbx
call fcn.14000e410
sub rsp, rax
lea r12, [r8 + 0x24]
mov r13, rcx
mov rsi, rdx
mov rbx, r8
lea rdx, [0x14001c5f4]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140007ab8
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
lea rdx, [0x14001c5f8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140007aa3
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 0x140007b10
call fcn.140008b60
test eax, eax
jne 0x140007b38
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, r13
mov rcx, r12
call fcn.1400084e0
mov rcx, r12
call fcn.140007930
jmp 0x140007aa3
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x140007aa3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rbx
jmp 0x140007aa3
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140007aa3
Function at 0x140007d60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.14000e410
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x14001c634]
call fcn.1400046b0
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.140007b50
mov r13, rax
test r12, r12
je 0x140007e6a
test rax, rax
je 0x140007e5d
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140007e58
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140007e00
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140007db0
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140007e2f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140007e21
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140007db0
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 0x140007e2f
test r12, r12
je 0x140007e6a
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x140007e37
jmp 0x140007e3f
Function at 0x140007ef0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2118
push rdi
push rsi
push rbx
call fcn.14000e410
sub rsp, rax
mov r8d, 0x1000
lea r12, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea rdi, [rsp + 0xa0]
mov rcx, r12
call fcn.140008780
mov edx, 1
mov ecx, 0x16
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 2
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0xf
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0x15
call sub.msvcrt.dll_signal
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 rsi, qword [fcn.140017d70]
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 rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rbx, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rbx
mov ecx, 1
mov qword [rsp + 0xf0], rax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rbx
mov ecx, 2
mov qword [rsp + 0xf8], rax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call 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 0x1400080b0
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, 0x2118
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140003030
mov eax, 0xffffffff
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x1400082c0
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 0x1400083b0
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.14000f460
test eax, eax
js 0x1400083b0
mov rcx, rdi
call fcn.14000f550
movsxd r8, eax
cmp r8, rbx
jb 0x1400083b0
mov r13d, 1
sub r13, rbx
mov qword [rsp + 0x28], r13
cmp r8, 0x2000
mov r14d, 0x2000
cmovae r14, r8
lea rbp, [r14 - 0x2000]
sub r8, rbp
mov r15, r8
cmp rbx, r8
ja 0x1400083b0
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.14000f460
test eax, eax
js 0x1400083b0
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x1400083b0
mov rdx, qword [rsp + 0x28]
lea r15, [rdx + rax]
jmp 0x14000839a
lea r13, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r13]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400083d0
mov r15, r13
test r15, r15
jne 0x140008380
lea r8, [rbp + rbx - 1]
test rbp, rbp
jne 0x140008329
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, [r14 + r15 - 0x2001]
jmp 0x1400083b3
Function at 0x1400089c0
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x2068
push r14
push r13
push r12
push rsi
push rbx
call fcn.14000e410
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 0x140008ac0
xor r12d, r12d
lea r14, [rsp + 0x60]
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140008a39
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 0x140008b50
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete al
movzx eax, al
neg 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 0x140008af7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008a18
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 0x140008a18
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov r8, rax
mov edx, 1
call r14
lea r14, [rsp + 0x60]
test eax, eax
je 0x140008a20
mov rcx, qword [r12]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x140008a20
mov eax, 0xffffffff
jmp 0x140008aae

Function at 0x14000c0c0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov r11d, 0x80000000
test ecx, ecx
je 0x14000c13c
mov ebx, 3
lea rsi, [0x14001d620]
jmp 0x14000c0e7
add ebx, 1
sar ecx, 1
je 0x14000c13c
test cl, 1
je 0x14000c0e0
mov eax, ebx
mov edx, 0x80000000
and eax, 0x1f
mov r10d, dword [rsi + rax*4]
mov eax, r11d
xor r11d, r11d
jmp 0x14000c124
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 0x14000c108
lea r8d, [rdx - 1]
xor r11d, eax
test r8d, r10d
jne 0x14000c108
add ebx, 1
sar ecx, 1
jne 0x14000c0e7
mov eax, r11d
pop rbx
pop rsi
ret
Function at 0x14000d130
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.140017d70
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140017d70
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000ddc6
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034528]
test eax, eax
je 0x14000de54
lea rcx, [0x140034500]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034530]
mov qword [rbp - 8], rax
jmp 0x14000de3b
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 0x14000de2f
cmp qword [rbp - 0x10], 0
je 0x14000de2f
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 0x14000ddf5
lea rcx, [0x140034500]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000de55
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000df60
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 0x14000df88
mov eax, 0
jmp 0x14000dfd6
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 0x14000dfb1
mov eax, 0
jmp 0x14000dfd6
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 0x14000dfd1
mov eax, 0
jmp 0x14000dfd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000dfdc
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 0x14000e05a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000e051
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 0x14000e051
mov rax, qword [rbp - 8]
jmp 0x14000e06f
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 0x14000e024
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18001c520
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x183584c88]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x18001c591
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x18001c5be
test eax, eax
js 0x18001c59d
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x18001c5b4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x183584ce8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.18001bb90
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.18001bd20
mov ecx, 7
int 0x29
ud2
Function at 0x18002eb30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.1800211d0
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x18002eb7d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x18002ebae
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.18002ea40
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x18002ec35
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x18002ec1a
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x18002ebde
mov rcx, qword [rbp - 8]
call rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x18002ec07
cmp qword [rax + 0x10], 0x11
jb 0x18002ebf8
mov r8, qword [r8 - 8]
mov rcx, qword [0x183595f98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x183595f98]
xor edx, edx
mov r8, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18002ec54
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x18002ec27
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x18002ec27
mov rcx, qword [0x183595f98]
xor edx, edx
mov r8, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]