joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402b6c64
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140291ca8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140291ca8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402b6db4
cmp rax, 0xffffffffffffffff
je 0x1402b6db4
xor edi, edi
test rbp, rbp
jle 0x1402b6d5f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402a2e38
mov rbx, rax
test rax, rax
jne 0x1402b6cec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402b6d55
mov edx, 0x8000
mov ecx, r14d
call fcn.14029c2b4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14029ff4c
cmp eax, 0xffffffff
je 0x1402b6d35
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402b6cfc
mov edx, r15d
mov ecx, r14d
call fcn.14029c2b4
jmp 0x1402b6d55
cmp byte [rsi + 0x38], dil
je 0x1402b6d4c
cmp dword [rsi + 0x34], 5
jne 0x1402b6d4c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402b6d55
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402a2eb8
jmp 0x1402b6dc8
jns 0x1402b6dc8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140291ca8
cmp rax, 0xffffffffffffffff
jne 0x1402b6d80
cmp byte [rsi + 0x30], dil
je 0x1402b6dc8
mov edi, dword [rsi + 0x2c]
jmp 0x1402b6dc8
mov ecx, r14d
call fcn.1402ac014
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402b6dc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1402b6dc8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402b6dc1
mov eax, dword [rsi + 0x2c]
jmp 0x1402b6dc6
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140291ca8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1402bb088
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14034e740]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402bb0d2
call fcn.14028d4ec
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14028d50c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1402870d4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14023b800
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402bb0dd
lea eax, [rbx + 1]
jmp 0x1402bb0bf
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1402bb0bd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402bb0bf
Function at 0x1402bbccc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14024d850
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402bbd56
cmp byte [rbp - 0x21], r15b
je 0x1402bbd51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402bbd8c
call fcn.1402a3bec
test eax, eax
jne 0x1402bbd78
cmp byte [rbp - 0x21], r15b
je 0x1402bbd70
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402bbd8c
cmp byte [rbp - 0x21], r15b
je 0x1402bbd89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14028a650
test eax, eax
jne 0x1402bbe2c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14024d850
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402bbdcb
cmp byte [rbp - 0x21], r15b
je 0x1402bbe00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402bbe00
call fcn.1402a3bec
test eax, eax
jne 0x1402bbdec
cmp byte [rbp - 0x21], r15b
je 0x1402bbde5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402bbe00
cmp byte [rbp - 0x21], r15b
je 0x1402bbdfd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14028a650
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402bbe2c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402bbe2f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402bbe3d
mov rcx, rdi
call fcn.1402a2eb8
cmp byte [rbp + 0x3f], r15b
je 0x1402bbe4c
mov rcx, qword [rbp + 0x27]
call fcn.1402a2eb8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1402be0a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402be0c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402be0c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
mov r10d, dword [r9]
xor r12d, r12d
and r10d, 7
mov r14, r9
mov ebp, r8d
mov rbx, rcx
mov r11d, r12d
cmp rdx, 5
jae 0x140001bda
xor eax, eax
jmp 0x140001d29
lea rsi, [rdx - 4]
add ebp, 5
add rsi, rbx
lea r8, [r11 + rbx]
jmp 0x140001bf6
mov al, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x140001bfb
inc r8
cmp r8, rsi
jb 0x140001bea
mov rax, r8
sub rax, r11
mov r11, r8
sub r11, rbx
sub rax, rbx
cmp r8, rsi
jae 0x140001d16
cmp rax, 2
jbe 0x140001c94
mov r10d, r12d
movzx ecx, byte [r8 + 4]
lea eax, [rcx + 1]
test al, 0xfe
jne 0x140001d02
movzx eax, byte [r8 + 3]
lea edi, [r11 + rbp]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
sub eax, edi
cmp dword [rsp + 0x38], r12d
lea r9d, [rdi + rcx]
cmove r9d, eax
mov edx, r9d
test r10d, r10d
je 0x140001cd9
and r10d, 6
mov eax, r9d
shl r10d, 2
mov ecx, r10d
shr eax, cl
inc eax
test al, 0xfe
jne 0x140001cd6
mov edx, 0x100
shl edx, cl
dec edx
xor edx, r9d
cmp dword [rsp + 0x38], r12d
je 0x140001cd4
add edx, edi
jmp 0x140001cd6
mov ecx, eax
shr r10d, cl
test r10d, r10d
je 0x140001c1c
cmp r10d, 4
ja 0x140001cc5
cmp r10d, 3
je 0x140001cc5
mov eax, r10d
shr rax, 1
movzx ecx, byte [rax + r8 + 1]
inc ecx
test cl, 0xfe
jne 0x140001c1c
or r10d, 8
shr r10d, 1
inc r11
jmp 0x140001be4
sub edx, edi
mov r10d, r12d
mov eax, edx
mov byte [r8 + 1], dl
shr eax, 8
mov byte [r8 + 2], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
and dl, 1
mov byte [r8 + 3], al
neg dl
mov eax, 5
mov byte [r8 + 4], dl
jmp 0x140001d0e
or r10d, 8
mov eax, 1
shr r10d, 1
add r11, rax
jmp 0x140001be4
mov ecx, eax
shr r10d, cl
cmp rax, 2
mov rax, r11
cmova r10d, r12d
mov dword [r14], r10d
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r14
pop r12
ret
Function at 0x14000206c
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3a0
mov rax, qword [0x14003f778]
xor rax, rsp
mov qword [rsp + 0x390], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400020b0
cmp dword [rsp + 0x24], 6
jne 0x1400020b0
cmp dword [rsp + 0x28], 0
je 0x1400020e5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400020e5
mov ecx, 0xc00
call qword [case.0x14000d2be.0]
test eax, eax
jne 0x14000218a
mov edx, 0x106
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14000218a
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, 0x5c
lea ecx, [rbx - 1]
cmp word [rsp + rcx*2 + 0xc0], ax
je 0x140002131
mov word [rsp + rbx*2 + 0xc0], ax
inc ebx
cmp byte [str.UXTHEME], 0
lea rdi, str.UXTHEME
je 0x14000218a
mov r8d, ebx
movzx edx, byte [rdi]
inc rdi
mov eax, r8d
inc r8d
mov word [rsp + rax*2 + 0xc0], dx
test dl, dl
jne 0x140002144
lea rdx, str..dll
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
lea rcx, [rsp + 0xc0]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [rdi], 0
jne 0x140002141
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140021400
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x3a0
pop rdi
ret

Function at 0x140006ef0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov r8, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call fcn.14001d48c
mov rcx, rax
mov qword [rbx], rax
call fcn.140006e3c
add rsp, 0x30
pop rbx
ret

Function at 0x14000917c
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140009190
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400091a4
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400091bc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
test eax, eax
je 0x1400091db
mov al, 1
jmp 0x14000922b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400091ec
xor al, al
jmp 0x14000922b
lea rcx, [rsp + 0x20]
call fcn.1400099c0
lea rcx, [rsp + 0x48]
call fcn.140007af4
nop
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140009ce4
test al, al
je 0x14000921f
mov ebx, dword [rsp + 0x40]
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x48]
call fcn.140021420
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400093c4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140009cc8
cmp eax, 0xffffffff
je 0x1400093f2
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x1400093f2
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call fcn.14000917c
test al, al
je 0x140009403
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140009403
mov al, 1
jmp 0x140009405
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14000964c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140009660
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14003f778]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x20], cx
mov rax, qword [rdi]
mov dword [rdi + 8], ecx
mov word [rax], cx
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.140007c30
lea eax, [rbx - 1]
cmp eax, 0x103
setbe al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140021400
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret

Function at 0x140009764
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14003f778]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x20], cx
mov rax, qword [rdi]
mov dword [rdi + 8], ecx
mov word [rax], cx
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.140007c30
lea eax, [rbx - 1]
cmp eax, 0x103
setbe al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140021400
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x1400097e4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14003f778]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, r8
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ebx, [rax*4]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
xor ebp, edi
xor edi, edi
mov ebx, edi
lea r15d, [rdi + 1]
mov rdx, r14
mov rcx, rsi
call fcn.140007c30
mov edx, ebp
lea r8, [rsp + 0x20]
mov r9d, 8
mov ecx, edx
shr edx, 4
and ecx, 0xf
cmp ecx, 0xa
sbb al, al
and al, 0xf9
add al, 0x37
add al, cl
mov byte [r8], al
add r8, r15
sub r9, r15
jne 0x14000984d
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x28], dil
mov rcx, rsi
call fcn.140008028
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsi]
add eax, 2
cmove eax, r15d
add ebp, eax
call fcn.14000a2b4
test al, al
je 0x1400098a5
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400098c3
mov rcx, qword [rsi]
call fcn.1400091a4
test al, al
jne 0x1400098dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x1400098c3
cmp eax, 0xb7
jne 0x1400098cf
add ebx, r15d
cmp ebx, 0x64
jb 0x140009835
mov rax, qword [rsi]
mov dword [rsi + 8], edi
mov word [rax], di
xor al, al
jmp 0x1400098df
mov al, r15b
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140021400
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140009cc8
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14000a340
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x14003f778]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rcx, qword [rcx]
mov rbx, rdx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140009b2f
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140009a10
mov al, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140021400
add rsp, 0x280
pop rbx
ret
cmp qword [rcx], 0xffffffffffffffff
jne 0x140009af0
mov r8, rdx
mov rdx, qword [rcx + 8]
jmp fcn.140009a7c

