joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d140
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402c93d8]
mov ecx, dword [0x1402c6098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000d1a7
lea rax, [0x1402c93d0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14000d19d
call fcn.14019f290
int3
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402c93d8]
call fcn.14019ce70
cmp dword [0x1402c93d8], 0xffffffff
jne 0x14000d17c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401d8720
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.14019ca88
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402c9420]
mov ecx, dword [0x1402c6098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000d267
lea r8, [0x1402c93f0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002dc30
mov qword [0x1402c93d0], rsi
lea rcx, [0x1402c93d8]
call fcn.14019cd94
jmp 0x14000d17c
lea rcx, [0x1402c9420]
call fcn.14019ce70
cmp dword [0x1402c9420], 0xffffffff
jne 0x14000d238
xorps xmm0, xmm0
movups xmmword [0x1402c9410], xmm0
movups xmmword [0x1402c9400], xmm0
movups xmmword [0x1402c93f0], xmm0
lea rcx, [0x1402c93f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402c9420]
call fcn.14019cd94
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.14019f230
sub rsp, rax
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x1402c5808]
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.1401d8720
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.14019ce68
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call fcn.1401d8080
mov rdx, rdi
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14000ffed
call fcn.14019f290
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 [0x1402c5808], esi
je 0x14000ff73
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x1402c5808]
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 [0x1402b7040]
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.14015b3f0
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 [0x1402b7040]
je 0x140011002
call fcn.14019f290
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.1401dc320
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 [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, Ordinal_26
call fcn.14019ca88
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x1402b9708]
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 [0x1402b7040]
je 0x14001226d
call fcn.14019f290
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.14009ea90
test rsi, rsi
je 0x140012250
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1402b9708]
jne 0x1400122c9
call fcn.140004e70
mov rcx, rsi
call fcn.14019cac4
jmp 0x140012250
cmp ebp, 8
je 0x1400122a8
cmp ebp, 0xe
je 0x1400122a8
mov eax, dword [0x1402c9470]
mov ecx, dword [0x1402c6098]
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.14009e2d0
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 [0x1402c9468]
call fcn.14000afe0
cmp byte [rsp + 0x4f], 0
jns 0x1400122b0
mov rcx, qword [rsp + 0x38]
call fcn.14019cac4
jmp 0x1400122b0
lea rcx, [0x1402c9470]
call fcn.14019ce70
cmp dword [0x1402c9470], 0xffffffff
jne 0x140012301
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140008fa0
mov qword [0x1402c9468], rax
lea rcx, [0x1402c9470]
call fcn.14019cd94
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 [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x140275a70]
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, [0x140286da8]
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0xb0
call fcn.140133460
xor edi, edi
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.14014ce00
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.14014c910
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x140014196
call fcn.14019f290
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, [0x140278258]
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.1401074f0
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.1401074f0
mov rcx, qword [rsi + 0x18]
call fcn.140186080
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.1401074f0
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.1401074f0
mov r14, qword [rdi]
cmp qword [0x1402c9688], 0
je 0x140019648
mov rcx, qword [0x1402c9688]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402a7b00]
mov qword [rdi], 0
jmp 0x1400195e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14028e385]
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 [0x1402a7b00]
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 [0x1402d0b08]
mov ecx, dword [0x1402c6098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001d7b5
mov ecx, dword [0x1402c5808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001d6e1
mov rcx, qword [0x1402d0af8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402d0b00]
jne 0x14001d6e1
add rax, rcx
cmp qword [rax], 0
jne 0x14001d774
mov ecx, 4
call fcn.14019ca88
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x1402c5808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001d7ae
mov rcx, qword [0x1402d0af8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402d0b00]
jne 0x14001d7ae
add rax, rcx
mov rdi, qword [rax]
mov ecx, dword [0x1402c5808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14001d747
test rsi, rsi
je 0x14001d76b
call fcn.14000ff40
mov rcx, qword [0x1402d0af8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402d0b00]
mov rdx, qword [0x1402d0af8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x14001d808
mov ecx, dword [0x1402c5808]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001d7aa
mov rcx, qword [0x1402d0af8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402d0b00]
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, [0x1402d0b08]
call fcn.14019ce70
cmp dword [0x1402d0b08], 0xffffffff
jne 0x14001d6ab
mov qword [0x1402d0b00], 0
lea rcx, [0x1402d0af8]
mov qword [0x1402d0af8], 0xffffffffffffffff
lea rdx, [0x1400630f0]
call fcn.140028120
lea rcx, [0x1402d0b08]
call fcn.14019cd94
jmp 0x14001d6ab
mov rcx, rdi
call fcn.14019cac4
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.14020e2e0
mov rcx, rsi
mov edx, ebp
call fcn.140021290
jmp 0x140021ba4
mov rcx, rsi
call fcn.14022f3f0
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.1401d8080
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.14019ca88
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.14019cac4
mov r15, qword [rsi + 0x10]
jmp 0x140027c02
call fcn.1401dc2e0
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 [0x1402c5808]
cmp ecx, 0xffffffff
je 0x1400281fa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400281fa
mov eax, dword [0x1402cfda0]
mov ecx, dword [0x1402c6098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140028204
mov rbx, qword [0x1402cfd98]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140028249
mov rax, qword [0x1402ce588]
inc rax
xor ecx, ecx
lea rdx, [0x1402ce590]
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 [0x1402cfd90]
inc ecx
mov dword [0x1402cfd90], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1402ce588], 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, [0x1402cfda0]
call fcn.14019ce70
cmp dword [0x1402cfda0], 0xffffffff
jne 0x14002816f
mov ecx, 8
call fcn.14019ca88
mov qword [rax], 0
mov qword [0x1402cfd98], rax
lea rcx, [0x1402cfda0]
call fcn.14019cd94
jmp 0x14002816f
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140028187
inc rcx
cmp rcx, 0x100
jne 0x14002819a
jmp 0x1400281e0
Function at 0x14002bf30
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov byte [rsp + 0x37], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea r14, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1401d8720
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14002c1e0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140275a70]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14002c740
movsx rax, byte [rdi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002bfca
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002c093
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r14, [rsp + 0x68]
lea r15, [rsp + 0x38]
xor r12d, r12d
cmp byte [rsp + 0x68], 0
je 0x14002c123
mov ebp, dword [rsp + 0x6c]
test bpl, 1
jne 0x14002c126
test bpl, 0x10
jne 0x14002c0e2
cmp byte [rsp + 0x67], 0
mov rcx, rdi
jns 0x14002c020
mov rcx, qword [rsp + 0x50]
call r13
test eax, eax
jne 0x14002c0db
call rbx
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
mov rdx, r15
call fcn.14002c740
cmp byte [rsp + 0x67], 0
jns 0x14002c060
mov rcx, qword [rsp + 0x50]
call fcn.14019cac4
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
movsx rax, byte [rsp + 0x67]
mov rcx, rax
test rax, rax
jns 0x14002c087
mov rcx, qword [rsp + 0x58]
mov r12d, ebp
test rcx, rcx
jne 0x14002bfee
test al, al
jns 0x14002c0a1
mov rcx, qword [rsp + 0x50]
call fcn.14019cac4
lea rcx, [rsp + 0x68]
call fcn.14002c160
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14002c0c5
call fcn.14019f290
int3
mov eax, ebp
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x14002c03d
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x14002c03d
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.14002bf30
test eax, eax
jne 0x14002c158
cmp byte [rsp + 0x67], 0
mov rcx, rdi
jns 0x14002c110
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002c03d
jmp 0x14002c02b
int3
mov ecx, ebp
and ecx, 0x10
shr ecx, 4
mov dl, byte [rsp + 0x37]
not dl
test dl, cl
jne 0x14002c0db
test al, al
jns 0x14002c143
mov rcx, qword [rsp + 0x50]
jmp 0x14002c148
lea rcx, [rsp + 0x50]
mov edx, ebp
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002c007
mov ebp, eax
jmp 0x14002c03d
Function at 0x14002e750
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14019f230
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1401d8720
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002e7e4
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14002e80b
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.14002e870
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14002e7fe
call fcn.14019f290
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x14002e853
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1401d8720
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14002e85a
lea rdx, [rsp + 0x40]
jmp 0x14002e7da
mov eax, 0x3f4
jmp 0x14002e7e4
mov eax, 0xea
jmp 0x14002e7e4

Function at 0x14002f270
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14002f35e
cmp qword [rsi], 0
jne 0x14002f35e
cmp dword [rsi + 0x14], 0
jne 0x14002f35e
cmp qword [rsi + 8], 0
jne 0x14002f35e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14002f2e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002f330
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002f2d8
mov qword [rsi], r14
call fcn.1401074f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14002f31a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14002f346
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002f312
mov qword [rsi + 8], r14
call fcn.1401074f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401074f0
mov rcx, qword [rsi]
call fcn.140186080
mov qword [rsi], 0
jmp 0x14002f2c6
call fcn.1401074f0
mov rcx, qword [rsi + 8]
call fcn.140186080
mov qword [rsi + 8], 0
jmp 0x14002f2ff
mov rcx, rsi
call fcn.14022c790
mov rax, qword [rsi]
jmp 0x14002f2aa