joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180030f50
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180068010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov esi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003109f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800310c5
lea esi, [r15 + 1]
nop
cmp dword [rsp + 0x20], 0x10
jb 0x180031050
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180031050
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180031050
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180031012
mov rcx, qword [0x1800da248]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180031079
jmp 0x180031043
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180031043
mov rcx, qword [0x1800da248]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180031079
mov qword [rbx], rax
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 qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180030fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800310c5
mov r8, qword [rbx]
mov esi, r15d
test r8, r8
je 0x1800310c5
mov rcx, qword [0x1800da248]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
mov qword [rbx], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180038820
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x18003109f
cmp qword [rbx], r15
je 0x180031123
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180031123
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003111c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180030da0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800310e0
mov eax, r15d
jmp 0x1800310a4
Function at 0x180031130
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, 0x30
mov rax, qword [0x180068010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800da680]
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 0x1800311a3
mov eax, 0xa
jmp 0x180031232
test esi, esi
je 0x1800311c5
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 0x1800311e8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800311e8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800311e1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800311e8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
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]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180038820
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180031260
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1800da68c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800312a7
mov rax, qword [0x1800da680]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800312b4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180031290
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1800312a7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180030f50
mov edi, eax
test eax, eax
jne 0x18003139d
mov r9d, dword [0x1800da68c]
cmp ebx, r9d
jae 0x18003132c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800da680]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180031325
mov edx, esi
mov ecx, ebx
call fcn.180031130
mov edi, eax
test eax, eax
jne 0x18003132c
mov r9d, dword [0x1800da68c]
inc ebx
cmp ebx, r9d
jb 0x1800312f0
cmp qword [rsp + 0x20], 0
je 0x18003139b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180031387
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
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 0x180031378
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 0x180031350
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800da248]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180031680
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov r14d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x1800da240], edi
je 0x1800316c9
cmp rbx, 0x20
jae 0x1800316b2
xor ecx, ecx
jmp 0x1800316b4
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800da240], edi
jne 0x1800316a8
cmp qword [0x1800da248], r14
mov qword [rsp + 0x60], r13
je 0x18003186b
mov ecx, dword [0x1800da68c]
mov ebx, r15d
test ecx, ecx
je 0x180031701
mov rdx, qword [0x1800da680]
mov rax, rdx
cmp qword [rax], r14
je 0x18003170c
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800316f2
mov r14d, 4
jmp 0x180031871
cmp ebx, 0xffffffff
je 0x180031701
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800317d0
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180030f50
mov r14d, eax
test eax, eax
jne 0x180031871
xor edx, edx
mov ecx, ebx
call fcn.180031130
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800317c0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800317ac
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov qword [rsp + 0x58], rsi
nop dword [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 0x180031798
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 0x180031770
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800da248]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x180031871
mov rdx, qword [0x1800da680]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.180030560
mov edx, dword [0x1800da68c]
dec edx
cmp ebx, edx
jae 0x18003181f
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x1800da680]
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 [0x1800da688]
mov eax, ecx
mov dword [0x1800da68c], edx
shr eax, 1
cmp eax, 0x20
jb 0x180031871
cmp eax, edx
jb 0x180031871
mov r8, qword [0x1800da680]
mov eax, ecx
mov rcx, qword [0x1800da248]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180031871
shr dword [0x1800da688], 1
mov qword [0x1800da680], rax
jmp 0x180031871
mov r14d, 2
xchg dword [0x1800da240], r15d
mov r13, qword [rsp + 0x60]
mov eax, r14d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800322d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x180068010]
xor rax, rsp
mov qword [rsp + 0x70], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1800da360]
jne 0x1800323db
mov ecx, 0x70
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x180032324
mov ecx, 0x70
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x18003232d
cmp byte [0x1800da33c], 0
je 0x18003236c
cmp dword [0x1800da338], 0
jne 0x18003236c
mov dword [0x1800da338], 1
mov rcx, qword [0x1800da330]
mov rax, qword [0x1800da350]
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
mov r9, qword [rax + 0x1b8]
lea r8, [rsp + 0x40]
mov rdx, qword [0x1800da4a8]
call r9
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1800323db
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800323db
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x5c], 2
lea rax, [0x18005ffac]
mov qword [rsp + 0x50], rax
mov rcx, qword [0x1800da370]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
mov rax, qword [rcx]
mov r9, qword [rax + 0x1b8]
lea r8, [rsp + 0x60]
mov rdx, qword [0x1800da4e0]
call r9
xor ebx, ebx
jmp 0x18003254a
xor ebx, ebx
mov eax, dword [0x1800da338]
movss xmm0, dword [0x1800da328]
cmp eax, 2
jne 0x18003246f
xorps xmm6, xmm6
movss xmm1, dword [0x1800da320]
comiss xmm1, xmm6
jbe 0x180032455
comiss xmm0, xmm1
jb 0x180032455
mov dword [0x1800da320], ebx
addss xmm0, dword [0x180060c8c]
movss dword [0x1800da324], xmm0
mov rcx, qword [0x1800da330]
mov rax, qword [0x1800da350]
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
mov r9, qword [rax + 0x1b8]
lea r8, [rsp + 0x40]
mov rdx, qword [0x1800da4a8]
call r9
mov eax, dword [0x1800da338]
movss xmm0, dword [0x1800da328]
movss xmm1, dword [0x1800da324]
comiss xmm1, xmm6
jbe 0x18003246f
comiss xmm0, xmm1
jb 0x18003246f
mov dword [0x1800da324], ebx
jmp 0x180032474
cmp eax, 3
jne 0x1800324e0
mov dword [0x1800da338], 4
addss xmm0, dword [0x180060cb4]
movss dword [0x1800da348], xmm0
inc dword [0x1800da34c]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0xf
mov r8d, 0x20
lea rdx, str.The_server_is_down__V2HX_ON_TOP_
lea rcx, [rsp + 0x20]
call fcn.18002cdc0
movss xmm2, dword [0x180060cd4]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.180036200
mov eax, dword [0x1800da338]
movss xmm0, dword [0x1800da328]
cmp eax, 4
jne 0x180032550
cmp byte [0x1800da33c], 0
je 0x180032550
comiss xmm0, dword [0x1800da348]
jb 0x180032550
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x5c], 2
lea rax, [0x18005ffac]
mov qword [rsp + 0x50], rax
mov rcx, qword [0x1800da370]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, qword [0x1800da4e0]
call qword [rax + 0x1b8]
movss xmm0, dword [0x1800da328]
movss dword [0x1800da348], xmm0
mov dword [0x1800da338], ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180038820
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
Function at 0x180037580
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp rdx, 1
jne 0x1800375c2
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800374d0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800375c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1400012a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov r8d, pe_nt_image_headers64
lea rdx, [0x140045de0]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
cmp eax, 0x100
jb 0x140001303
lea ecx, [rax + 1]
mov qword [rsp + 0x30], rdi
add rcx, rcx
call fcn.14000d2c4
mov rdi, rax
test rax, rax
je 0x140001326
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
test ebx, ebx
jne 0x140001314
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rbx, qword [rsp + 0x38]
lea rax, [0x140045de0]
add rsp, 0x20
pop rsi
ret
lea rdx, str.Could_not_allocate_environment_buffer
mov ecx, 0x68
call fcn.1400011d0
int3
Function at 0x140006014
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005e73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005e73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005e73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005e73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005e73
cmp dword [rcx + 0x84], 0xe
jbe 0x140005e73
cmp dword [rcx + 0xf8], 0
je 0x140005e73
mov ecx, ebx
call fcn.140005f30
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005d00
nop
cmp dword [rbp + 0x20], 0
je 0x140005ec1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005ecc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005e04
Function at 0x140012c14
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14002b7a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140012c72
cmp word [rdx], r12w
jne 0x140012c72
or byte [rax + r8*8 + 0x38], cl
jmp 0x140012c78
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140012dd3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140012dae
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140012cb1
mov rcx, r9
jmp 0x140012cd4
cmp r9, rdx
jae 0x140012ceb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140012c95
jmp 0x140012dd3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140012da8
cmp dword [rsp + 0x80], edi
je 0x140012da8
mov rdx, r14
lea r11, [0x14002b7a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140012d81
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140012d54
mov word [rbx], r12w
jmp 0x140012dcf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140012d5d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140012dcf
cmp word [rsp + 0x70], r12w
jne 0x140012d8e
cmp rbx, rsi
je 0x140012d4e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400185dc
cmp word [rsp + 0x70], r12w
je 0x140012dd3
mov word [rbx], r13w
jmp 0x140012dcf
lea r11, [0x14002b7a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140012dcb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140012dd3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013628
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001365a
call fcn.14000ed88
mov dword [rax], 0x16
call fcn.14000ec4c
jmp 0x140013779
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140013779
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140013779
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140013689
lock or dword [rcx + 0x14], 0x10
jmp 0x140013779
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001369d
call fcn.1400192d0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140010234
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400130c0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140013767
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140013732
mov rcx, rsi
call fcn.140010234
cmp eax, edi
je 0x14001371d
mov rcx, rsi
call fcn.140010234
cmp eax, 0xfffffffe
je 0x14001371d
mov rcx, rsi
call fcn.140010234
movsxd rbx, eax
lea r14, [0x14002b7a0]
mov rcx, rsi
sar rbx, 6
call fcn.140010234
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140013724
lea rdx, [0x14002a2d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140013732
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140013756
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140013756
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140013756
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001377c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140014a74
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140014afb
mov rsi, rbx
cmp word [rax], bp
je 0x140014aba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140014aa4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140014aa0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000ede4
mov rdi, rax
test rax, rax
je 0x140014ae8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003dc0
mov rbp, rdi
xor ecx, ecx
call fcn.14000eda8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a754
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400185dc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400185dc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001a8a4
cmp rax, 0xffffffffffffffff
je 0x14001a8a4
xor edi, edi
test rbp, rbp
jle 0x14001a84f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140010eb0
mov rbx, rax
test rax, rax
jne 0x14001a7dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001a845
mov edx, 0x8000
mov ecx, r14d
call fcn.14000de48
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140012158
cmp eax, 0xffffffff
je 0x14001a825
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001a7ec
mov edx, r15d
mov ecx, r14d
call fcn.14000de48
jmp 0x14001a845
cmp byte [rsi + 0x38], dil
je 0x14001a83c
cmp dword [rsi + 0x34], 5
jne 0x14001a83c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001a845
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000eda8
jmp 0x14001a8b8
jns 0x14001a8b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400185dc
cmp rax, 0xffffffffffffffff
jne 0x14001a870
cmp byte [rsi + 0x30], dil
je 0x14001a8b8
mov edi, dword [rsi + 0x2c]
jmp 0x14001a8b8
mov ecx, r14d
call fcn.140015418
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001a8b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14001a8b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001a8b1
mov eax, dword [rsi + 0x2c]
jmp 0x14001a8b6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400185dc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400104a0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rbx, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r8, qword [rbx + 0x20]
add r8, 0x68
cmp qword [r8 + 0x18], 8
jb 0x1400104db
mov r8, qword [r8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 8
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftOneDrive
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400209c0
add rsp, 0x40
pop rbx
ret

Function at 0x140010850
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
add rcx, 0x30
cmp qword [rcx + 0x18], 8
jb 0x140010862
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14002152c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021576
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021576
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021576
mov eax, SHFlushSFCache
cmp word [rcx + 0x18], ax
jne 0x140021576
cmp dword [rcx + 0x84], 0xe
jbe 0x140021576
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021578
xor al, al
add rsp, 0x28
ret