joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401163d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rdx
mov ebx, 0x80004005
xor r15d, r15d
mov esi, r15d
mov qword [rbp - 0x41], r15
mov word [rbp - 0x19], r15w
xor edx, edx
lea r8d, [r15 + 0x4c]
lea rcx, [rbp - 0x17]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x49], 0x27
lea rcx, [rbp - 0x39]
call fcn.140109a60
nop
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, [0x140116580]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140116479
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14011652e
mov dword [rbp - 0x49], 0x27
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x19]
mov edx, esi
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x1401164db
test esi, esi
je 0x1401164c8
lea rdx, [0x140005f48]
lea rcx, [rbp - 0x39]
call fcn.14010ae18
mov ebx, eax
test eax, eax
js 0x14011652e
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.14010ae18
mov ebx, eax
test eax, eax
js 0x14011652e
inc esi
test edi, edi
jne 0x1401164e8
cmp esi, 0xf
jae 0x140116500
jmp 0x140116479
cmp edi, 0x103
je 0x140116500
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14011652e
lea rcx, [rbp - 0x39]
call fcn.14010ef2c
test eax, eax
jne 0x14011652e
lea rcx, [rbp - 0x39]
call fcn.140109d20
mov r8, rax
lea rcx, [r14 + 0xc8]
lea rdx, [0x1401165c8]
call fcn.1400dcb0c
mov ebx, eax
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14011653e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x39]
call fcn.140109cb0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140001000
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140116d00
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov rsi, rdx
mov r15, rcx
cmp dword [rdx + 0x10], ebp
jbe 0x140116e0b
mov rax, qword [rsi]
xor ecx, ecx
xor ebx, ebx
xor edx, edx
cmp qword [rsi + 0x18], rcx
je 0x140116d5c
cmp dword [rsi + 0x28], ebp
ja 0x140116d5c
mov rax, qword [rsi + 0x18]
mov rdx, qword [rsi + 0x20]
mov ecx, dword [rsi + 0x28]
jmp 0x140116d5c
test rax, rax
je 0x140116e00
mov rdx, rax
mov rax, qword [rax + 8]
inc ecx
cmp ecx, ebp
jb 0x140116d4a
test rax, rax
je 0x140116e00
mov dword [rsi + 0x28], ecx
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rdx
mov r14, qword [rax]
mov ecx, dword [r14 + 0x188]
dec ecx
je 0x140116db5
sub ecx, 2
je 0x140116e41
dec ecx
je 0x140116e29
dec ecx
je 0x140116e31
dec ecx
je 0x140116e24
cmp ecx, 2
je 0x140116db0
mov r8d, 0xcc
jmp 0x140116dbb
mov ebx, 1
mov r8d, 0x1f4
cmp qword [r15 + 0xa8], 0
je 0x140116dd0
mov rdx, r14
mov rcx, r15
call fcn.140116f44
test ebx, ebx
je 0x140116e00
mov rdi, qword [r14 + 0x158]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [fcn.140015690]
mov rcx, rdi
call rbx
mov rcx, r14
call fcn.140109d20
mov rcx, rax
call sub.KERNEL32.dll_DeleteFileW
inc ebp
cmp ebp, dword [rsi + 0x10]
jb 0x140116d29
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov ebx, 1
mov r8d, 0x193
jmp 0x140116dbb
mov ebx, 1
mov r8d, VarDecRound
jmp 0x140116dbb
test dword [r14 + 0xe8], 0x400
jne 0x140116e31
mov r8d, reloc.OLEAUT32.dll_CreateErrorInfo
jmp 0x140116dbb
Function at 0x14011b214
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edi, edi
add rcx, 0x48
and qword [rax + 8], rdi
xor esi, esi
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [rbx + 8], esi
jne 0x14011b277
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011b26d
test byte [rcx + 0x1c], 1
je 0x14011b26d
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x1f]
lea r8, [0x1400016a8]
call fcn.14000fcb0
mov edi, 0x8000ffff
jmp 0x14011b3ac
cmp dword [rbx + 0xc], esi
jne 0x14011b3ac
cmp dword [rbx + 0x20], esi
jbe 0x14011b3ac
mov rcx, qword [rbx + 0x70]
call sub.KERNEL32.dll_ResetEvent
mov rcx, qword [rbx + 0x78]
call sub.KERNEL32.dll_ResetEvent
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14011b2ac
call sub.KERNEL32.dll_CloseHandle
lea r8, [rsp + 0x40]
lea rdx, [0x14011aca0]
mov ecx, 4
call sub.KERNEL32.dll_GetModuleHandleExW
test eax, eax
jne 0x14011b321
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011b3ac
test byte [rcx + 0x1c], 1
je 0x14011b3ac
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400016a8]
mov edx, 0x20
mov r9d, edi
call fcn.14000fd64
jmp 0x14011b3ac
mov rax, qword [rsp + 0x40]
lea r8, [0x14011aca0]
mov r9, rbx
mov qword [rbx + 0x2f0], rax
lea rax, [rbx + 0x88]
xor edx, edx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], esi
xor ecx, ecx
call sub.KERNEL32.dll_CreateThread
mov qword [rbx + 0x80], rax
test rax, rax
jne 0x14011b3a5
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011b399
test byte [rcx + 0x1c], 1
je 0x14011b399
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x21
call fcn.14000fd64
mov edi, 0x80004005
mov esi, 1
jmp 0x14011b3ac
mov dword [rbx + 0xc], 1
lea rcx, [rbx + 0x48]
call sub.KERNEL32.dll_LeaveCriticalSection
test esi, esi
je 0x14011b3c8
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14011b3c8
call sub.KERNEL32.dll_FreeLibrary
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14011f6ac
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov rsi, r8
mov rdi, rdx
lea rcx, [rsp + 0x22]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bp
call sub.msvcrt.dll_memset
mov r14d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x14011f8b0]
mov r8d, r14d
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
dec eax
cmp eax, 0x103
ja 0x14011f83f
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, r14d
call fcn.140105170
mov ebx, eax
test eax, eax
jns 0x14011f753
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011f88d
test byte [rcx + 0x1c], 1
je 0x14011f88d
lea edx, [rbp + 0x24]
jmp 0x14011f87a
lea rcx, [rsp + 0x20]
mov r8, rdi
mov rdx, r14
call fcn.140105170
mov ebx, eax
test eax, eax
jns 0x14011f794
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011f88d
test byte [rcx + 0x1c], 1
je 0x14011f88d
mov edx, 0x25
jmp 0x14011f87a
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140110938
mov ebx, eax
test eax, eax
jns 0x14011f7d1
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011f88d
test byte [rcx + 0x1c], 1
je 0x14011f88d
mov edx, 0x26
jmp 0x14011f87a
lea rcx, [rsp + 0x20]
call fcn.14011f250
mov ebx, eax
test eax, eax
jns 0x14011f809
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011f88d
test byte [rcx + 0x1c], 1
je 0x14011f88d
mov edx, 0x27
jmp 0x14011f87a
lea r8, [rsp + 0x20]
mov rdx, r14
mov rcx, rsi
call fcn.140044bb0
mov ebx, eax
test eax, eax
jns 0x14011f88d
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011f88d
test byte [rcx + 0x1c], 1
je 0x14011f88d
mov edx, 0x28
jmp 0x14011f87a
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011f88d
test byte [rcx + 0x1c], 1
je 0x14011f88d
mov edx, 0x23
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001850]
mov r9d, ebx
call fcn.14000fd64
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140001000
add rsp, 0x240
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100002ae4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x100002b6d
lea r8, [0x1000016e0]
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.100007ddc
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp eax, 0xffffffff
je 0x100002b6d
lea r8d, [rbx + 2]
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10000c380
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x100002b98
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
movzx eax, cx
xor ebx, ebx
test eax, eax
je 0x100002c9f
cmp eax, 1
je 0x100002c2f
add eax, 0xfffffffe
cmp eax, 1
ja 0x100002ca6
lea rax, [rbp + 0x18]
lea rdx, [0x10000f600]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100002c2a
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
lea rdx, [0x10000f638]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x10]
test eax, eax
cmovne ecx, ebx
mov dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rbp + 0x10]
jmp 0x100002ca6
lea rax, [rbp + 0x18]
lea rdx, [0x10000f670]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x10], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100002c2a
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x100002c15
call fcn.100002ae4
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x100003b1c
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x100010668]
jmp 0x100003b83
cmp dword [0x100011404], 0
jne 0x100003b6d
cmp dword [0x100010ec0], 0
jne 0x100003b6d
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rbx
test rbx, rbx
jne 0x100003b44
mov eax, dword [0x100011400]
mov ebx, 1
test eax, eax
je 0x100003c22
cmp dword [0x100011404], 0
jne 0x100003c22
cmp dword [0x100010ec0], 0
jne 0x100003c22
lea r8, [0x100010670]
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100003be7
mov al, byte [r8 + rcx]
test al, al
je 0x100003be7
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x100003bc9
test rdx, rdx
jne 0x100003bef
sub rcx, rbx
test byte [0x100010ec4], 0x20
mov byte [rcx], 0
je 0x100003c05
lea rcx, [rsp + 0x40]
call fcn.100007e68
lea rcx, [0x1000016d8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.100002918
mov eax, dword [0x100011400]
cmp word [0x100010490], bx
je 0x100003c80
test eax, eax
je 0x100003c80
cmp byte [0x1000103f0], 0
je 0x100003c80
lea rax, [rsp + 0x30]
lea rdx, [0x10000f5c8]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100003c80
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1000103f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x100011400], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10000c380
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14007d484
Capabilities:
Parse pe header

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

Function at 0x140090580
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140090308
Function at 0x1400bda14
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 0x1400bda44
xor eax, eax
jmp 0x1400bdb07
mov rbp, rbx
cmp word [rax], si
je 0x1400bda69
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400bda50
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400bda4c
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.1400bd894
movsxd r14, eax
test eax, eax
jne 0x1400bdaa7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400bda3d
mov rcx, r14
call fcn.1400b9bac
mov rdi, rax
test rax, rax
jne 0x1400bdac0
xor ecx, ecx
call fcn.1400b9c14
jmp 0x1400bda9c
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.1400bd894
test eax, eax
jne 0x1400bdaf1
mov rcx, rdi
call fcn.1400b9c14
jmp 0x1400bdafb
xor ecx, ecx
call fcn.1400b9c14
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 0x1400c9b08
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.1400bb83c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c9b92
cmp byte [rbp - 0x21], r15b
je 0x1400c9b8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c9bc8
call fcn.1400c4434
test eax, eax
jne 0x1400c9bb4
cmp byte [rbp - 0x21], r15b
je 0x1400c9bac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c9bc8
cmp byte [rbp - 0x21], r15b
je 0x1400c9bc5
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.1400ba5dc
test eax, eax
jne 0x1400c9c68
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400bb83c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c9c07
cmp byte [rbp - 0x21], r15b
je 0x1400c9c3c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c9c3c
call fcn.1400c4434
test eax, eax
jne 0x1400c9c28
cmp byte [rbp - 0x21], r15b
je 0x1400c9c21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c9c3c
cmp byte [rbp - 0x21], r15b
je 0x1400c9c39
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.1400ba5dc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c9c68
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c9c6b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c9c79
mov rcx, rdi
call fcn.1400b9c14
cmp byte [rbp + 0x3f], r15b
je 0x1400c9c88
mov rcx, qword [rbp + 0x27]
call fcn.1400b9c14
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 0x1400d67b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d67d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d67d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400d9b9c
Capabilities:
Set console window title

Disassembly:
mov edx, 2
jmp 0x1400d9b9c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400dd022], 0
mov edi, edx
mov rbx, rcx
jne 0x1400d9bba
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [0x1400dd368], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x1400e1b60], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x1400e1b80], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x1400e1b80]
lea rdx, [0x1400e1ba0]
mov qword [0x1400e1bc0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x1400d9b78]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x1400d9c2c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x1400e1b20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400e1be0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400d9c9c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
je 0x1400d9d13
mov rcx, qword [0x1400e1a70]
add esi, 2
xor edx, edx
lea eax, [rsi + 1]
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400d9d13
mov rcx, rax
test rbx, rbx
je 0x1400d9d04
mov rdx, rbx
call sub.msvcrt.dll_wcscpy
lea rdx, [0x1400db104]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
jmp 0x1400d9d10
lea rdx, [0x1400db104]
call sub.msvcrt.dll_wcscpy
mov rbx, rdi
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1400d9d9d
mov eax, dword [0x1400dd368]
cmp eax, 2
je 0x1400d9d68
cmp eax, 0x18
je 0x1400d9d5e
and qword [rsp + 0x20], 0
lea r8d, [rsi + rsi]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400d9d9d
mov rcx, rbx
call fcn.1400d9fe0
jmp 0x1400d9d70
mov rcx, rbx
call fcn.1400da0c0
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8, rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.1400d9fd0
test rdi, rdi
je 0x1400d9db4
mov rcx, qword [0x1400e1a70]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007880
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rdx
mov rdx, rcx
mov rcx, rax
jmp 0x140011f30
mov rax, qword gs:[0x30]
mov r10, rcx
mov r8, qword [rax + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x20
mov rax, qword [r9]
nop dword [rax + rax]
cmp qword [rax + 0x20], rdx
je 0x140011f6d
test rdx, rdx
je 0x140011f6d
mov rax, qword [rax]
cmp rax, r9
jne 0x140011f50
mov qword [rcx], 0
xor eax, eax
ret
mov rcx, qword [rax + 0x40]
mov qword [r10], rcx
movzx eax, word [rax + 0x38]
shr eax, 1
ret