joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002e30
Capabilities:
Get file size

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x278]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, eax
or rax, 0xffffffffffffffff
test edx, edx
je 0x140002e55
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x140002f18
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
xor eax, eax
mov rcx, qword [rcx + 0x278]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
add rsp, 0x38
ret

Function at 0x140002f3a
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
xor eax, eax
mov rcx, qword [rcx + 0x278]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
add rsp, 0x38
ret

Function at 0x140002fdd
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, 0x1006
imul edx, edx, 0x3e8
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x4c], edx
mov edx, 0xffff
call rsi
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
mov edx, 0xffff
call rsi
nop
add rsp, 0x50
pop rsi
ret

Function at 0x1400036b3
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
xor edx, edx
xor r9d, r9d
lea r8, [0x14000356b]
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret

Function at 0x140003996
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1400026de
movsd qword [0x140016280], xmm0
call fcn.140003bd9
call fcn.140003d72
xor eax, eax
xor edx, edx
mov rbx, qword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [0x140003f04]
call rbx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r8d
lea r8, [0x140003856]
call rbx
nop
add rsp, 0x30
pop rbx
ret

Function at 0x140003a45
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov edx, 1
mov ecx, 0x1000
lea rbp, str.Counter
mov dword [rsp + 0x3c], 0x1000
lea rsi, [rsp + 0x3c]
call fcn.14000237a
mov r12, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rbx, rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov rdx, rbp
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000004
call r12
test eax, eax
je 0x140003ac7
cmp eax, 0xea
jne 0x140003acc
mov eax, dword [rsp + 0x3c]
mov rcx, rbx
lea edx, [rax + rax]
mov dword [rsp + 0x3c], edx
call sub.msvcrt.dll_realloc
mov ecx, dword [rsp + 0x3c]
mov rbx, rax
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
jmp 0x140003a7c
mov sil, 1
jmp 0x140003ace
xor esi, esi
mov rcx, 0xffffffff80000004
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test sil, sil
jne 0x140003aef
test rbx, rbx
je 0x140003aed
mov rcx, rbx
call sub.msvcrt.dll_free
xor ebx, ebx
mov rax, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140003d72
Capabilities:
Get system information on windows

Disassembly:
push rbx
add rsp, 0xffffffffffffff80
lea rcx, [rsp + 0x50]
lea rbx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x70]
mov rcx, rbx
mov dword [0x1400162c8], eax
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x38]
mov qword [0x1400162e0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x40]
mov r8, rbx
mov rdx, rbx
mov rcx, rax
mov qword [0x1400162c0], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rax, qword [rsp + 0x40]
mov byte [0x1400162a0], 1
mov qword [0x1400162d8], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1400162d0], rax
sub rsp, 0xffffffffffffff80
pop rbx
ret

Function at 0x140003f50
Capabilities:
Get memory capacity

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
xor eax, eax
mov rsi, rcx
lea rdi, [rsp + 0x24]
mov ecx, 0xf
mov rbx, rdx
rep stosd dword [rdi], eax
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
sub rax, qword [rsp + 0x30]
mov qword [rbx], rax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400043ee
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.Rstrtmgr.dll
call rdi
mov rbx, rax
test rax, rax
je 0x1400044b5
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RmStartSession
mov rcx, rax
call rsi
mov qword [0x140016328], rax
test rax, rax
je 0x1400044b5
lea rdx, str.RmEndSession
mov rcx, rbx
call rsi
mov qword [0x140016320], rax
test rax, rax
je 0x1400044b5
lea rdx, str.RmRegisterResources
mov rcx, rbx
call rsi
mov qword [0x140016318], rax
test rax, rax
je 0x1400044b5
lea rdx, str.RmGetList
mov rcx, rbx
call rsi
mov qword [0x140016310], rax
test rax, rax
je 0x1400044b5
lea rdx, str.RmShutdown
mov rcx, rbx
call rsi
mov qword [0x140016308], rax
test rax, rax
je 0x1400044b5
lea rcx, str.Kernel32.dll
call rdi
mov rcx, rax
test rax, rax
je 0x1400044b5
lea rdx, str.QueryFullProcessImageNameA
call rsi
mov qword [0x140016300], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140004722
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
xor edx, edx
xor r9d, r9d
lea r8, [0x140004683]
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x38
ret

Function at 0x140004eca
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, eax
shr eax, 4
xor eax, 1
and eax, 1
inc edx
mov edx, 0
cmove eax, edx
and eax, 1
add rsp, 0x28
ret

Function at 0x140004f56
Capabilities:
Get file size

Disassembly:
sub rsp, 0x38
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, eax
or rax, 0xffffffffffffffff
test edx, edx
je 0x140004f74
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x140004f79
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
add rsp, 0x48
ret

Function at 0x140004fa0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
xor r10d, r10d
mov eax, r9d
xor r9d, r9d
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x3c], r9d
imul r8d, eax
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
add rsp, 0x48
ret

Function at 0x140004fd0
Capabilities:
Delete file

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r12, qword [rsp + 0x70]
mov rbp, rdx
mov rdi, r8
mov rsi, r9
call rbx
mov rcx, rbp
call rbx
mov rcx, rdi
call rbx
mov rcx, rsi
call rbx
mov rcx, r12
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp rax
Function at 0x140005c17
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [0x140012770]
mov r9b, byte [rax]
lea rax, [rdx + 0x260]
test r9b, r9b
mov r9d, dword [rdx + 0x248]
mov edx, dword [rdx + 0x24c]
je 0x140002832
add r9d, edx
mov rdx, rax
mov r9d, r9d
jmp 0x1400060f7
add r9d, edx
add rcx, 0x100
mov rdx, rax
mov r9d, r9d
jmp 0x140005c17
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
lea rbp, [r8 + r9]
mov rbx, r8
lea r12, [rcx + 8]
cmp rbx, rbp
je 0x140005c66
xor eax, eax
mov dl, byte [rdi + rax]
xor byte [rbx + rax], dl
inc rax
cmp rax, 0x10
jne 0x140005c39
mov ecx, dword [rsi + 0xf8]
mov r8, rbx
mov rdx, r12
add rbx, 0x10
call fcn.140005c85
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdi], xmm0
jmp 0x140005c32
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
push rdi
push rsi
sub rsp, 0x1a8
movups xmmword [rsp + 0x100], xmm6
movups xmmword [rsp + 0x110], xmm7
movups xmmword [rsp + 0x120], xmm8
movups xmmword [rsp + 0x130], xmm9
movups xmmword [rsp + 0x140], xmm10
movups xmmword [rsp + 0x150], xmm11
movups xmmword [rsp + 0x160], xmm12
movups xmmword [rsp + 0x170], xmm13
movups xmmword [rsp + 0x180], xmm14
movups xmmword [rsp + 0x190], xmm15
movups xmm0, xmmword [rdx]
mov rsi, rcx
mov ecx, dword [rcx + 0xf8]
mov rax, rdx
add r9, r8
lea r10, [rsp + 0x10]
add rsi, 8
mov rdx, rcx
inc rcx
mov rdi, r10
shl rcx, 4
rep movsb byte [rdi], byte [rsi]
movups xmm4, xmmword [rsp + 0x20]
movups xmm15, xmmword [rsp + 0x10]
movups xmm5, xmmword [rsp + 0x40]
movups xmm6, xmmword [rsp + 0x50]
movups xmmword [rsp], xmm4
movups xmm7, xmmword [rsp + 0x60]
movups xmm4, xmmword [rsp + 0x30]
movups xmm8, xmmword [rsp + 0x70]
movups xmm9, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0xb0]
movups xmm10, xmmword [rsp + 0x90]
movups xmm11, xmmword [rsp + 0xa0]
movups xmm12, xmmword [rsp + 0xc0]
movups xmm2, xmmword [rsp + 0xd0]
movups xmm13, xmmword [rsp + 0xe0]
movups xmm14, xmmword [rsp + 0xf0]
cmp r8, r9
je 0x140006271
movups xmm3, xmmword [r8]
xorps xmm0, xmm15
xorps xmm0, xmm3
aesenc xmm0, xmmword [rsp]
aesenc xmm0, xmm4
aesenc xmm0, xmm5
aesenc xmm0, xmm6
aesenc xmm0, xmm7
aesenc xmm0, xmm8
aesenc xmm0, xmm9
aesenc xmm0, xmm10
aesenc xmm0, xmm11
cmp edx, 0xa
jne 0x14000623f
aesenclast xmm0, xmm1
jmp 0x140006267
aesenc xmm0, xmm1
aesenc xmm0, xmm12
cmp edx, 0xc
jne 0x140006256
aesenclast xmm0, xmm2
jmp 0x140006267
aesenc xmm0, xmm2
aesenc xmm0, xmm13
aesenclast xmm0, xmm14
movups xmmword [r8], xmm0
add r8, 0x10
jmp 0x1400061f1
movups xmm6, xmmword [rsp + 0x100]
movups xmmword [rax], xmm0
movups xmm7, xmmword [rsp + 0x110]
movups xmm8, xmmword [rsp + 0x120]
movups xmm9, xmmword [rsp + 0x130]
movups xmm10, xmmword [rsp + 0x140]
movups xmm11, xmmword [rsp + 0x150]
movups xmm12, xmmword [rsp + 0x160]
movups xmm13, xmmword [rsp + 0x170]
movups xmm14, xmmword [rsp + 0x180]
movups xmm15, xmmword [rsp + 0x190]
add rsp, 0x1a8
pop rsi
pop rdi
ret
Function at 0x1400060f7
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x140012770]
mov r9b, byte [rax]
lea rax, [rdx + 0x260]
test r9b, r9b
mov r9d, dword [rdx + 0x248]
mov edx, dword [rdx + 0x24c]
je 0x140002832
add r9d, edx
mov rdx, rax
mov r9d, r9d
jmp 0x1400060f7
add r9d, edx
add rcx, 0x100
mov rdx, rax
mov r9d, r9d
jmp 0x140005c17
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
lea rbp, [r8 + r9]
mov rbx, r8
lea r12, [rcx + 8]
cmp rbx, rbp
je 0x140005c66
xor eax, eax
mov dl, byte [rdi + rax]
xor byte [rbx + rax], dl
inc rax
cmp rax, 0x10
jne 0x140005c39
mov ecx, dword [rsi + 0xf8]
mov r8, rbx
mov rdx, r12
add rbx, 0x10
call fcn.140005c85
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdi], xmm0
jmp 0x140005c32
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
push rdi
push rsi
sub rsp, 0x1a8
movups xmmword [rsp + 0x100], xmm6
movups xmmword [rsp + 0x110], xmm7
movups xmmword [rsp + 0x120], xmm8
movups xmmword [rsp + 0x130], xmm9
movups xmmword [rsp + 0x140], xmm10
movups xmmword [rsp + 0x150], xmm11
movups xmmword [rsp + 0x160], xmm12
movups xmmword [rsp + 0x170], xmm13
movups xmmword [rsp + 0x180], xmm14
movups xmmword [rsp + 0x190], xmm15
movups xmm0, xmmword [rdx]
mov rsi, rcx
mov ecx, dword [rcx + 0xf8]
mov rax, rdx
add r9, r8
lea r10, [rsp + 0x10]
add rsi, 8
mov rdx, rcx
inc rcx
mov rdi, r10
shl rcx, 4
rep movsb byte [rdi], byte [rsi]
movups xmm4, xmmword [rsp + 0x20]
movups xmm15, xmmword [rsp + 0x10]
movups xmm5, xmmword [rsp + 0x40]
movups xmm6, xmmword [rsp + 0x50]
movups xmmword [rsp], xmm4
movups xmm7, xmmword [rsp + 0x60]
movups xmm4, xmmword [rsp + 0x30]
movups xmm8, xmmword [rsp + 0x70]
movups xmm9, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0xb0]
movups xmm10, xmmword [rsp + 0x90]
movups xmm11, xmmword [rsp + 0xa0]
movups xmm12, xmmword [rsp + 0xc0]
movups xmm2, xmmword [rsp + 0xd0]
movups xmm13, xmmword [rsp + 0xe0]
movups xmm14, xmmword [rsp + 0xf0]
cmp r8, r9
je 0x140006271
movups xmm3, xmmword [r8]
xorps xmm0, xmm15
xorps xmm0, xmm3
aesenc xmm0, xmmword [rsp]
aesenc xmm0, xmm4
aesenc xmm0, xmm5
aesenc xmm0, xmm6
aesenc xmm0, xmm7
aesenc xmm0, xmm8
aesenc xmm0, xmm9
aesenc xmm0, xmm10
aesenc xmm0, xmm11
cmp edx, 0xa
jne 0x14000623f
aesenclast xmm0, xmm1
jmp 0x140006267
aesenc xmm0, xmm1
aesenc xmm0, xmm12
cmp edx, 0xc
jne 0x140006256
aesenclast xmm0, xmm2
jmp 0x140006267
aesenc xmm0, xmm2
aesenc xmm0, xmm13
aesenclast xmm0, xmm14
movups xmmword [r8], xmm0
add r8, 0x10
jmp 0x1400061f1
movups xmm6, xmmword [rsp + 0x100]
movups xmmword [rax], xmm0
movups xmm7, xmmword [rsp + 0x110]
movups xmm8, xmmword [rsp + 0x120]
movups xmm9, xmmword [rsp + 0x130]
movups xmm10, xmmword [rsp + 0x140]
movups xmm11, xmmword [rsp + 0x150]
movups xmm12, xmmword [rsp + 0x160]
movups xmm13, xmmword [rsp + 0x170]
movups xmm14, xmmword [rsp + 0x180]
movups xmm15, xmmword [rsp + 0x190]
add rsp, 0x1a8
pop rsi
pop rdi
ret
Function at 0x1400080c0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
xor r11d, r11d
mov edi, 0x20
mov eax, ecx
mov r10d, edx
xor eax, r8d
mov ebx, eax
neg ebx
or ebx, eax
mov eax, 0x1f
sar ebx, 0x1f
and ebx, ecx
mov esi, edi
mov edx, ebx
mov ebp, r10d
mov r12d, ebx
sub esi, eax
mov ecx, esi
shl edx, cl
mov ecx, eax
shr ebp, cl
mov ecx, r8d
or edx, ebp
mov ebp, edx
xor edx, r8d
sub ebp, r8d
xor ecx, ebp
and edx, ecx
mov ecx, eax
xor edx, ebp
shr r12d, cl
mov ecx, esi
mov esi, r8d
shr edx, 0x1f
shr ebp, cl
mov ecx, eax
xor edx, 1
shl esi, cl
mov ecx, r10d
xor ebp, ebx
or edx, r12d
sub ecx, esi
mov r12d, edx
xor ecx, r10d
neg r12d
and ecx, r12d
and ebp, r12d
xor r10d, ecx
mov ecx, eax
xor ebx, ebp
shl edx, cl
or r11d, edx
dec eax
jne 0x1400080e6
mov ecx, r10d
mov eax, r8d
sub ecx, r8d
xor eax, r10d
xor r8d, ecx
and eax, r8d
xor eax, ecx
xor ecx, r10d
shr eax, 0x1f
xor eax, 1
or eax, ebx
mov edx, eax
or eax, r11d
neg edx
and edx, ecx
xor edx, r10d
mov dword [r9], edx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140008580
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.14000e3f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000e3f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400085f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400168d4]
mov rbx, rcx
test esi, esi
jle 0x140008720
mov rax, qword [0x1400168d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000863b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400086c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140008620
mov rcx, rbx
call fcn.140009040
mov rdi, rax
test rax, rax
je 0x140008742
mov rax, qword [0x1400168d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140009180
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400168d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140008727
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400086be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400086d0
add dword [0x1400168d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400168d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400086be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140008580
nop dword [rax]
xor esi, esi
jmp 0x140008648
mov rax, qword [0x1400168d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140008580
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140008580
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140008cb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140016940]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140016920]
test rbx, rbx
je 0x140008d0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140008d03
test rsi, rsi
je 0x140008d03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008ce8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140009040
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140012600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140009060
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140009068
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140009060
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400090bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400090b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140009060
add rax, 0x28
cmp rax, r9
jne 0x1400090a0
xor eax, eax
ret

Function at 0x1400090c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012600]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400090df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400090e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400090df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140009180
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012600]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000919f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400091a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400091f0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
push r14
push r15
mov eax, 0x10a0
call fcn.140014660
sub rsp, rax
mov rax, qword [0x140021040]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov r14, rdx
mov qword [rsp + 0x48], r9
mov rdx, qword [rsp + 0x10f0]
xor ebp, ebp
mov qword [rsp + 0x40], rdx
mov r13, r8
test r8, r8
jne 0x14000923f
mov edx, ebp
jmp 0x140009393
mov qword [rsp + 0x10d0], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x1098], rsi
mov rbx, rbp
mov rsi, r13
mov qword [rsp + 0x1090], rdi
sub rsi, rax
nop dword [rax + rax]
mov rcx, qword [0x140021c20]
lea rdi, [rsp + 0x80]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbp
add rdi, rbx
mov dword [rsp + 0x28], 0x30
mov r9d, 0x30
mov qword [rsp + 0x50], rbp
mov edx, 0x80002048
mov qword [rsp + 0x60], rbp
movdqu xmmword [rsp + 0x6c], xmm0
lea rax, [rsi + rdi]
mov dword [rsp + 0x7c], ebp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140009378
movzx eax, byte [rsp + 0x6c]
inc rbx
mov byte [rdi], al
cmp rbx, 0x1000
jb 0x140009270
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140009302
movsxd rax, dword [rsp + 0xbc]
lea rcx, [rsp + 0x80]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x140009378
nop word [rax + rax]
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140009371
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140009363
cmp rdi, rax
je 0x1400093cb
inc esi
cmp esi, r15d
jb 0x140009340
mov rdx, rbp
mov rsi, qword [rsp + 0x1098]
mov rbx, qword [rsp + 0x10d0]
mov rdi, qword [rsp + 0x1090]
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.1400090e0
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.140013550
add rsp, 0x10a0
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140009378
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x80]
add rdx, rax
je 0x140009378
test ecx, ecx
je 0x140009378
lea rax, [rsp + 0x80]
mov ebp, ecx
sub rdx, rax
add rdx, r13
jmp 0x14000937b
Function at 0x14000a210
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000a238
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000a25e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000a260
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000a2b9
test ecx, ecx
jle 0x14000a299
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000a2b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000a2b9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14000a2e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000a302
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000a318
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a334
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a336
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a372
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000a40e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a3ad
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000a3ee
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000a40e
cmp rbx, rax
ja 0x14000a3c0
test rbx, rbx
je 0x14000a40e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret