joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029d30
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14006cf10]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x38], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x1400bfb98], 0
je 0x140029d8b
mov eax, 1
jmp 0x140029f0b
mov dword [rsp + 0x20], 0
jmp 0x140029d9f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x140029dd1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400bfb98], rax
cmp qword [0x1400bfb98], 0
je 0x140029dcf
jmp 0x140029dd1
jmp 0x140029d95
cmp qword [0x1400bfb98], 0
jne 0x140029df3
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14001f3b0
xor eax, eax
jmp 0x140029f0b
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x1400bfb98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bfba0], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x1400bfb98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bfba8], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x1400bfb98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bfbb0], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x1400bfb98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bfbb8], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x1400bfb98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bfbc0], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x1400bfb98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bfbc8], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x1400bfb98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bfbd0], rax
cmp qword [0x1400bfba0], 0
je 0x140029eec
cmp qword [0x1400bfbb0], 0
je 0x140029eec
cmp qword [0x1400bfbb8], 0
je 0x140029eec
cmp qword [0x1400bfbc0], 0
je 0x140029eec
cmp qword [0x1400bfbc8], 0
je 0x140029eec
cmp qword [0x1400bfbd0], 0
jne 0x140029f06
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14001f3b0
call fcn.140029f40
xor eax, eax
jmp 0x140029f0b
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400374f0]
call fcn.14002bc30
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002b370
add rsp, 0x70
pop rdi
ret

Function at 0x14002c048
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c092
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c092
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c092
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c092
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c092
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002c094
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x20], 0x10
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x30]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x140001051
mov rax, qword [rsp + 0x28]
jmp 0x14000106c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x28]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x48
ret

Function at 0x140001080
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x20], 0x101
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x30]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExA
movzx eax, al
test eax, eax
je 0x1400010d8
mov rax, qword [rsp + 0x28]
jmp 0x1400010f3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x28]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x48
ret
Function at 0x140006d20
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006b4c
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0041ac30]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0041ac40]
mov dword [rax], 1
mov rax, qword [0x0041ac50]
mov dword [rax], 1
mov rax, qword [0x0041ac20]
mov dword [rax], 1
mov rax, qword [0x0041ab10]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0041ac10]
mov dword [0x0041e00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x0041abd0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0041aac0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x40ab40
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x40abb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0041e614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40ad58
mov rax, qword [0x0041e618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40abfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40ac87
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40abe0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x40ad92
mov rax, qword [0x0041e618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0041e618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40ada1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40ac80
sub eax, 4
and eax, 0xfffffffb
jne 0x40ad10
add dword [0x0041e614], 1
cmp ebx, 8
jae 0x40acb8
test bl, 4
jne 0x40ad60
test ebx, ebx
je 0x40aca9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40ad80
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40aca9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40acea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0041e618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40ac80
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x40ac07
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40aca9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40aca9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x0041e618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x40b580
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0041e900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0041e8e0]
test rbx, rbx
je 0x40b5d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40b5cb
test r12, r12
je 0x40b5cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40b5b0
lea rcx, [0x0041e900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40b800
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x40b810
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x40b820
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40b865
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40b85c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x40b867
add rax, 0x28
cmp rax, r9
jne 0x40b848
xor eax, eax
ret

Function at 0x40b910
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0041ab10]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x40b989
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40b989
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x40b986
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40b97d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x40b989
add r8, 0x28
cmp r8, r9
jne 0x40b968
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x40ba70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0041ab10]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x40badf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40badf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x40badd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40bad4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40bae8
add rax, 0x28
cmp rax, r9
jne 0x40bac0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x40bb00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0041ab10]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x40bb78
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40bb78
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x40bb78
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40bb78
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x40bb6c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x40bb80
add rdx, 0x28
cmp rdx, r10
jne 0x40bb58
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x40bb90
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x40bb9e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40bb75
test r8d, r8d
jg 0x40bb88
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001484
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
mov r12d, r8d
mov ebx, r8d
lea r9, [rsp + 0x48]
mov rsi, rcx
and r12d, 0x300
mov rdi, rdx
mov r8d, r12d
or r8d, 9
call fcn.140007675
test eax, eax
jne 0x140001572
test bl, 2
mov rcx, qword [rsp + 0x48]
lea rbp, [rsp + 0x56]
je 0x140001503
xor edx, edx
xor eax, eax
lea r9, [rsp + 0x44]
mov r8, rbp
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov dword [rsp + 0x44], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x140001543
mov r14d, ebx
mov r13, qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
and r14d, 1
jmp 0x140001522
mov r8d, ebx
mov rdx, rbp
call fcn.140001484
test eax, eax
jne 0x140001555
xor edx, edx
mov rcx, qword [rsp + 0x48]
mov r9d, 0x105
mov r8, rbp
call r13
test eax, eax
jne 0x140001555
mov rcx, qword [rsp + 0x48]
test r14d, r14d
je 0x140001513
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x140001572
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
mov r8d, r12d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140003c7b
Capabilities:
Read file on windows

Disassembly:
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x14000a020]
jmp fcn.1400074fc
Function at 0x140003ca3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov edi, 0x8000
lea r12, [0x1400331c0]
test r8, r8
mov qword [rsp + 0x118], rdx
mov rsi, r8
mov ebp, r9d
cmovne edi, r9d
cmovne r12, r8
test ecx, ecx
js 0x140003cea
add ecx, dword [0x14002f1b4]
call fcn.140003c8d
lea rcx, [rsp + 0x3c]
mov edx, 4
call fcn.140003c7b
test eax, eax
je 0x140003e90
mov ebx, dword [rsp + 0x3c]
test ebx, ebx
jns 0x140003e9e
mov r15, qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
call r15
lea rcx, [0x1400431e0]
mov r13d, eax
call fcn.1400085b0
mov eax, dword [rsp + 0x3c]
and eax, 0x7fffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x3c], eax
mov ebp, dword [rsp + 0x3c]
test ebp, ebp
jle 0x140003ec8
mov eax, 0x4000
lea rcx, [0x14002f1c0]
cmp ebp, eax
cmovg ebp, eax
mov edx, ebp
call fcn.140003c7b
test eax, eax
je 0x140003e90
lea rax, [0x14002f1c0]
sub dword [rsp + 0x3c], ebp
mov qword [0x1400431f8], rax
mov dword [0x140043200], ebp
lea rcx, [0x1400431e0]
mov qword [0x140043208], r12
mov dword [0x140043210], edi
call fcn.1400085dc
mov r14d, eax
test eax, eax
js 0x140003e97
mov rbp, qword [0x140043208]
call r15
mov r9d, eax
mov rax, qword [0x14000d0b0]
sub rbp, r12
test byte [rax + 0x34], 1
je 0x140003e16
mov edx, r9d
mov eax, dword [rsp + 0x3c]
sub edx, r13d
cmp edx, 0xc8
ja 0x140003dd4
test eax, eax
jne 0x140003e16
mov ecx, dword [rsp + 0x28]
mov dword [rsp + 0x2c], r9d
lea r13, [rsp + 0x40]
mov edx, 0x64
mov r8d, dword [rsp + 0x28]
sub ecx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov rcx, r13
lea rdx, str....__d__
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.140006a94
mov r13d, dword [rsp + 0x2c]
test ebp, ebp
je 0x140003d39
test rsi, rsi
jne 0x140003e42
mov rcx, qword [rsp + 0x118]
mov r8d, ebp
mov rdx, r12
call fcn.140007529
test eax, eax
je 0x140003ec3
add ebx, ebp
jmp 0x140003e4d
mov r12, qword [0x140043208]
add ebx, ebp
sub edi, ebp
dec r14d
jne 0x140003d7d
jmp 0x140003ec8
mov rcx, qword [rsp + 0x118]
mov r8d, esi
mov rdx, rbp
call fcn.140007529
test eax, eax
je 0x140003ec3
sub dword [rsp + 0x3c], esi
add ebx, esi
mov esi, dword [rsp + 0x3c]
test esi, esi
jle 0x140003ec8
cmp esi, edi
mov rcx, rbp
cmovg esi, edi
mov edx, esi
call fcn.140003c7b
test eax, eax
jne 0x140003e58
mov ebx, 0xfffffffd
jmp 0x140003ec8
mov ebx, 0xfffffffc
jmp 0x140003ec8
test rsi, rsi
jne 0x140003eae
xor ebx, ebx
lea rbp, [0x14002f1c0]
jmp 0x140003e75
cmp ebx, ebp
mov rcx, rsi
cmovg ebx, ebp
mov edx, ebx
call fcn.140003c7b
test eax, eax
jne 0x140003ec8
jmp 0x140003e90
mov ebx, 0xfffffffe
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400041b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x14000d150]
mov rsi, qword [rax]
lea rbx, [rsi + 0x64000]
mov rcx, rbx
call fcn.1400078ea
mov rcx, rbx
call fcn.140007282
test eax, eax
je 0x140004200
mov rcx, rbx
call fcn.14000787c
mov rcx, rbx
call fcn.1400070e5
lea rcx, [rsi + 0x60000]
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140007487
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140004209
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000d0a0]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000422b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
call fcn.1400048d5
mov rax, qword [0x14000d150]
mov edx, 7
mov rcx, qword [rax]
add rcx, 0x68000
add rsp, 0x20
pop rbx
jmp fcn.140007de4
Function at 0x140007080
Capabilities:
Create directory

Disassembly:
sub rsp, 0x68
lea rax, [0x14000c8f0]
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
sub rax, 0x10
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x38], 0x40001
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x1400070e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x68
ret

Function at 0x1400070e5
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007100
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140007107
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x78
xor r9d, r9d
xor r8d, r8d
mov dword [0x14007cea0], 0x68
lea rax, [rsp + 0x58]
mov rdx, rcx
xor ecx, ecx
mov dword [rsp + 0x28], 0x4000000
mov qword [rsp + 0x48], rax
lea rax, [0x14007cea0]
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x20], ecx
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
xor eax, eax
test edx, edx
je 0x14000716e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x58]
add rsp, 0x78
ret

Function at 0x140007173
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
mov dword [rcx], 0x70
mov qword [rcx + 0x40], rax
jmp qword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x1400073b4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400073db
mov edx, eax
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400073e3
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
call fcn.1400073b4
mov esi, eax
cmp eax, 0xffffffff
je 0x140007431
mov rcx, rbx
test edi, 1
je 0x140007429
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140007422
and edi, 4
jne 0x140007431
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140007431
mov eax, 1
jmp 0x140007433
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000740c
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000743b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov dword [rsp + 0x58], edx
mov edi, r8d
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
cmp eax, 0xffffffff
jne 0x140007462
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov r8d, 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
pop rdi
ret

Function at 0x140007487
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12, qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, 0x64
movabs rbp, 0x610073006e
mov rbx, rcx
mov rdi, rdx
mov qword [rsp + 0x28], rbp
call r13
mov ecx, 0x1a
xor edx, edx
xor r8d, r8d
div ecx
mov r9, rbx
mov rcx, rdi
add word [rsp + 0x2c], dx
lea rdx, [rsp + 0x28]
call r12
test eax, eax
jne 0x1400074ec
dec esi
jne 0x1400074b6
mov word [rbx], 0
xor ebx, ebx
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400074fc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rax
mov ebx, r8d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007523
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x140007529
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rax
mov ebx, r8d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007550
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x1400075f4
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rax, qword [0x14000d0b0]
inc dword [rax + 0x10]
add rsp, 0x28
ret

Function at 0x14000770d
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, r8
xor r8d, r8d
mov rbx, r9
cmp dword [rsp + 0x80], 0
setne r8b
lea r9, [rsp + 0x38]
mov dword [rsp + 0x30], 0x4000
shl r8d, 9
or r8d, 0x20019
call fcn.140007675
test eax, eax
je 0x140007750
mov word [rbx], 0
jmp 0x14000779a
lea rax, [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [rbx + 0x3ffe], 0
test esi, esi
jne 0x140007749
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140007749
add rsp, 0x48
pop rbx
pop rsi
ret