joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140167090
Capabilities:
Set console window title

Disassembly:
mov edx, 2
jmp 0x14016709c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14016a022], 0
mov edi, edx
mov rbx, rcx
jne 0x1401670ba
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [0x14016a118], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x14016a600], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x14016a620], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x14016a620]
lea rdx, [0x14016a640]
mov qword [0x14016a660], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x140167078]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14016712c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x14016a680]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14016a6c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14016709c
Capabilities:
Set console window title

Disassembly:
mov edx, 2
jmp 0x14016709c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14016a022], 0
mov edi, edx
mov rbx, rcx
jne 0x1401670ba
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [0x14016a118], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x14016a600], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x14016a620], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x14016a620]
lea rdx, [0x14016a640]
mov qword [0x14016a660], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x140167078]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14016712c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x14016a680]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14016a6c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1401671c4
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 0x14016723b
mov rcx, qword [0x14016a560]
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 0x14016723b
mov rcx, rax
test rbx, rbx
je 0x14016722c
mov rdx, rbx
call sub.msvcrt.dll_wcscpy
lea rdx, [0x140168104]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
jmp 0x140167238
lea rdx, [0x140168104]
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 0x1401672c5
mov eax, dword [0x14016a118]
cmp eax, 2
je 0x140167290
cmp eax, 0x18
je 0x140167286
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 0x1401672c5
mov rcx, rbx
call fcn.140167510
jmp 0x140167298
mov rcx, rbx
call fcn.1401675f0
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.140167500
test rdi, rdi
je 0x1401672dc
mov rcx, qword [0x14016a560]
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 0x1400025fe
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400af920
mov rax, rcx
neg rcx
test rax, 7
je 0x1400af93d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400af998
test al, 7
jne 0x1400af930
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400af951
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400af9c2
test dh, dh
je 0x1400af9bc
shr rdx, 0x10
test dl, dl
je 0x1400af9b6
test dh, dh
je 0x1400af9b0
shr rdx, 0x10
test dl, dl
je 0x1400af9aa
test dh, dh
je 0x1400af9a4
shr edx, 0x10
test dl, dl
je 0x1400af99e
test dh, dh
jne 0x1400af951
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x1400028fb
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140095650
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140094fd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009568f
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 [0x140251020]
jmp 0x140095699
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140002a5e
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401195c0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401193f0
lea rcx, [rsp + 0x40]
call fcn.140119570
movzx eax, al
test eax, eax
jne 0x140119608
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140119420
mov rax, qword [rsp + 0x70]
jmp 0x1401197d9
lea rcx, [rsp + 0x40]
call fcn.140119540
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401194e0
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.140119540
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.14000349a
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401196ae
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140119420
mov rax, qword [rsp + 0x80]
jmp 0x1401197d9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14000281f
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002702
lea rcx, [rsp + 0x48]
call fcn.1400023bf
movzx eax, al
test eax, eax
jne 0x140119715
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140001776
lea rcx, [rsp + 0x40]
call fcn.140119420
mov rax, qword [rsp + 0x88]
jmp 0x1401197d9
lea rcx, [rsp + 0x48]
call fcn.140002d2e
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140119540
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.14000349a
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401197ab
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140001776
lea rcx, [rsp + 0x40]
call fcn.140119420
mov rax, qword [rsp + 0xa0]
jmp 0x1401197d9
lea rcx, [rsp + 0x48]
call fcn.1400026df
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140001776
lea rcx, [rsp + 0x40]
call fcn.140119420
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140002a68
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140095580
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140094f50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400955c1
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 [0x140251020]
jmp 0x1400955c7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140002aea
Capabilities:
Get geographical location

Disassembly:
jmp 0x140112890
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.1401117c0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401128f7
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 [0x140251030]
jmp 0x140112919
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14000236f
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 0x140002af9
Capabilities:
Terminate process

Disassembly:
jmp 0x140072f50
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 0x140002cde
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401301f0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140240c88]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140130216
jmp 0x140130293
mov rcx, qword [rbp + 0x30]
call fcn.1400025fe
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14013022f
jmp 0x140130293
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14013024c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400018c5
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.140001c9e
test eax, eax
jne 0x140130293
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400027ac
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140003625
Capabilities:
Terminate process

Disassembly:
jmp 0x140096700
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 0x14009672e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140003d69
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 0x140003db9
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401072f0
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 0x140003e63
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400956c0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140095010
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140095709
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 [0x140251020]
jmp 0x140095718
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140003f08
Capabilities:
Set environment variable

Disassembly:
jmp 0x14013ddf0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14000224d
lea rcx, [rsp + 0x48]
call fcn.14000224d
call fcn.140002a0e
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140002081
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14013de5f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14000251d
lea rcx, [rsp + 0x78]
call fcn.14000251d
mov eax, dword [rsp + 0x24]
jmp 0x14013def0
call fcn.140002a0e
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140002081
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14013dea6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14000251d
lea rcx, [rsp + 0x78]
call fcn.14000251d
mov eax, dword [rsp + 0x2c]
jmp 0x14013def0
lea rcx, [rsp + 0x48]
call fcn.1400021d0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400021d0
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.14000251d
lea rcx, [rsp + 0x78]
call fcn.14000251d
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14010e6f0
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.1400018c5
sub rsp, rax
mov rax, qword [0x140240c88]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140243db0]
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 0x14010e8e2
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 0x14010e836
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14010e836
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 0x14010e81b
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 0x14010e7b8
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 0x14010e8a2
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 0x14010e901
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 0x14010e8dd
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 0x14010e901
jmp 0x14010e78e
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.1400027ac
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14010e9b0
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.1400018c5
sub rsp, rax
mov rax, qword [0x140240c88]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140243db0]
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 0x14010ebbd
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 0x14010eb09
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14010eb09
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 0x14010eae9
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 0x14010ea78
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 0x14010eb7d
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 0x14010ebdc
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 0x14010ebb8
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 0x14010ebdc
jmp 0x14010ea4e
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.1400027ac
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14000157b
Capabilities:
Get session user name

Disassembly:
push rbp
mov eax, 0x1000
call fcn.140012cd0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp - 0x54], 0xfa0
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
lea rax, [rbp + 0xf5b]
mov rcx, rax
call fcn.140001554
mov dword [rbp + 0xf57], eax
lea rax, [rbp + 0xf57]
mov qword [rbp + 0xf78], rax
mov rax, qword [rbp + 0xf78]
mov qword [rbp + 0xf70], rax
mov rax, qword [rbp + 0xf70]
movzx eax, byte [rax + 3]
test al, al
setne al
test al, al
je 0x140001688
mov rax, qword [rbp + 0xf78]
mov rdx, qword [rbp + 0xf78]
mov qword [rbp + 0xf68], rdx
mov qword [rbp + 0xf60], rax
mov dword [rbp + 0xf5c], 0
jmp 0x14000167e
mov eax, dword [rbp + 0xf5c]
movsxd rdx, eax
mov rax, qword [rbp + 0xf60]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0xf5c]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff8d3dcb09
shr rdx, 0x20
add edx, eax
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x3a
sub eax, ecx
mov edx, eax
mov eax, edx
add eax, 0x37
mov ecx, r8d
xor ecx, eax
mov rdx, qword [rbp + 0xf68]
mov eax, dword [rbp + 0xf5c]
cdqe
mov byte [rdx + rax], cl
add dword [rbp + 0xf5c], 1
cmp dword [rbp + 0xf5c], 3
jle 0x14000161d
nop
lea rdx, [rbp + 0xf57]
lea rax, [rbp - 0x50]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
setne al
test al, al
je 0x1400016ae
mov ecx, 1
call sub.msvcrt.dll_exit
mov eax, 0
add rsp, 0x1000
pop rbp
ret
Function at 0x1400016bc
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0x110], 0
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x140001822
jmp 0x140001801
mov rax, qword [rbp + 0x130]
lea rdx, [rbp - 0x20]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x140001801
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.1400014a4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [0x1400f6090]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x110]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x1400017e5
mov rax, qword [rbp + 0x110]
cmp rax, 0xffffffffffffffff
je 0x1400017e5
mov rdx, qword [0x1400f6088]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x110]
jmp 0x14000183c
mov rdx, qword [0x1400f6088]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x14000183c
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
jne 0x140001721
mov rdx, qword [0x1400f6088]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1a0
pop rbp
ret