joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048c3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rax + rcx + 0x88]
mov r12d, dword [rax + rcx + 0x1c]
mov r13d, dword [rax + rcx + 0x20]
add r13, rcx
mov ebp, dword [rax + rcx + 0x24]
add rbp, rcx
lea r14, [rsp + 0x28]
mov r15d, dword [r13]
add r15, rsi
mov rcx, r15
call sub.msvcrt.dll_strlen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.0040ae30
cmp dword [rsp + 0x28], 1
je 0x404966
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov r8, rbx
mov r9, rdi
call fcn.004422b5
test al, al
jne 0x404947
add r13, 4
add rbp, 2
jmp 0x404900
add r12, rsi
movzx eax, word [rbp]
mov eax, dword [r12 + rax*4]
add rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x30]
movups xmm0, xmmword [rax]
lea r8, [rsp + 0x40]
movaps xmmword [r8], xmm0
lea rax, str.src_main.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x00448308]
mov edx, 0x2b
call fcn.0040b530
int3
Function at 0x4118bc
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.00413d17
test rax, rax
je 0x4118f4
mov edx, 4
mov rcx, rax
call fcn.00408a20
jmp 0x41192d
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.00410e49
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.00410e8b
Function at 0x411956
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf8
mov rbx, rcx
mov esi, dword [0x00445028]
test esi, esi
je 0x411ae8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov r14, rax
cmp rax, 1
ja 0x411ad8
je 0x411ad5
test rbx, rbx
je 0x4119a4
mov rdi, qword [rbx]
and qword [rbx], 0
test rdi, rdi
jne 0x411a9a
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.00413d17
test rax, rax
jne 0x411afb
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdi, [rsp + 0x80]
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov rdx, rdi
call fcn.00410e49
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm2
mov ecx, 0x170
mov edx, 0x10
call fcn.00410e1a
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rdi + 0x10]
mov r8d, 0x100
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rdi + 0x110], 0x40
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movups xmm2, xmmword [rsp + 0x68]
movups xmmword [rdi + 0x118], xmm0
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x138], xmm2
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x148], rax
mov eax, 0x10000
mov qword [rdi + 0x150], rax
mov qword [rdi + 0x158], rax
and qword [rdi + 0x160], 0
mov ecx, 0x10
mov edx, 8
call fcn.00410e1a
mov r14, rax
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, r14
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x411ad8
mov rcx, rdi
call fcn.00410de2
jmp 0x411ad8
xor r14d, r14d
mov rax, r14
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x00445010]
call fcn.0041c7f0
mov esi, eax
jmp 0x411975
mov qword [rsp + 0x20], rax
lea rax, [0x0044e5e0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rax], rdi
lea rdx, [0x0044e4f0]
lea rcx, [rsp + 0xb0]
mov qword [rcx], rdx
mov edx, 1
mov qword [rcx + 8], rdx
and qword [rcx + 0x20], 0
lea r8, [0x00413cb7]
mov qword [rax + 8], r8
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
lea rdx, str._mnt_c_Users_admin_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rscould_not_initialize_thread_rng:
call fcn.00409650
int3
Function at 0x413d17
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x413d9d
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x413d37
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x413d37
mov al, byte [0x004590c8]
mov ecx, 4
call fcn.00408a10
test rax, rax
je 0x413db0
mov rsi, rax
and ebx, 0x7fffffff
mov dword [rax], ebx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.00408e20
int3

Function at 0x417560
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x417585
cmp rax, rcx
je 0x41758b
cmp rdx, 4
jae 0x417592
xor eax, eax
xor r8d, r8d
jmp 0x417630
pop rbp
jmp fcn.00409b20
xor eax, eax
jmp 0x417647
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x00446610]
movdqa xmm3, xmmword [0x00446620]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x4175c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x417647
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x417630
pop rbp
ret
Function at 0x41c560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x004450a8]
test esi, esi
je 0x41c605
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x41c5fc
je 0x41c5a9
test rdi, rdi
je 0x41c5ad
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x41c5af
mov rbx, qword [rdi + 8]
jmp 0x41c5af
xor eax, eax
jmp 0x41c5fc
xor ebx, ebx
movzx eax, byte [0x004590c8]
mov edx, 0x10
xor ecx, ecx
call fcn.0043f490
test rax, rax
je 0x41c618
mov qword [rax], rbx
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 0x41c5f9
mov edx, 8
mov rcx, rdi
call fcn.00408a20
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x00445090]
call fcn.0041c7f0
mov esi, eax
jmp 0x41c580
mov ecx, 8
mov edx, 0x10
call fcn.00408e20
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x004450c8]
test esi, esi
je 0x41c6d0
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x41c6c7
je 0x41c6c5
movzx eax, byte [0x004590c8]
mov edx, 0x10
xor ecx, ecx
call fcn.0043f490
test rax, rax
je 0x41c6e3
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 0x41c6c0
mov rax, qword [rdi]
test rax, rax
je 0x41c6b3
lock dec qword [rax]
jne 0x41c6b3
mov rcx, rdi
call fcn.0041ad40
mov edx, 8
mov rcx, rdi
call fcn.00408a20
mov rax, rsi
jmp 0x41c6c7
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x004450b0]
call fcn.0041c7f0
mov esi, eax
jmp 0x41c64d
mov ecx, 8
mov edx, 0x10
call fcn.00408e20
int3
Function at 0x41c7f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x41c885
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x41c8c4
cmp dword [rbp], 0
je 0x41c8a8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x41c8d9
mov edi, eax
mov rax, qword [0x0045c040]
mov rax, qword [0x004590b8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x004590b8], rsi
jne 0x41c860
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 0x41c8b9
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x41c91b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x41c8ad
mov edi, dword [rbp + 4]
jmp 0x41c8b9
mov edi, dword [rsi + 0x18]
jmp 0x41c8b7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.0041c950
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.00409650
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.0041c9a0
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x00445088]
test esi, esi
je 0x41ce8a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x41ce81
je 0x41ce7f
movzx eax, byte [0x004590c8]
mov edx, 0x18
xor ecx, ecx
call fcn.0043f490
test rax, rax
je 0x41ce9d
mov qword [rax], 0
mov byte [rax + 8], 0
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 0x41ce7a
mov edx, 8
mov rcx, rdi
call fcn.00408a20
mov rax, rsi
jmp 0x41ce81
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x00445070]
call fcn.0041c7f0
mov esi, eax
jmp 0x41ce19
mov ecx, 8
mov edx, 0x18
call fcn.00408e20
int3
Function at 0x41fdf0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov rax, r8
mov rdi, rcx
mov dword [rbp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 7
mov qword [rbp - 0x2c], 0
mov word [rbp - 0x24], 0
mov byte [rbp - 0x28], 1
lea r8, [rbp - 0x48]
mov rcx, rdx
mov rdx, rax
call fcn.0043c020
mov rsi, rdx
test rax, rax
je 0x41fe9e
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x41fe92
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rax, qword [r14]
test rax, rax
je 0x41fe72
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x41fe85
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.00408a20
mov edx, 8
mov rcx, rsi
call fcn.00408a20
mov qword [rdi], 0
jmp 0x41fff5
lea rcx, [rbp - 0x48]
mov rdx, rsi
call fcn.0043c290
cmp dword [rbp - 0x48], 2
jne 0x41ff17
mov rax, qword [rbp - 0x40]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x41fef7
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rax, qword [r15]
test rax, rax
je 0x41fed7
mov rcx, r14
call rax
cmp qword [r15 + 8], 0
je 0x41feea
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.00408a20
mov edx, 8
mov rcx, rbx
call fcn.00408a20
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rbp - 0x10]
test rsi, rsi
je 0x41ff65
mov qword [rbp - 0x48], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x48]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x41ffe1
mov rbx, qword [rbp - 0x48]
jmp 0x41ff67
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x41ffd0
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x41ffd0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x41ffed
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x41ffed
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x43dbb0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.0043c3a0
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
mov rcx, rax
neg rcx
jo 0x43dc10
movabs rbx, 0x8000000000000000
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
call fcn.0043c650
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x43dc1c
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x43dc40
test rdi, rdi
je 0x43dc64
mov edx, 2
mov rcx, rsi
call fcn.00408a20
xor eax, eax
jmp 0x43dc13
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x43dc13
mov edx, 2
mov rcx, rsi
mov rsi, rax
call fcn.00408a20
jmp 0x43dc10
xor eax, eax
jmp 0x43dc13

Function at 0x4430f0
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.004441b0
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.004441b0
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 0x443160
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004596d4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x443308
mov rax, qword [0x004596d8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4431ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x443237
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x443190
mov rcx, r12
call fcn.00443ec0
mov rbp, rax
test rax, rax
je 0x443342
mov rax, qword [0x004596d8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00443ff0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004596d8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x443351
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x443230
sub eax, 4
and eax, 0xfffffffb
jne 0x4432c0
add dword [0x004596d4], 1
cmp ebx, 8
jae 0x443268
test bl, 4
jne 0x443310
test ebx, ebx
je 0x443259
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x443330
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x443259
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x44329a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x004596d8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x443230
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004430f0
nop dword [rax]
xor edi, edi
jmp 0x4431b7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x443259
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x443259
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.004430f0
mov rax, qword [0x004596d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.004430f0
nop
nop dword [rax]
Function at 0x443b30
Capabilities:
Get thread local storage value

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

Function at 0x443ec0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00451f50]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x443f39
mov rcx, r10
call fcn.00443d90
test eax, eax
je 0x443f39
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x443f36
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x443f2d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x443f39
add r8, 0x28
cmp r8, r9
jne 0x443f18
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x4441f0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rdx]
movdqu xmm0, xmmword [r8]
sub r8, 0x10
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8]
sub r8, 0x10
aesdec xmm1, xmm0
sub cl, 1
cmp cl, 1
jne 0x444201
movdqu xmm0, xmmword [r8]
aesdeclast xmm1, xmm0
movdqu xmmword [r9], xmm1
ret

Function at 0x444460
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmmword [rdx], xmm1
movdqu xmmword [rdx + 0x10], xmm3
aeskeygenassist xmm2, xmm3, 1
call fcn.00444559
movdqu xmmword [rdx + 0x20], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.00444582
movdqu xmmword [rdx + 0x30], xmm3
aeskeygenassist xmm2, xmm3, 2
call fcn.00444559
movdqu xmmword [rdx + 0x40], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.00444582
movdqu xmmword [rdx + 0x50], xmm3
aeskeygenassist xmm2, xmm3, 4
call fcn.00444559
movdqu xmmword [rdx + 0x60], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.00444582
movdqu xmmword [rdx + 0x70], xmm3
aeskeygenassist xmm2, xmm3, 8
call fcn.00444559
movdqu xmmword [rdx + 0x80], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.00444582
movdqu xmmword [rdx + 0x90], xmm3
aeskeygenassist xmm2, xmm3, 0x10
call fcn.00444559
movdqu xmmword [rdx + 0xa0], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.00444582
movdqu xmmword [rdx + 0xb0], xmm3
aeskeygenassist xmm2, xmm3, 0x20
call fcn.00444559
movdqu xmmword [rdx + 0xc0], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.00444582
movdqu xmmword [rdx + 0xd0], xmm3
aeskeygenassist xmm2, xmm3, 0x40
call fcn.00444559
movdqu xmmword [rdx + 0xe0], xmm1
jmp 0x4445ab
ret
Function at 0x140002300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x20], xmm1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
call fcn.140001f20
mov rdi, rax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8, rdi
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140027fd0
call rbx
nop
test rdi, rdi
je 0x14000239c
mov rdx, qword [rsp + 0x30]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140002394
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023b6
mov rcx, rdi
call fcn.1400086a0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140008680
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.140010a14
int3

Function at 0x140007a24
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140007a52
xor eax, eax
jmp 0x140007b38
cmp qword [rcx + 0x68], 0
je 0x140007a63
call fcn.140007b54
jmp 0x140007b38
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007a7a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007a7c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007aae
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140027fd0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140007b32
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007ae5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140007b0e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140011c40
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140007b32
cmp rsi, rbx
ja 0x140007aec
test rsi, rsi
je 0x140007b32
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140011c40
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400094f0
Capabilities:
Parse pe header

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