joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002fd20
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x14009cb48]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x298]
mov r12, r9
mov r14, qword [rbp + 0x2a0]
mov rdi, r8
mov r13, qword [rbp + 0x280]
mov rbx, rdx
mov rsi, qword [rbp + 0x2b0]
mov r15, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], r14
call fcn.140035180
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003eda0
test al, al
je 0x14002fdfd
mov rax, qword [rsp + 0x58]
mov r9, r13
mov qword [rsp + 0x48], rsi
mov r8, r12
mov qword [rsp + 0x40], rax
mov rdx, rdi
mov rax, qword [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x290]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x288]
mov dword [rsp + 0x20], eax
call r15
xor r14d, r14d
test eax, eax
jne 0x14002feed
jmp 0x14002fe00
xor r14d, r14d
call fcn.140035180
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003ed90
test al, al
je 0x14002fefc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 1
mov rcx, rsi
mov edi, eax
lea r15d, [r8 + 0x17]
mov edx, r15d
call fcn.140035f90
test al, al
je 0x14002fef4
call fcn.140035a10
mov rbx, rax
test rax, rax
je 0x14002fef4
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp - 0x10]
mov rdx, rbx
dec eax
cmp eax, 0x102
cmova rcx, r14
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x80]
call fcn.14003afa0
xor edx, edx
lea r8d, [r15 + 0x40]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x70]
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea edx, [r15 - 0xb]
lea rax, [rsp + 0x50]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call fcn.14002f890
test eax, eax
jne 0x14002fef4
mov ecx, dword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rbp - 0x68], r14d
jne 0x14002fefc
mov eax, 1
jmp 0x14002fefe
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400801e0
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140030620
Capabilities:
Create process on windows

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 r14
sub rsp, 0x50
movzx r10d, byte [rsp + 0x90]
mov r11, r9
mov rdi, qword [rsp + 0xb8]
mov rbx, r8
mov r9, qword [rsp + 0x88]
mov sil, dl
mov r8, qword [rsp + 0x80]
mov rbp, rcx
mov qword [rax - 0x10], rdi
mov rdx, r11
mov rax, qword [rsp + 0xb0]
mov rcx, rbx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r10d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140030701
mov al, sil
neg al
sbb ebx, ebx
and ebx, 0xfe3fe
add ebx, 0x101c01
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov r9, rdi
mov dword [rsp + 0x30], 1
mov rcx, rax
and dword [rsp + 0x28], 0
mov r8, rbp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea r14, [rdi + 8]
mov rdi, qword [r14]
test eax, eax
jne 0x14003071e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
neg sil
sbb ebx, ebx
and ebx, 0xff3bc
add ebx, 0x100c43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 1
mov r9, r14
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rbp
mov dword [rsp + 0x20], ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140030701
mov al, 1
jmp 0x140030703

Function at 0x140030870
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x78]
mov rbx, rcx
mov rdi, qword [rsp + 0x80]
mov qword [r11 - 0x18], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
and qword [rdi], 0
mov rcx, qword [rcx]
mov qword [r11 - 0x28], r9
mov r9, r8
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
jne 0x1400308c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400308f8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rbx]
mov r9, rdi
mov dword [rsp + 0x30], 3
mov rcx, rax
and dword [rsp + 0x28], 0
mov rdx, rsi
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
not eax
and eax, 5
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14003aa10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x14003e290
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.140048ca0
test al, al
je 0x14003e2c2
mov rcx, qword [rbx]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rbx + 0x38]
and qword [rbx + 0x38], 0
test rdi, rdi
je 0x14003e2e0
mov rcx, rdi
call fcn.14003b350
mov rcx, rdi
call fcn.140080210
lea rcx, [rbx + 0x58]
call fcn.14001b840
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14003e2f8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rbx + 0x38]
test rdi, rdi
je 0x14003e311
mov rcx, rdi
call fcn.14003b350
mov rcx, rdi
call fcn.140080210
mov rax, qword [rbx + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003e331
call fcn.140047460
mov rcx, qword [rbx + 0x28]
call fcn.140047470
and qword [rbx + 0x28], 0
mov rax, qword [rbx + 0x20]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003e351
call fcn.140047460
mov rcx, qword [rbx + 0x20]
call fcn.140047470
and qword [rbx + 0x20], 0
mov rax, qword [rbx + 0x18]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003e371
call fcn.140047460
mov rcx, qword [rbx + 0x18]
call fcn.140047470
and qword [rbx + 0x18], 0
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140048aa0
Function at 0x14003ec00
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140048ca0
test al, al
je 0x14003ec1d
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x20
pop rbx
ret
Function at 0x140041120
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
lea rax, [r11 - 0x18]
mov rbx, r8
mov qword [r11 - 0x28], rax
mov r8, rdi
mov r9d, 8
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400411ae
lea rax, [rsp + 0x38]
mov r9, rdi
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140041186
cmp rdi, qword [rsp + 0x38]
jne 0x140041186
mov bl, 1
jmp 0x140041188
xor bl, bl
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400411ae
mov al, bl
jmp 0x1400411b0
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140041a50
Capabilities:
Read file via mapping

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, qword [0x14009ce38]
jmp sym.QtWebEngineProcess.exe_TargetGetOPMInformation
Function at 0x140046510
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [r8 + 0x18], 0x10
mov rbx, r8
mov r15, qword [r8 + 0x10]
mov r14, rdx
mov rbp, rcx
jb 0x140046543
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r15, r15
je 0x140046572
movzx eax, byte [rdx + r8]
movabs r9, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r9
cmp rdx, r15
jb 0x140046554
mov rsi, qword [rbp + 0x30]
lea r13, [rbp + 8]
mov rax, qword [rbp + 0x18]
and rsi, rcx
mov rdi, qword [r13]
add rsi, rsi
mov r12, qword [rax + rsi*8]
cmp rdi, r12
je 0x1400465dc
mov rdi, qword [rax + rsi*8 + 8]
mov rdi, qword [rdi]
cmp rdi, r12
je 0x1400465dc
mov rdi, qword [rdi + 8]
cmp qword [rdi + 0x28], 0x10
lea rdx, [rdi + 0x10]
jb 0x1400465b1
mov rdx, qword [rdi + 0x10]
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x1400465be
mov rcx, qword [rbx]
cmp r15, qword [rdi + 0x20]
jne 0x140046599
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140046599
mov qword [r14], rdi
mov byte [r14 + 8], al
jmp 0x140046687
mov rdx, qword [r13]
mov r8, rbx
mov rcx, r13
mov rdx, qword [rdx]
call fcn.140046470
mov rcx, qword [r13]
mov rbx, qword [rcx]
mov rax, qword [rbx]
cmp rdi, rax
je 0x14004662e
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rcx, qword [rax + 8]
mov rdx, qword [rdi + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rcx, qword [r13]
mov rdx, qword [rbp + 0x18]
cmp qword [rdx + rsi*8], rcx
jne 0x140046647
mov qword [rdx + rsi*8], rbx
mov rax, qword [rbp + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x140046677
cmp qword [rdx + rsi*8], rdi
jne 0x140046653
mov qword [rdx + rsi*8], rbx
jmp 0x140046677
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x140046677
mov rdx, qword [rbp + 0x18]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, rbp
call fcn.140046940
mov qword [r14], rbx
mov byte [r14 + 8], 1
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400466b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [r8 + 0x18], 0x10
mov rbx, r9
mov r12, qword [r8 + 0x10]
mov r15, r8
mov r14, rdx
mov rbp, rcx
jb 0x1400466e6
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r12, r12
je 0x140046715
movzx eax, byte [rdx + r8]
movabs r9, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r9
cmp rdx, r12
jb 0x1400466f7
mov rsi, qword [rbp + 0x30]
mov rax, qword [rbp + 0x18]
and rsi, rcx
mov rdi, qword [rbp + 8]
add rsi, rsi
mov r13, qword [rax + rsi*8]
cmp rdi, r13
je 0x1400467ad
mov rdi, qword [rax + rsi*8 + 8]
mov rdi, qword [rdi]
cmp rdi, r13
je 0x1400467ad
mov rdi, qword [rdi + 8]
cmp qword [rdi + 0x28], 0x10
lea rdx, [rdi + 0x10]
jb 0x140046750
mov rdx, qword [rdi + 0x10]
cmp qword [r15 + 0x18], 0x10
mov rcx, r15
jb 0x14004675d
mov rcx, qword [r15]
cmp r12, qword [rdi + 0x20]
jne 0x140046738
mov r8, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140046738
mov rcx, qword [rbx + 8]
xor edx, edx
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
lea rcx, [rbx + 0x10]
dec qword [rbp + 0x10]
call fcn.140037f30
mov edx, 0x30
mov rcx, rbx
call fcn.140061b00
mov qword [r14], rdi
mov byte [r14 + 8], 0
jmp 0x14004683e
mov rax, qword [rbx]
cmp rdi, rax
je 0x1400467e2
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rcx, qword [rax + 8]
mov rdx, qword [rdi + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [rbp + 0x18]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [rbp + 8]
jne 0x1400467ff
mov qword [rdx + rsi*8], rbx
mov rax, qword [rbp + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x14004682e
cmp rax, rdi
jne 0x14004680a
mov qword [rdx + rsi*8], rbx
jmp 0x14004682e
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x14004682e
mov rdx, qword [rbp + 0x18]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, rbp
call fcn.140046940
mov qword [r14], rbx
mov byte [r14 + 8], 1
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140049410
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x58]
mov ecx, dword [0x1400b2868]
mov edx, 0x18
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1400af9f0], eax
jg 0x140049443
lea rax, [0x1400af9c0]
add rsp, 0x58
ret
lea rcx, [0x1400af9f0]
call fcn.140080020
cmp dword [0x1400af9f0], 0xffffffff
jne 0x140049437
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movups xmm0, xmmword [rsp + 0x20]
lea rcx, [0x1400af9f0]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [0x1400af9c0], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [0x1400af9d0], xmm1
movups xmmword [0x1400af9e0], xmm0
call fcn.14007ffc0
jmp 0x140049437
Function at 0x14004a420
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14009cb48]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [0x1400afa20], 0
jne 0x14004a68a
mov rbx, qword [0x1400afa18]
xor esi, esi
lea rdi, [rsi - 1]
test rbx, rbx
jne 0x14004a54c
lea ecx, [rsi + 0x20]
call fcn.14007fdf0
mov rbx, rax
test rax, rax
je 0x14004a542
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rbx + 0x10], rsi
lea rax, [rsp + 0x40]
mov qword [rbx + 0x18], 7
mov r8, rdi
mov word [rbx], si
inc r8
cmp word [rax + r8*2], si
jne 0x14004a4a6
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001ed20
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov r8, qword [rbx + 0x10]
jb 0x14004a4ce
mov rdx, qword [rbx]
test r8, r8
je 0x14004a52b
lea rcx, [r8 - 1]
mov rax, r8
cmp rcx, r8
cmovb rax, rcx
cmp word [rdx + rax*2], 0x5c
lea rcx, [rdx + rax*2]
je 0x14004a4ff
nop dword [rax]
cmp rcx, rdx
je 0x14004a52b
sub rcx, 2
cmp word [rcx], 0x5c
jne 0x14004a4f0
sub rcx, rdx
sar rcx, 1
cmp rcx, rdi
je 0x14004a52b
inc rcx
cmp r8, rcx
jb 0x14004a6b1
mov qword [rbx + 0x10], rcx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14004a527
mov rax, qword [rbx]
mov word [rax + rcx*2], si
mov r8d, 9
lea rdx, str.debug.log
mov rcx, rbx
call fcn.140031430
jmp 0x14004a545
mov rbx, rsi
mov qword [0x1400afa18], rbx
test byte [0x14009b7e8], 1
je 0x14004a68a
cmp qword [rbx + 0x18], 8
jb 0x14004a563
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 4
lea edx, [r9 + 4]
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400afa20], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x14004a68a
lea rdx, [rsp + 0x40]
mov word [rsp + 0x40], si
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14004a686
lea rax, [rsp + 0x40]
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], si
jne 0x14004a5d0
mov rcx, qword [0x1400afa18]
lea rdx, [rsp + 0x40]
mov r8, rdi
call fcn.14001ed20
mov rcx, qword [0x1400afa18]
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14004a601
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14004a626
mov r8d, 1
lea rdx, [0x140085950]
call fcn.140031430
mov rcx, qword [0x1400afa18]
mov r8d, 9
lea rdx, str.debug.log
call fcn.140031430
mov rcx, qword [0x1400afa18]
cmp qword [rcx + 0x18], 8
jb 0x14004a649
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea edx, [r9 + 4]
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400afa20], rax
dec rax
cmp rax, 0xfffffffffffffffd
jbe 0x14004a68a
mov qword [0x1400afa20], rsi
xor al, al
jmp 0x14004a68c
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400801e0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1400222f0
int3
Function at 0x14004f3b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
test rdx, rdx
je 0x14004f419
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov qword [rsp + 0x38], rbx
mov rdi, rdx
mov qword [rsp + 0x40], rbp
mov rsi, rcx
mov ebp, 0xffffffff
mov rbx, rdx
nop word [rax + rax]
cmp rbx, rbp
mov rcx, rsi
cmova ebx, ebp
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14004f3f5
int3
mov eax, ebx
sub rdi, rax
add rsi, rax
mov rbx, rdi
test rdi, rdi
jne 0x14004f3e0
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140056820
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x38
movsd xmm0, qword [0x1400afb08]
movaps xmmword [rsp + 0x20], xmm6
xorps xmm6, xmm6
ucomisd xmm0, xmm6
jp 0x140056961
jne 0x140056961
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword gs:[0x58]
mov edx, dword [0x1400b2868]
mov ebp, 0x18
mov rbx, qword [rcx + rdx*8]
mov ecx, dword [rbx + rbp]
cmp dword [0x1400afb18], ecx
jg 0x14005696b
mov eax, dword [rbx + rbp]
cmp dword [0x1400afb28], eax
mov rbp, qword [rsp + 0x58]
jg 0x1400569a5
rdtsc
shl rdx, 0x20
lea rcx, [rsp + 0x40]
or rax, rdx
mov qword [rsp + 0x40], 0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, qword [rsp + 0x40]
xorps xmm2, xmm2
sub rcx, qword [0x1400afb20]
movsd xmm3, qword [0x140087828]
mov rdi, qword [rsp + 0x30]
cvtsi2sd xmm2, rcx
jns 0x14005691f
addsd xmm2, xmm3
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, qword [rsp + 0x48]
divsd xmm2, xmm1
movsd xmm1, qword [0x140087f28]
comisd xmm1, xmm2
ja 0x14005695c
sub rbx, qword [0x1400afb10]
cvtsi2sd xmm0, rbx
jns 0x140056950
addsd xmm0, xmm3
divsd xmm0, xmm2
movsd qword [0x1400afb08], xmm0
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret
lea rcx, [0x1400afb18]
call fcn.140080020
cmp dword [0x1400afb18], 0xffffffff
jne 0x14005689f
rdtsc
shl rdx, 0x20
lea rcx, [0x1400afb18]
or rax, rdx
mov qword [0x1400afb10], rax
call fcn.14007ffc0
jmp 0x14005689f
lea rcx, [0x1400afb28]
call fcn.140080020
cmp dword [0x1400afb28], 0xffffffff
jne 0x1400568b3
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
lea rcx, [0x1400afb28]
mov qword [0x1400afb20], rax
call fcn.14007ffc0
jmp 0x1400568b3
Function at 0x140056c40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x1050
call fcn.1400802b0
sub rsp, rax
mov rax, qword [0x14009cb48]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov rdi, r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140056d4b
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jne 0x140056cdc
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140056cc0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001ed20
mov eax, ebx
jmp 0x140056d4b
cmp ecx, 2
jne 0x140056d46
mov r8d, 0x400
lea rdx, [rsp + 0x840]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x34], eax
dec eax
cmp eax, 0x3ff
ja 0x140056d3f
lea rax, [rsp + 0x840]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140056d20
lea rdx, [rsp + 0x840]
mov rcx, rdi
call fcn.14001ed20
mov eax, ebx
jmp 0x140056d4b
mov eax, 0xea
jmp 0x140056d4b
mov eax, 0x3f4
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400801e0
mov rbx, qword [rsp + 0x1078]
add rsp, 0x1050
pop rdi
ret

Function at 0x140056d70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x50], 4
mov rbx, r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140056dde
mov ecx, dword [rsp + 0x50]
add ecx, 0xfffffffd
cmp ecx, 1
ja 0x140056dd9
cmp dword [rsp + 0x68], 4
jne 0x140056dd9
mov ecx, dword [rsp + 0x30]
mov dword [rbx], ecx
add rsp, 0x40
pop rbx
ret
mov eax, 0x3f4
add rsp, 0x40
pop rbx
ret