Function at 0x14000a458
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000a48d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000a48d
xor al, al
jmp 0x14000a49d
mov ecx, dword [rsp + 0x30]
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a628
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14000a65c
Capabilities:
Read file on windows

Disassembly:
mov eax, r8d
mov r8d, 0x400000
cmp eax, r8d
cmovbe r8d, eax
jmp fcn.14000a628

Function at 0x14000a758
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x50], 0
mov eax, r8d
mov rcx, qword [rcx]
mov r8d, 0x400000
cmp eax, r8d
mov rbx, r9
lea r9, [rsp + 0x50]
cmovbe r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14000a808
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14000acac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14003f778]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x20], cx
mov rax, qword [rdi]
mov dword [rdi + 8], ecx
mov word [rax], cx
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.140007c30
lea eax, [rbx - 1]
cmp eax, 0x103
setbe al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140021400
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret

Function at 0x14000b5d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14003f778]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call fcn.14000b5a0
test eax, eax
je 0x14000b602
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000b602
call fcn.14000b584
jmp 0x14000b611
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140021400
add rsp, 0x78
ret

Function at 0x14000b624
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14003f778]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs rax, 0x100000000
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14000b675
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
cmovb rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140021400
add rsp, 0x70
pop rbx
ret
Function at 0x14001dfa4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ddd0

Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f70
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]
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012c80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012ca0
xor al, al
jmp 0x140012d21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012cb3
xor al, al
jmp 0x140012d21
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 0x140012cdd
xor al, al
jmp 0x140012d21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012cf1
xor al, al
jmp 0x140012d21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d03
xor al, al
jmp 0x140012d21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d1f
xor al, al
jmp 0x140012d21
mov al, 1
add rsp, 0x38
ret
Function at 0x140013276
Capabilities:
Create thread

Disassembly:
jmp 0x140025a10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140046040]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14004d2c8]
call fcn.140013c4e
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.14001337f
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140013636
nop
lea rax, [0x140013820]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.14001384d
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x140025aec
lea rcx, [rbp + 8]
call fcn.14001352d
nop
jmp 0x140025b05
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400132ad
nop
lea rcx, [rbp + 8]
call fcn.1400134f6
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14003f6b0]
call fcn.140013a0a
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400135eb
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x1400132cb
Capabilities:
Create process on windows

Disassembly:
jmp 0x140019760
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x140046040]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14004d162]
call fcn.140013c4e
nop
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14001391f
nop
mov dword [rbp + 0x10], 0x68
mov dword [rbp + 0x4c], 1
xor eax, eax
mov word [rbp + 0x50], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.14001391f
nop
mov rcx, qword [rbp + 0x1a0]
call fcn.1400133f7
lea rcx, [rbp + 0x98]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001986c
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x50]
lea rdx, [0x14003cf90]
call fcn.140013a0a
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400135eb
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret