joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064fa5
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
movsx esi, byte [rcx + rax]
lea ebx, [rsi - 0x41]
cmp bl, 0x19
ja 0x140064fcf
add esi, 0xffffffbf
jmp 0x140065012
lea ebx, [rsi - 0x61]
cmp bl, 0x19
ja 0x140064fdc
add esi, 0xffffffb9
jmp 0x140065012
lea ebx, [rsi - 0x30]
cmp bl, 9
ja 0x140064fe9
add esi, 4
jmp 0x140065012
cmp sil, 0x2b
je 0x140065006
cmp sil, 0x3d
je 0x14006500d
cmp sil, 0x2f
jne 0x140065091
mov esi, 0x3f
jmp 0x140065012
mov esi, 0x3e
jmp 0x140065012
mov esi, 0xffffffff
mov dword [rsp + rax*4 + 0x20], esi
inc rax
cmp rax, 4
jne 0x140064fbe
mov edi, dword [rsp + 0x20]
xor ebp, ebp
cmp edi, 0xffffffff
je 0x140065093
mov esi, dword [rsp + 0x24]
cmp esi, 0xffffffff
je 0x140065093
mov eax, dword [rsp + 0x28]
mov ebx, dword [rsp + 0x2c]
cmp eax, 0xffffffff
je 0x140065080
mov ebp, 2
mov ecx, ebx
and ecx, eax
shl edi, 0x12
shl esi, 0xc
or edi, esi
shl eax, 6
shr edi, 0x10
mov byte [rdx], dil
cmp ecx, 0xffffffff
je 0x14006506c
mov ecx, eax
and ecx, 0xf00
or ecx, esi
mov byte [rdx + 1], ch
cmp ebx, 0xffffffff
je 0x140065093
and ebx, 0x3f
or ebx, eax
mov byte [rdx + 2], bl
mov ebp, 3
jmp 0x140065093
cmp ebx, 0xffffffff
jne 0x140065093
mov ebp, 1
mov ebx, 0xffffffff
jmp 0x140065045
xor ebp, ebp
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400841b0
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400653e4
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140065416
xor r10d, r10d
xor r9d, r9d
mov al, byte [rdx + r10]
xor al, byte [rcx + r10]
movzx eax, al
or r9d, eax
inc r10
cmp r8, r10
jne 0x1400653ef
mov eax, 0x100
sub eax, r9d
cmp eax, 0xff
seta al
ret
mov al, 1
ret

Function at 0x14006b4f9
Capabilities:
Hide graphical window

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [0x1400d9a88]
mov qword [rsp + 0x20], 0
lea r9, [fcn.14000f607]
mov edx, 0x6f
xor r8d, r8d
call qword [sym.imp.USER32.dll_CreateDialogParamA]
mov rsi, rax
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, rsi
add rsp, 0x30
pop rsi
jmp qword [sym.imp.USER32.dll_DestroyWindow]

Function at 0x14006c1b7
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x28
mov r8, rcx
mov rcx, qword [0x1400d90c8]
test rcx, rcx
jne 0x14006c208
mov rcx, qword [0x1400d9a88]
mov qword [rsp + 0x20], 0
lea r9, [0x14006c213]
mov edx, 0x6e
call qword [sym.imp.USER32.dll_CreateDialogParamA]
mov qword [0x1400d90c8], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400d90c8]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_SetActiveWindow]
Function at 0x14006d0e4
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp dword [0x1400d9a78], 0
je 0x14006d11b
xor esi, esi
cmp qword [0x1400d9a60], 0
setne sil
jmp 0x14006d28b
lea rdi, [rsp + 0x2c]
xor esi, esi
mov r8d, 0x90
mov rcx, rdi
xor edx, edx
call fcn.140085770
mov dword [rdi - 4], 0x94
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [rdi + 0x10], 2
sete al
mov dword [0x1400d9a7c], eax
lea rcx, str.USER32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14006d250
mov rdi, rax
lea rdx, [0x1400bd96c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a40], rax
test rax, rax
je 0x14006d250
lea rdx, str.MonitorFromWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a48], rax
test rax, rax
je 0x14006d250
lea rdx, str.MonitorFromRect
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a50], rax
test rax, rax
je 0x14006d250
lea rdx, str.MonitorFromPoint
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a58], rax
test rax, rax
je 0x14006d250
lea rdx, str.EnumDisplayMonitors
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a68], rax
test rax, rax
je 0x14006d250
lea rdx, str.GetMonitorInfoA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a60], rax
test rax, rax
je 0x14006d250
lea rdx, str.EnumDisplayDevicesA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a70], rax
test rax, rax
je 0x14006d250
mov dword [0x1400d9a78], 1
mov esi, 1
jmp 0x14006d28b
mov qword [0x1400d9a40], rsi
mov qword [0x1400d9a48], rsi
mov qword [0x1400d9a50], rsi
mov qword [0x1400d9a58], rsi
mov qword [0x1400d9a60], rsi
mov qword [0x1400d9a68], rsi
mov qword [0x1400d9a70], rsi
mov dword [0x1400d9a78], 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400841b0
mov eax, esi
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x1400727ab
Capabilities:
Get geographical location

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx ecx, cx
lea rsi, [rsp + 0x20]
mov edx, 0x1004
mov r8, rsi
mov r9d, 0x14
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, rsi
call fcn.1400915d0
mov dword [0x1400dae2c], eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x40
pop rsi
ret

