joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e10ac
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401ba800
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401ba180
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401ba83f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140334020]
jmp 0x1401ba849
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400e1363
Capabilities:
Query environment variable

Disassembly:
jmp 0x14027aa80
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14027a8b0
lea rcx, [rsp + 0x40]
call fcn.14027aa30
movzx eax, al
test eax, eax
jne 0x14027aac8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14027a8e0
mov rax, qword [rsp + 0x70]
jmp 0x14027ac99
lea rcx, [rsp + 0x40]
call fcn.14027aa00
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14027a9a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14027aa00
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400e27b3
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14027ab6e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14027a8e0
mov rax, qword [rsp + 0x80]
jmp 0x14027ac99
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400e0ed1
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400e0c6a
lea rcx, [rsp + 0x48]
call fcn.1400e05ad
movzx eax, al
test eax, eax
jne 0x14027abd5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400deec4
lea rcx, [rsp + 0x40]
call fcn.14027a8e0
mov rax, qword [rsp + 0x88]
jmp 0x14027ac99
lea rcx, [rsp + 0x48]
call fcn.1400e192b
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14027aa00
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400e27b3
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14027ac6b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400deec4
lea rcx, [rsp + 0x40]
call fcn.14027a8e0
mov rax, qword [rsp + 0xa0]
jmp 0x14027ac99
lea rcx, [rsp + 0x48]
call fcn.1400e0c15
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400deec4
lea rcx, [rsp + 0x40]
call fcn.14027a8e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400e1381
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401ba730
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401ba100
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401ba771
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140334020]
jmp 0x1401ba777
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400e144e
Capabilities:
Get geographical location

Disassembly:
jmp 0x14025b170
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14025a0a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14025b1d7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140334030]
jmp 0x14025b1f9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400e04fe
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400e1467
Capabilities:
Terminate process

Disassembly:
jmp 0x140198580
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]
nop
add rsp, 0x28
ret
Function at 0x1400e18b3
Capabilities:
Print debug messages

Disassembly:
jmp 0x140288fa0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140311140]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140288fc6
jmp 0x140289043
mov rcx, qword [rbp + 0x30]
call fcn.1400e0a85
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140288fdf
jmp 0x140289043
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140288ffc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400df12b
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400df833
test eax, eax
jne 0x140289043
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400e0dd2
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400e1caf
Capabilities:
Create process on windows

Disassembly:
jmp 0x14028dd50
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400e02e2
lea rcx, [rsp + 0xb8]
call fcn.1400e02e2
lea rcx, [rsp + 0x88]
call fcn.1400e02e2
call fcn.1400e12be
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400dff59
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14028ddf2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400e0913
lea rcx, [rsp + 0xb8]
call fcn.1400e0913
lea rcx, [rsp + 0xe8]
call fcn.1400e0913
mov eax, dword [rsp + 0x54]
jmp 0x14028df98
call fcn.1400e12be
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400dff59
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14028de52
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400e0913
lea rcx, [rsp + 0xb8]
call fcn.1400e0913
lea rcx, [rsp + 0xe8]
call fcn.1400e0913
mov eax, dword [rsp + 0x5c]
jmp 0x14028df98
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14028ded8
call fcn.1400e12be
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400dff59
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14028dec6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400e0913
lea rcx, [rsp + 0xb8]
call fcn.1400e0913
lea rcx, [rsp + 0xe8]
call fcn.1400e0913
mov eax, dword [rsp + 0x64]
jmp 0x14028df98
lea rcx, [rsp + 0x88]
call fcn.1400e01e3
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400e01e3
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400e01e3
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400e0913
lea rcx, [rsp + 0xb8]
call fcn.1400e0913
lea rcx, [rsp + 0xe8]
call fcn.1400e0913
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400e1d90
Capabilities:
Set environment variable

Disassembly:
jmp 0x14027cba0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400e212d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140198e60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140198e80
xor al, al
jmp 0x140198f01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140198e93
xor al, al
jmp 0x140198f01
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 0x140198ebd
xor al, al
jmp 0x140198f01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140198ed1
xor al, al
jmp 0x140198f01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140198ee3
xor al, al
jmp 0x140198f01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140198eff
xor al, al
jmp 0x140198f01
mov al, 1
add rsp, 0x38
ret
Function at 0x1400e2aab
Capabilities:
Terminate process

Disassembly:
jmp 0x1401bb7f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401bb81e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400e381b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400e38a7
Capabilities:
Print debug messages

Disassembly:
jmp 0x14024e1a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400e3a32
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401ba870
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401ba1c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401ba8b9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140334020]
jmp 0x1401ba8c8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400e3b7c
Capabilities:
Set environment variable

Disassembly:
jmp 0x140299950
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400e02e2
lea rcx, [rsp + 0x48]
call fcn.1400e02e2
call fcn.1400e12be
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400dff59
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402999bf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400e0913
lea rcx, [rsp + 0x78]
call fcn.1400e0913
mov eax, dword [rsp + 0x24]
jmp 0x140299a50
call fcn.1400e12be
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400dff59
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140299a06
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400e0913
lea rcx, [rsp + 0x78]
call fcn.1400e0913
mov eax, dword [rsp + 0x2c]
jmp 0x140299a50
lea rcx, [rsp + 0x48]
call fcn.1400e01e3
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400e01e3
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400e0913
lea rcx, [rsp + 0x78]
call fcn.1400e0913
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14025f1c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400df12b
sub rsp, rax
mov rax, qword [0x140311140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1403179f0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14025f3b2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14025f306
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14025f306
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14025f2eb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14025f288
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14025f372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14025f3d1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14025f3ad
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14025f3d1
jmp 0x14025f25e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400e0dd2
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14025f480
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400df12b
sub rsp, rax
mov rax, qword [0x140311140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1403179f0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14025f68d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14025f5d9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14025f5d9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14025f5b9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14025f548
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14025f64d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14025f6ac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14025f688
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14025f6ac
jmp 0x14025f51e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400e0dd2
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400a3520
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400d48f0], rbx
je 0x1400a3587
cmp rax, rbx
jne 0x1400a357a
mov ebx, 1
mov esi, ebx
jmp 0x1400a358c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400a355f
mov ebx, 1
mov eax, dword [0x1400d48f8]
cmp eax, ebx
jne 0x1400a35a4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400a3610
mov eax, dword [0x1400d48f8]
test eax, eax
jne 0x1400a3605
mov dword [0x1400d48f8], ebx
lea r15, [0x1400ac580]
lea rdi, [0x1400ac568]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400a35f7
test eax, eax
jne 0x1400a35fb
cmp qword [rdi], r14
je 0x1400a35ec
mov rax, qword [rdi]
mov rcx, qword [case.0x1400688bc.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400a35ce
test eax, eax
je 0x1400a360b
mov eax, 0xff
jmp 0x1400a3766
mov dword [0x1400d26f0], ebx
mov edi, 0x1f
mov eax, dword [0x1400d48f8]
cmp eax, ebx
jne 0x1400a3637
lea rdx, [0x1400ac560]
lea rcx, [0x1400ac3f8]
call sub.msvcrt.dll__initterm
mov dword [0x1400d48f8], 2
test esi, esi
jne 0x1400a3645
mov rax, r14
xchg qword [0x1400d48f0], rax
cmp qword [0x1400d4910], r14
je 0x1400a3678
lea rcx, [0x1400d4910]
call fcn.1400a4070
test eax, eax
je 0x1400a3678
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400d4910]
mov r9, qword [case.0x1400688bc.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400a3691
mov eax, 0xff
jmp 0x1400a3766
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400a3717
test ax, ax
je 0x1400a36ac
test edx, edx
jne 0x1400a3717
sub ax, bx
cmp ax, di
ja 0x1400a36c2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400a36ac
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000386c
mov dword [0x1400d26ec], eax
cmp dword [0x1400d2710], r14d
jne 0x1400a3700
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400d26f0], r14d
jne 0x1400a3715
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400d26ec]
jmp 0x1400a3766
cmp ax, 0x22
jne 0x1400a372b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400a369a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call 0x14017a000
add rsp, 0x28
jmp 0x1400a3520
Function at 0x140007c20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002c080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140007cf5
cmp byte [rcx + 0x72], 0
je 0x140007cf5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140007cf1
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140007cb6
sub eax, 1
je 0x140007cba
cmp eax, 2
jne 0x140007cf1
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400147f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140007ce8
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140007cf1
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140007c9e
xor al, al
jmp 0x140007c9e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400147f0
add rsp, 0x60
pop rbx
ret