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

Disassembly:
jmp 0x14019c230
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ecx, dword [0x140394158]
test ecx, ecx
je 0x14019c25c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14019c275
add rax, 8
jmp 0x14019c310
lea rcx, [0x140394140]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14019c253
je 0x14019c30e
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 [0x1404a3130]
mov edx, 0x18
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x14019c33d
mov rbx, rax
mov rsi, rax
lea rax, [0x140394140]
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov ecx, dword [0x140394158]
test ecx, ecx
je 0x14019c31d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140394158]
test ecx, ecx
je 0x14019c32d
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14019c309
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rbx
jmp 0x14019c310
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140394140]
call fcn.1401d8500
mov ecx, eax
jmp 0x14019c2d3
lea rcx, [0x140394140]
call fcn.1401d8500
mov ecx, eax
jmp 0x14019c2e7
mov ecx, 8
mov edx, 0x18
call fcn.140043da0
int3
Function at 0x1401a2bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov r8d, 0xb
mov rdx, rax
call fcn.1401c5e70
mov dword [rsp + 0x30], 0x800
mov dword [rsp + 0x34], 0
movzx eax, byte [0x1404a3130]
mov edx, 0x800
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x1401a2d41
mov rbx, rax
mov qword [rsp + 0x38], 0x800
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov r14, qword [rsp + 0x58]
lea rbp, [rsp + 0x30]
lea r15, [rsp + 0x34]
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
sub r12, r13
nop
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
mov r9, r15
call sub.ADVAPI32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1401a2ca0
mov r8d, dword [rsp + 0x30]
cmp r12, r8
jae 0x1401a2c60
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.1401d5ea0
mov rbx, qword [rsp + 0x40]
jmp 0x1401a2c51
test eax, eax
jne 0x1401a2cc2
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x1401a2d23
movabs rax, 0xde00000002
jmp 0x1401a2cca
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
cmp qword [rsp + 0x38], 0
je case.0x14019dcb2.46
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x1404a30d0]
xor edx, edx
call fcn.14021d5e4
mov rcx, qword [rsp + 0x48]
mov qword [rsi + 0x10], rcx
adc byte [rdi], r9b
adc byte [rsp + 0x38], al
mov ecx, 1
mov edx, 0x800
or byte [rax], al
add al, ch
invalid
pminsw mm7, mm7
int3
Function at 0x1401b5e90
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
lea rcx, [rdx + 0xe8]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x1401b5ecf
movabs r12, 0x8000000000000000
jmp 0x1401b5f28
mov rbx, qword [rsp + 0x20]
mov r15, qword [rbx + 8]
mov edi, dword [rbx + 0x10]
test rdi, rdi
je 0x1401b5f09
movzx eax, byte [0x1404a3130]
xor ecx, ecx
mov rdx, rdi
call fcn.140201a50
mov r14, rax
mov r12, rdi
test rax, rax
jne 0x1401b5f12
mov ecx, 1
mov rdx, rdi
call fcn.140043d40
xor r12d, r12d
mov r14d, 1
mov rcx, r14
mov rdx, r15
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call sub.crypt32.dll_CertFreeCertificateContext
mov qword [rsi], r12
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1401d2050
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1401d2075
cmp rax, rcx
je 0x1401d207b
cmp rdx, 4
jae 0x1401d207f
xor eax, eax
xor r8d, r8d
jmp 0x1401d2110
pop rbp
jmp fcn.140046cd0
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14039f5f0]
movdqa xmm3, xmmword [0x14039f600]
pxor xmm1, xmm1
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 0x1401d20a0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1401d2127
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1401d2110
pop rbp
ret
Function at 0x1401d31e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
test r10, r10
je 0x1401d3264
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x1401d3264
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x1401d327d
cmp eax, 0x42
jne 0x1401d3264
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x1401d33ad
cmp byte [r10 + rsi], 0x5f
jne 0x1401d333c
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x1401d33ad
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x1401d3407
mov dil, 1
xor r9d, r9d
jmp 0x1401d33af
xor edx, edx
call fcn.1401ce970
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.1401ce970
test al, al
jne 0x1401d33ed
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1401d32bc
lea rdx, [0x14043ab73]
mov r8d, 1
call fcn.1400471b0
mov rdx, rbx
test al, al
jne 0x1401d33ed
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x1401d3270
xor r14d, r14d
lea rdi, [0x14043aec9]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x1401d32f4
cmp byte [rax + rcx], 0x45
je 0x1401d3440
sub r14, 1
jb 0x1401d331c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x1401d331c
mov r8d, 2
mov rdx, rdi
call fcn.1400471b0
mov rdx, rbx
test al, al
jne 0x1401d33ed
mov rcx, rdx
call fcn.1401d0210
test al, al
jne 0x1401d33ed
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x1401d32e0
jmp 0x1401d3270
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x1401d339d
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x1401d337f
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x1401d3371
add dl, 0xa9
jmp 0x1401d337d
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x1401d33ad
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x1401d33ad
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x1401d33af
cmp rsi, r11
jb 0x1401d3350
jmp 0x1401d33af
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x1401d323f
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1401d33f5
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_____::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x14043aea8]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.1400471b0
mov rcx, rbx
test al, al
je 0x1401d33f5
mov sil, 2
jmp 0x1401d3270
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x1401d3270
cmp qword [rcx + 0x20], 0
je 0x1401d3400
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.1401d31e0
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1401d3272
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x1401d3270
Function at 0x1401d8500
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 0x1401d8595
mov rax, qword [0x1404a7038]
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 0x1401d85d4
cmp dword [rbp], 0
je 0x1401d85b8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1401d85f7
mov edi, eax
mov rax, qword [0x1404a30e8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1404a30e8], rsi
jne 0x1401d8570
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 0x1401d85c9
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1401d8639
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1401d85bd
mov edi, dword [rbp + 4]
jmp 0x1401d85c9
mov edi, dword [rsi + 0x18]
jmp 0x1401d85c7
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 rdx, [0x14043e428]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call fcn.1401d97f0
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_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call fcn.1400467a0
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.1401d9830
int3
Function at 0x1401dad40
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 ecx, dword [0x140394138]
test ecx, ecx
je 0x1401dad6d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401dad86
add rax, 8
jmp 0x1401dae21
lea rcx, [0x140394120]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1401dad64
je 0x1401dae1f
movzx eax, byte [0x1404a3130]
mov edx, 0x10
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x1401dae4a
mov rbx, rax
mov rsi, rax
lea rax, [0x140394120]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140394138]
test ecx, ecx
je 0x1401dae2a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140394138]
test ecx, ecx
je 0x1401dae3a
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1401dae1a
mov rax, qword [rdi + 8]
test rax, rax
je 0x1401dae09
lock dec qword [rax]
jne 0x1401dae09
mov rcx, qword [rdi + 8]
call fcn.1401da550
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rbx
jmp 0x1401dae21
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140394120]
call fcn.1401d8500
mov ecx, eax
jmp 0x1401dadcc
lea rcx, [0x140394120]
call fcn.1401d8500
mov ecx, eax
jmp 0x1401dade0
mov ecx, 8
mov edx, 0x10
call fcn.140043da0
int3

Function at 0x1401db310
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 ecx, dword [0x1403940f8]
test ecx, ecx
je 0x1401db33d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401db356
add rax, 8
jmp 0x1401db3d1
lea rcx, [0x1403940e0]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1401db334
je 0x1401db3cf
movzx eax, byte [0x1404a3130]
mov edx, 0x10
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x1401db3fa
mov rbx, rax
mov rsi, rax
lea rax, [0x1403940e0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1403940f8]
test ecx, ecx
je 0x1401db3da
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1403940f8]
test ecx, ecx
je 0x1401db3ea
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1401db3ca
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rbx
jmp 0x1401db3d1
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1403940e0]
call fcn.1401d8500
mov ecx, eax
jmp 0x1401db394
lea rcx, [0x1403940e0]
call fcn.1401d8500
mov ecx, eax
jmp 0x1401db3a8
mov ecx, 8
mov edx, 0x10
call fcn.140043da0
int3
Function at 0x1401db820
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 ecx, dword [0x1403940d8]
test ecx, ecx
je 0x1401db84d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401db866
add rax, 8
jmp 0x1401db8e9
lea rcx, [0x1403940c0]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1401db844
je 0x1401db8e7
movzx eax, byte [0x1404a3130]
mov edx, 0x18
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x1401db912
mov rbx, rax
mov rsi, rax
lea rax, [0x1403940c0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x1403940d8]
test ecx, ecx
je 0x1401db8f2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1403940d8]
test ecx, ecx
je 0x1401db902
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1401db8e2
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rbx
jmp 0x1401db8e9
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1403940c0]
call fcn.1401d8500
mov ecx, eax
jmp 0x1401db8ac
lea rcx, [0x1403940c0]
call fcn.1401d8500
mov ecx, eax
jmp 0x1401db8c0
mov ecx, 8
mov edx, 0x18
call fcn.140043da0
int3
Function at 0x1401dede0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp + 8], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], 7
mov qword [rbp + 0x24], 0
mov word [rbp + 0x2c], 0
mov byte [rbp + 0x28], 1
lea r8, [rbp + 8]
mov rcx, rdx
mov rdx, rax
call fcn.1401fb830
mov rdi, rdx
test rax, rax
je 0x1401dee67
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call fcn.1401d87a0
mov qword [rsi], 0
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 8]
mov rdx, rdi
call fcn.1401fbab0
cmp dword [rbp + 8], 2
jne 0x1401dee8b
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x1401deeba
movups xmm0, xmmword [rbp + 8]
movups xmm1, xmmword [rbp + 0x18]
movups xmm2, xmmword [rbp + 0x28]
movups xmm3, xmmword [rbp + 0x38]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x48]
mov qword [rbp], rax
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
cmp qword [rbp - 0x40], 2
jne 0x1401deee3
lea rcx, [rbp - 0x38]
call fcn.1401d87a0
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x1401def31
mov qword [rbp - 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x1401defad
mov rbx, qword [rbp - 0x40]
jmp 0x1401def33
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 0x1401def9c
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 0x1401def9c
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1401defd6
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x1401defd6
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 8], 1
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x10], rax
call fcn.1401d87a0
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x1401dee55
Function at 0x1401fd3f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
add rsi, r8
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x30], 0x81
Function at 0x1401ff9a0
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 ecx, dword [0x140394118]
test ecx, ecx
je 0x1401ff9cd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401ff9e6
add rax, 8
jmp 0x1401ffa81
lea rcx, [0x140394100]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1401ff9c4
je 0x1401ffa7f
movzx eax, byte [0x1404a3130]
mov edx, 0x10
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x1401ffaaa
mov rbx, rax
mov rsi, rax
lea rax, [0x140394100]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140394118]
test ecx, ecx
je 0x1401ffa8a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140394118]
test ecx, ecx
je 0x1401ffa9a
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1401ffa7a
mov rax, qword [rdi + 8]
test rax, rax
je 0x1401ffa69
lock dec qword [rax]
jne 0x1401ffa69
mov rcx, qword [rdi + 8]
call fcn.1401ffac0
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rbx
jmp 0x1401ffa81
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140394100]
call fcn.1401d8500
mov ecx, eax
jmp 0x1401ffa2c
lea rcx, [0x140394100]
call fcn.1401d8500
mov ecx, eax
jmp 0x1401ffa40
mov ecx, 8
mov edx, 0x10
call fcn.140043da0
int3
Function at 0x140200010
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov rax, qword [0x1404a30d8]
cmp rax, 3
jne 0x140200200
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x140200226
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1402000a8
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x140200164
inc rdx
cmp rax, rdx
jne 0x140200090
jmp 0x1402001cb
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1402000de
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x140200164
inc rdx
cmp rcx, rdx
jne 0x1402000c0
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1402000e2
jmp 0x14020012e
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x1403a16f0]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x14020012e
add rcx, 0x10
cmp rcx, rdx
jbe 0x140200100
sub rax, rcx
je 0x1402001cb
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x140200161
inc rdx
cmp rax, rdx
jne 0x140200150
jmp 0x1402001cb
add rdx, rcx
cmp rdx, rdi
jne 0x1402001cb
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1402001df
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1402001f7
lea rax, [0x14043d948]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140200238
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x140200238
mov rbx, rdx
call fcn.1402006f0
mov rdx, rbx
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
jbe 0x140200067
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.140200760
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x140200760
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rbx, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.140043f50
mov rax, qword [rbp - 0x28]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1402007e7
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
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 - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14020081d
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140200831
lea rcx, [0x14043d948]
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x140200851
mov r8, qword [rbp - 0x20]
mov rcx, qword [0x1404a30d0]
xor edx, edx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14021d5e4
mov rcx, qword [rbx]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x140200851
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x140201180
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movzx eax, byte [0x1404a3130]
mov edx, 0x10
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x140201257
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1402012d0]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140201249
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x140201201
mov rcx, rdi
call rax
cmp qword [r14 + 8], 0
je 0x140201224
cmp qword [r14 + 0x10], 0x11
jb 0x140201213
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rsi
call fcn.14021d5e4
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call fcn.140043da0
ud2