Function at 0x1400728bd
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp ecx, 2
jne 0x140072981
mov r14d, r9d
mov ebx, r8d
mov rdi, rdx
lea eax, [rbx + 1]
movsxd rdx, eax
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
je 0x140072981
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140072981
mov rbp, rax
movsxd rbx, ebx
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call fcn.140085310
mov byte [rbp + rbx], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test r14b, r14b
jne 0x140072946
mov rcx, qword [0x1400d80a8]
mov r8d, 1
mov edx, 0x8002
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x1400d80a8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140072973
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, 1
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x14007297c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r14b, r14b
je 0x14007298c
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1400d80a8]
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.USER32.dll_SendMessageA]

Function at 0x1400770ee
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x130
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14007712c
cmp byte [rsp + 0x32], 0
js 0x140077130
mov sil, byte [rsp + 0xc5]
shr sil, 7
jmp 0x140077133
xor esi, esi
jmp 0x140077133
mov sil, 1
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1400841b0
mov eax, esi
add rsp, 0x130
pop rsi
ret
Function at 0x140078190
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1048
xor r8d, r8d
call fcn.140012298
mov rsi, rax
mov dword [rax], 0
lea r14, [rax + 8]
mov qword [rax + 8], rbp
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
mov qword [rsi + 0x10], rax
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x1040], rbx
mov byte [rsi + 0x22], 0
mov word [rsi + 0x20], 0
mov qword [rsi + 0x28], rdi
mov dword [rsi + 0x30], r15d
mov rcx, qword [0x1400daf00]
test rcx, rcx
jne 0x14007823c
lea rcx, [0x14007828b]
call fcn.140063378
mov rcx, rax
mov qword [0x1400daf00], rax
mov rdx, rsi
call fcn.140063440
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1400782a2]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [rsi + 0x23], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400841b0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140078422
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r15d, r9d
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r12d, r12d
mov ecx, 1
mov edx, 0x1048
xor r8d, r8d
call fcn.140012298
mov rsi, rax
mov dword [rax], 1
lea r14, [rax + 8]
mov qword [rax + 8], rbp
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
mov qword [rsi + 0x10], rax
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x20], r12d
mov qword [rsi + 0x28], rbx
lea rcx, [rsi + 0x50]
call fcn.1400650ab
mov dword [rsi + 0x78], r12d
mov qword [rsi + 0x80], rdi
mov dword [rsi + 0x30], r15d
mov rcx, qword [0x1400daf00]
test rcx, rcx
jne 0x1400784da
lea rcx, [0x14007828b]
call fcn.140063378
mov rcx, rax
mov qword [0x1400daf00], rax
mov rdx, rsi
call fcn.140063440
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140078527]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400841b0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140078c6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x1400daf18], 0
je 0x140078c80
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [0x1400daf18], 1
lea rcx, str.hhctrl.ocx
call fcn.14007a0b2
mov rsi, rax
test rax, rax
je 0x140078d0f
lea rdx, str.HtmlHelpA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400daf20], rax
test rax, rax
je 0x140078d1a
cmp byte [0x1400daf41], 0
jne 0x140078d2a
mov byte [0x1400daf41], 1
call fcn.140078c24
test eax, eax
je 0x140078d2a
mov rdx, qword [0x1400daf10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x1400daf44], eax
test eax, eax
je 0x140078d2a
mov rdx, qword [0x1400daf10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140078d2a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400daf38], rax
jmp 0x140078d31
mov qword [0x1400daf20], 0
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1400daf38]
test rax, rax
jne 0x140078c79
mov sil, 1
lea rax, str.a_t_f_
lea rdi, str.__t_f_
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.14007a6bd
test rax, rax
jne 0x140078d73
test sil, 1
je 0x140078c79
xor esi, esi
mov rax, rdi
jmp 0x140078d4b
mov qword [0x1400daf28], rax
mov byte [0x1400daf30], 0
jmp 0x140078c79

Function at 0x140078d86
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400daf28]
test rcx, rcx
je 0x140078dc8
cmp byte [0x1400daf30], 1
jne 0x140078dca
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x1400daf20]
mov rcx, qword [0x1400daf28]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x1400daf28]
jmp 0x140078dca
xor ecx, ecx
call fcn.140012312
mov qword [0x1400daf28], 0
mov byte [0x1400daf30], 0
add rsp, 0x28
ret
Function at 0x140078df8
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov r15, rdx
mov r13, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdx, qword [0x1400daf28]
test rdx, rdx
jne 0x140078eda
cmp qword [0x1400daf38], 0
je 0x140078eda
cmp byte [0x1400daf48], 0
jne 0x140078ec9
mov byte [0x1400daf48], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x106
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140078ec9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
lea rcx, str._sputty__lu__llu.chm
lea rdx, [rsp + 0x50]
mov r8d, eax
xor r9d, r9d
call fcn.14006496f
mov rbx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
mov rcx, rax
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140078f4d
mov rsi, rax
jmp 0x140078fd4
xor ebx, ebx
mov rcx, rbx
call fcn.140012312
mov rdx, qword [0x1400daf28]
test rdx, rdx
je 0x140078f28
test r15, r15
je 0x140078f12
lea rcx, str._s::__s.html_main
mov r8, r15
call fcn.14006496f
mov rsi, rax
mov rcx, r13
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [0x1400daf20]
mov rcx, rsi
call fcn.140012312
jmp 0x140078f21
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [0x1400daf20]
mov byte [0x1400daf40], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], r13
mov edi, 1
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r13, [rsp + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_CreateFileA]
call r14
cmp eax, 0x50
jne 0x14007906a
mov rcx, rbx
call fcn.140012312
lea rcx, str._sputty__lu__llu.chm
mov rdx, r13
mov r8d, ebp
mov r9, rdi
call fcn.14006496f
mov rbx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
mov rcx, rax
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call r12
inc rdi
cmp rax, 0xffffffffffffffff
je 0x140078f6a
mov rsi, rax
mov r13, qword [rsp + 0x40]
mov r8d, dword [0x1400daf44]
test r8d, r8d
je 0x14007902f
mov rbp, qword [0x1400daf38]
xor edi, edi
lea r14, [rsp + 0x4c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
sub r8d, edi
mov dword [rsp + 0x4c], 0
mov edx, edi
add rdx, rbp
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r9, r14
call r12
test eax, eax
je 0x140079041
mov eax, dword [rsp + 0x4c]
add edi, eax
inc edi
mov r8d, dword [0x1400daf44]
cmp r8d, edi
ja 0x140078ff5
mov qword [0x1400daf28], rbx
mov byte [0x1400daf30], 1
xor ebx, ebx
jmp 0x14007904a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call fcn.140012312
cmp rsi, 0xffffffffffffffff
je 0x140078ed3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140078ed3
mov r13, qword [rsp + 0x40]
jmp 0x140078ecb
Function at 0x140079074
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp byte [0x1400daf40], 1
jne 0x140079094
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x1400daf20]
mov rcx, qword [0x1400daf28]
test rcx, rcx
je 0x1400790b4
cmp byte [0x1400daf30], 1
jne 0x1400790b4
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
add rsp, 0x28
ret

