joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017b8d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14017adf0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14017adf9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140253b80
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14017add9
int3
mov rcx, qword [rcx + 8]
jmp 0x14017ad90

Function at 0x14017f430
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14017f46c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14017f476
add rdi, rbx
sub rsi, rbx
jne 0x14017f44a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14026cb40
int3

Function at 0x140194e80
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 [0x14045a748]
cmp ecx, 0xffffffff
je 0x140194ea2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140194ea7
call fcn.140194fc0
mov eax, dword [0x14046ab60]
mov ecx, dword [0x14045a84c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140194f57
mov rbx, qword [0x14046ab58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140194f9d
mov rax, qword [0x140469348]
inc rax
xor ecx, ecx
lea rdx, [0x140469350]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140194faa
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14046ab50]
inc ecx
mov dword [0x14046ab50], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140469348], 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 0x140194fbc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14046ab60]
call fcn.1402524e0
cmp dword [0x14046ab60], 0xffffffff
jne 0x140194ecc
mov ecx, 8
call fcn.140252388
mov rbx, rax
mov rcx, rax
call fcn.1401ea9f0
mov qword [0x14046ab58], rbx
lea rcx, [0x14046ab60]
call fcn.140252578
jmp 0x140194ecc
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140194ee4
inc rcx
cmp rcx, 0x100
jne 0x140194ef7
jmp 0x140194f3d
int3
Function at 0x140194fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140253b20
sub rsp, rax
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14045a748]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140195074
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1401950b2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140255cd0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1402523fc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140255620
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140253b80
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1401ae5b0
test al, al
je 0x1401950b5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1401950b8
mov eax, 0xffffffff
lock cmpxchg dword [0x14045a748], ecx
je 0x140194ff8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14045a748]
mov dword [rsp + 0x2c], ecx
jmp 0x140194ff8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1401ae5b0
test al, al
je 0x1401950dd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1401950dd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14019508b
int3

Function at 0x1401950f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14045a748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14019512e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140195127
call fcn.140194fc0
jmp 0x14019510e
Function at 0x140195660
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov eax, dword [0x14046af68]
mov ecx, dword [0x14045a84c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401956c4
cmp rdi, rsi
je 0x1401956b9
mov eax, 0xffffffff
lea rcx, [0x14046ab68]
mov dl, byte [rdi]
xor dl, al
movzx edx, dl
shr eax, 8
xor eax, dword [rcx + rdx*4]
inc rdi
cmp rdi, rsi
jne 0x1401956a0
not eax
jmp 0x1401956bb
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14046af68]
call fcn.1402524e0
cmp dword [0x14046af68], 0xffffffff
jne 0x14019568f
lea rbx, [0x14046ab68]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.140255cd0
mov dl, 1
xor ecx, ecx
mov eax, 0xedb88320
test dl, 1
je 0x1401957d7
mov r9d, ecx
shl r9d, 0x1e
sar r9d, 0x1f
and r9d, eax
mov r8d, ecx
and r8d, 1
neg r8d
and r8d, eax
mov edx, ecx
shr edx, 1
xor edx, r8d
mov r8d, edx
shr r8d, 1
xor r8d, r9d
mov r9d, r8d
shl r9d, 0x1a
sar r9d, 0x1f
and r9d, eax
shl edx, 0x1a
sar edx, 0x1f
and edx, 0x76dc4190
mov r10d, ecx
shl r10d, 0x1a
sar r10d, 0x1f
and r10d, 0x3b6e20c8
mov r11d, ecx
shl r11d, 0x1b
sar r11d, 0x1f
and r11d, 0x1db71064
xor r11d, r10d
mov r10d, ecx
shl r10d, 0x1c
sar r10d, 0x1f
and r10d, 0xedb8832
mov ebp, ecx
shl ebp, 0x1d
sar ebp, 0x1f
and ebp, 0x76dc419
xor ebp, r10d
xor ebp, r11d
shr r8d, 6
xor r8d, ebp
xor r8d, edx
xor r8d, r9d
mov dword [rbx], r8d
cmp rcx, 0xff
lea r8, [rcx + 1]
setb dl
add rbx, 4
mov rcx, r8
cmp r8, 0x100
jne 0x1401956f9
lea rcx, [0x14046af68]
call fcn.140252578
jmp 0x14019568f
lea rax, str.out_of_bounds_access_in_std::array_T__N_
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_array
lea r9, str.__n____Size
mov r8d, 0xe3
call fcn.1402984b0
int3
Function at 0x14019f5c0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14019f6e2
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14019f718
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14019f720
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14019f724
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14019f72a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14019f61c
xor eax, eax
jmp 0x14019f6b1
mov dl, byte [r8 + 0x19]
jmp 0x14019f711
cmp byte [r8 + 0x1a], 0
je 0x14019f715
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14019f715
cmp ecx, 0x666f736f
jne 0x14019f715
cmp edx, 0x76482074
jne 0x14019f715
mov byte [r8 + 0x19], 1
jmp 0x14019f715

Function at 0x1401a36e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x14046b008]
mov ecx, dword [0x14045a84c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401a3761
lea rcx, [0x14046aff8]
call fcn.1402400f0
test rax, rax
jne 0x1401a374e
mov ecx, 4
call fcn.140252388
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x14046aff8]
mov rcx, rbx
call fcn.1402400f0
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1401950f0
test rsi, rsi
jne 0x1401a37a4
lea rcx, [0x14046aff8]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1402400f0
lea rcx, [0x14046b008]
call fcn.1402524e0
cmp dword [0x14046b008], 0xffffffff
jne 0x1401a3708
xorps xmm0, xmm0
movups xmmword [0x14046aff8], xmm0
lea rcx, [0x14046aff8]
lea rdx, [0x1400b24e0]
call fcn.140195140
lea rcx, [0x14046b008]
call fcn.140252578
jmp 0x1401a3708
mov rcx, rsi
call fcn.1402523c4
jmp 0x1401a374e
Function at 0x1401a66e0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1401a6770]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x1401a6739
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140253b80
nop
add rsp, 0x40
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1b
call fcn.1402d9960
lea rdx, [0x14041b722]
mov rcx, rsi
call fcn.1402ebae0
mov rcx, rsi
call fcn.1402d9990
jmp 0x1401a6725
Function at 0x1401c8660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov dword [rsp + 0x2c], r9d
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp rdx, r8
jae 0x1401c8890
mov rdi, r8
mov rbx, rcx
mov r12, qword [rsp + 0xb8]
mov r13, qword [r12]
mov eax, dword [rsp + 0x2c]
mov r15, rdx
sub r15, rax
lea rax, [rcx + 0x10]
mov qword [rsp + 0x30], rax
xor ebp, ebp
mov r14d, 0x15
mov eax, edx
sub eax, r15d
cmp dword [rbx + 8], eax
ja 0x1401c86d3
mov ecx, dword [rbx + 0xc]
sub ecx, eax
jbe 0x1401c86d3
add rdx, rcx
jmp 0x1401c8887
lea rcx, [rdx + 5]
cmp rcx, rdi
jbe 0x1401c86e0
xor esi, esi
jmp 0x1401c86f0
mov cl, byte [rdx]
and cl, 0xfe
lea rsi, [rdx + 1]
cmp cl, 0xe8
cmovne rsi, rbp
lea rcx, [rdx + 6]
cmp rcx, rdi
jbe 0x1401c8794
xor ecx, ecx
lea r8, [rdx + 7]
cmp r8, rdi
ja 0x1401c8754
mov r8b, byte [rdx]
cmp r8b, 0x66
je 0x1401c871b
and r8b, 0xf2
cmp r8b, 0x40
jne 0x1401c8754
movzx r8d, byte [rdx + 1]
add r8d, 0xffffff77
cmp r8d, 4
ja 0x1401c8754
bt r14d, r8d
jae 0x1401c8754
mov r8b, byte [rdx + 2]
and r8b, 0xc7
lea r9, [rdx + 3]
cmp r8b, 5
cmove rsi, r9
movzx ecx, cl
mov r8d, 1
cmove ecx, r8d
test rsi, rsi
je 0x1401c8851
mov r8d, esi
sub r8d, r15d
mov dword [rsp + 0x3c], r8d
mov r9, qword [r12 + 8]
cmp r13, r9
je 0x1401c8815
lea r11d, [r8 - 3]
mov r10d, dword [r13]
cmp r10d, r11d
jae 0x1401c8800
add r13, 4
cmp r13, r9
jne 0x1401c877a
mov r13, r9
jmp 0x1401c8815
movzx ecx, byte [rdx]
lea r8d, [rcx - 0x89]
cmp r8d, 4
ja 0x1401c87c4
bt r14d, r8d
jae 0x1401c87c4
mov cl, byte [rdx + 1]
and cl, 0xc7
cmp cl, 5
jne 0x1401c86fd
lea rsi, [rdx + 2]
mov cl, 1
jmp 0x1401c86ff
cmp ecx, 0xff
je 0x1401c8856
cmp ecx, 0xf
jne 0x1401c86fd
mov cl, byte [rdx + 1]
mov r8d, ecx
and r8b, 0xf0
cmp r8b, 0x80
jne 0x1401c86fd
and cl, 0xfe
lea r8, [rdx + 2]
cmp cl, 0x8a
cmovne rsi, r8
jmp 0x1401c86fd
lea r9d, [r8 + 4]
cmp r10d, r9d
jae 0x1401c8815
sub r10d, eax
add r10d, 4
add rdx, r10
jmp 0x1401c8887
mov eax, dword [rsi]
add eax, r8d
add eax, 4
cmp eax, dword [rbx + 0x28]
jae 0x1401c8851
test cl, cl
jne 0x1401c8835
cmp eax, dword [rsp + 0x2c]
jb 0x1401c8851
cmp eax, dword [rsp + 0xb0]
jae 0x1401c8851
mov rax, qword [rbx + 0x18]
cmp rax, qword [rbx + 0x20]
je 0x1401c8871
test rax, rax
je 0x1401c88af
mov dword [rax], r8d
add rax, 4
mov qword [rbx + 0x18], rax
jmp 0x1401c8880
inc rdx
jmp 0x1401c8887
movzx ecx, byte [rdx + 1]
cmp ecx, 0x15
je 0x1401c87b9
cmp ecx, 0x25
je 0x1401c87b9
jmp 0x1401c86fd
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x3c]
call fcn.1401eda90
add rsi, 4
mov rdx, rsi
cmp rdx, rdi
jb 0x1401c86ba
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140253b80
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1402984b0
int3
Function at 0x1401f48e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov al, byte [0x14045fcb0]
test al, 1
je 0x1401f4912
call fcn.1402142d0
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140214640
test rsi, rsi
je 0x1401f493f
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1401f4949
add rdi, rbx
sub rsi, rbx
jne 0x1401f491d
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140211b80
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov ecx, dword [rdx]
mov dword [rsi], ecx
mov dword [rdx], eax
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140211bb1
call fcn.140206ee0
cmp qword [rsi + 8], rbx
je 0x140211be3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140211bf0
cmp r14, 2
jb 0x140211bdb
mov qword [rsi + 8], rbx
call fcn.140206ee0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140206ee0
mov rcx, qword [rsi + 8]
call fcn.1401f3750
mov qword [rsi + 8], 0
jmp 0x140211bcc

Function at 0x140211c10
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov dword [rdx], 0
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140211c41
call fcn.140206ee0
cmp qword [rsi + 8], rbx
je 0x140211c73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140211c80
cmp r14, 2
jb 0x140211c6b
mov qword [rsi + 8], rbx
call fcn.140206ee0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140206ee0
mov rcx, qword [rsi + 8]
call fcn.1401f3750
mov qword [rsi + 8], 0
jmp 0x140211c5c

Function at 0x140211ca0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140211cd2
call fcn.140206ee0
cmp qword [rsi + 8], r14
je 0x140211d04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140211d1f
cmp r15, 2
jb 0x140211cfc
mov qword [rsi + 8], r14
call fcn.140206ee0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140211d37
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140206ee0
mov rcx, qword [rsi + 8]
call fcn.1401f3750
mov qword [rsi + 8], 0
jmp 0x140211ced
call fcn.140206ee0
mov rcx, qword [rdi]
call fcn.1401f3750
mov qword [rdi], 0
jmp 0x140211d10
Function at 0x140212650
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1402126ea
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1402126d4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1402126b1
mov qword [rsi], rdi
call fcn.140206ee0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x1402126ee
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140206ee0
mov rcx, qword [rsi]
call fcn.1401f3750
mov qword [rsi], 0
jmp 0x14021269f
mov byte [rsi + 8], 0
int3
Function at 0x140215310
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14021545d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1403d47c0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [case.0x1402ceef0.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [case.0x1402ceef0.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [case.0x1402ceef0.0]
test r14, r14
je 0x1402153f3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1402153e3
lea r14, [rsi + 0xf8]
mov eax, dword [0x140462774]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140215461
call fcn.140075160
lea rax, [0x140073c60]
test r14, r14
je 0x14021542e
lea rcx, [0x140072f00]
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140253b80
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140215440
bt eax, 9
jae 0x140215481
call fcn.140076250
lea rax, [0x140076720]
test r14, r14
je 0x14021542e
lea rcx, [0x140076420]
jmp 0x14021542b
call fcn.1403217c0
lea rax, [0x140321fc0]
test r14, r14
je 0x14021542e
lea rcx, [0x140321680]
jmp 0x14021542b

Function at 0x14021c300
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14021c329
xor eax, eax
xor r9d, r9d
nop word [rax + rax]
movzx r10d, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x14021c310
movzx eax, r9b
ret
xor eax, eax
ret

Function at 0x140221e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x140221ebb
xor ecx, ecx
lea r9, [0x140424e30]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140221ea0
ret
Function at 0x140252270
Capabilities:
Encode data using xor

Disassembly:
push rbp
hlt
out 0x5e, al
sbb bh, byte [0x146483203]
and eax, dword [rsi]
fcmovnb st(0), st(0)
imul dword [rdx]
sbb edi, dword [rax]
test dh, 0xb7
cdq
stc
xor al, 0xbd
jae 0x140252276
cwde
movabs al, byte [0x3c2e0d4113264c59]
js 0x140252230
int3

Function at 0x140253eed
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
Function at 0x14028b834
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1402609b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14028b8be
cmp byte [rbp - 0x21], r15b
je 0x14028b8b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14028b8f4
call fcn.140282524
test eax, eax
jne 0x14028b8e0
cmp byte [rbp - 0x21], r15b
je 0x14028b8d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14028b8f4
cmp byte [rbp - 0x21], r15b
je 0x14028b8f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140265fcc
test eax, eax
jne 0x14028b994
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402609b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14028b933
cmp byte [rbp - 0x21], r15b
je 0x14028b968
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14028b968
call fcn.140282524
test eax, eax
jne 0x14028b954
cmp byte [rbp - 0x21], r15b
je 0x14028b94d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14028b968
cmp byte [rbp - 0x21], r15b
je 0x14028b965
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140265fcc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14028b994
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14028b997
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14028b9a5
mov rcx, rdi
call fcn.1401f9520
cmp byte [rbp + 0x3f], r15b
je 0x14028b9b4
mov rcx, qword [rbp + 0x27]
call fcn.1401f9520
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret