joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180048cc0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1800afc6c]
mov ebx, edi
test ecx, ecx
je 0x180048dfb
mov rax, qword [0x1800afc60]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180048d18
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180048cf0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180048dfb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180049040
mov r8d, dword [0x1800afc6c]
cmp ebx, r8d
jae 0x180048d88
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800afc60]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180048d81
mov edx, esi
mov ecx, ebx
call fcn.180048f30
mov edi, eax
test eax, eax
jne 0x180048d88
mov r8d, dword [0x1800afc6c]
inc ebx
cmp ebx, r8d
jb 0x180048d50
cmp qword [rsp + 0x20], 0
je 0x180048dfb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180048de7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180048dd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180048db0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800aeb48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180048f30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800afc60]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180048f94
mov eax, 0xa
jmp 0x180049027
test esi, esi
je 0x180048fb6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180048fd9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180048fd9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180048fd2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180048fd9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180049040
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180097240]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004916a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180049161
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180049144
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180049144
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180049144
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180049102
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800aeb48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180049161
jmp 0x180049137
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180049137
mov rcx, qword [0x1800aeb48]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180049161
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800490b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800491c3
cmp dword [rbx + 0xc], esi
jbe 0x1800491c3
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800491bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180049820
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180049180
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004a9a0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180049540
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov r14d, r15d
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800aeb40], esi
je 0x180049591
cmp rbx, 0x20
jae 0x18004957a
xor ecx, ecx
jmp 0x18004957c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800aeb40], esi
jne 0x180049570
cmp qword [0x1800aeb48], r14
mov qword [rsp + 0x58], r13
je 0x18004972d
mov ecx, dword [0x1800afc6c]
mov ebx, r15d
test ecx, ecx
je 0x1800495cf
mov rdx, qword [0x1800afc60]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800495da
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800495c0
mov r14d, 4
jmp 0x180049733
cmp ebx, 0xffffffff
je 0x1800495cf
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x18004968b
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180049040
xor edx, edx
mov ecx, ebx
call fcn.180048f30
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x18004967b
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x180049667
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, ecx
nop word [rax + rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180049658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x180049630
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800aeb48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x180049733
mov rdx, qword [0x1800afc60]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.180049a80
mov ecx, dword [0x1800afc6c]
lea eax, [rcx - 1]
cmp ebx, eax
jae 0x1800496df
imul rcx, rax, 0x38
mov rax, qword [0x1800afc60]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x1800afc6c]
mov edx, dword [0x1800afc68]
dec ecx
mov eax, edx
mov dword [0x1800afc6c], ecx
shr eax, 1
cmp eax, 0x20
jb 0x180049733
cmp eax, ecx
jb 0x180049733
mov r8, qword [0x1800afc60]
mov eax, edx
mov rcx, qword [0x1800aeb48]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180049733
shr dword [0x1800afc68], 1
mov qword [0x1800afc60], rax
jmp 0x180049733
mov r14d, 2
xchg dword [0x1800aeb40], r15d
mov r13, qword [rsp + 0x58]
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800499d0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x180049a3f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180049a28
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180049a1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800499f0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800aeb48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180049b00
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180049b40
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800afc58]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180049b7e
cmp rsi, r14
jb 0x180049b76
cmp rsi, r15
jae 0x180049b76
cmp qword [rsi + 8], 0
jne 0x180049d47
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180049b61
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180049c12
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180049c09
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180049c09
cmp dword [rsp + 0x70], 0x10000
je 0x180049c8b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180049c09
sub rbx, rbp
cmp rbx, r14
jae 0x180049bd0
test rsi, rsi
jne 0x180049cf0
cmp rdi, r15
ja 0x180049d2f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180049d2f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180049d2f
cmp dword [rsp + 0x70], 0x10000
je 0x180049cc1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180049c42
jmp 0x180049d2f
test rbx, rbx
je 0x180049c09
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049cf0
cmp rbx, r14
jae 0x180049bb0
jmp 0x180049c12
test rdi, rdi
je 0x180049d2f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049cf0
cmp rdi, r15
jbe 0x180049c20
jmp 0x180049d2f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180049d00
mov rax, qword [0x1800afc58]
mov qword [rsi], rax
mov qword [0x1800afc58], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1402e90b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1402e9237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1402e90e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1402e90c7
add dl, dl
jne 0x1402e90ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1402e914e
xor eax, eax
add dl, dl
jne 0x1402e90fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1402e9205
add dl, dl
jne 0x1402e910e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1402e911b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1402e9128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1402e9135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1402e9142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1402e90d6
mov eax, 1
add dl, dl
jne 0x1402e915e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1402e916b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1402e9153
sub eax, ebx
mov ebx, 1
jne 0x1402e91a4
mov ecx, 1
add dl, dl
jne 0x1402e9186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1402e9193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1402e917b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1402e90d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1402e91c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1402e91cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1402e91b5
cmp eax, 0x7d00
jae 0x1402e91f3
cmp eax, 0x500
jb 0x1402e91ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1402e90d6
cmp eax, 0x7f
ja 0x1402e91f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1402e90d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1402e922a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1402e90d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400048a0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b706c]
call fcn.14012b7a0
mov rax, qword [rbp + 0x50]
mov byte [rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x50]
mov dword [rcx + rax + 0x44], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rbp + 0x50]
mov dword [rcx + rax + 0x44], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x50]
mov dword [rcx + rax + 0x4c], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rbp + 0x50]
mov dword [rcx + rax + 0x4c], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rbp + 0x50]
mov dword [rcx + rax + 0x4c], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rbp + 0x50]
mov dword [rcx + rax + 0x4c], 0x10325476
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x14002c660
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b71c3]
call fcn.14012b7a0
mov r9, qword [rbp + 0x68]
mov r8, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ucrtbased.dll_fread]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x14002c6b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b71c3]
call fcn.14012b7a0
mov r9, qword [rbp + 0x68]
mov r8, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ucrtbased.dll_fwrite]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x14002cb80
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b71c3]
call fcn.14012b7a0
mov eax, dword [rbp + 0x80]
not eax
mov dword [rbp], eax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 8], rax
lea rax, [0x1401313b0]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x78]
dec rax
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x58], 0
je 0x14002cc17
mov eax, dword [rbp]
shr eax, 8
mov ecx, dword [rbp]
and ecx, 0xff
mov rdx, qword [rbp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x58], eax
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x58]
mov dword [rbp], eax
jmp 0x14002cbc6
mov eax, dword [rbp]
not eax
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x14002cc30
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b71c3]
call fcn.14012b7a0
mov eax, dword [rbp + 0x90]
not eax
mov dword [rbp + 0x90], eax
mov eax, dword [rbp + 0x90]
mov dword [rbp], eax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 8], rax
lea rax, [0x1401313b0]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x88], 0
je 0x14002cd49
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x88]
dec rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x60], 0
je 0x14002cd44
mov rax, qword [rbp + 8]
movzx eax, byte [rax]
mov byte [rbp + 0x5a], al
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
movzx eax, byte [rbp + 0x5a]
mov byte [rbp + 0x18], al
movzx eax, byte [rbp + 0x18]
cmp eax, 0x23
jne 0x14002cd1e
cmp qword [rbp + 0x88], 2
jb 0x14002cd1e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14002cd1e
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14002cd1e
mov eax, dword [rbp + 0x90]
mov dword [rbp], eax
mov eax, dword [rbp]
shr eax, 8
mov ecx, dword [rbp]
and ecx, 0xff
movzx edx, byte [rbp + 0x18]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rbp], eax
jmp 0x14002cc93
jmp 0x14002cdd1
mov rax, qword [rbp + 8]
movzx eax, byte [rax]
mov byte [rbp + 0x5a], al
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
movzx eax, byte [rbp + 0x5a]
mov byte [rbp + 0x19], al
movzx eax, byte [rbp + 0x19]
test eax, eax
je 0x14002cdd1
movzx eax, byte [rbp + 0x19]
cmp eax, 0x23
jne 0x14002cdab
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14002cdab
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14002cdab
mov eax, dword [rbp + 0x90]
mov dword [rbp], eax
mov eax, dword [rbp]
shr eax, 8
mov ecx, dword [rbp]
and ecx, 0xff
movzx edx, byte [rbp + 0x19]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rbp], eax
jmp 0x14002cd49
mov eax, dword [rbp]
not eax
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x1400a8d10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401a2980]
xor rax, rbp
mov qword [rbp + 0x58], rax
lea rcx, [0x1401b74b3]
call fcn.14012b7a0
mov edx, 8
lea rcx, [rbp]
call fcn.1400a0980
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp]
call fcn.1400ab9d0
nop
lea rax, [0x1400a80d0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x70]
add rax, 8
mov qword [rbp + 0x50], rax
lea rcx, [rbp]
call fcn.1400b6150
mov rcx, qword [rbp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x70]
mov qword [rcx], rax
mov rax, qword [rbp + 0x70]
cmp qword [rax], 0
je 0x1400a8dbb
lea rcx, [rbp]
call fcn.1400bb650
jmp 0x1400a8dd1
mov rax, qword [rbp + 0x70]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140D.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rbp]
call fcn.1400ae040
mov rcx, qword [rbp + 0x58]
xor rcx, rbp
call fcn.14012b9e0
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x1400af210
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b74ac]
call fcn.14012b7a0
mov rax, qword [rbp + 0x60]
cmp dword [rax], 0x270
jne 0x1400af242
mov rcx, qword [rbp + 0x60]
call fcn.1400b17a0
jmp 0x1400af257
mov rax, qword [rbp + 0x60]
cmp dword [rax], 0x4e0
jb 0x1400af257
mov rcx, qword [rbp + 0x60]
call fcn.1400b1590
mov rax, qword [rbp + 0x60]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x60]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 0x60]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x60]
mov dword [rcx], eax
mov eax, dword [rbp + 0x44]
mov dword [rbp], eax
mov eax, dword [rbp]
shr eax, 0xb
mov rcx, qword [rbp + 0x60]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp]
xor ecx, eax
mov eax, ecx
mov dword [rbp], eax
mov eax, dword [rbp]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp]
xor ecx, eax
mov eax, ecx
mov dword [rbp], eax
mov eax, dword [rbp]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp]
xor ecx, eax
mov eax, ecx
mov dword [rbp], eax
mov eax, dword [rbp]
shr eax, 0x12
mov ecx, dword [rbp]
xor ecx, eax
mov eax, ecx
mov dword [rbp], eax
mov eax, dword [rbp]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x1400afc00
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x20]
mov dword [rbp + 0xdc], 0
lea rcx, [0x1401b750c]
call fcn.14012b7a0
call fcn.1400d71f0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x100]
call fcn.1400acb90
mov qword [rbp + 0xe0], rax
mov eax, dword [rbp + 0xdc]
or eax, 1
mov dword [rbp + 0xdc], eax
lea rdx, [0x140185a30]
lea rcx, [rbp + 0x80]
call fcn.140002d50
nop
lea rdx, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rbp + 0xa8]
call fcn.140002d50
nop
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0xa8]
mov rcx, qword [rbp + 0x108]
call fcn.1400bc7c0
nop
lea rcx, [rbp + 0xa8]
call fcn.1400032e0
nop
lea rcx, [rbp + 0x80]
call fcn.1400032e0
cmp qword [rbp], 0
je 0x1400afd86
mov rcx, qword [rbp + 0x108]
call fcn.140004170
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rbp]
call fcn.1400d9fa0
lea r8, [0x1400d6bf0]
mov edx, 0x4e2b
mov rcx, qword [rbp]
call fcn.1400d9fa0
mov r8, qword [rbp + 0x100]
mov edx, 0x2711
mov rcx, qword [rbp]
call fcn.1400d9fa0
mov rcx, qword [rbp]
call fcn.1400d72b0
mov dword [rbp + 0x30], eax
mov rcx, qword [rbp]
call fcn.1400d71d0
cmp dword [rbp + 0x30], 7
jne 0x1400afd86
movzx eax, byte [0x1401a8b5c]
test eax, eax
jne 0x1400afd86
lea rdx, [0x1400ab6b0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str._nError:_Failed_to_connect_to_server..._nTry_again_later._n_nIf_the_issue_persists_you_may_need_to_use_a_VPN._n_API_is_probably_blocked_through_your_ISP_or_firewall..._
mov rcx, rax
call fcn.1400a4be0
mov byte [0x1401a8b5c], 1
mov dword [rbp + 0xd8], reloc.WS2_32.dll_sendto
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0xd0]
call fcn.1400a4510
mov rcx, rax
call fcn.1400abbd0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
movzx eax, byte [0x1401a8b5c]
test eax, eax
jne 0x1400afd98
mov byte [0x1401a8b5c], 1
mov rcx, qword [rbp + 0x108]
call fcn.1400032e0
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xf0]
pop rbp
ret