Function at 0x140079f77
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x1400db778], 0
je 0x140079f9e
mov rsi, qword [0x1400db770]
jmp 0x140079fe3
lea rcx, str.secur32.dll
call fcn.14007a0b2
mov rsi, rax
lea rcx, str.sspicli.dll
call fcn.14007a0b2
test rsi, rsi
je 0x140079fd3
lea rdx, str.GetUserNameExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x140079fd5
xor esi, esi
mov qword [0x1400db770], rsi
mov byte [0x1400db778], 1
test rsi, rsi
je 0x14007a045
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, 8
xor edx, edx
mov r8, rdi
call rsi
mov ecx, dword [rdi]
mov edx, 1
xor r8d, r8d
call fcn.140012298
mov rsi, rax
mov ecx, 8
mov rdx, rax
mov r8, rdi
call qword [0x1400db770]
test al, al
je 0x14007a03d
mov rcx, rsi
mov edx, 0x40
call fcn.140085920
test rax, rax
je 0x14007a09b
mov byte [rax], 0
jmp 0x14007a09b
mov rcx, rsi
call fcn.140012312
lea rdx, [rsp + 0x2c]
mov dword [rdx], 0
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14007a062
mov ecx, dword [rsp + 0x2c]
jmp 0x14007a06f
mov dword [rsp + 0x2c], 0x100
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.140012298
mov rsi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14007a09b
mov rcx, rsi
call fcn.140012312
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400841b0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14007a0b2
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [0x1400db7b0], 0
jne 0x14007a12f
mov edx, dword [0x1400db7b8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9d, eax
cmp qword [0x1400db7b8], r9
ja 0x14007a12f
lea rdi, [0x1400db7b8]
mov rbx, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, qword [0x1400db7b0]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rdx, rdi
call fcn.14001231c
mov qword [0x1400db7b0], rax
mov edx, dword [0x1400db7b8]
mov rcx, rax
call rbx
mov r9d, eax
cmp qword [0x1400db7b8], r9
jbe 0x14007a0ee
mov rcx, qword [0x1400db7b0]
lea rdx, [0x1400c3fcc]
mov r8, rsi
xor r9d, r9d
call fcn.140064a12
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov rcx, rsi
call fcn.140012312
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14007a6bd
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, r8
mov rsi, rdx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
test rdx, rdx
je 0x14007a705
lea r8, [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x14007a700
xor ebx, ebx
xor edi, edi
jmp 0x14007a7b0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor edi, edi
lea r9, [rsp + 0x44]
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007a79e
cmp dword [rsp + 0x44], 1
mov ebx, 0
jne 0x14007a7a0
mov ecx, dword [rsp + 0x40]
inc ecx
xor edi, edi
mov edx, 1
xor r8d, r8d
call fcn.140012298
mov rbx, rax
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x3c]
mov dword [rdx], eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007a7a0
cmp dword [rsp + 0x44], 1
jne 0x14007a7a0
mov eax, dword [rsp + 0x3c]
cmp eax, dword [rsp + 0x40]
jbe 0x14007a797
xor edi, edi
jmp 0x14007a7a0
mov byte [rbx + rax], 0
mov rdi, rbx
xor ebx, ebx
test rsi, rsi
je 0x14007a7b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140012312
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400841b0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14007d150
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2a8
mov r14, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov edx, 0x107
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rcx, rdi
call fcn.1400943f0
mov word [rsp + rax + 0x50], 0x2a5c
mov byte [rsp + rax + 0x52], 0
lea rdx, [rsp + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x14007d1e1
mov rdi, rax
lea rbx, [rsp + 0x160]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov rcx, rbx
mov edx, 0x140
call r14
mov rcx, rdi
mov rdx, rbx
call rsi
test eax, eax
jne 0x14007d1c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x2c]
mov dword [rcx], eax
mov edx, 4
call r14
lea rcx, [rsp + 0x30]
mov edx, 0x20
call fcn.14007d00c
test al, al
je 0x14007d226
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.14007a7d4
mov rcx, r14
call fcn.14008066d
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14007d24c
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rsi, [rsp + 0x78]
mov qword [rsi], rax
mov ecx, 9
mov rdx, rsi
mov r8d, 8
call fcn.14004a7fc
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsi], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.14004a7fc
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsi], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.14004a7fc
mov ecx, 0x1cbf
call qword [sym.imp.USER32.dll_GetQueueStatus]
lea rdx, [rsp + 0x74]
mov dword [rdx], eax
mov ecx, 0xc
mov r8d, 4
call fcn.14004a7fc
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, 0xd
mov rdx, rsi
mov r8d, 8
call fcn.14004a7fc
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, 6
mov rdx, rsi
mov r8d, 0x38
call fcn.14004a7fc
lea rsi, [rsp + 0x98]
lea r14, [rsp + 0x90]
lea rdi, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x20], rsi
lea rbx, [rsp + 0x80]
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov ecx, 0xe
mov rdx, rbx
mov r8d, 0x20
call fcn.14004a7fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov ecx, 0xf
mov rdx, rbx
mov r8d, 0x20
call fcn.14004a7fc
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret