joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002980
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000e0c4]
mov r12, rcx
test ebx, ebx
jle 0x140002ab0
mov rax, qword [0x14000e0c8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x1400029cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140002a55
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400029b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140002ad2
mov rax, qword [0x14000e0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ab7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002a4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002a60
add dword [0x14000e0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000e0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1400029d8
mov rax, qword [0x14000e0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002fa0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14000e120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x140002ffc
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002ff3
test r12, r12
je 0x140002ff3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002fd8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003248
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003250
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003260
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400032a5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000329c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400032a7
add rax, 0x28
cmp rax, r9
jne 0x140003288
xor eax, eax
ret

Function at 0x1400032b0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140003340
mov rdx, qword [0x14000ac20]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000332e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000332e
cmp word [rax + 0x18], 0x20b
jne 0x14000332e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140003340
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140003319
add r12, 0x28
cmp r12, rsi
je 0x140003340
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140003310
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140003350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ac20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400033c5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400033bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003370
add rax, 0x28
cmp rax, r9
jne 0x1400033a8
xor eax, eax
ret

Function at 0x1400033d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ac20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400033f0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400033f8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400033f0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140003410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000ac20]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003430
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140003478
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000346f
test rcx, rcx
je 0x140003430
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003460
xor eax, eax
ret
Function at 0x140003480
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ac20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400034a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400034a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400034c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ac20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400034e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400034e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400034e0
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400034e0
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000352c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003540
add rdx, 0x28
cmp rdx, r9
jne 0x140003518
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000ac20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003572
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003580
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003572
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003572
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140003572
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400035cd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400035e0
add rdx, 0x28
cmp r10, rdx
jne 0x1400035b8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400035ef
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400035ff
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400035d6
test ecx, ecx
jg 0x1400035e8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x6d7d6880
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d6a08
mov rax, qword [0x6d7f75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d68cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d6955
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d68b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d6a3d
mov rax, qword [0x6d7f75e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d6a20
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d694e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d69b0
add dword [0x6d7f75e4], 1
cmp edi, 8
jae 0x6d7d6983
test dil, 4
jne 0x6d7d69f4
test edi, edi
je 0x6d7d6978
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d6a0f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d6978
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d699c
jmp 0x6d7d6978
add rsi, qword [0x6d7f75e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d694e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d6978
xor esi, esi
jmp 0x6d7d68d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d6978
mov rax, qword [0x6d7f75e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d7190
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f78c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f78a0]
test rbx, rbx
je 0x6d7d71e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d71db
test rsi, rsi
je 0x6d7d71db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d71c0
lea rcx, [0x6d7f78c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d7420
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d7430
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d7440
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d7481
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d7478
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d7483
add rax, 0x28
cmp rax, r9
jne 0x6d7d7464
xor eax, eax
ret

Function at 0x6d7d7520
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d758d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d758d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d758d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7584
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d758f
add rax, 0x28
cmp rax, r9
jne 0x6d7d7570
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d7690
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d76b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d76a8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d770d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7704
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d7714
add rax, 0x28
cmp rax, r9
jne 0x6d7d76f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d7730
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d779e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d779e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d779e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d779e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d7795
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d77a5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d7780
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d77b8
jmp 0x6d7d779e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d77c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d779e
test r9d, r9d
jg 0x6d7d77b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d7b00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400060e0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x140017100]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x140001318]
mov r8d, 0x40
mov byte [0x14001a7d3], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140006153
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
test ecx, ecx
je 0x140006151
mov r9d, dword [0x14001b148]
and ecx, 0x1f
add r8, 2
mov edx, 1
shl edx, cl
movzx ecx, word [r8]
or r9d, edx
test ecx, ecx
jne 0x140006131
mov dword [0x14001b148], r9d
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140015330
add rsp, 0xb8
ret

Function at 0x1400087fc
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x140017100]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14d, r14d
cmp dword [reloc.ADVAPI32.dll_TraceMessage], 0xffffffff
mov ebx, eax
jne 0x1400088f5
lea rax, [rsp + 0x30]
lea rdx, [0x140001590]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [reloc.ADVAPI32.dll_TraceMessage], r14d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400088f5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x1400015f0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x48], reloc.KERNEL32.dll_EnterCriticalSection
mov dword [rsp + 0x38], 0x50
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400088d8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [reloc.ADVAPI32.dll_TraceMessage], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x1400088f5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [reloc.ADVAPI32.dll_TraceMessage]
and eax, 3
test al, al
je 0x140008958
lea rcx, [rbp - 0x5e]
xor edx, edx
mov r8d, 0x800
mov word [rbp - 0x60], r14w
call sub.msvcrt.dll_memset
mov edx, 0x401
lea rcx, [rbp - 0x60]
test edi, edi
je 0x14000893b
lea r8, [0x140001600]
mov r9d, edi
mov qword [rsp + 0x20], rsi
call fcn.1400050f4
jmp 0x14000894a
lea r8, [0x140001628]
mov r9, rsi
call fcn.1400050f4
test eax, eax
js 0x140008958
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140015330
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400092d4
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x14000931b
cmp al, 6
jb 0x14000931b
lea rcx, [0x1400017a8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000931b
lea rdx, [0x1400017c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000931b
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rax
add rsp, 0x28
ret
Function at 0x140013e34
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140017100]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], di
call sub.msvcrt.dll_memset
lea ebp, [rdi + 0x5c]
test rbx, rbx
je 0x140013eac
cmp word [rbx], di
je 0x140013eac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x140013eac
cmp word [rbx], 0x7f
jae 0x140013ea1
cmp word [rbx + 2], 0x3a
je 0x140013f13
cmp word [rbx], bp
jne 0x140013eac
cmp word [rbx + 2], bp
je 0x140013f13
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140013f13
lea ecx, [rax + 2]
cmp ecx, esi
ja 0x140013f13
mov ecx, eax
inc eax
mov r8, rbx
mov word [rsp + rcx*2 + 0x20], bp
lea rcx, [rsp + 0x20]
mov edx, esi
mov word [rsp + rax*2 + 0x20], di
call fcn.140004fb0
test eax, eax
js 0x140013f13
lea r8, [0x140004d78]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.140004fb0
test eax, eax
setns al
test al, al
je 0x140013f13
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x140013f15
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140015330
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140015498
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140015684
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
test rcx, rcx
je 0x1400156d1
cmp rcx, 0xffffffffffffffff
je 0x1400156d1
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400156c9
cmp dword [rcx + 0x3c], edx
jl 0x1400156c9
cmp dword [rcx + 0x3c], reloc.ADVAPI32.dll_TraceMessage
jae 0x1400156c9
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], reloc.ADVAPI32.dll_TraceMessage
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400156d1
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140015824
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140017100]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x1400158e3
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11, qword [rbp + 0x18]
mov qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r11d, eax
xor qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r11d, eax
xor qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
shl r11, 0x18
xor qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x20]
mov r11d, eax
lea rax, [rbp + 0x10]
xor r11, qword [rbp + 0x10]
xor r11, rax
mov qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x140017100], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x140017108], rax
add rsp, 0x20
pop rbp
ret
Function at 0x1400012fc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x18
call fcn.140009720
xor edi, edi
mov rbx, rax
mov qword [rax], rdi
lea ecx, [rdi + 5]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
call fcn.140009720
mov qword [rbx], rax
mov r9d, edi
mov r8d, edi
lea rcx, [rax + 5]
mov qword [rbx + 0x10], rcx
xor ecx, ecx
mov dword [rax], ecx
mov byte [rax + 4], cl
add rax, 5
mov qword [rbx + 8], rax
mov cl, byte [r9 + rsi]
movabs rax, 0x50e89cc2afb93477
mul r8
inc edi
shr rdx, 7
imul rax, rdx, 0x195
sub r8, rax
lea rax, [0x140041420]
xor cl, byte [r8 + rax]
mov rax, qword [rbx]
movsxd r8, edi
mov byte [r9 + rax], cl
inc r9
cmp r8, 5
jb 0x140001350
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400013a4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov ecx, 0x18
call fcn.140009720
xor esi, esi
mov rdi, rax
mov qword [rax], rsi
lea ecx, [rsi + 0x7a]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
call fcn.140009720
mov qword [rdi], rax
lea r8d, [rsi + 0x7a]
xor edx, edx
mov rbx, rax
lea rcx, [rax + 0x7a]
mov qword [rdi + 0x10], rcx
mov rcx, rax
call fcn.14000c1d0
lea rax, [rbx + 0x7a]
mov r9d, esi
mov qword [rdi + 8], rax
mov r8d, esi
mov cl, byte [r9 + rbp]
movabs rax, 0x50e89cc2afb93477
mul r8
inc esi
shr rdx, 7
imul rax, rdx, 0x195
sub r8, rax
lea rax, [0x140041420]
xor cl, byte [r8 + rax]
mov rax, qword [rdi]
movsxd r8, esi
mov byte [r9 + rax], cl
inc r9
cmp r8, 0x7a
jb 0x140001407
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x18
call fcn.140009720
xor edi, edi
mov rbx, rax
mov qword [rax], rdi
lea ecx, [rdi + 9]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
call fcn.140009720
mov qword [rbx], rax
mov r9d, edi
mov r8d, edi
lea rcx, [rax + 9]
mov qword [rbx + 0x10], rcx
xor ecx, ecx
mov qword [rax], rcx
mov byte [rax + 8], cl
add rax, 9
mov qword [rbx + 8], rax
mov cl, byte [r9 + rsi]
movabs rax, 0x50e89cc2afb93477
mul r8
inc edi
shr rdx, 7
imul rax, rdx, 0x195
sub r8, rax
lea rax, [0x140041420]
xor cl, byte [r8 + rax]
mov rax, qword [rbx]
movsxd r8, edi
mov byte [r9 + rax], cl
inc r9
cmp r8, 9
jb 0x1400014b5
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret