joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400187b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x1400450c8]
test ecx, ecx
je 0x1400188af
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400187e1
cmp qword [rax + 8], 0
jne 0x1400188a0
mov ecx, dword [0x1400450c8]
test ecx, ecx
je 0x1400188c2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400188a6
test rax, rax
jne 0x140018861
mov qword [rbp - 8], 0
lea rax, [0x1400450b0]
mov qword [rbp - 0x10], rax
movzx eax, byte [0x14005a148]
mov edx, 0x18
xor ecx, ecx
call fcn.1400378c0
test rax, rax
je 0x1400188ee
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400450c8]
test ecx, ecx
je 0x1400188d5
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov rdx, qword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
test rdx, rdx
je 0x1400188a0
test rcx, rcx
je 0x1400188a0
lock dec qword [rcx]
jne 0x1400188a0
lea rcx, [rbp - 8]
mov rsi, rax
call fcn.1400189c0
mov rax, rsi
add rax, 0x10
jmp 0x1400188a8
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea rcx, [0x1400450b0]
call fcn.140018a80
mov ecx, eax
jmp 0x1400187cb
lea rcx, [0x1400450b0]
call fcn.140018a80
mov ecx, eax
jmp 0x1400187f1
lea rcx, [0x1400450b0]
mov rsi, rax
call fcn.140018a80
mov ecx, eax
mov rax, rsi
jmp 0x140018853
mov ecx, 8
mov edx, 0x18
call fcn.140005a90
ud2
Function at 0x140018a80
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rsi, rcx
cmp qword [rcx], 0
je 0x140018b15
mov rax, qword [0x14005d038]
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 0x140018b54
cmp dword [rbp], 0
je 0x140018b38
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140018b77
mov edi, eax
mov rax, qword [0x14005a138]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14005a138], rsi
jne 0x140018af0
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 0x140018b49
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140018bb9
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140018b3d
mov edi, dword [rbp + 4]
jmp 0x140018b49
mov edi, dword [rsi + 0x18]
jmp 0x140018b47
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x30], 0
lea rdx, [0x140050b70]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp + 4]
lea r8, [rbp - 0x30]
call fcn.140018c20
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x30]
call fcn.140006ba0
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x30]
call fcn.140018c60
int3

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

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140045088]
test ecx, ecx
je 0x14001934d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400192dc
cmp byte [rax + 8], 0
jne 0x14001933e
mov ecx, dword [0x140045088]
test ecx, ecx
je 0x140019360
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140019344
test rax, rax
jne 0x140019338
movzx eax, byte [0x14005a148]
mov edx, 0x10
xor ecx, ecx
call fcn.1400378c0
test rax, rax
je 0x140019389
lea rcx, [0x140045070]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x140045088]
test ecx, ecx
je 0x140019373
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
jmp 0x140019346
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x140045070]
call fcn.140018a80
mov ecx, eax
jmp 0x1400192cb
lea rcx, [0x140045070]
call fcn.140018a80
mov ecx, eax
jmp 0x1400192e8
lea rcx, [0x140045070]
mov rsi, rax
call fcn.140018a80
mov ecx, eax
mov rax, rsi
jmp 0x14001932a
mov ecx, 8
mov edx, 0x10
call fcn.140005a90
int3
Function at 0x140019860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140045068]
test ecx, ecx
je 0x140019924
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140019896
cmp qword [rax + 8], 0
je 0x140019896
add rax, 0x10
jmp 0x14001991d
mov ecx, dword [0x140045068]
test ecx, ecx
je 0x140019937
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001991b
test rax, rax
jne 0x1400198fe
movzx eax, byte [0x14005a148]
mov edx, 0x20
xor ecx, ecx
call fcn.1400378c0
test rax, rax
je 0x140019960
lea rcx, [0x140045050]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140045068]
test ecx, ecx
je 0x14001994a
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x14001991d
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x140045050]
call fcn.140018a80
mov ecx, eax
jmp 0x14001987b
lea rcx, [0x140045050]
call fcn.140018a80
mov ecx, eax
jmp 0x1400198a6
lea rcx, [0x140045050]
mov rsi, rax
call fcn.140018a80
mov ecx, eax
mov rax, rsi
jmp 0x1400198f0
mov ecx, 8
mov edx, 0x20
call fcn.140005a90
int3

Function at 0x14001cbd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x14001cc56
test al, al
jne 0x14001cc2f
movzx esi, byte [rdx + 0x10]
xor r8d, r8d
xor eax, eax
Function at 0x140035770
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rbp - 0x60]
call fcn.140035350
mov rax, qword [rbp - 0x60]
cmp rax, rdi
jne 0x1400357bb
lea rcx, [rbp - 0x58]
call fcn.140017bc0
mov qword [rsi], rdi
jmp 0x1400359f4
mov qword [rbp + 0x3f0], rsi
mov qword [rbp + 0x3e8], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3f8], rax
mov qword [rbp + 0x400], 0
mov qword [rbp + 0x408], 2
mov qword [rbp + 0x410], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e0], rax
xor esi, esi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140035840
jmp 0x14003582f

Function at 0x140036ec0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov r15, r8
inc r15
sete r13b
je 0x140037070
js 0x14003707c
mov r14, r9
mov rbx, r8
mov r12, rdx
mov rdi, rcx
movzx eax, byte [0x14005a148]
xor ecx, ecx
mov rdx, r15
call fcn.1400378c0
test rax, rax
je 0x140037081
mov rsi, rax
mov rcx, rax
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
cmp rbx, 0xf
ja 0x140036f51
test rbx, rbx
je 0x140036fca
xor eax, eax
nop dword [rax]
cmp byte [r12 + rax], 0
je 0x140036f63
inc rax
cmp rbx, rax
jne 0x140036f40
jmp 0x140036f9e
xor ecx, ecx
mov rdx, r12
mov r8, rbx
call fcn.14000bef0
test rax, rax
je 0x140036f9e
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rdi + 8], rax
mov qword [rdi], 1
test r13b, r13b
jne 0x14003705b
mov edx, 1
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140005690
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], rsi
mov qword [rbp], rbx
cmp r15, rbx
jne 0x140036fdf
test rbx, rbx
je 0x14003708e
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rbx
mov eax, 1
jmp 0x140037090
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], rsi
mov qword [rbp], rbx
cmp r15, rbx
je 0x14003708e
mov byte [rsi + rbx], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 0x28], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 0x28]
mov rcx, rsi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14003702b
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14003703f
mov rcx, qword [r14]
mov rax, qword [rbp - 0x28]
movzx ecx, word [rcx]
mov qword [rdi + 0x10], rax
mov word [rdi + 0x18], cx
xor ecx, ecx
mov qword [rdi + 8], rax
mov qword [rdi], rcx
mov byte [rsi], 0
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.14000a730
call fcn.140005a50
mov ecx, 1
Function at 0x140037220
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140037284
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140037284
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140037284
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140037284
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400372c0
mov dword [rbp - 4], r9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 0xffff
mov r8d, 0x1005
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400372ad
xor eax, eax
jmp 0x1400372ba
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x1400372ba

Function at 0x140037650
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x14003767e
movsxd rdx, eax
xor eax, eax
jmp 0x140037692
call sub.ws2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400376a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400376ce
movsxd rdx, eax
xor ecx, ecx
jmp 0x1400376f1
call sub.ws2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1400376f1
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x1400450a8]
test ecx, ecx
je 0x14003b890
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14003b7f1
cmp qword [rax + 8], 0
jne 0x14003b881
mov ecx, dword [0x1400450a8]
test ecx, ecx
je 0x14003b8a3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14003b887
mov rsi, rax
test rax, rax
jne 0x14003b859
movzx eax, byte [0x14005a148]
mov edx, 0x20
xor ecx, ecx
call fcn.1400378c0
test rax, rax
je 0x14003b8cc
lea rcx, [0x140045090]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400450a8]
test ecx, ecx
je 0x14003b8b6
dec ecx
mov rsi, rax
mov rdx, rax
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm0, xmmword [rbp - 0x10]
mov rax, rsi
mov qword [rsi + 8], 1
movups xmmword [rsi + 0x10], xmm0
add rax, 0x10
jmp 0x14003b889
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea rcx, [0x140045090]
call fcn.140018a80
mov ecx, eax
jmp 0x14003b7db
lea rcx, [0x140045090]
call fcn.140018a80
mov ecx, eax
jmp 0x14003b801
lea rcx, [0x140045090]
mov rsi, rax
call fcn.140018a80
mov ecx, eax
mov rax, rsi
jmp 0x14003b84e
mov ecx, 8
mov edx, 0x20
call fcn.140005a90
int3
Function at 0x14003bad0
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
movaps xmmword [rsp + 0x150], xmm6
mov rdi, rdx
mov qword [rsp + 0x60], rcx
movabs r14, 0x8000000000000000
lea rax, [rdx + 0xa4]
mov qword [rsp + 0x108], rax
lea rax, [rdx + 0xc8]
mov qword [rsp + 0xe8], rax
lea rax, [rdx + 8]
mov qword [rsp + 0x110], rax
lea rax, [rdx + 0x50]
mov qword [rsp + 0x120], rax
lea r15, [rsp + 0xb0]
xorps xmm6, xmm6

