joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b6900
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rcx, [0x1400b7800]
xor edx, edx
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
lea rcx, str.GLIBCXX_TUNABLES
pxor xmm0, xmm0
mov qword [0x1400b7818], 0
movups xmmword [0x1400b7808], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
mov dword [rsp + 0x58], 0x100
lea rax, str.obj_size
test rbx, rbx
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
jne 0x1400b69b5
jmp 0x1400b6a62
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
test rax, rax
mov rbx, rax
je 0x1400b6a10
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400b69a0
cmp qword [rbx + 7], r12
jne 0x1400b69a0
cmp byte [rbx + 0xf], 0x2e
jne 0x1400b69a0
lea rbp, [rsp + 0x30]
add rbx, 0x10
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400b69fb
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400b6a05
cmp byte [rbx + rsi], 0x3d
je 0x1400b6a98
add rbp, 0x18
cmp rbp, r13
jne 0x1400b69df
jmp 0x1400b69a0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
test rbx, rbx
mov qword [0x1400b7818], rbx
jne 0x1400b6a72
lea rcx, [sym.__tcf_0_4]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400b7818], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
test rax, rax
mov qword [0x1400b7810], rax
je 0x1400b6acf
xor edx, edx
mov qword [0x1400b7808], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400b6a4a
lea rdx, [rsp + 0x28]
xor r8d, r8d
lea rcx, [rbx + rsi + 1]
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400b6abf
test dl, dl
jne 0x1400b69a0
test eax, eax
js 0x1400b69a0
mov dword [rbp + 0x10], eax
jmp 0x1400b69a0
xor ecx, ecx
mov qword [0x1400b7818], rcx
jmp 0x1400b6a4a
Function at 0x1400b6dc0
Capabilities:
Hide graphical window

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call sym.__main
call sym.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x1400b6e0b
jmp 0x1400b6e81
test cl, cl
je 0x1400b6e38
and esi, 1
je 0x1400b6e20
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x1400b6e07
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x1400b6de8
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x1400b6df6
test cl, cl
je 0x1400b6e38
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x1400b6e38
cmp al, 0x20
jle 0x1400b6e28
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [rsp + 0x5c], 1
mov r9d, 0xa
je 0x1400b6e66
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x1400c13c0]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x1400bfc30]
jmp 0x1400b6e38
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004a040]
mov dword [rax], 1
mov rax, qword [0x14004a050]
mov dword [rax], 1
mov rax, qword [0x14004a060]
mov dword [rax], 1
mov rax, qword [0x140049ff0]
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 0x140016100
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14002d7c0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140023b60
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140016159
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14002c4a0
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 fcn.14003dc20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14003dc20
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002d172
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400520a8]
test eax, eax
je 0x14002d20a
lea rax, [0x140052080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400520b0]
mov qword [rbp - 8], rax
jmp 0x14002d1ee
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 0x14002d1e2
cmp qword [rbp - 0x10], 0
je 0x14002d1e2
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 0x14002d1a8
lea rax, [0x140052080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002d20b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002d310
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 0x14002d338
mov eax, 0
jmp 0x14002d386
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 0x14002d361
mov eax, 0
jmp 0x14002d386
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 0x14002d381
mov eax, 0
jmp 0x14002d386
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002d38c
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 0x14002d40a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002d401
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 0x14002d401
mov rax, qword [rbp - 8]
jmp 0x14002d41f
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 0x14002d3d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x402990
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x30
lea r8, str.COBANIM_SHMMUTEX_V00
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
mov rbx, rax
je 0x402a5a
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402a51
cmp qword [0x00408568], 0
jne 0x402a21
lea r8, str.COBANIM_SHMMEM_V00
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test rax, rax
mov qword [0x00408560], rax
je 0x402a51
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 2]
mov qword [rsp + 0x20], 0x4510
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
mov qword [0x00408568], rax
je 0x402a44
inc dword [rax + 4]
mov ecx, 0x18
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x402a51
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 8], rbx
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x00408560]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x402ad0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x00408550]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x70], rbx
mov r8, rdx
mov qword [rsp + 0x78], rsi
mov rbx, rdx
mov rsi, rcx
mov rdx, rcx
mov rcx, qword [0x00408570]
mov qword [rsp + 0x50], rdi
call fcn.00404180
mov ecx, 0x20
call qword [sym.imp.msvcrt.dll_malloc]
mov rcx, qword [0x00408598]
mov r9d, 2
mov qword [rax], rcx
lea edx, [r9 - 0xa]
xor r8d, r8d
mov rcx, rsi
mov rdi, rax
mov qword [0x00408598], rax
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov ebx, eax
je 0x402b9e
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 8
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b9e
cmp dword [rsp + 0x30], 8
jne 0x402b9e
cmp byte [rsp + 0x38], 0x4e
jne 0x402b9e
cmp byte [rsp + 0x39], 0x42
jne 0x402b9e
mov eax, dword [rsp + 0x3c]
mov dword [rdi + 0x10], eax
sub ebx, dword [rsp + 0x3c]
add ebx, 8
mov dword [rdi + 0x14], ebx
cmp dword [rdi + 0x10], 0
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
jne 0x402bd5
mov rax, qword [rdi]
mov rcx, rdi
mov qword [0x00408598], rax
call qword [sym.imp.msvcrt.dll_free]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.00405710
add rsp, 0x58
ret
inc dword [0x004085a4]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.00405710
add rsp, 0x58
ret
Function at 0x402cd0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x638
mov rax, qword [0x00408550]
mov qword [rsp + 0x620], rax
test r9, r9
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 - 8], r12
mov rbx, r9
mov r12d, edx
mov esi, r8d
mov ebp, ecx
je 0x402d6e
lea rdx, [r11 - 0x418]
mov ecx, 0x1ff
mov qword [r11 + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
lea rdi, [rsp + 0x220]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x658]
not rcx
lea rax, [rcx - 1]
cdqe
mov byte [rsp + rax + 0x220], 0x5c
sub rax, rbx
lea rcx, [rsp + rax + 0x221]
nop
nop
nop
movzx eax, byte [rbx]
inc rbx
test al, al
mov byte [rcx + rbx - 1], al
jne 0x402d60
mov rbx, qword [rsp + 0x640]
test ebp, ebp
mov rbp, qword [rsp + 0x648]
je 0x402d9f
lea rdx, [rsp + 0x420]
mov r8d, 0x200
mov ecx, 0xd1
call fcn.00401550
jmp 0x402e23
test r12b, 1
je 0x402dd7
mov r8d, 0x200
lea rdx, [rsp + 0x20]
mov ecx, 0xcf
call fcn.00401550
lea r8, [rsp + 0x220]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x420]
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x402e23
cmp esi, 0x7fff
jne 0x402df1
mov r8d, 0x200
lea rdx, [rsp + 0x20]
mov ecx, 0xce
jmp 0x402db5
mov r8d, 0xff
lea rdx, [rsp + 0x20]
lea ecx, [r8 - 0x2f]
call fcn.00401550
lea r9, [rsp + 0x220]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x420]
mov r8d, esi
call qword [sym.imp.msvcrt.dll_sprintf]
lea rdx, [rsp + 0x20]
mov r8d, 0x200
mov ecx, 0xd2
call fcn.00401550
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x420]
mov r9d, 0x10030
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r12, qword [rsp + 0x630]
mov rsi, qword [rsp + 0x650]
mov rcx, qword [rsp + 0x620]
call fcn.00405710
add rsp, 0x638
ret
Function at 0x4034a0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x120
mov rax, qword [0x00408550]
mov qword [rsp + 0x110], rax
cmp dword [0x004085ac], 0
jne 0x403620
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x80], 2
je 0x4034fd
mov eax, 1
mov rcx, qword [rsp + 0x110]
call fcn.00405710
add rsp, 0x120
pop rbx
ret
inc dword [0x004085ac]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40353b
mov eax, 2
mov rcx, qword [rsp + 0x110]
call fcn.00405710
add rsp, 0x120
pop rbx
ret
mov rbx, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov dword [rsp + 0x30], 0x10
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4035fa
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
mov r9d, 0x10
mov qword [rsp + 0x5c], rax
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4035fa
mov rax, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x30]
or dword [rsp + 0x4c], 2
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403620
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 3
mov rcx, qword [rsp + 0x110]
call fcn.00405710
add rsp, 0x120
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x110]
call fcn.00405710
add rsp, 0x120
pop rbx
ret
Function at 0x404720
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x00408550]
mov qword [rsp + 0x80], rax
mov qword [r11 + 0x20], rbx
mov ebx, r8d
mov qword [r11 - 8], rdi
xor edi, edi
test r8b, 1
mov eax, 0x20019
mov r8d, 0x2001f
mov qword [r11 - 0x48], rdi
cmovne eax, r8d
lea r8, [r11 - 0x38]
xor r9d, r9d
mov qword [r11 - 0x58], r8
lea r8, [r11 - 0x48]
mov qword [r11 - 0x60], r8
mov qword [r11 - 0x68], rdi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40483f
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x404844
test bl, 6
je 0x404844
mov rdx, qword [0x004085c0]
mov dword [rsp + 0x58], 0x13
mov byte [rsp + 0x68], dil
test rdx, rdx
je 0x4047d9
mov r8d, ebx
mov rcx, rax
and r8d, 0xfffffff9
call fcn.00404720
test rax, rax
mov rdi, rax
jne 0x40482f
mov rax, qword [rsp + 0x50]
lea rcx, str.DefaultVersion
lea rdx, str.Version
test bl, 2
cmovne rdx, rcx
lea rcx, [rsp + 0x58]
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40482f
mov rcx, qword [rsp + 0x50]
and ebx, 0xfffffff9
lea rdx, [rsp + 0x68]
mov r8d, ebx
call fcn.00404720
mov rdi, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
jmp 0x404844
mov rax, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x80]
call fcn.00405710
add rsp, 0x98
ret
Function at 0x404da0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov rdi, rcx
call fcn.00404a10
test eax, eax
je 0x404e4c
mov rcx, qword [0x004085c8]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e4c
cmp dword [rsp + 0x30], 1
jne 0x404e4c
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
mov rbx, rax
je 0x404e4c
mov rcx, qword [0x004085c8]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e43
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x48
ret

Function at 0x404e70
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov rdi, rcx
xor ecx, ecx
mov rbx, rdx
call fcn.00404870
test eax, eax
je 0x404eef
mov rcx, qword [0x004085b8]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404eef
cmp dword [rsp + 0x30], 4
jne 0x404eef
cmp dword [rsp + 0x34], 4
jne 0x404eef
mov eax, dword [rsp + 0x38]
mov dword [rbx], eax
mov eax, 1
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x48
ret

Function at 0x404f10
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov ecx, 1
mov ebx, edx
call fcn.00404870
test eax, eax
je 0x404f60
mov rcx, qword [0x004085b8]
lea rax, [rsp + 0x30]
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret
Function at 0x4050e0
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x405101
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40517d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x405122
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40517d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x405160
cmp ecx, 0x20b
je 0x40513e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40517d
cmp dword [rax + 0x84], 0xe
ja 0x40514f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40517d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x40517d
cmp dword [rax + 0x74], 0xe
ja 0x40516e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40517d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00408b68], 0xffffffffffffffff
mov qword [0x00408b70], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004085e0]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004085dc]
mov dword [rcx], eax
call fcn.00405310
cmp dword [0x00408540], 0
jne 0x4051d7
lea rcx, [0x00405300]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00406388]
lea rcx, [0x00406380]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x004085d8]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004085d4]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x00406378]
lea rcx, [0x00406368]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.00401ea0
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x405263
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x405284
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x405460
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x00408690]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x00408788]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x4054e1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x00408788]
jmp 0x4054fd
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x00408788], r11
mov qword [0x00408728], rax
mov rax, qword [0x00408550]
mov qword [0x00408600], r11
mov qword [0x00408710], rdi
mov dword [0x004085f0], 0xc0000409
mov dword [0x004085f4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x00408548]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004063f8]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x00408550]
jne 0x405729
rol rcx, 0x10
test cx, 0xffff
jne 0x405725
ret
ror rcx, 0x10
jmp 0x405460
Function at 0x140002540
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400025c8
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400025c8
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1400025c8
nop dword [rax + rax]
lea rdx, str.Discord.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400025e3
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400025a0
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002680
add rsp, 0x160
pop rbx
ret
mov eax, dword [rsp + 0x28]
jmp 0x1400025ca

Function at 0x140002f40
Capabilities:
Parse pe header

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