joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001cf20
Capabilities:
Check if file exists
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5f0
mov rax, qword [0x180064138]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
mov rbx, rcx
test rcx, rcx
je 0x18001d19a
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18001d19a
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0xc4]
call fcn.180027560
mov dword [rsp + 0xc0], 0x11c
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0xc4], 6
jae 0x18001cfa0
mov eax, 1
jmp 0x18001d19c
xor edi, edi
mov qword [rsp + 0x90], 0x20
mov qword [rsp + 0x98], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xb0], 0xaac56b
mov dword [rsp + 0xb4], 0x11d0cd44
mov dword [rsp + 0xb8], 0xc000c28c
mov dword [rsp + 0xbc], 0xee95c24f
mov qword [rsp + 0x40], 0x50
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x70], 1
mov eax, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 2
lea ebx, [rdi + 1]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rdi
or eax, 0x1080
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], edi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call sub.WINTRUST.dll_WinVerifyTrust
test eax, eax
je 0x18001d07b
cmp eax, 0x800b0101
je 0x18001d07b
cmp eax, 0x800b0109
je 0x18001d07b
xor eax, eax
jmp 0x18001d19c
mov rcx, qword [rsp + 0x78]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
test rax, rax
je 0x18001d150
cmp dword [rax + 0x78], 0
jbe 0x18001d150
mov rax, qword [rax + 0x80]
test rax, rax
je 0x18001d150
mov rax, qword [rax + 0x38]
test rax, rax
je 0x18001d150
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x18001d150
cmp dword [rax + 0xc], 0
jbe 0x18001d150
mov rax, qword [rcx]
test rax, rax
je 0x18001d150
cmp dword [rax + 0xc], 0
jbe 0x18001d150
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x18001d150
mov rax, qword [rcx]
test rax, rax
je 0x18001d150
mov rsi, qword [rax + 8]
test rsi, rsi
je 0x18001d150
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x1e0]
call fcn.180027560
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertGetNameStringW]
dec eax
cmp eax, 0x1fe
ja 0x18001d150
lea rcx, [rsp + 0x1e0]
call fcn.18001d1d0
test eax, eax
cmovne edi, ebx
mov dword [rsp + 0x30], edi
mov rbx, qword [rsp + 0x78]
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rsp + 0x40]
call fcn.180027560
mov dword [rsp + 0x40], 0x50
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x70], 2
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call sub.WINTRUST.dll_WinVerifyTrust
jmp 0x18001d196
mov eax, edi
jmp 0x18001d19c
xor eax, eax
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.18001e0c0
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18001f6f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x550
mov rax, qword [0x180064138]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x18001f8b0
cmp ebx, 0x20
jb 0x18001f8b0
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x400
mov dword [rsp + 0x30], 0x400
lea rcx, [rsp + 0x140]
call fcn.180027560
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x140]
lea r8, str.mid64
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWow6432Node360SafeLiveup
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x18001f8b0
lea rcx, [rsp + 0x140]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x18001f7a0
cmp rax, 0x40
jne 0x18001f8b0
mov edx, 0x80
lea r9, [rsp + 0x140]
lea rax, [rsp + 0x40]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x40]
lea rax, [r8 - 0x60]
test rax, rax
je 0x18001f7ed
movzx eax, byte [r9 + rcx]
test al, al
je 0x18001f7ed
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x18001f7d0
test r8, r8
lea rax, [rcx - 1]
lea r9, [rsp + 0x160]
cmovne rax, rcx
lea rcx, [rsp + 0xc0]
mov byte [rax], 0
lea rax, [rsp + 0xc0]
sub r9, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x18001f840
movzx eax, byte [r9 + rcx]
test al, al
je 0x18001f840
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x18001f820
test rdx, rdx
lea rax, [rcx - 1]
mov r8d, 0x400
cmovne rax, rcx
xor edx, edx
lea rcx, [rsp + 0x140]
mov byte [rax], 0
call fcn.180027560
mov r8d, 0x400
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.18001f8e0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x18001f8b0
mov rdx, rbx
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.180020890
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x18001f8b2
xor eax, eax
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.18001e0c0
mov rbx, qword [rsp + 0x570]
add rsp, 0x550
pop rdi
ret
Function at 0x1800202f0
Capabilities:
Get storage device properties

Disassembly:
push rbp
push r14
mov eax, 0x2c88
call fcn.18001e190
sub rsp, rax
mov rax, qword [0x180064138]
xor rax, rsp
mov qword [rsp + 0x2c60], rax
mov r14d, edx
mov rbp, rcx
test rcx, rcx
je 0x180020519
test edx, edx
je 0x180020519
mov qword [rsp + 0x2ca8], rbx
mov qword [rsp + 0x2cb0], rsi
mov qword [rsp + 0x2cb8], rdi
mov qword [rsp + 0x2c80], r12
mov qword [rsp + 0x2c78], r13
mov r13d, 0x80070057
mov qword [rsp + 0x2c70], r15
xor r15d, r15d
mov ebx, r15d
mov edi, r15d
lea r12d, [r15 + 1]
nop dword [rax]
mov r9d, edi
lea r8, [0x18004dbb8]
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.18001d9b0
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
lea rcx, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800204da
xor eax, eax
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x550]
xor edx, edx
mov qword [rsp + 0x4c], rax
mov r8d, 0x2710
mov dword [rsp + 0x48], r15d
call fcn.180027560
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
lea rax, [rsp + 0x550]
mov dword [rsp + 0x28], 0x2710
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800204cd
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x3e8
call fcn.180027560
mov edx, dword [rsp + 0x568]
lea r9, [rsp + 0x160]
mov r8d, r12d
lea rcx, [rsp + 0x550]
call fcn.180021350
lea rax, [r14 - 1]
mov ecx, r15d
cmp rax, 0x7ffffffe
mov rdx, r14
cmova ecx, r13d
test ecx, ecx
js 0x1800204c9
mov rax, rbp
test r14d, r14d
je 0x1800204b0
mov r8d, 0x7ffffffe
lea r9, [rsp + 0x160]
sub r8, rdx
sub r9, rbp
lea rcx, [r8 + rdx]
test rcx, rcx
je 0x1800204b0
movzx ecx, byte [r9 + rax]
test cl, cl
je 0x1800204b0
mov byte [rax], cl
inc rax
sub rdx, r12
jne 0x180020494
test rdx, rdx
lea rcx, [rax - 1]
cmovne rcx, rax
mov byte [rcx], r15b
mov ecx, 0x8007007a
cmovne ecx, r15d
test ecx, ecx
cmove ebx, r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1800204e5
inc edi
cmp edi, 0x10
jl 0x180020370
mov r15, qword [rsp + 0x2c70]
mov eax, ebx
mov rbx, qword [rsp + 0x2ca8]
mov r13, qword [rsp + 0x2c78]
mov r12, qword [rsp + 0x2c80]
mov rdi, qword [rsp + 0x2cb8]
mov rsi, qword [rsp + 0x2cb0]
jmp 0x18002051b
xor eax, eax
mov rcx, qword [rsp + 0x2c60]
xor rcx, rsp
call fcn.18001e0c0
add rsp, 0x2c88
pop r14
pop rbp
ret
Function at 0x180020540
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180064138]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test rcx, rcx
je 0x18002060e
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.180027560
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18002060e
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], 0
jne 0x1800205a0
mov ecx, 0x103
mov eax, eax
sub rcx, rdx
cmp rax, rcx
jae 0x18002060e
lea rcx, [rsp + 0x20]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800205c2
mov eax, dword [0x18004dba8]
mov dword [rcx], eax
lea rcx, [rsp + 0x20]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800205e0
xor edx, edx
nop dword [rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1800205f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x180020610
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18001e0c0
add rsp, 0x240
pop rbx
ret
Function at 0x180020630
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x180064138]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x80
call fcn.180027560
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.18001f8e0
mov edx, 0x104
lea rax, [rsp + 0xc0]
mov r9, rdi
lea rcx, [rsp + 0xc0]
mov r8d, edx
sub r9, rax
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1800206c0
movzx eax, byte [r9 + rcx]
test al, al
je 0x1800206c0
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1800206a0
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov rcx, rdx
mov byte [rax], 0
lea rax, [rsp + 0xc0]
nop dword [rax]
cmp byte [rax], 0
je 0x1800206ee
inc rax
sub rcx, 1
jne 0x1800206e0
xor r8d, r8d
mov rax, rdx
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x18002074f
lea rcx, [rsp + 0xc0]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x180020741
lea rax, [r8 + 0x7ffffefb]
add rax, rdx
lea r9, [rsp + 0x40]
sub r9, rcx
test rax, rax
je 0x180020741
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x180020741
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x180020723
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x100
lea rcx, [rsp + 0x1d0]
call fcn.180027560
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x1d0]
mov rcx, 0xffffffff80000002
lea r8, str.mid64
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWow6432Node360SafeLiveup
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov rbx, 0xffffffffffffffff
test eax, eax
jne 0x18002081d
lea rax, [rsp + 0x1d0]
sub rdi, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x1800207d3
inc rax
test ecx, ecx
jne 0x1800207c1
test edx, edx
je 0x18002081d
lea rcx, [rsp + 0x1d0]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1800207e2
mov dword [rsp + 0x28], eax
lea r8, str.mid64_old
lea rax, [rsp + 0x1d0]
mov r9d, 1
lea rdx, str.SoftwareWow6432Node360SafeLiveup
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea rax, [rsp + 0xc0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180020825
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x28], ebx
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, str.mid64
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareWow6432Node360SafeLiveup
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.18001e0c0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2e0
pop rdi
ret
Function at 0x180021fd0
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov r9, rcx
test edx, edx
je 0x1800220b4
mov r10d, edx
movzx edx, byte [r9]
lea r9, [r9 + 1]
xor dl, al
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
and r8b, 1
movzx eax, al
cmove eax, ecx
sub r10, 1
jne 0x180021fe0
ret
Function at 0x180023d20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x180064138]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov r15, rcx
xor esi, esi
mov dword [rdx], esi
mov qword [rbp - 0x71], rsi
mov dword [rbp - 0x69], esi
mov qword [rbp - 0x61], rsi
mov r9d, 0x201
mov r8, qword [0x1800641a0]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x71]
call fcn.180011e40
test eax, eax
jne 0x180023ee2
xor edx, edx
lea r8d, [rsi + 0x64]
lea rcx, [rbp - 0x49]
call fcn.180027560
mov dword [rsp + 0x30], 0x64
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, [0x18004f74c]
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180023ee2
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x180023ee2
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x180023e08
test cl, 1
jne 0x180023ee2
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 - 0x4b], si
je 0x180023e0c
jmp 0x180023ee2
mov word [rbp - 0x49], si
shr ecx, 1
cmp ecx, 0x2d
jne 0x180023ee2
call fcn.180007b50
mov rcx, rax
test rax, rax
je 0x180023f16
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x79], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x79]
call fcn.180021c70
mov dword [rsp + 0x34], esi
lea r8, [rsp + 0x34]
lea rdx, [0x180047290]
lea rcx, [rbp + 0xb]
call fcn.180009030
mov edx, 0x2a
mov rbx, qword [rbp - 0x79]
mov rcx, rbx
call fcn.180021fd0
movzx ecx, al
cmp dword [rsp + 0x34], ecx
jne 0x180023ec3
lea rcx, [rbp - 0x49]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x180023e84
mov r8d, eax
lea rdx, [rbp - 0x49]
mov rcx, r15
call fcn.18000fcf0
mov r8d, dword [0x1800641b0]
mov rdx, qword [str.ffffffff]
lea rcx, [rbp - 0x49]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov esi, 1
test eax, eax
jne 0x180023ec1
mov dword [r14], esi
jmp 0x180023eca
mov rdi, 0xffffffffffffffff
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x180023ee2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x180023ef1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18001e0c0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.180008e40
int3
Function at 0x140489e49
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], r9
lea rdi, [rdi + rdi + 0x7ebdff8e]
lea r9, [0x140457458]
mov edi, 0xf915ff9b
or di, 0x16a1
movzx edi, byte [rax]
push 0xffffffffaf37fd14
xor edi, r11d
and edi, 0xff
mov edi, dword [r9 + rdi*4]
shr r11d, 8
sar dword [rsp + 2], 0xb4
xor r11d, edi
inc dword [rsp]
inc rax
xor r11d, 0x4a253b9f
dec rcx
push 0xffffffff8b902b23
lea rsp, [rsp + 0x10]
jne 0x140489e5c
pop r9
Function at 0x1400018f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140001e80
mov qword [rsp + 0x28], 0
cmp qword [0x14001fb58], 0
jne 0x140001938
cmp qword [0x14001fb50], 0
je 0x140001938
mov rax, qword [0x14001fb50]
mov qword [0x14001fb58], rax
cmp qword [0x14001fb58], 0
je 0x1400019de
mov rax, qword [0x14001fb58]
cmp qword [rax + 0x10], 0
je 0x1400019de
mov rax, qword [0x14001fb58]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1400019de
mov rax, qword [0x14001fb58]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1400019de
mov rax, qword [0x14001fb58]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1400019a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1400019ab
xor eax, eax
jmp 0x140001b55
mov rax, qword [0x14001fb58]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.140014560
mov rax, qword [rsp + 0x28]
jmp 0x140001b55
mov rax, qword [0x14001fb50]
mov qword [0x14001fb58], rax
jmp 0x140001a00
mov rax, qword [0x14001fb58]
mov rax, qword [rax + 8]
mov qword [0x14001fb58], rax
cmp qword [0x14001fb58], 0
je 0x140001a4d
cmp qword [0x14001fb58], 0
je 0x140001a4b
mov rax, qword [0x14001fb58]
cmp qword [rax + 0x10], 0
je 0x140001a4b
mov rax, qword [0x14001fb58]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x140001a4b
mov rax, qword [0x14001fb58]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x140001a4b
jmp 0x14000197c
jmp 0x1400019ee
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140001b60
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001b53
mov rax, qword [rsp + 0x48]
mov qword [0x14001fb58], rax
mov rax, qword [0x14001fb58]
mov dword [rax], 0x52727464
mov rax, qword [0x14001fb58]
mov qword [rax + 0x10], 0
mov rax, qword [0x14001fb58]
mov rcx, qword [0x14001fb50]
mov qword [rax + 8], rcx
mov rax, qword [0x14001fb58]
mov qword [0x14001fb50], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x14001fb58]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140001b04
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x140001b3e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x140001afa
mov rax, qword [0x14001fb58]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14000197c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140002870
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400028b7
xor al, al
jmp 0x140002959
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1400028e1
xor al, al
jmp 0x140002959
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x140002951
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x140002951
mov al, 1
jmp 0x140002959
jmp 0x140002957
xor al, al
add rsp, 0x78
ret

Function at 0x1400035c0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14001fb68], eax
je 0x1400035db
mov eax, 0x10dd
jmp 0x140003701
mov rax, qword [0x14001fb80]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140003686
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call qword [0x14001fb48]
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140003651
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140003651
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140001fc0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.1400053dc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1400035e7
mov qword [0x14001fb80], 0
call fcn.140002a20
mov rax, qword [0x14001fb78]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400036ea
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.1400053dc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1400036a2
mov qword [0x14001fb78], 0
mov dword [0x14001fb68], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140003c30
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x14001fb6c], 0
je 0x140003c4d
mov eax, dword [0x14001fb6c]
jmp 0x140003d13
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140003c60
xor eax, eax
jmp 0x140003d13
mov ecx, 0x10
call fcn.1400053a0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140003cce
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x140003cb3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.1400053dc
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x14001fb6c], eax
mov qword [0x14001fb70], 0
mov eax, dword [rsp + 0x20]
jmp 0x140003d13
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x140003ce8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140003c89
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x14001fb78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x14001fb78], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x140005948
Capabilities:
Parse pe header

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

Function at 0x14000a5d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a3d0