joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001000
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18000104f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18001df80]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18000108d
cmp rsi, r14
jb 0x180001085
cmp rsi, r15
jae 0x180001085
cmp qword [rsi + 8], 0
jne 0x180001257
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001070
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180001122
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180001119
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001119
cmp dword [rsp + 0x40], 0x10000
je 0x18000119b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180001119
sub rbx, rbp
cmp rbx, r14
jae 0x1800010e0
test rsi, rsi
jne 0x180001200
cmp rdi, r15
ja 0x18000123f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18000123f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000123f
cmp dword [rsp + 0x40], 0x10000
je 0x1800011d1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180001152
jmp 0x18000123f
test rbx, rbx
je 0x180001119
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001200
cmp rbx, r14
jae 0x1800010c0
jmp 0x180001122
test rdi, rdi
je 0x18000123f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001200
cmp rdi, r15
jbe 0x180001130
jmp 0x18000123f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180001210
mov rax, qword [0x18001df80]
mov qword [rsi], rax
mov qword [0x18001df80], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180003420
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800014b0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800015ff
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800015f6
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x1800015ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800015ac
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800015ac
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18000156d
mov rcx, qword [0x18001df28]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1800015d5
lea rbx, [rdi + 0xc]
jmp 0x1800015a1
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x1800015a1
mov rcx, qword [0x18001df28]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800015d5
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180001513
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800015f1
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x1800015f1
mov rcx, qword [0x18001df28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180003420
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180001620
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.1800014b0
test eax, eax
jne 0x180001667
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x1800016de
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1800016c6
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800016ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180001300
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180001680
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180001700
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18001df70]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001773
mov eax, 0xa
jmp 0x180001806
test esi, esi
je 0x180001795
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800017b8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800017b8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800017b1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800017b8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180003420
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180001830
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18001df7c]
mov ebx, edi
test ecx, ecx
je 0x1800019e3
mov rax, qword [0x18001df70]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180001880
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180001860
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x1800019e3
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.1800014b0
test eax, eax
jne 0x1800018ae
mov eax, 9
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
mov r12, qword [rsp + 0x20]
mov qword [rsp + 0x70], r13
mov r13d, dword [rsp + 0x2c]
test r12, r12
je 0x180001933
test r13d, r13d
je 0x180001933
mov qword [rsp + 0x38], r14
mov r14, r12
mov qword [rsp + 0x30], r15
mov r15d, r13d
mov r8d, dword [r14]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18000191f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, edi
test esi, esi
mov edx, 0xffffffff
mov rcx, rbp
setne r8b
call fcn.180001300
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 4
sub r15, 1
jne 0x1800018e1
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8d, dword [0x18001df7c]
cmp ebx, r8d
jae 0x180001978
nop
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18001df70]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180001971
mov edx, esi
mov ecx, ebx
call fcn.180001700
mov edi, eax
test eax, eax
jne 0x180001978
mov r8d, dword [0x18001df7c]
inc ebx
cmp ebx, r8d
jb 0x180001940
test r12, r12
je 0x1800019d4
test r13d, r13d
je 0x1800019c2
mov rsi, r12
mov rbp, r13
nop dword [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1800019b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub rbp, 1
jne 0x180001990
mov rcx, qword [0x18001df28]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x180001d00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18001df20], ebp
je 0x180001d57
cmp rbx, 0x20
jae 0x180001d40
xor ecx, ecx
jmp 0x180001d42
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18001df20], ebp
jne 0x180001d36
cmp qword [0x18001df28], r15
je 0x180001e51
test rdi, rdi
jne 0x180001d77
mov ecx, esi
call fcn.180001830
mov edi, eax
jmp 0x180001e56
mov ecx, dword [0x18001df7c]
mov ebx, r15d
test ecx, ecx
je 0x180001d9f
mov rdx, qword [0x18001df70]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x180001da9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180001d90
mov edi, 4
jmp 0x180001e56
cmp ebx, 0xffffffff
je 0x180001d9f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180001e48
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180001620
mov edi, eax
test eax, eax
jne 0x180001e56
mov edx, esi
mov ecx, ebx
call fcn.180001700
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x180001e56
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180001e32
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180001e28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180001e00
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18001df28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001e56
neg esi
sbb edi, edi
add edi, 6
jmp 0x180001e56
mov edi, 2
xchg dword [0x18001df20], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
Function at 0x180002a60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
test ebx, ebx
je 0x180002ab6
cmp ebx, 1
jne 0x180002aff
xor eax, eax
lea r8, [0x180002c20]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180002ab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x18001df50]
test rcx, rcx
je 0x180002ac9
xor edx, edx
call fcn.180001d00
mov rcx, qword [0x18001df30]
test rcx, rcx
je 0x180002adb
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18001df38]
test rcx, rcx
je 0x180002aed
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18001df48]
test rcx, rcx
je 0x180002aff
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18000b30c
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 0x18000b33c
xor eax, eax
jmp 0x18000b3ff
mov rbp, rbx
cmp word [rax], si
je 0x18000b361
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000b348
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000b344
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.18000b22c
movsxd r14, eax
test eax, eax
jne 0x18000b39f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000b335
mov rcx, r14
call fcn.18000c59c
mov rdi, rax
test rax, rax
jne 0x18000b3b8
xor ecx, ecx
call fcn.180009864
jmp 0x18000b394
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.18000b22c
test eax, eax
jne 0x18000b3e9
mov rcx, rdi
call fcn.180009864
jmp 0x18000b3f3
xor ecx, ecx
call fcn.180009864
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 0x180010b50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180010b78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180010b78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1409a5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409a51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409a5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a506f
add dl, dl
jne 0x1409a5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a50f6
xor eax, eax
add dl, dl
jne 0x1409a50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a51ad
add dl, dl
jne 0x1409a50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409a50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409a507e
mov eax, 1
add dl, dl
jne 0x1409a5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a50fb
sub eax, ebx
mov ebx, 1
jne 0x1409a514c
mov ecx, 1
add dl, dl
jne 0x1409a512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409a5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a515d
cmp eax, 0x7d00
jae 0x1409a519b
cmp eax, 0x500
jb 0x1409a5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a507e
cmp eax, 0x7f
ja 0x1409a519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409a51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409a507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001e710
Capabilities:
Get hostname

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp + 0xc], 0
lea r8, [rbp + 0xc]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14001e8d9
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
call fcn.14001e620
cmp edi, 0xea
jne 0x14001e79a
mov ebx, dword [rbp + 0xc]
test rbx, rbx
je 0x14001e7bd
lea rdi, [rbx + rbx]
movzx eax, byte [0x140202701]
mov edx, 2
mov rcx, rdi
call fcn.14001c710
test rax, rax
je 0x14001e8f1
mov rdx, rax
jmp 0x14001e7c2
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14001e8c8
mov edx, 2
mov qword [rbp + 0x10], rbx
mov dword [rbp + 8], ebx
lea r8, [rbp + 8]
xor ecx, ecx
mov qword [rbp], rdx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14001e837
mov r8d, dword [rbp + 8]
lea rcx, [rbp - 0x60]
mov rdx, qword [rbp]
call fcn.140126bd0
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x60]
call fcn.140130360
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
movabs rbx, 0x8000000000000000
cmp rcx, rbx
jne 0x14001e86c
movups xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x20], xmm0
mov qword [rsi], rax
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi + 8], xmm0
mov r14, qword [rbp + 0x10]
test r14d, r14d
jne 0x14001e8b3
jmp 0x14001e8c8
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x10]
test edx, edx
je 0x14001e8c8
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp]
jmp 0x14001e8c3
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], rax
lea rdx, str.Not_valid_unicodeassertion_failed:_failC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwhoami_1.5.1_srcoswindows.rs
mov r8d, 0x11
mov cl, 0x15
call fcn.14001e980
mov rdi, rax
mov rdx, qword [rbp - 8]
test rdx, rdx
mov r14, qword [rbp + 0x10]
je 0x14001e8a7
mov r8d, 1
mov rcx, qword [rbp - 0x10]
call fcn.14001c720
mov qword [rsi + 8], rdi
mov qword [rsi], rbx
test r14d, r14d
je 0x14001e8c8
add r14, r14
mov r8d, 2
mov rcx, qword [rbp]
mov rdx, r14
call fcn.14001c720
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.assertion_failed:_failC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwhoami_1.5.1_srcoswindows.rs
lea r8, [0x14015a120]
mov edx, 0x16
call fcn.140155a10
mov ecx, 2
mov rdx, rdi
call fcn.140155720
int3
Function at 0x14001eb90
Capabilities:
Get session user name

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
xor ecx, ecx
call qword [sym.imp.advapi32.dll_GetUserNameW]
test eax, eax
jne 0x14001ecd0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
call fcn.14001e620
cmp edi, 0x7a
jne 0x14001ec11
mov ebx, dword [rbp - 4]
test rbx, rbx
je 0x14001ec34
lea rdi, [rbx + rbx]
movzx eax, byte [0x140202701]
mov edx, 2
mov rcx, rdi
call fcn.14001c710
test rax, rax
jne 0x14001ec39
mov ecx, 2
mov rdx, rdi
call fcn.140155720
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14001ecc4
mov eax, 2
mov qword [rbp - 0x10], rbx
mov dword [rbp - 4], ebx
lea rdx, [rbp - 4]
mov qword [rbp - 0x18], rax
mov rcx, rax
call qword [sym.imp.advapi32.dll_GetUserNameW]
test eax, eax
je 0x14001ec63
mov r8d, dword [rbp - 4]
test r8, r8
je 0x14001ec8b
dec r8
jmp 0x14001ec8e
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp - 0x10]
test edx, edx
jne 0x14001ecb2
jmp 0x14001ecc4
xor r8d, r8d
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp - 0x18]
call fcn.140126bd0
movups xmm0, xmmword [rbp - 0x38]
movups xmm1, xmmword [rbp - 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp - 0x10]
test edx, edx
je 0x14001ecc4
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x18]
call fcn.14001c720
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14015a1c1]
lea r8, [0x14015a240]
mov edx, 0x16
call fcn.140155a10
int3
Function at 0x14001ef70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov dword [rbp + 0x3c], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001efb4
mov esi, dword [rbp + 0x3c]
xor eax, eax
jmp 0x14001f092
call fcn.140021650
cmp edx, 0x800700e8
jne 0x14001f06e
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x28], 0x800700e8
lea rcx, [rbp + 0x20]
call fcn.140021670
mov qword [rbp + 0x30], rax
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 1
mov qword [rbp + 0x18], 0
mov qword [rbp - 0x20], 0x20
mov byte [rbp - 0x18], 3
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
lea rax, [rbp + 8]
mov qword [rbp - 0x30], rax
lea rax, [0x14015a258]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call fcn.140022970
test al, al
jne 0x14001f09f
movups xmm0, xmmword [rbp + 8]
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x18]
mov qword [rbp], rax
lea rdx, [rbp - 0x10]
mov cl, 0xd
call fcn.140020b20
mov rsi, rax
lea rcx, [rbp + 0x30]
call fcn.140021390
cmp qword [rbp + 0x20], 0
je 0x14001f08d
lea rcx, [rbp + 0x20]
call fcn.140022780
jmp 0x14001f08d
mov esi, edx
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], edx
test rax, rax
je 0x14001f085
lea rcx, [rbp - 0x50]
call fcn.140022780
shl rsi, 0x20
or rsi, 2
mov eax, 1
mov rdx, rsi
add rsp, 0xc8
pop rsi
pop rbp
ret
lea rax, [0x14015a310]
mov qword [rsp + 0x20], rax
lea rcx, [0x14015a288]
lea r9, [0x14015a328]
lea r8, [rbp - 0x10]
mov edx, 0x37
call fcn.140155de0
ud2

Function at 0x14001f200
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov dword [rsp + 0x2c], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001f234
mov edx, dword [rsp + 0x2c]
xor eax, eax
add rsp, 0x40
pop rsi
ret
call fcn.140021650
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], edx
test rax, rax
je 0x14001f257
lea rcx, [rsp + 0x30]
mov rsi, rdx
call fcn.140022780
mov rdx, rsi
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x40
pop rsi
ret