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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.14006b200
mov rax, qword [rsi]
mov qword [rsi], 0
mov rbx, qword [rdi + 0x10]
mov qword [rdi + 0x10], rax
test rbx, rbx
jne 0x1400c91d4
mov rcx, rdi
call fcn.14006b230
add rdi, 8
mov rcx, rdi
call fcn.140021280
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
jne 0x1400c9206
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [rbx + 0x40]
mov rdx, qword [rbx + 0x48]
call fcn.1400c9430
lea rcx, [rbx + 0x28]
call fcn.1400c9780
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c91fc
mov qword [rbx + 0x18], rcx
call fcn.1400c9ac0
mov rcx, rbx
call fcn.1400c9ac0
jmp 0x1400c91a9
lea rcx, [rdi + 0x40]
mov rdx, qword [rdi + 0x48]
call fcn.1400c9430
lea rcx, [rdi + 0x28]
call fcn.1400c9780
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400c922e
mov qword [rdi + 0x18], rcx
call fcn.1400c9ac0
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400c9ac0
Function at 0x1400cc1f0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.1400c9e00
mov rsi, rax
mov r15, rax
mov byte [rsp + 0x37], 0
cmp byte [rax + 2], 0
je 0x1400cc2bd
mov edi, dword [0x140169500]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test ebx, ebx
jne 0x1400cc2b3
cmp rdi, 1
jbe 0x1400cc34e
inc qword [rdi + 0x298]
mov rbx, qword [rdi + 0xc0]
test rbx, rbx
je 0x1400cc378
inc qword [rdi + 0x2a0]
mov rax, qword [rbx]
test rax, rax
je 0x1400cc284
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1400cc3ee
bswap rax
dec byte [rdi + 0xc8]
mov qword [rdi + 0xc0], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009d180
mov rax, rbx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400cc244
lea r14, [rsi + 0x1f0]
add rsi, 8
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov ebp, 0x40
mov rcx, rsi
call r12
test al, al
jne 0x1400cc30a
jmp 0x1400cc3f3
pause
dec eax
jne 0x1400cc2ea
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, ebp
cmp ebx, 0x3e8
jl 0x1400cc2db
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r14]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400cc40a
mov byte [rsp + 0x37], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400cc336
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400cc3ee
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400cc294
je 0x1400cc3a3
mov byte [r15 + 2], 0
mov rcx, r15
call fcn.14007f0f0
mov rdi, rax
mov byte [r15 + 2], 1
inc qword [rax + 0x298]
mov rbx, qword [rax + 0xc0]
jmp 0x1400cc25c
inc qword [rdi + 0x2b0]
inc qword [rdi + 0x2a8]
mov edx, 0xc
mov rcx, rdi
call fcn.14007f370
mov rbx, qword [rdi + 0xc0]
test rbx, rbx
jne 0x1400cc26c
lea r14, [rsi + 0x1f0]
add rsi, 8
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov ebp, 0x40
mov rcx, rsi
call r12
test al, al
jne 0x1400cc30a
jmp 0x1400cc402
pause
dec eax
jne 0x1400cc3d1
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, ebp
cmp ebx, 0x3e8
jl 0x1400cc3c1
jmp 0x1400cc302
call 0x1400c8770
mov eax, edi
test edi, edi
jg 0x1400cc2ea
jmp 0x1400cc2f2
mov eax, edi
test edi, edi
jg 0x1400cc3d1
jmp 0x1400cc3d9
lea rax, [rsp + 0x37]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140061300
mov rbx, rax
jmp 0x1400cc340
Function at 0x1400e9e90
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14009c328
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400e9f00]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400a8890
mov qword [rbx], rax
test rax, rax
je 0x1400e9ee7
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400ebcb0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400ebd57
mov rbx, qword [rsi + 8]
cmp rdi, rbx
ja 0x1400ebe45
jae 0x1400ebe3d
cmp rbx, 3
jb 0x1400ebd78
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp ecx, 1
ja 0x1400ebd78
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400ebd88
cvtsi2ss xmm0, rax
jmp 0x1400ebd9d
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400ebd68
mov rdi, rdx
jmp 0x1400ebcc9
mov rcx, rdx
call fcn.140067b20
mov rdi, rax
jmp 0x1400ebcc9
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400ebde8
cvtsi2ss xmm0, rax
jmp 0x1400ebdfd
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1400c7db0
cvttss2si rcx, xmm0
movss xmm1, dword [0x14013da80]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
btc rax, 0x3f
ucomiss xmm0, xmm1
cmovb rax, rcx
cmp rax, 2
jb 0x1400ebe31
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400ebe31
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1400c7db0
cvttss2si rax, xmm0
movss xmm1, dword [0x14013da80]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rcx, xmm2
btc rcx, 0x3f
ucomiss xmm0, xmm1
cmovb rcx, rax
call fcn.140067b20
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rbx
jb 0x1400ebe45
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400ce9c0

