joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030c30
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x141d16d60]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140030c9a
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140030ccd
test eax, eax
js 0x140030cae
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xa0
pop rsi
ret
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x141d16dc8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x70]
call fcn.140030f00
mov rcx, rax
call fcn.140035dc0
mov ecx, 7
int 0x29
ud2

Function at 0x140031460
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400314e5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14003151c
cmp dword [rsp + 0x2c], 0
je 0x14003150d
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003151e
mov edi, eax
mov rax, qword [0x141d20038]
mov rax, qword [0x141d1d0f8]
nop dword [rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x141d1d0f8], rsi
jne 0x1400314c0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140031512
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003151c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140031512
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140031512
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2

Function at 0x1400324b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
movzx r9d, byte [rdx + 0x38]
cmp r9b, 1
Function at 0x140034ba0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
ror byte [rax - 0x77], 1
invalid
lea rcx, [rsp + 0x28]
call fcn.140032b00
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rcx, rax
invalid
neg rcx
jo 0x140034c08
movabs rbx, 0x8000000000000000
mov rcx, qword [rsp + 0x38]
invalid
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.140033870
invalid
invalid
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
jne 0x140034c13
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x140034c3b
test rdi, rdi
je 0x140034c63
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rsi
mov eax, esi
call fcn.14004dc58
xor eax, eax
jmp 0x140034c0b
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140034c0b
invalid
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rsi
mov rsi, rax
invalid
call fcn.14004dc58
add bl, ch
movsd dword [rdi], dword [rsi]
xor eax, eax
jmp 0x140034c0b
Function at 0x14003d3e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.140032b00
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rcx, rax
neg rcx
jo 0x14003d446
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14003d4f0
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
cmp rbx, r14
jne 0x14003d4ab
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x14003d49c
mov rbx, qword [rdi - 1]
mov r15, qword [rdi + 7]
mov rax, qword [r15]
test rax, rax
je 0x14003d465
mov rcx, rbx
call rax
dec rdi
cmp qword [r15 + 8], 0
je 0x14003d48b
cmp qword [r15 + 0x10], 0x11
jb 0x14003d47a
mov rbx, qword [rbx - 8]
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rbx
call fcn.14004dc58
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
call fcn.14004dc58
mov qword [rsi], r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14003d4ca
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14003d49f
mov qword [rsi], r14
test rbx, rbx
je 0x14003d49f
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14004dc58
Function at 0x14003ede0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x141d1d110]
mov edx, 0x10
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x14003eeb0
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003f040]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14003eea3
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, qword [rbx]
test rax, rax
je 0x14003ee5b
mov rcx, rdi
call rax
cmp qword [rbx + 8], 0
je 0x14003ee7e
cmp qword [rbx + 0x10], 0x11
jb 0x14003ee6d
mov rdi, qword [rdi - 8]
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
call fcn.14004dc58
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rsi
call fcn.14004dc58
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

Function at 0x140041750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14005d0c8]
test esi, esi
je 0x1400417d3
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400417cb
je 0x1400417c9
movzx eax, byte [0x141d1d110]
mov edx, 0xc
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x1400417f0
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400417c4
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
call fcn.14004dc58
mov rax, rsi
jmp 0x1400417cb
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d0b0]
call fcn.140031460
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140041770
jmp 0x1400417cb
ud2

Function at 0x140041800
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov esi, dword [0x14005d108]
test esi, esi
je 0x1400418a9
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14004189c
je 0x14004189a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x141d1d110]
mov edx, 0x18
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x1400418ca
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140041895
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
call fcn.14004dc58
mov rax, rsi
jmp 0x14004189c
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d0f0]
call fcn.140031460
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140041829
jmp 0x14004189c
ud2
Function at 0x1400478d0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400479c8
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd r12, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test r12, r12
je 0x1400479a8
shl r12, 3
mov ebp, 8
xor r13d, r13d
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x28]
xor esi, esi
jmp 0x140047978
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + r13 + 0x10], xmm1
movups xmmword [rbp + r13], xmm0
inc rsi
mov qword [rsp + 0x38], rsi
add r13, 0x20
add r12, 0xfffffffffffffff8
je 0x1400479a8
mov r15, qword [rdi + rsi*8]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, rbx
mov rdx, r15
mov r8, rax
call fcn.1400319c0
cmp rsi, qword [rsp + 0x28]
jne 0x140047950
mov rcx, r14
call fcn.140006a30
mov rbp, qword [rsp + 0x30]
jmp 0x140047950
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
jmp 0x1400479df
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140049300
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0x188
movaps xmmword [rsp + 0x170], xmm7
movaps xmmword [rsp + 0x160], xmm6
mov rsi, rcx
call fcn.140041800
test rax, rax
je 0x140049529
movups xmm7, xmmword [rax]
inc qword [rax]
movzx eax, byte [0x141d1d110]
mov edx, 0x58410
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x140049529
mov rdi, rax
add rdi, 0x58000
mov r8d, 0x410
mov rcx, rdi
mov dl, 0xff
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xorps xmm6, xmm6
movups xmmword [rsp + 0x100], xmm6
movups xmmword [rsp + 0x110], xmm6
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 8
mov qword [rsp + 0xa0], 0
movabs rax, 0x8000000000000000
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xc0], 0
mov byte [rsp + 0xc8], 0
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xd8], 0x3ff
mov qword [rsp + 0xe0], 0x380
mov qword [rsp + 0xe8], 0
movups xmmword [rsp + 0xf0], xmm7
mov qword [rsp + 0x120], 0
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x140049431
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x1400494cb
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsp + 0x110], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsp + 0x118], rax
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov dl, 1
call fcn.1400418d0
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140041cd0
mov r8d, 0xd0
mov rcx, rsi
mov rdx, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
movaps xmm6, xmmword [rsp + 0x160]
movaps xmm7, xmmword [rsp + 0x170]
add rsp, 0x188
pop rdi
pop rsi
ret
ud2
Function at 0x140049530
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x140049575
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0x70], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x140049609
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsi + 0x80], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsi + 0x88], rax
mov rcx, rsi
mov dl, 1
call fcn.1400418d0
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140041cd0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rsi
ret
Function at 0x14004a140
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0
lea r15, [rsp + 0x58]
mov qword [rsp + 0x20], r15
lea rcx, [0x141d174bc]
lea r9, [0x141d174a0]
xor r12d, r12d
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x14004a250
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x14004a27a
mov rcx, r14
mov rdx, rbx
call fcn.140049af0
mov rbx, rax
mov qword [rsp + 0x58], 0
mov rax, qword [rdi]
mov qword [rsp + 0x40], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], 0
xor r15d, r15d
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x14004a283
mov r14, qword [rsp + 0x58]
test r14, r14
je 0x14004a2ad
test rbx, rbx
je 0x14004a20b
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov rcx, r14
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x14004a2da
mov qword [rsi + 8], r14
mov byte [rsi], 0x12
jmp 0x14004a2c1
mov edi, eax
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.oleaut32.dll_GetErrorInfo
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004a277
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r12d, edi
mov byte [rsi], 0
mov dword [rsi + 4], r12d
jmp 0x14004a2ca
mov ebp, eax
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.oleaut32.dll_GetErrorInfo
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004a2aa
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r15d, ebp
test rbx, rbx
je 0x14004a2ba
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov byte [rsi], 0
mov dword [rsi + 4], r15d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ebx, eax
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.oleaut32.dll_GetErrorInfo
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004a301
mov rax, qword [rcx]
call qword [rax + 0x10]
mov byte [rsi], 0
mov dword [rsi + 4], ebx
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
jmp 0x14004a2c1

Function at 0x14005be90
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x141d17ec0]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14005cca0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x14005bf00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x141d1d1a4]
mov rbx, rcx
test esi, esi
jle 0x14005c030
mov rax, qword [0x141d1d1a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14005bf4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14005bfd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14005bf30
mov rcx, rbx
call fcn.14005c9c0
mov rdi, rax
test rax, rax
je 0x14005c052
mov rax, qword [0x141d1d1a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14005cb00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x141d1d1a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14005c037
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14005bfce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14005bfe0
add dword [0x141d1d1a4], 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 [0x141d1d1a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14005bfce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x141d17f38]
mov edx, eax
call fcn.14005be90
nop dword [rax]
xor esi, esi
jmp 0x14005bf58
mov rax, qword [0x141d1d1a8]
mov edx, dword [rdi + 8]
lea rcx, [0x141d17f00]
mov r8, qword [rax + rbx + 0x18]
call fcn.14005be90
mov rdx, rbx
lea rcx, [0x141d17ee0]
call fcn.14005be90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14005c600
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x141d1d200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x141d1d1e0]
test rbx, rbx
je 0x14005c664
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14005c65b
test eax, eax
jne 0x14005c65b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14005c640
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 0x14005c9c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x141d18080]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14005c9e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14005c9e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14005c9e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14005ca3d
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 0x14005ca34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14005c9e0
add rax, 0x28
cmp rax, r9
jne 0x14005ca20
xor eax, eax
ret

Function at 0x14005ca40
Capabilities:
Parse pe header

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

Function at 0x14005cb00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x141d18080]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14005cb1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14005cb28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000b0d0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000b170
jmp 0x14000b15f
jae 0x14000b22f
cmp r8, 0x201
jae 0x14000b170
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000b1c7
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14000b19f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002cb60
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000b1f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000b29b
mov r8d, r13d
cmp r12, r8
jne 0x14000b150
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000b2cf
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000b15f
jmp 0x14000b170
cmp r14, r8
jb 0x14000b2e9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000d670
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000b284
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140004720
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000b26f
jmp 0x14000b284
lea rcx, [0x14002fe98]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14002dc10
jmp 0x14000b2fe
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14002dfc0
ud2