joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006580
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
mov eax, 0x2440
call fcn.14000b350
sub rsp, rax
mov rax, qword [0x14002a018]
xor rax, rsp
mov qword [rsp + 0x2430], rax
mov rbp, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x1430]
mov r8d, 0x1000
call fcn.14000cb30
mov r8, rbp
lea rcx, [rsp + 0x1430]
mov edx, 0x800
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp word [rsp + 0x1430], 0
lea rbx, [rsp + 0x1430]
je 0x140006682
mov qword [rsp + 0x2470], rdi
nop dword [rax]
nop word [rax + rax]
mov r9, rbp
lea rdx, [rsp + 0x20]
mov r8, rbx
mov rcx, rsi
call fcn.1400066a0
mov rax, qword [rsi + 0x2a0]
cmp qword [rsi + 0x2a8], rax
je 0x140006643
mov r8d, 0x1408
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000c6c0
add qword [rsi + 0x2a0], 0x1408
jmp 0x140006657
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rsi + 0x298]
call fcn.140004420
mov rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140006660
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x140006600
mov rdi, qword [rsp + 0x2470]
mov rcx, qword [rsp + 0x2430]
xor rcx, rsp
call fcn.14000b3c0
add rsp, 0x2440
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400066a0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
mov eax, 0x2440
call fcn.14000b350
sub rsp, rax
mov rax, qword [0x14002a018]
xor rax, rsp
mov qword [rsp + 0x2430], rax
mov rbp, r8
lea rcx, [rsp + 0x1430]
mov rsi, rdx
mov r8d, 0x1000
xor edx, edx
mov rbx, r9
call fcn.14000cb30
mov r9, rbx
lea rdx, [rsp + 0x1430]
mov r8d, 0x800
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x1408
lea rbx, [rsp + 0x1430]
call fcn.14000cb30
cmp word [rsp + 0x1430], 0
je 0x140006837
mov qword [rsp + 0x2460], rdi
nop dword [rax]
mov r8, rbp
mov qword [rsp + 0x1420], 0xffffffffffffffff
mov edx, 0x200
lea rcx, [rsp + 0x20]
call fcn.14000f104
mov r8d, 4
lea rdx, str.exe
mov rcx, rbx
call fcn.14000f250
test eax, eax
jne 0x14000677d
lea r8, [rbx + 8]
mov edx, 0x200
lea rcx, [rsp + 0x420]
call fcn.14000f104
mov r8d, 5
lea rdx, str.args
mov rcx, rbx
call fcn.14000f250
test eax, eax
jne 0x1400067ac
lea r8, [rbx + 0xa]
mov edx, 0x200
lea rcx, [rsp + 0x820]
call fcn.14000f104
mov r8d, 5
lea rdx, str.stop
mov rcx, rbx
call fcn.14000f250
test eax, eax
jne 0x1400067db
lea r8, [rbx + 0xa]
mov edx, 0x200
lea rcx, [rsp + 0xc20]
call fcn.14000f104
mov r8d, 0xa
lea rdx, [0x14001ddc8]
mov rcx, rbx
call fcn.14000f250
test eax, eax
jne 0x14000680a
lea r8, [rbx + 0x14]
mov edx, 0x200
lea rcx, [rsp + 0x1020]
call fcn.14000f104
mov rcx, 0xffffffffffffffff
cmp word [rbx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140006811
lea rbx, [rbx + rcx*2]
add rbx, 2
cmp word [rbx], 0
jne 0x140006730
mov rdi, qword [rsp + 0x2460]
mov r8d, 0x1408
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000c6c0
mov rax, rsi
mov rcx, qword [rsp + 0x2430]
xor rcx, rsp
call fcn.14000b3c0
add rsp, 0x2440
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006870
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14002a018]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.14000a7e0
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.140010ad8
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x1400068f6
lea rcx, [rsp + 0x60]
call fcn.14000f558
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140006947
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000b3c0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret

Function at 0x140007ac0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14002a018]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov qword [rsp + 0x40], rbp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x40]
call fcn.140006dc0
mov ebx, eax
test eax, eax
jne 0x140007bd7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140007bb1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140007ac0
mov ebx, eax
test eax, eax
jne 0x140007bd7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140007b60
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007bc6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.140006080
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007be7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000b3c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007c10
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x80
mov rax, qword [0x14002a018]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx r14d, dl
mov rsi, rcx
call fcn.1400099f0
test eax, eax
jne 0x140007c47
mov eax, 0x80004005
jmp 0x140007dc9
mov rcx, qword [0x14002acf0]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0xa0], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea rdi, str.1171564b_0aa8_4e6b_8461_9a442cb941f9
lea r9, [rsp + 0x58]
mov qword [rsp + 0x60], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.14000a0b0
test eax, eax
js 0x140007dc1
mov qword [rsp + 0x98], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov r9d, 0x20006
mov qword [rsp + 0x48], rbx
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
call fcn.140006dc0
test eax, eax
je 0x140007cdb
mov ecx, eax
call fcn.140005250
mov ebx, eax
jmp 0x140007da4
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
call fcn.140005f00
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x140007d29
mov ecx, eax
call fcn.140005250
mov ebx, eax
jmp 0x140007d96
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x140007d96
lea r8, [rsi + 0x68]
test r8, r8
je 0x140007d85
mov rax, 0xffffffffffffffff
nop
cmp word [r8 + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140007d50
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], r8
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.140006290
test eax, eax
jne 0x140007d96
mov ebx, 0x80004005
test rdi, rdi
je 0x140007da4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x140007db7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000b3c0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop r14
ret
Function at 0x1400082d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14002a018]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.14000cb30
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008370
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008370
call fcn.140005230
mov ebx, eax
jmp 0x140008495
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140008391
call fcn.140005230
jmp 0x140008484
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400083b4
call fcn.140005230
jmp 0x140008484
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400083d6
mov ebx, 0x8007000e
jmp 0x140008486
mov ecx, eax
test eax, eax
je 0x14000840b
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400084cd
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000840b
lea rcx, [rsp + 0x70]
call fcn.140005110
jmp 0x140008415
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140008428
cmp qword [rsp + 0x70], 0
jne 0x140008437
mov ebx, 0x8007000e
jmp 0x140008486
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140008461
call fcn.140005230
jmp 0x140008484
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140007df0
mov ebx, eax
test rdi, rdi
je 0x140008495
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400084ac
lea rcx, [rsp + 0x70]
call fcn.1400061f0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000b3c0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140005ba0
int3
Function at 0x140009640
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14002a018]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r12d, r12d
lea r8, str.AppID
mov r15d, edx
mov qword [rsp + 0x50], r12
mov rdi, rcx
mov qword [rsp + 0x48], r12
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x48]
mov r9d, 0x20019
call fcn.140006dc0
mov ebx, eax
test eax, eax
je 0x1400096b6
mov dword [rdi + 0x27c], eax
jmp 0x140009804
mov rdx, qword [rsp + 0x48]
lea r8, str.1171564b_0aa8_4e6b_8461_9a442cb941f9
mov r9d, 0x20019
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
call fcn.140006dc0
mov ebx, eax
test eax, eax
jne 0x1400097ec
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x60], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000975a
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
jbe 0x140009734
lea eax, [rbx + 0xd]
jmp 0x14000975a
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140009752
test al, 1
jne 0x14000974b
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r12w
je 0x140009757
mov eax, 0xd
jmp 0x14000975a
mov word [rbp - 0x70], r12w
mov eax, r12d
mov dword [rdi + 0x28c], r12d
test eax, eax
jne 0x1400097b0
lea rax, [rdi + 0x68]
mov dword [rdi + 0x28c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14000a5b0]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r12
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400097a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov ebx, dword [rdi + 0x27c]
jmp 0x1400097f2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x1400097db
cmp eax, 0x80010106
jne 0x1400097f2
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400097df
jmp 0x1400097f2
mov byte [rdi + 0x62], 1
mov edx, r15d
mov rcx, rdi
call fcn.1400091a0
mov ebx, eax
mov dword [rdi + 0x27c], eax
cmp qword [rsp + 0x30], r12
je 0x140009804
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x48], r12
je 0x140009816
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14000b3c0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
Function at 0x140009db0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
call fcn.1400099f0
test eax, eax
jne 0x140009dc7
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov r9d, 0x20006
mov qword [rsp + 0x40], rbx
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbx
call fcn.140006dc0
test eax, eax
je 0x140009e0a
mov ecx, eax
call fcn.140005250
mov ebx, eax
jmp 0x140009e70
mov rdx, qword [rsp + 0x38]
lea r8, str.1171564b_0aa8_4e6b_8461_9a442cb941f9
mov r9d, 0x20006
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
call fcn.140006dc0
test eax, eax
je 0x140009e42
mov ecx, eax
call fcn.140005250
jmp 0x140009e5b
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.14000a050
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x140009e70
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x140009e83
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x14000a8a0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14002acd0], 0
mov ebx, r9d
je 0x14000a8bd
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x14002ad70]
call fcn.1400073b0
cmp al, 1
jne 0x14000a8f5
mov edx, ebx
lea rcx, [0x14002ad70]
call fcn.140009640
mov ebx, eax
jmp 0x14000a8f9
mov ebx, dword [rsp + 0x20]
cmp dword [0x14002affc], 0
jne 0x14000a911
cmp byte [0x14002add2], 0
je 0x14000a911
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400110f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010e5c
Function at 0x140001980
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14001b140]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140001ed0
nop
lea rcx, [rsp + 0x20]
call fcn.140001570
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rbx, rax
mov edx, 0xffffffec
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowLongW]
bts eax, 0x13
mov r8d, eax
mov edx, 0xffffffec
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov r9d, 2
mov r8b, 0xf5
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
lea rcx, str.mode_65_15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.color_9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140001750
lea rdx, [0x140016d80]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001f60
lea rdx, str._n_____________________e_32mdiscord.gg_wnm9_cheate_0m
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001f60
lea rdx, [0x140016d80]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001f60
nop
lea rcx, [0x140016c04]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.mode_15_1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400015b0
nop
cmp dword [rsp + 0x28], 0
je 0x140001a7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012550
add rsp, 0x40
pop rbx
ret

Function at 0x140001ed0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14001b140]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.140012570
lea rcx, [0x140001890]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140002460]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140001f4d
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012550
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1400132d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001331a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001331a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001331a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001331a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001331a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001331c
xor al, al
add rsp, 0x28
ret
Function at 0x140001710
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007530
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007530
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x1400018b0
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017b0
mov rcx, rbx
call fcn.1400021f0
mov rdi, rax
test rax, rax
je 0x1400018d2
mov rax, qword [0x14000d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002330
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000184e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001860
add dword [0x14000d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001710
nop dword [rax]
xor esi, esi
jmp 0x1400017d8
mov rax, qword [0x14000d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001710
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001710
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x140001ebc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001eb3
test eax, eax
jne 0x140001eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]