Function at 0x1400ebf10
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401399e0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x18f
call fcn.14006fcc0
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400763b0
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x1400ebf8f
mov rcx, qword [rsi + 8]
cmp rcx, 0x103
ja 0x1400ebfb6
test al, al
jns 0x1400ebf9f
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bpl
lea rcx, [rsp + 0x40]
call fcn.140076540
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14009d180
mov eax, ebp
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1400ec5c0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400ec657
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400ec65c
test bl, bl
je 0x1400ec61b
cmp byte [rdi + 8], 0
je 0x1400ec6d5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
jne 0x1400ec6e2
mov rcx, qword [rdi]
call fcn.1400349d0
mov rcx, qword [0x140165830]
mov dil, 1
test rcx, rcx
jne 0x1400ec6f0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009d180
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x1400ec5ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1400ec684
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400ec689
xor edi, edi
jmp 0x1400ec640
mov rcx, qword [rdi]
jmp 0x1400ec671
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x1400ec6dd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400ec6b3
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
jne 0x1400ec6ff
mov rcx, qword [rdi]
call fcn.1400349d0
mov rcx, qword [0x140165830]
test rcx, rcx
jne 0x1400ec70a
mov dil, 1
jmp 0x1400ec640
mov rcx, qword [rdi]
jmp 0x1400ec610
mov rcx, qword [rdi]
jmp 0x1400ec6a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400ec628
mov edx, eax
mov r8d, esi
call fcn.1400ef520
jmp 0x1400ec640
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400ec6bc
mov edx, eax
mov r8d, esi
call fcn.1400ef520
jmp 0x1400ec6cd
Function at 0x14010d2c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r8
mov r12, rdx
mov r14, rcx
mov r10d, dword [rsp + 0xe0]
mov rax, qword [0x14015e028]
xor rax, rsp
mov qword [rsp + 0x78], rax
movsxd r8, dword [rcx + 0x18]
lea ecx, [r10 + 4]
mov esi, ecx
shr esi, 6
xor edx, edx
mov edi, 0
cmp rsi, r8
jae 0x14010d318
mov rdi, qword [r9 + rsi*8]
shr rdi, cl
shl edi, 5
and edi, 0x20
lea ecx, [r10 + 3]
mov eax, ecx
shr eax, 6
cmp rax, r8
jae 0x14010d333
mov rdx, qword [r9 + rax*8]
shr rdx, cl
shl edx, 4
and edx, 0x10
or edx, edi
lea ecx, [r10 + 2]
mov eax, ecx
shr eax, 6
xor edi, edi
mov esi, 0
cmp rax, r8
jae 0x14010d357
mov rsi, qword [r9 + rax*8]
shr rsi, cl
shl esi, 3
and esi, 8
or edx, esi
lea ecx, [r10 + 1]
mov eax, ecx
shr eax, 6
cmp rax, r8
jae 0x14010d374
mov rdi, qword [r9 + rax*8]
shr rdi, cl
shl edi, 2
and edi, 4
or edx, edi
mov eax, r10d
shr eax, 6
xor edi, edi
cmp rax, r8
jae 0x14010d392
mov rdi, qword [r9 + rax*8]
mov ecx, r10d
shr rdi, cl
add edi, edi
and edi, 2
or edx, edi
test r10d, r10d
je 0x14010d3b8
dec r10d
mov eax, r10d
shr eax, 6
xor edi, edi
cmp rax, r8
jae 0x14010d3b6
mov rdi, qword [r9 + rax*8]
mov ecx, r10d
shr rdi, cl
and edi, 1
or edx, edi
mov r15d, edx
shr r15, 5
lea eax, [r15 - 1]
neg r15
and eax, edx
xor edx, 0x3f
mov r13d, r15d
and r13d, edx
or r13d, eax
mov rax, r13
shr rax, 1
and r13d, 1
add r13, rax
xor esi, esi
mov r8d, 0xd8
mov rcx, r12
xor edx, edx
call fcn.14009fa40
mov rdi, r13
not rdi
mov r8, rsi
xor r8, r13
dec r8
and r8, rdi
sar r8, 0x3f
mov qword [rsp + 0x20], r12
mov rcx, r14
mov rdx, r12
mov r9, rbx
call fcn.14010a1a0
inc rsi
add rbx, 0xd8
cmp rsi, 0x11
jne 0x14010d3f9
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x30]
mov qword [rdx + 0x40], rax
movaps xmm0, xmmword [0x1401399e0]
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [r12 + 0x48]
mov rcx, r14
call fcn.14010c310
movsxd rax, dword [r14 + 0x40]
test rax, rax
je 0x14010d49a
and r15d, 1
mov rcx, r15
neg rcx
dec r15
xor edx, edx
mov rbx, qword [rsp + rdx*8 + 0x30]
and rbx, rcx
mov rdi, qword [r12 + rdx*8 + 0x48]
and rdi, r15
or rdi, rbx
mov qword [r12 + rdx*8 + 0x48], rdi
inc rdx
cmp rdx, rax
jb 0x14010d47a
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14009d180
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401132c0
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret
Function at 0x18000343c
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
cmp dword [rcx], 2
jne 0x18000345f
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
cmp byte [rcx + 0x60], 1
mov qword [rbp - 8], rcx
jne 0x1800034d8
mov rbx, qword [rbp - 8]
mov rdi, qword [rbx + 0x30]
push 1
pop rdx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
je 0x180003489
mov byte [rbx + 0x60], 0
xor esi, esi
jmp 0x1800034d0
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp eax, 5
jne 0x1800034c8
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x1800034ae
cmp eax, 0x102
je 0x180003481
jmp 0x1800034c2
lea rdx, [rbp - 0xc]
and dword [rdx], 0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
jne 0x180003481
call qword [sym.imp.kernel32.dll_GetLastError]
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.18004d8ae
mov rcx, qword [rbp - 8]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.18000350d
Function at 0x18002e6c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x18002e6e5
cmp rax, rcx
je 0x18002e6eb
cmp rdx, 4
jae 0x18002e6f2
xor eax, eax
xor r8d, r8d
jmp 0x18002e790
pop rbp
jmp fcn.18001fee0
xor eax, eax
jmp 0x18002e7a7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x18006f5b0]
movdqa xmm3, xmmword [0x18006f5c0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x18002e720
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x18002e7a7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x18002e790
pop rbp
ret

Function at 0x180031f40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x180098078]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x180031fb1
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x180031fde
test eax, eax
js 0x180031fbd
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x180031fd4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.180031720
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1800318e0
mov ecx, 7
int 0x29
ud2
Function at 0x180037790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 0x20], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 2
mov qword [rbp - 8], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x1800377fc

Function at 0x180037a20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x180037a8c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x180037a8c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x180037a8c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x180037b38
cmp byte [rdx], 0xed
jne 0x180037b41
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x180037b41
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x180037ad1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x180037c2b
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.180035b60
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x180037c50
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x180037bde
test rdi, rdi
je 0x180037bd0
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x180037b68
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x180037bd0
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x180037b60
cmp r10b, 0xe0
jb 0x180037b4a
cmp r10b, 0xed
jne 0x180037b9f
cmp r8, rax
je 0x180037bd0
lea r8, [r9 + 2]
cmp r8, rax
je 0x180037bd0
cmp byte [r9 + 1], 0x9f
ja 0x180037bcc
add r9, 3
mov r8, r9
jmp 0x180037b60
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x180037b60
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x180037b60
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x180037bfe
add rcx, rbx
mov r8, rdi
call fcn.18005f080
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.18006d600
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x180037bdb
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.18006d600
mov rdx, r15
jmp 0x180037aec
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.18006d600
mov rbx, qword [rsi + 0x10]
jmp 0x180037b29
Function at 0x180038060
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
test al, 0
add byte [rax], al
Function at 0x180043b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.180036640
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x180043b9d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x180043bca
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.180043a60
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x180043c3b
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x180043c20
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x180043bfa
mov rcx, qword [rbp - 8]
call rax
mov rcx, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x180043c12
mov rdx, qword [rax + 0x10]
call fcn.18001e6a0
mov edx, 8
mov rcx, qword [rbp - 0x10]
call fcn.18001e6a0
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180043c5a
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x180043c2d
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x180043c2d
mov edx, 2
mov rcx, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.18001e6a0
Function at 0x180045e20
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1800bdc28]
mov edx, 0x10
xor ecx, ecx
call fcn.180049660
test rax, rax
je 0x180045f00
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x180046030]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x180045ef2
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
je 0x180045eb7
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x180045ecf
mov rdx, qword [rax + 0x10]
call fcn.18001e6a0
mov edx, 8
mov rcx, qword [rbp - 0x20]
call fcn.18001e6a0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.18006c94b
ud2