joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140079159
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 + 0x198]
mov rcx, qword [rdx + 0x180]
mov rdx, qword [rdx + 0x190]
lea r9, str._Users_halo_Desktop_code_phishing_mpclient_dll_hijack_only_cs_vendor_schannel_src_tls_stream.rs
call fcn.140077b08
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 + 0x1c0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x14007923c
test eax, eax
je 0x14007925b
cmp eax, 0x90317
je 0x1400792dd
cmp eax, 0x90321
jne 0x1400792e5
mov dword [rdi + 0x140], 0x10000
xor ebx, ebx
mov byte [rdi + 0x144], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x198]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.1400790f9
and qword [rdi + 0x1f8], 0
mov byte [rsi + 1], bl
jmp 0x1400792f3
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x1400792e1
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x180]
mov rdx, qword [rdi + 0x190]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x160]
and qword [rdi + 0x170], 0
call fcn.140078ec0
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140011e08
and qword [rdi + 0x178], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x198]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.1400790f9
xor eax, eax
cmp qword [rdi + 0x198], rbx
sete al
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x1400792f3
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x1400792f3
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
Function at 0x1400792fd
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne 0x14007930f
add rcx, 8
jmp fcn.1400cf1a0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
mov qword [rcx + 0x38], rdx
mov rcx, r8
call fcn.1400794a1
mov rbx, rax
mov r14, rdx
lea r15, [rsp + 0x28]
mov rcx, rsi
call fcn.140079578
test rdx, rdx
jne 0x1400793b2
mov rcx, r15
mov rdx, rsi
call fcn.140077ea5
mov eax, dword [rsp + 0x28]
cmp eax, 2
je 0x140079441
test eax, eax
je 0x1400793b2
cmp qword [rsi + 0xf8], 0
je 0x140079395
mov rcx, r15
mov rdx, rsi
call fcn.140078b01
cmp qword [rsp + 0x28], 0
jne 0x140079441
cmp qword [rsp + 0x30], 0
je 0x1400793b2
and qword [rsi + 0xf8], 0
mov rcx, r15
mov rdx, rsi
call fcn.140078d24
cmp byte [rsp + 0x28], 0
jne 0x140079441
cmp byte [rsp + 0x29], 0
je 0x14007933b
mov rcx, rsi
call fcn.140079578
mov r15, rdx
test rax, rax
je 0x140079446
mov r13, rax
cmp r14, r15
mov r12, r15
cmovb r12, r14
lea r9, str._Users_halo_Desktop_code_phishing_mpclient_dll_hijack_only_cs_vendor_schannel_src_tls_stream.rs
mov rcx, r12
mov rdx, rbx
mov r8, r14
call fcn.140077b2a
mov rbx, rax
mov r14, rdx
lea r9, str._Users_halo_Desktop_code_phishing_mpclient_dll_hijack_only_cs_vendor_schannel_src_tls_stream.rs
mov rcx, r13
mov rdx, r15
mov r8, r12
call fcn.140002fe6
mov r9, rdx
lea rcx, str._Users_halo_Desktop_code_phishing_mpclient_dll_hijack_only_cs_vendor_schannel_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov rdx, r14
mov r8, rax
call fcn.140020ee6
mov rax, qword [rsi + 0x78]
add rax, r12
cmp rax, qword [rsi + 0x70]
ja 0x140079487
mov qword [rsi + 0x78], rax
mov rcx, rdi
mov rdx, r12
call fcn.14007950e
xor r15d, r15d
jmp 0x14007946d
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov rcx, r15
call fcn.140076e41
cmp al, 0xd
jne 0x14007946d
and qword [rsi + 0x38], 0
lea rcx, [rsp + 0x28]
call fcn.1400361e6
mov eax, 1
jmp 0x140079474
and qword [rsi + 0x38], 0
xor eax, eax
mov rdx, r15
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
lea r8, str._Users_halo_Desktop_code_phishing_mpclient_dll_hijack_only_cs_vendor_schannel_src_tls_stream.rs
mov edx, 0x3b
call fcn.140013970
ud2
Function at 0x140090d95
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, r8
mov rbx, rdx
mov rsi, rcx
lea rdi, [rsp + 0x58]
mov r8d, 0xb
mov rcx, rdi
mov rdx, rax
call fcn.140090ebf
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea r15, [rsp + 0x3c]
and dword [r15], 0
mov ecx, 0x800
xor edx, edx
call fcn.140011a3e
mov r14, rax
lea r12, [rsp + 0x40]
mov qword [r12], rax
mov qword [r12 + 8], rdx
and qword [r12 + 0x10], 0
mov rdi, qword [rdi]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140090e34
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.140011e4b
mov r14, qword [rsp + 0x40]
jmp 0x140090dff
test eax, eax
jne 0x140090e56
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x140090e74
movabs rax, 0xde00000002
jmp 0x140090e5e
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
mov rdx, qword [rsp + 0x48]
mov rcx, r14
call fcn.140011dd7
jmp 0x140090e88
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400d88c3
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140098000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14009805b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14009805b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140098076
cmp eax, 0x42
jne 0x14009805b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140098126
cmp byte [r9 + r11], 0x5f
jne 0x140098126
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14009818e
mov rcx, rsi
xor edx, edx
call fcn.140093730
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140093730
test al, al
jne 0x140098221
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400980b2
lea rdx, [0x1401b99f3]
mov r8d, 1
call fcn.140013630
test al, al
jne 0x140098221
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14009806a
xor r14d, r14d
lea rbx, [0x1401b9da8]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400980e4
cmp byte [rax + rcx], 0x45
je 0x140098243
sub r14, 1
jb 0x140098109
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140098109
mov r8d, 2
mov rdx, rbx
call fcn.140013630
test al, al
jne 0x140098221
mov rcx, rsi
call fcn.140094ff0
test al, al
jne 0x140098221
mov rax, qword [rsi]
test rax, rax
jne 0x1400980d0
jmp 0x14009806a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400981e8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140098182
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14009816c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14009815b
add dl, 0xa9
jmp 0x14009816a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400981e8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400981e8
movzx edx, bl
add rax, rdx
jae 0x140098130
jmp 0x1400981e8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400981e8
cmp rax, rcx
jae 0x1400981e5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14009823b
cmp qword [rsi + 0x20], 0
je 0x140098234
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140098000
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14009806c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140098229
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1401b9d68]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140013630
test al, al
je 0x140098229
mov dil, 2
jmp 0x14009806a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14009806a
mov dil, 1
xor r8d, r8d
jmp 0x1400981ea
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14009806a
Function at 0x14009a780
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x68], 4
mov dword [rsp + 0xb0], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14009a7e3
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14009a820
mov rdx, qword [rcx + 0x40]
test rdx, rdx
je 0x14009a815
xor r9d, r9d
lea r10, [0x1401e5a88]
xor r8d, r8d
movzx r11d, byte [rax + r9]
or r8d, dword [r10 + r11*4]
inc r9
cmp rdx, r9
jne 0x14009a802
jmp 0x14009a818
xor r8d, r8d
mov dword [rsp + 0xa0], r8d
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x14009a87a
xor ebx, ebx
mov rax, r15
shr rax, 0x3c
sete al
jne 0x14009a93b
mov r14, qword [rcx]
mov bl, al
shl rbx, 3
mov rcx, rbx
mov rdx, rsi
call fcn.1400d8675
test rax, rax
je 0x14009a942
mov rdi, rax
xor eax, eax
mov rcx, qword [r14 + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp r15, rax
jne 0x14009a865
mov eax, r15d
jmp 0x14009a881
xor eax, eax
mov edi, 8
lea rcx, [rsp + 0x68]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x14009a8d7
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x14009a90f
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.1400d8675
test rax, rax
je 0x14009a94a
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r12
xor r14d, r14d
test r15, r15
je 0x14009a924
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.140003598
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14000fd20
ud2
mov rcx, rbx
mov rdx, rsi
jmp 0x14009a954
mov ecx, 8
mov edx, 0x20
call fcn.14000fd60
ud2

Function at 0x14009afd5
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x14009affe
mov rdx, qword [rsp + 0x20]
jmp 0x14009b006
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x14009b68b
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14009b6b7
xor eax, eax
jmp 0x14009b6bc
call fcn.140043ea3
nop
add rsp, 0x38
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400db0b0]
test ecx, ecx
je 0x14009cc7f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14009cbd4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14009cbd4
add rdi, 0x10
jmp 0x14009cc75
mov ecx, dword [0x1400db0b0]
test ecx, ecx
je 0x14009cc92
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14009cc73
mov rsi, rax
test rax, rax
jne 0x14009cc43
movzx eax, byte [0x1401f71a0]
mov ecx, 0x20
mov edx, 8
call fcn.14000dd00
test rax, rax
je 0x14009ccb5
mov rsi, rax
lea rax, [0x1400db098]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400db0b0]
test ecx, ecx
je 0x14009cca5
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x14009cc75
test rcx, rcx
je 0x14009cc75
lock dec qword [rcx]
jne 0x14009cc75
call fcn.14009cce0
jmp 0x14009cc75
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400db098]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009cbb6
lea rcx, [0x1400db098]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009cbe4
lea rcx, [0x1400db098]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009cc3b
mov ecx, 8
mov edx, 0x20
call fcn.14000fd60
ud2
Function at 0x14009cf00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14009cf7e
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
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x14009cfbf
cmp dword [rsp + 0x2c], 0
je 0x14009cfa3
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14009cfe7
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401f7110]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401f7110], rsi
jne 0x14009cf60
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14009cfb5
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14009d033
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14009cfa8
mov edi, dword [rsp + 0x28]
jmp 0x14009cfb5
mov edi, dword [rsi + 0x18]
jmp 0x14009cfb3
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x1401bcd08]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.14009d070
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1401e5048]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140012cc0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1401e5048]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14009d0d0
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400db0d0]
test ecx, ecx
je 0x14009d6df
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14009d669
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14009d6ce
mov ecx, dword [0x1400db0d0]
test ecx, ecx
je 0x14009d6f2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14009d6d4
mov rsi, rax
test rax, rax
jne 0x14009d6c8
movzx eax, byte [0x1401f71a0]
mov ecx, 0x10
mov edx, 8
call fcn.14000dd00
test rax, rax
je 0x14009d715
mov rsi, rax
lea rax, [0x1400db0b8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400db0d0]
test ecx, ecx
je 0x14009d705
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14009d6d6
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400db0b8]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009d655
lea rcx, [0x1400db0b8]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009d675
lea rcx, [0x1400db0b8]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009d6c0
mov ecx, 8
mov edx, 0x10
call fcn.14000fd60
ud2
Function at 0x14009e670
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401bc6a0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14009e6e1
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14009e717
test eax, eax
js 0x14009e6f2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14009e70a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1401bc708]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14009c230
mov rcx, rax
call fcn.14009c330
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400db090]
test ecx, ecx
je 0x14009ec7d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14009ebf0
cmp qword [rax + 8], 0
je 0x14009ebf0
add rax, 0x10
jmp 0x14009ec77
mov ecx, dword [0x1400db090]
test ecx, ecx
je 0x14009ec90
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14009ec75
mov rsi, rax
test rax, rax
jne 0x14009ec5b
movzx eax, byte [0x1401f71a0]
mov ecx, 0x20
mov edx, 8
call fcn.14000dd00
test rax, rax
je 0x14009ecb3
mov rsi, rax
lea rax, [0x1400db078]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400db090]
test ecx, ecx
je 0x14009eca3
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x14009ec77
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400db078]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009ebd5
lea rcx, [0x1400db078]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009ec00
lea rcx, [0x1400db078]
call fcn.14009cf00
mov ecx, eax
jmp 0x14009ec53
mov ecx, 8
mov edx, 0x20
call fcn.14000fd60
ud2
Function at 0x1400a21d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400a2200
test ecx, ecx
jne 0x1400a2250
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400a220c
test ecx, ecx
jne 0x1400a2250
mov rcx, rdi
call fcn.1400a20b0
movzx eax, al
test bpl, bpl
jne 0x1400a2257
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400a2243.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400a23c8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400a2243.2
xor eax, eax
test bpl, bpl
je 0x1400a221c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400a23a9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400a228a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400a2309
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400a22d0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400a22eb
inc rax
dec rdi
cmp rax, 1
jne 0x1400a22b0
jmp 0x1400a2309
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400a22eb
cmp ebx, 0x5c
je 0x1400a22eb
inc rax
dec rdi
cmp rax, 1
jne 0x1400a22d0
jmp 0x1400a2309
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400a23b7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400a2333
mov al, 9
cmp rdx, 2
je 0x1400a2337
cmp rdx, 1
jne 0x1400a2347
cmp byte [r8], 0x2e
jne 0x1400a2347
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400a2347
mov al, 0xa
jmp 0x1400a2347
cmp byte [r8], 0x2e
jne 0x1400a2347
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400a2243.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400a2243.2
mov ecx, 2
jmp case.0x1400a2243.2
lea r8, [0x1401bb820]
call fcn.140013530
ud2
lea r8, [0x1401bb838]
call fcn.140013530
ud2
Function at 0x1400a2630
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.1400bbe60
mov rsi, rdx
test rax, rax
je 0x1400a26df
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400a26d3
test rax, rax
je 0x1400a26d3
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400a26c6
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14000dd90
mov edx, 8
mov rcx, rsi
call fcn.14000dd90
mov qword [rdi], 0
jmp 0x1400a283f
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400bc070
cmp dword [rsp + 0x40], 2
jne 0x1400a275d
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400a273e
test rcx, rcx
je 0x1400a273e
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400a2731
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.14000dd90
mov edx, 8
mov rcx, rbx
call fcn.14000dd90
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x1400a27af
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400a282b
mov rbx, qword [rsp + 0x40]
jmp 0x1400a27b1
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 0x1400a281a
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 0x1400a281a
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x1400a2837
mov qword [rdi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400a2837
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret