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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140002060
mov rax, qword [0x1400203a0]
mov r8d, 8
mov rdx, qword [rax]
mov qword [rsp + 0x28], rdx
shr rdx, 0x18
add edx, 0xc
mov byte [rsp + 0x2b], dl
lea rdx, [rsp + 0x28]
call fcn.140007d70
mov rbx, rax
test rax, rax
je 0x14000209b
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, eax
call fcn.14000f300
test eax, eax
js 0x1400020c5
mov r9, qword [rdi]
lea rcx, [rdi + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002088
mov eax, dword [rdi + 0x28]
mov ecx, dword [rdi + 0x30]
add rbx, 0x58
xor r8d, r8d
mov dword [rdi + 0x507c], 0
mov edx, dword [rdi + 0x2c]
bswap eax
bswap ecx
mov dword [rdi + 0x28], eax
mov eax, eax
mov dword [rdi + 0x30], ecx
mov ecx, dword [rdi + 0x34]
sub rbx, rax
bswap edx
mov qword [rdi + 8], rbx
bswap ecx
mov dword [rdi + 0x2c], edx
add edx, ebx
mov dword [rdi + 0x34], ecx
mov dword [0x1400260b0], ecx
mov rcx, qword [rdi]
call fcn.14000f300
movsxd rbx, dword [rdi + 0x30]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov qword [rdi + 0x10], rax
mov rcx, rax
test rax, rax
je 0x1400020da
mov r9, qword [rdi]
mov r8d, 1
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
je 0x1400020a2
movsxd rax, dword [rdi + 0x30]
add rax, qword [rdi + 0x10]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi]
call sub.msvcrt.dll_ferror
mov ebx, eax
test eax, eax
jne 0x1400020b7
mov rax, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
lea rsi, str.Cannot_read_Table_of_Contents._n
nop
cmp rax, r8
jae 0x140002038
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 [rdi + 0x10]
jae 0x140001ff0
mov rcx, rsi
call fcn.140002cf0
mov rax, qword [rdi + 0x18]
mov r8, rax
cmp rax, r8
jb 0x140001ff5
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000204c
call sub.msvcrt.dll_fclose
mov qword [rdi], 0
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rdi + 0x78]
lea rdx, [0x14001a1a0]
call fcn.1400043d0
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x140001ed6
jmp 0x14000209b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002e70
mov ebx, 0xffffffff
jmp 0x14000204c
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002e70
jmp 0x14000209b
lea rcx, str.Error_on_file._n
call fcn.140002cf0
jmp 0x14000209b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002e70
jmp 0x14000209b
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, [0x14001a0e2]
call fcn.140002e70
jmp 0x14000209b
Function at 0x140007000
Capabilities:
Query environment variable

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

Function at 0x1400070f0
Capabilities:
Set environment variable

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

Function at 0x140007130
Capabilities:
Create directory
Query environment variable

Disassembly:
push rbp
mov eax, 0x4028
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008250
mov rbx, rax
test rax, rax
je 0x140007270
lea rdi, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x1000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
je 0x140007250
mov rcx, rdi
call fcn.140008690
test eax, eax
jne 0x140007238
mov r8d, 0x1000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__wfullpath]
mov rbp, rax
test rbp, rbp
je 0x140007280
lea rsi, [rsp + 0x2020]
xor eax, eax
mov ecx, 0x400
mov edx, 0x5c
mov rdi, rsi
rep stosq qword [rdi], rax
mov rcx, rbp
call sub.msvcrt.dll_wcschr
mov rdi, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rbx, rax
test rax, rax
je 0x14000721d
nop dword [rax]
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
sub r8, rbp
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 0x1400071e8
xor edx, edx
mov rcx, rbp
call rdi
mov rax, rbp
add rsp, 0x4028
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsdup_1]
mov rbp, rax
jmp 0x1400071a7
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor ebp, ebp
call fcn.140002cf0
mov rax, rbp
add rsp, 0x4028
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
xor ebp, ebp
call fcn.140002cf0
jmp 0x14000725e
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
xor ebp, ebp
call fcn.140002cf0
jmp 0x14000725e
Function at 0x140007290
Capabilities:
Get common file path
Set environment variable

Disassembly:
push r15
mov eax, 0x2048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
mov r15, rcx
mov rdi, rdx
test rdx, rdx
je 0x1400073a0
lea rcx, [0x14001c573]
call fcn.140007000
mov rcx, rdi
mov r13, rax
call fcn.140007130
mov rbx, rax
test rax, rax
je 0x140007387
lea rcx, [0x14001c578]
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wputenv_s]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
jne 0x140007428
lea r12, [rsp + 0x40]
mov ecx, 0x1000
lea rbp, [rsp + 0x20]
mov esi, 5
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.msvcrt.dll__getpid
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, rbp
mov r9d, eax
call fcn.140006e90
mov r14, qword [sym.imp.msvcrt.dll__wtempnam]
mov rcx, r12
mov rdx, rbp
call r14
mov rcx, rax
mov rbx, rax
call fcn.140008480
test eax, eax
je 0x1400073b0
mov rcx, rbx
call sub.msvcrt.dll_free
sub esi, 1
jne 0x14000733d
test rdi, rdi
je 0x140007387
test r13, r13
je 0x1400073f8
lea rcx, [0x14001c573]
mov rdx, r13
call fcn.140007090
mov rcx, r13
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
jmp 0x1400072fd
mov rcx, r15
mov r8d, 0x1000
mov rdx, rbx
call fcn.140008080
mov rcx, rbx
call sub.msvcrt.dll_free
test rdi, rdi
je 0x1400073ea
test r13, r13
je 0x140007439
lea rcx, [0x14001c573]
mov rdx, r13
call fcn.140007090
mov rcx, r13
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x140007389
xor r8d, r8d
xor ecx, ecx
lea rdx, [0x14001c573]
call fcn.140008250
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x140007387
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140002cf0
jmp 0x140007387
xor r8d, r8d
xor ecx, ecx
lea rdx, [0x14001c573]
call fcn.140008250
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x1400073ea
Function at 0x1400074d0
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.14000e2b0
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea r12, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.140008250
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
mov rcx, r12
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000753c
cmp ax, 0x5c
jne 0x140007590
lea rdx, [0x14001c600]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000ee50
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400075a8
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, [0x14001c5fc]
mov rcx, r12
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000753c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsp + 0x30]
mov rcx, r12
mov r8, rbp
mov r15, rbp
call fcn.140007610
jmp 0x1400075ef
mov rdi, rbp
mov ecx, 0x46
mov rsi, rbx
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, r12
mov rbp, r15
call fcn.140007610
mov rdx, rbx
mov rcx, r14
call fcn.14000ef30
test eax, eax
je 0x1400075d0
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140007567

Function at 0x140007610
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x14001c604]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140007650
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x14001c608]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140007641
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, rbp
test byte [rbx], 0x10
je 0x1400076b0
call fcn.140008620
test eax, eax
jne 0x1400076d8
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008080
mov rcx, rbx
call fcn.1400074d0
jmp 0x140007641
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x140007641
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x140007641
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140007641
Function at 0x140007880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001c644]
call fcn.1400043d0
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.1400076f0
mov rdi, rax
test rbx, rbx
je 0x140007979
test rax, rax
je 0x14000796c
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140007968
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140007918
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400078d0
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x140007941
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140007939
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400078d0
mov rcx, rdi
call sub.msvcrt.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x140007946
test rbx, rbx
je 0x140007979
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x140007986
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
jmp 0x140007956
Function at 0x140007a00
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push rbp
mov eax, 0x2118
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
mov r8d, 0x1000
lea rdi, [rsp + 0x110]
mov rdx, rcx
lea rbp, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, rdi
call fcn.140008250
mov edx, 1
lea rcx, [0x140006e70]
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 rsi, qword [fcn.140017ce0]
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], rbp
mov rcx, rdi
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 0x140007b88
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 rbp
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002dd0
mov eax, 0xffffffff
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140007d70
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007e60
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000f300
test eax, eax
js 0x140007e60
mov rcx, r12
call fcn.14000f3f0
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007e60
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 0x140007e60
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000f300
test eax, eax
js 0x140007e60
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140007e60
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140007e4a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140007e80
mov rbx, r15
test rbx, rbx
jne 0x140007e30
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007dd9
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007e62
Function at 0x140008480
Capabilities:
Create directory

Disassembly:
push r13
mov eax, 0x2068
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
mov rsi, rcx
lea rbp, [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, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140008580
xor ebx, ebx
lea rdi, [rsp + 0x60]
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400084f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140008610
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x2068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r12, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call rdi
test eax, eax
jne 0x1400085b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400084d6
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov r13, rdx
call sub.msvcrt.dll_calloc
mov rcx, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x1400084d6
mov qword [rsp + 0x20], r12
mov r9d, r13d
mov r8, rax
mov edx, 1
call rdi
lea rdi, [rsp + 0x60]
test eax, eax
je 0x1400084dd
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x1400084dd
mov eax, 0xffffffff
jmp 0x140008566
Function at 0x14000be40
Capabilities:
Hash data with crc32

Disassembly:
push rbx
mov r10d, 0x80000000
test ecx, ecx
je 0x14000beb4
mov r11d, 3
lea rbx, [0x14001d640]
jmp 0x14000be68
add r11d, 1
sar ecx, 1
je 0x14000beb4
test cl, 1
je 0x14000be60
mov eax, r11d
mov edx, r10d
mov r8d, 0x80000000
xor r10d, r10d
and eax, 0x1f
mov r9d, dword [rbx + rax*4]
jmp 0x14000be9b
mov eax, edx
shr edx, 1
and eax, 1
shr r8d, 1
neg eax
and eax, 0xedb88320
xor edx, eax
test r9d, r8d
je 0x14000be88
lea eax, [r8 - 1]
xor r10d, edx
test eax, r9d
jne 0x14000be88
add r11d, 1
sar ecx, 1
jne 0x14000be68
mov eax, r10d
pop rbx
ret
Function at 0x14000cf90
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.140017ce0
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.140017ce0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000dc62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034568]
test eax, eax
je 0x14000dcfa
lea rax, [0x140034540]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034570]
mov qword [rbp - 8], rax
jmp 0x14000dcde
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 0x14000dcd2
cmp qword [rbp - 0x10], 0
je 0x14000dcd2
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 0x14000dc98
lea rax, [0x140034540]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000dcfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000de00
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 0x14000de28
mov eax, 0
jmp 0x14000de76
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 0x14000de51
mov eax, 0
jmp 0x14000de76
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 0x14000de71
mov eax, 0
jmp 0x14000de76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000de7c
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 0x14000defa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000def1
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 0x14000def1
mov rax, qword [rbp - 8]
jmp 0x14000df0f
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 0x14000dec4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140013020
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Create thread

Disassembly:
jmp 0x140011990
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x148]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xe8], rax
lea rcx, [0x1400220a2]
call fcn.14001137f
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140011195]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 8
imul rcx, rcx, 0
mov qword [rbp + rcx + 8], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140011343]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 8
imul rcx, rcx, 1
mov qword [rbp + rcx + 8], rax
mov r9d, 0xffffffff
mov r8d, 1
lea rdx, [rbp + 8]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
nop
mov edx, dword [0x14001d1b0]
lea rcx, [0x14001aca8]
call fcn.14001119f
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ac80]
call fcn.140011316
mov eax, edi
mov rcx, qword [rbp + 0xe8]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014370
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014390
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143a3
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400143cd
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400143e1
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400143f3
xor al, al
jmp 0x140014411
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001440f
xor al, al
jmp 0x140014411
mov al, 1
add rsp, 0x38
ret