Function at 0x14003c9d1
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x48]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rdx + 0x40]
lea r9, [0x140052398]
call fcn.14003c91e
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0xc8]
xor r8d, r8d
xor r9d, r9d
call sub.Secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x14003cb2c
test eax, eax
je 0x14003caac
cmp eax, 0x90317
je 0x14003cb26
cmp eax, 0x90321
jne 0x14003cb4a
mov dword [rdi + 0xa0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xa4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x48]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14003c950
and qword [rdi + 0xe8], 0
mov byte [rsi + 1], bl
jmp 0x14003cb58
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rdi + 0x38]
mov rax, qword [rdi + 0x40]
and qword [rdi + 0x20], 0
sub rcx, rdx
mov r8d, dword [rsp + 0x30]
mov r9, rcx
add r9, r8
jb 0x14003cb62
cmp rax, r9
jb 0x14003cb71
lea rax, [rdi + 0x10]
add rdx, rcx
add r8, rdx
mov rcx, rax
call fcn.140016d3c
and qword [rdi + 0x28], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x48]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14003c950
xor eax, eax
cmp qword [rdi + 0x48], 0
sete al
mov qword [rdi + 0xe8], rax
mov byte [rsi + 1], 0
jmp 0x14003cb58
mov byte [rsi + 1], 1
jmp 0x14003cb46
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0xe8], rax
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x14003cb58
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea r8, [0x1400523b0]
mov rdx, r9
call fcn.140008060
lea r8, [0x1400523b0]
mov rcx, r9
mov rdx, rax
call fcn.140007550
int3
Function at 0x140043ba0
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.140044940
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.140044940
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 0x140043c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14005a1c4]
mov rbx, rcx
test esi, esi
jle 0x140043d40
mov rax, qword [0x14005a1c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140043c5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140043ce5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140043c40
mov rcx, rbx
call fcn.140044660
mov rdi, rax
test rax, rax
je 0x140043d62
mov rax, qword [0x14005a1c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400447a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14005a1c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140043d47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140043cde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140043cf0
add dword [0x14005a1c4], 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 [0x14005a1c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140043cde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140043ba0
nop dword [rax]
xor esi, esi
jmp 0x140043c68
mov rax, qword [0x14005a1c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140043ba0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140043ba0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400442d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14005a220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005a200]
test rbx, rbx
je 0x14004432c
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 0x140044323
test rsi, rsi
je 0x140044323
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140044308
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 0x140044660
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400446e0
Capabilities:
Parse pe header

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

Function at 0x1400447a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140052bb0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400447bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400447c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400449c0
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 0x1400449d1
movdqu xmm0, xmmword [r8]
aesdeclast xmm1, xmm0
movdqu xmmword [r9], xmm1
ret

Function at 0x140044c30
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.140044d29
movdqu xmmword [rdx + 0x20], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140044d52
movdqu xmmword [rdx + 0x30], xmm3
aeskeygenassist xmm2, xmm3, 2
call fcn.140044d29
movdqu xmmword [rdx + 0x40], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140044d52
movdqu xmmword [rdx + 0x50], xmm3
aeskeygenassist xmm2, xmm3, 4
call fcn.140044d29
movdqu xmmword [rdx + 0x60], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140044d52
movdqu xmmword [rdx + 0x70], xmm3
aeskeygenassist xmm2, xmm3, 8
call fcn.140044d29
movdqu xmmword [rdx + 0x80], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140044d52
movdqu xmmword [rdx + 0x90], xmm3
aeskeygenassist xmm2, xmm3, 0x10
call fcn.140044d29
movdqu xmmword [rdx + 0xa0], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140044d52
movdqu xmmword [rdx + 0xb0], xmm3
aeskeygenassist xmm2, xmm3, 0x20
call fcn.140044d29
movdqu xmmword [rdx + 0xc0], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140044d52
movdqu xmmword [rdx + 0xd0], xmm3
aeskeygenassist xmm2, xmm3, 0x40
call fcn.140044d29
movdqu xmmword [rdx + 0xe0], xmm1
jmp 0x140044d7b
ret
Function at 0x140011127
Capabilities:
Create thread

Disassembly:
jmp 0x140012660
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x1400260fa]
call fcn.140011578
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400111ae
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.1400112e9
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.14001114a
nop
lea rcx, [rbp + 0x108]
call fcn.140011244
nop
lea rax, [0x1400113d4]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.1400113f7
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140012763
lea rcx, [rbp + 8]
call fcn.140011262
nop
jmp 0x14001277c
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140011159
nop
lea rcx, [rbp + 8]
call fcn.140011244
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ce00]
call fcn.1400114bf
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400112cb
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x14001133e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400157e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001140b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016b30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016b50
xor al, al
jmp 0x140016bd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016b63
xor al, al
jmp 0x140016bd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140016b8d
xor al, al
jmp 0x140016bd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016ba1
xor al, al
jmp 0x140016bd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016bb3
xor al, al
jmp 0x140016bd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140016bcf
xor al, al
jmp 0x140016bd1
mov al, 1
add rsp, 0x38
ret