joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400289e4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c2f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c2f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028b34
cmp rax, 0xffffffffffffffff
je 0x140028b34
xor edi, edi
test rbp, rbp
jle 0x140028adf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ec08
mov rbx, rax
test rax, rax
jne 0x140028a6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028ad5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c58
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cfd0
cmp eax, 0xffffffff
je 0x140028ab5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a7c
mov edx, r15d
mov ecx, r14d
call fcn.140019c58
jmp 0x140028ad5
cmp byte [rsi + 0x38], dil
je 0x140028acc
cmp dword [rsi + 0x34], 5
jne 0x140028acc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028ad5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a9b8
jmp 0x140028b48
jns 0x140028b48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c2f4
cmp rax, 0xffffffffffffffff
jne 0x140028b00
cmp byte [rsi + 0x30], dil
je 0x140028b48
mov edi, dword [rsi + 0x2c]
jmp 0x140028b48
mov ecx, r14d
call fcn.14001878c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028b48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028b41
mov eax, dword [rsi + 0x2c]
jmp 0x140028b46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c2f4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029c40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029c68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029c68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x142a9d30c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x142a9d316
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x142a9d33f
pop rbp
sub rbp, 0x33
sub rbp, 0x2a9d30c
sub rsp, 0x20
jmp 0x142a9d35e
mov rax, 0x2a9d30c
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffff97863b19
xor byte [rax], dl
inc rax
dec rcx
jne 0x142a9d37d
jmp 0x142a9d394
push rcx
nop
invalid
Function at 0x140009320
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rdx]
mov qword [rdx], 0
lea r12, [r15 + 1]
cmp r12, 2
jb 0x14000934c
call fcn.1401054e0
mov qword [rsi], 0
test r15, r15
je 0x140009382
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400093da
cmp r12, 2
jb 0x14000937a
mov qword [rsi], r15
call fcn.1401054e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400093a9
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1401054e0
mov rbx, qword [rdi]
cmp qword [0x1402c5688], 0
je 0x14000940e
mov rcx, qword [0x1402c5688]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [0x1402a4958]
mov qword [rdi], 0
jmp 0x140009398
call fcn.1401054e0
mov r14, qword [rsi]
cmp qword [0x1402c5688], 0
je 0x140009452
mov rcx, qword [0x1402c5688]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402a4958]
mov qword [rsi], 0
jmp 0x14000936c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14028b1d5]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140009496
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14000944c
call qword [0x1402a4958]
mov rcx, rax
xor edx, edx
call fcn.14003d980
jmp 0x1400093bb
xor ecx, ecx
mov dl, 1
jmp 0x140009442
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14028b1d5]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000949a
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140009490
call qword [0x1402a4958]
mov rcx, rax
xor edx, edx
call fcn.14003d980
jmp 0x1400093ec
xor ecx, ecx
mov dl, 1
jmp 0x140009486
xor ecx, ecx
jmp 0x140009440
xor ecx, ecx
jmp 0x140009484
Function at 0x14000d140
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402c53d8]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000d1a7
lea rax, [0x1402c53d0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14000d19d
call fcn.14019d280
int3
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402c53d8]
call fcn.14019ae60
cmp dword [0x1402c53d8], 0xffffffff
jne 0x14000d17c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401d6710
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.14019aa78
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402c5420]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000d267
lea r8, [0x1402c53f0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002dc30
mov qword [0x1402c53d0], rsi
lea rcx, [0x1402c53d8]
call fcn.14019ad84
jmp 0x14000d17c
lea rcx, [0x1402c5420]
call fcn.14019ae60
cmp dword [0x1402c5420], 0xffffffff
jne 0x14000d238
xorps xmm0, xmm0
movups xmmword [0x1402c5410], xmm0
movups xmmword [0x1402c5400], xmm0
movups xmmword [0x1402c53f0], xmm0
lea rcx, [0x1402c53f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402c5420]
call fcn.14019ad84
jmp 0x14000d238
Function at 0x14000ff40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.14019d220
sub rsp, rax
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x1402c1808]
cmp esi, 0xffffffff
je 0x14000fffd
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14001002f
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call fcn.1401d6710
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.14019ae58
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call fcn.1401d6070
mov rdx, rdi
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14000ffed
call fcn.14019d280
int3
mov rax, rdi
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140010032
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x1402c1808], esi
je 0x14000ff73
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x1402c1808]
jmp 0x14000ff73
int3
int3

Function at 0x140010f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp r9, 2
jb 0x14001103f
cmp word [r8 + 2], 0x3a
jne 0x14001103f
movzx eax, word [r8]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x14001103f
mov ebx, 2
xor eax, eax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, 2
jb 0x140011048
cmp word [rcx + 2], 0x3a
jne 0x140011048
movzx r10d, word [rcx]
and r10d, 0xffffffdf
add r10d, 0xffffffa5
cmp r10w, 0xffe6
setae r10b
not al
test al, r10b
je 0x140011048
cmp r9, rbx
cmovae r9, rbx
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
mov qword [rdx + 8], 2
lea rcx, [rsp + 0x28]
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov r8d, 1
call fcn.1401593e0
test al, al
je 0x140010fe9
mov rax, qword [rdi + 8]
mov rcx, rax
sub rcx, rbx
jb 0x14001107d
mov rdx, qword [rsi + 8]
cmp rdx, 1
jbe 0x14001107d
add rdx, 0xfffffffffffffffe
cmp rcx, rdx
je 0x14001100a
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x140011002
call fcn.14019d280
int3
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
test rcx, rcx
je 0x140011076
lea ecx, [rbx + rbx]
add rcx, qword [rdi]
mov rdx, qword [rsi]
not rbx
add rbx, rax
xor r8d, r8d
movzx eax, word [rcx + r8*2]
cmp ax, word [rdx + r8*2 + 4]
sete al
jne 0x140010feb
lea r9, [r8 + 1]
cmp rbx, r8
mov r8, r9
jne 0x140011021
jmp 0x140010feb
mov al, 1
xor ebx, ebx
jmp 0x140010f54
cmp r9, rdx
jne 0x140010fe9
test r9, r9
je 0x140011076
dec r9
xor edx, edx
movzx eax, word [r8 + rdx*2]
cmp ax, word [rcx + rdx*2]
sete al
jne 0x140010feb
lea r10, [rdx + 1]
cmp r9, rdx
mov rdx, r10
jne 0x140011057
jmp 0x140010feb
mov al, 1
jmp 0x140010feb
lea rcx, str.string_view::substr
call fcn.1401da310
int3
Function at 0x1400121a0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, Ordinal_26
call fcn.14019aa78
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x1402b5708]
jne 0x14001220d
mov rcx, r15
call fcn.140004d30
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14001e450]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140012289
test r14, r14
je 0x14001227e
mov qword [r14], rdi
test rdi, rdi
setne al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14001226d
call fcn.14019d280
int3
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140012250
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jle 0x1400122d6
cmp ebp, 0x5af
je 0x1400122a8
cmp ebp, 0x27b
jne 0x1400122e0
mov rcx, rbx
call fcn.14009ca80
test rsi, rsi
je 0x140012250
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1402b5708]
jne 0x1400122c9
call fcn.140004e70
mov rcx, rsi
call fcn.14019aab4
jmp 0x140012250
cmp ebp, 8
je 0x1400122a8
cmp ebp, 0xe
je 0x1400122a8
mov eax, dword [0x1402c5470]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140012356
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14009c2c0
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x140012324
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov qword [rdx], rbx
mov qword [rdx + 8], rax
mov rcx, qword [0x1402c5468]
call fcn.14000afe0
cmp byte [rsp + 0x4f], 0
jns 0x1400122b0
mov rcx, qword [rsp + 0x38]
call fcn.14019aab4
jmp 0x1400122b0
lea rcx, [0x1402c5470]
call fcn.14019ae60
cmp dword [0x1402c5470], 0xffffffff
jne 0x140012301
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140008fa0
mov qword [0x1402c5468], rax
lea rcx, [0x1402c5470]
call fcn.14019ad84
jmp 0x140012301
Function at 0x1400140e0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x140272a70]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.GetLength
lea r8, [0x140283bf8]
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0xb0
call fcn.140131450
xor edi, edi
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.14014adf0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14], rax
mov rcx, qword [rbx]
lea rbx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb rdi, rdi
or rdi, qword [rbx]
mov rcx, rsi
call fcn.14014a900
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x140014196
call fcn.14019d280
int3
mov rax, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140015730
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [0x140275248]
mov qword [rcx], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x1400157a0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400157ab
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140015798
mov qword [rsi + 0x18], rdi
call fcn.1401054e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401054e0
mov rcx, qword [rsi + 0x18]
call fcn.140184070
mov qword [rsi + 0x18], 0
jmp 0x140015785

Function at 0x1400195c0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14001960c
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140019617
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400195fa
mov qword [rdi], rsi
call fcn.1401054e0
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401054e0
mov r14, qword [rdi]
cmp qword [0x1402c5688], 0
je 0x140019648
mov rcx, qword [0x1402c5688]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402a4958]
mov qword [rdi], 0
jmp 0x1400195e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14028b1d5]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140019689
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140019683
call qword [0x1402a4958]
mov rcx, rax
xor edx, edx
call fcn.14003d980
jmp 0x140019629
xor ecx, ecx
mov dl, 1
jmp 0x14001967c
xor ecx, ecx
jmp 0x14001967a
Function at 0x14001d680
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x1402ccb08]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001d7b5
mov ecx, dword [0x1402c1808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001d6e1
mov rcx, qword [0x1402ccaf8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402ccb00]
jne 0x14001d6e1
add rax, rcx
cmp qword [rax], 0
jne 0x14001d774
mov ecx, 4
call fcn.14019aa78
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x1402c1808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001d7ae
mov rcx, qword [0x1402ccaf8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402ccb00]
jne 0x14001d7ae
add rax, rcx
mov rdi, qword [rax]
mov ecx, dword [0x1402c1808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14001d747
test rsi, rsi
je 0x14001d76b
call fcn.14000ff40
mov rcx, qword [0x1402ccaf8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402ccb00]
mov rdx, qword [0x1402ccaf8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x14001d808
mov ecx, dword [0x1402c1808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001d7aa
mov rcx, qword [0x1402ccaf8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402ccb00]
jne 0x14001d7aa
add rax, rcx
mov rax, qword [rax]
add rsp, 0x28
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14001d7a3
xor edi, edi
jmp 0x14001d72b
lea rcx, [0x1402ccb08]
call fcn.14019ae60
cmp dword [0x1402ccb08], 0xffffffff
jne 0x14001d6ab
mov qword [0x1402ccb00], 0
lea rcx, [0x1402ccaf8]
mov qword [0x1402ccaf8], 0xffffffffffffffff
lea rdx, [0x1400630f0]
call fcn.140028120
lea rcx, [0x1402ccb08]
call fcn.14019ad84
jmp 0x14001d6ab
mov rcx, rdi
call fcn.14019aab4
jmp 0x14001d774
Function at 0x140021af0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
test r8d, r8d
je 0x140021c45
mov ebx, r8d
mov dword [rsi], 0
test dl, 1
jne 0x140021c8b
xor edi, edi
movzx edx, dx
shr edx, 1
inc edi
mov ebp, edx
test dl, 1
je 0x140021b1a
bsr r8d, ebp
xor r8d, 0x1f
mov eax, 0x20
sub eax, r8d
imul eax, ebx
cmp eax, 0xde3
jg 0x140021c95
mov ecx, 1
mov eax, ecx
lea ecx, [rax + rax]
cmp ebx, eax
jge 0x140021b4b
mov r14d, eax
sar r14d, 2
movzx r9d, dx
cmp eax, 4
jae 0x140021c58
xor eax, eax
mov rdx, r9
test rdx, rdx
je 0x140021b9c
xor ecx, ecx
mov r8, rdx
mov r9d, edx
and r9d, 0xfffffff
mov dword [rsi + rcx*4 + 4], r9d
shr r8, 0x1c
inc rcx
cmp rdx, 0xfffffff
mov rdx, r8
ja 0x140021b77
mov word [rsi], cx
test al, 1
jne 0x140021c9a
test r14d, r14d
jne 0x140021ca9
movzx edx, word [rsi]
test rdx, rdx
je 0x140021c2d
imul edi, ebx
movsxd rax, edi
imul rax, rax, 0xffffffff92492493
shr rax, 0x20
add eax, edi
mov ecx, eax
shr ecx, 0x1f
sar eax, 4
add eax, ecx
add word [rsi + 2], ax
cmp dx, 0x7f
jg 0x140021c95
test dx, dx
jle 0x140021c2d
lea ecx, [rax + rax*8]
lea ecx, [rcx + rcx*2]
add ecx, eax
sub edi, ecx
mov eax, 0x1c
sub eax, edi
xor r8d, r8d
xor r9d, r9d
mov r10d, r9d
mov r11d, dword [rsi + r8*4 + 4]
mov r9d, r11d
mov ecx, eax
shr r9d, cl
mov ecx, edi
shl r11d, cl
add r11d, r10d
and r11d, 0xfffffff
mov dword [rsi + r8*4 + 4], r11d
inc r8
cmp rdx, r8
jne 0x140021bfc
test r9d, r9d
jne 0x140021c38
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov dword [rsi + rdx*4 + 4], r9d
lea eax, [rdx + 1]
mov word [rsi], ax
jmp 0x140021c2d
mov word [rsi + 2], 0
mov dword [rsi + 4], 1
mov ax, 1
jmp 0x140021c40
xor eax, eax
mov rdx, r9
mov r10d, r14d
imul rdx, rdx
test r10d, ebx
jne 0x140021cd4
mov r14d, r10d
sar r14d, 1
cmp r10d, 2
jb 0x140021b6d
mov rcx, rdx
shr rcx, 0x20
mov r10d, r14d
jne 0x140021b6d
jmp 0x140021c60
movzx ebp, dx
xor edi, edi
jmp 0x140021b28
call fcn.14020b630
mov rcx, rsi
mov edx, ebp
call fcn.140021290
jmp 0x140021ba4
mov rcx, rsi
call fcn.14022c750
test r14d, ebx
je 0x140021cc0
mov rcx, rsi
mov edx, ebp
call fcn.140021290
mov eax, r14d
sar eax, 1
cmp r14d, 1
mov r14d, eax
jbe 0x140021bad
jmp 0x140021ca9
lea ecx, [r8 + 0x20]
mov r14, rdx
shr r14, cl
mov r11d, 1
test r14, r14
setne cl
jne 0x140021cef
mov r11, r9
imul rdx, r11
or al, cl
jmp 0x140021c69
Function at 0x140027be0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140027c26
mov r15, rbx
test r15, r15
je 0x140027d02
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140027c82
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140027c71
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1401d6070
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140027c02
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x140027d1e
lea rcx, [r13*8]
call fcn.14019aa78
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140027ce4
lea r15, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x140027d02
mov r10, qword [r14 + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140027ccc
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140027d04
add rbx, 0xfffffffffffffff8
jne 0x140027cf7
ud2
test r12, r12
je 0x140027c02
mov rcx, r12
call fcn.14019aab4
mov r15, qword [rsi + 0x10]
jmp 0x140027c02
call fcn.1401da2d0
int3

Function at 0x140028120
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1402c1808]
cmp ecx, 0xffffffff
je 0x1400281fa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400281fa
mov eax, dword [0x1402cbda0]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140028204
mov rbx, qword [0x1402cbd98]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140028249
mov rax, qword [0x1402ca588]
inc rax
xor ecx, ecx
lea rdx, [0x1402ca590]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140028256
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1402cbd90]
inc ecx
mov dword [0x1402cbd90], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1402ca588], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140028246
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14000ff40
jmp 0x14002814a
lea rcx, [0x1402cbda0]
call fcn.14019ae60
cmp dword [0x1402cbda0], 0xffffffff
jne 0x14002816f
mov ecx, 8
call fcn.14019aa78
mov qword [rax], 0
mov qword [0x1402cbd98], rax
lea rcx, [0x1402cbda0]
call fcn.14019ad84
jmp 0x14002816f
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140028187
inc rcx
cmp rcx, 0x100
jne 0x14002819a
jmp 0x1400281e0