joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002780
Capabilities:
Map section object

Disassembly:
jmp 0x180179870
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x50]
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov dword [rsp + 0x30], 0x60
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 5
mov r9d, 0x80
mov r8d, 0x100081
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x68]
call sym.ProcessMonitor.dll_PhCreateFile
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1801798e5
mov eax, dword [rsp + 0x50]
jmp 0x180179a2d
cmp dword [0x18059ff7c], 0x3e
jae 0x1801798fb
mov dword [rsp + 0xd4], 0x1000000
jmp 0x180179906
mov dword [rsp + 0xd4], 0x11000000
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 5
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x50], 0
jge 0x18017995b
mov eax, dword [rsp + 0x50]
jmp 0x180179a2d
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xc8], 0
cmp dword [0x18059ff7c], 0x67
jae 0x180179989
mov dword [rsp + 0xd8], 0
jmp 0x180179994
mov dword [rsp + 0xd8], 0x40000
mov dword [rsp + 0x48], 2
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xa8]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x50], 0
jl 0x180179a29
cmp qword [rsp + 0xf8], 0
je 0x180179a29
mov rax, qword [rsp + 0xa8]
or rax, 2
mov rcx, qword [rsp + 0xf8]
mov qword [rcx], rax
mov eax, dword [rsp + 0x50]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804b2c20]
call fcn.180014e20
mov rax, rdi
add rsp, 0xe0
pop rdi
ret
Function at 0x180002e80
Capabilities:
Get graphical window text

Disassembly:
jmp 0x18004bdf0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x590
lea rdi, [rsp + 0x20]
mov ecx, 0x15c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5a0]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov dword [rsp + 0x30], 0xd
mov dword [rsp + 0x40], 0xffffffff
mov eax, dword [rsp + 0x5a8]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x50], 0x208
lea rax, [rsp + 0x130]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0xb0], 0xd
mov dword [rsp + 0xc0], 0xffffffff
mov eax, dword [rsp + 0x5b0]
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb8], 0
mov dword [rsp + 0xd0], 0x208
lea rax, [rsp + 0x360]
mov qword [rsp + 0xc8], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104b
mov rcx, qword [rsp + 0x5a0]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x18004bf46
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov edx, 0x104b
mov rcx, qword [rsp + 0x5a0]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x18004bf46
mov eax, dword [rsp + 0x5b0]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x5a8]
mov dword [rsp + 0xb4], eax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104c
mov rcx, qword [rsp + 0x5a0]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov edx, 0x104c
mov rcx, qword [rsp + 0x5a0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rsp
lea rdx, [0x1803a7500]
call fcn.180014e20
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x590
pop rdi
ret

Function at 0x180002fb0
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x18003d910
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
cmp qword [rax], rcx
jne 0x18003d9c3
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0xffffff65
jne 0x18003d9c3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x41
je 0x18003d993
cmp dword [rsp + 0x28], 0x43
je 0x18003d96c
jmp 0x18003d9c3
mov eax, dword [rsp + 0x50]
and eax, 1
test eax, eax
je 0x18003d991
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x18003d991
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhCopyListView
jmp 0x18003d9c3
mov eax, dword [rsp + 0x50]
and eax, 2
test eax, eax
je 0x18003d9c3
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x18003d9c3
mov r8d, 2
mov edx, 2
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhSetStateAllListViewItems
add rsp, 0x30
pop rdi
ret
Function at 0x1800031d0
Capabilities:
Set registry value

Disassembly:
jmp 0x1801a8ac0
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 0
je 0x1801a8b1f
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
call fcn.180011010
movzx eax, al
test eax, eax
jne 0x1801a8b1d
mov eax, 0xc0000106
jmp 0x1801a8b6c
jmp 0x1801a8b2e
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.18001a850
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c21a0]
call fcn.180014e20
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1800034b0
Capabilities:
Shutdown system

Disassembly:
jmp 0x18002cff0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov dword [rsp + 0x30], 0xc0000001
lea rcx, str.EnableWarnings
call sym.ProcessMonitor.dll_PhGetIntegerSetting
test eax, eax
je 0x18002d046
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.the_computer
lea rdx, str.restart
mov rcx, qword [rsp + 0x80]
call sym.ProcessMonitor.dll_PhShowConfirmMessage
movzx eax, al
test eax, eax
jne 0x18002d046
jmp 0x18002d114
call fcn.1800123c0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18002d0ad
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x88], eax
jae 0x18002d0a3
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov rdi, rax
mov rsi, qword [rsp + 0x40]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x50]
call fcn.18000d680
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call fcn.180016ea0
cmp dword [rsp + 0x30], 0
jl 0x18002d0f8
mov dword [rsp + 0x20], 0x80000000
mov r9d, 4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18002d0f6
mov r9d, dword [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Unable_to_configure_the_boot_application.
mov rcx, qword [rsp + 0x80]
call sym.ProcessMonitor.dll_PhShowStatus
jmp 0x18002d114
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
lea rdx, str.Unable_to_configure_the_boot_application.
mov rcx, qword [rsp + 0x80]
call sym.ProcessMonitor.dll_PhShowStatus
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x180003940
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1801a5b30
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov eax, dword [0x1805a0200]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1801a5bb1
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10000000
jbe 0x1801a5b9f
mov eax, 0xc000009a
jmp 0x1801a5bed
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
jmp 0x1801a5b54
cmp dword [rsp + 0x20], 0
jge 0x1801a5bc8
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
jmp 0x1801a5bed
cmp dword [rsp + 0x30], 0x100000
ja 0x1801a5bdc
mov eax, dword [rsp + 0x30]
mov dword [0x1805a0200], eax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x180003dc0
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x180167690
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
cmp qword [rsp + 0x28], 0
jne 0x1801676b3
mov eax, dword [rsp]
jmp 0x1801676f4
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
imul eax, dword [rsp], 0x1000193
mov dword [rsp], eax
mov rax, qword [rsp + 0x28]
dec rax
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1801676b3
mov eax, dword [rsp]
add rsp, 0x10
pop rdi
ret
Function at 0x180003e00
Capabilities:
Get geographical location

Disassembly:
jmp 0x1801709e0
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
lea rcx, [0x18059fc30]
call fcn.180012d60
movzx eax, al
test eax, eax
je 0x180170b03
mov r9d, 4
lea r8, [0x1808e9010]
mov edx, 0xe
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x180170a8a
mov eax, 2
imul rax, rax, 0
lea rcx, [0x1808e9010]
mov edx, 0x2e
mov word [rcx + rax], dx
mov qword [rsp + 0x78], 2
cmp qword [rsp + 0x78], 8
jae 0x180170a73
jmp 0x180170a78
call fcn.180012780
lea rax, [0x1808e9010]
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
mov word [rax + rdx], cx
mov r9d, 4
lea r8, [0x1808e9018]
mov edx, 0xf
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x180170af7
mov eax, 2
imul rax, rax, 0
lea rcx, [0x1808e9018]
mov edx, 0x2c
mov word [rcx + rax], dx
mov qword [rsp + 0x80], 2
cmp qword [rsp + 0x80], 8
jae 0x180170add
jmp 0x180170ae2
call fcn.180012780
lea rax, [0x1808e9018]
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rax + rdx], cx
lea rcx, [0x18059fc30]
call sym.ProcessMonitor.dll_PhfEndInitOnce
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0xb0]
test eax, eax
je 0x180170b2f
mov dword [rsp + 0x88], 3
jmp 0x180170b3a
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x50], eax
lea rax, [0x1808e9010]
mov qword [rsp + 0x58], rax
lea rax, [0x1808e9018]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0xa0]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
shl rax, 1
mov rdx, rax
xor ecx, ecx
call sym.ProcessMonitor.dll_PhCreateStringEx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0xa0]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
jne 0x180170bec
mov rcx, qword [rsp + 0x30]
call sym.ProcessMonitor.dll_PhDereferenceObject
xor eax, eax
jmp 0x180170bfb
mov rcx, qword [rsp + 0x30]
call fcn.1800160a0
mov rax, qword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804aec10]
call fcn.180014e20
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x180004210
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1801a5fd0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov dword [rsp + 0x30], 0x200
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x90
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1801a604f
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10000000
jbe 0x1801a603d
mov eax, 0xc000009a
jmp 0x1801a6077
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
jmp 0x1801a5ff2
cmp dword [rsp + 0x20], 0
jge 0x1801a6066
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
jmp 0x1801a6077
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x180004280
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18013a420
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x18013a475
cmp dword [rsp + 0x60], 3
je 0x18013a47f
jmp 0x18013a489
mov dword [rsp + 0x34], 0
jmp 0x18013a493
mov dword [rsp + 0x34], 1
jmp 0x18013a493
mov eax, 0xc0000003
jmp 0x18013a5b1
mov eax, dword [rsp + 0x34]
lea rcx, [0x18059f6f0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x80]
mov ecx, 0x6b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0x30], 0xc0000004
jne 0x18013a55c
cmp dword [rsp + 0x54], 8
jae 0x18013a55c
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x80]
mov ecx, 0x6b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
jmp 0x18013a4f1
cmp dword [rsp + 0x30], 0
jge 0x18013a573
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x30]
jmp 0x18013a5b1
cmp dword [rsp + 0x44], 0x100000
ja 0x18013a58f
mov eax, dword [rsp + 0x34]
lea rcx, [0x18059f6f0]
mov edx, dword [rsp + 0x44]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x44]
mov dword [rax], ecx
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804a2530]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x70
pop rdi
ret

Function at 0x1800042d0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180160b80
push rdi
sub rsp, 0x20
mov ecx, dword [0x1808e8f78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x20
pop rdi
ret
Function at 0x180004770
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1800dfb90
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, Ordinal_345
lea rdx, [0x1808ecf20]
mov ecx, 2
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rax, qword [0x1808ece80]
mov rcx, qword [0x1808ecf28]
sub rcx, rax
mov rax, rcx
mov qword [0x1808ece88], rax
mov rax, qword [0x1808ecf28]
mov qword [0x1808ece80], rax
mov rax, qword [0x1808ece70]
mov rcx, qword [0x1808ecf30]
sub rcx, rax
mov rax, rcx
mov qword [0x1808ece78], rax
mov rax, qword [0x1808ecf30]
mov qword [0x1808ece70], rax
mov rax, qword [0x1808ece60]
mov rcx, qword [0x1808ecf38]
sub rcx, rax
mov rax, rcx
mov qword [0x1808ece68], rax
mov rax, qword [0x1808ecf38]
mov qword [0x1808ece60], rax
add rsp, 0x20
pop rdi
ret
Function at 0x180004e00
Capabilities:
Read file on windows

Disassembly:
jmp 0x1801793e0
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x10d0
call fcn.180005520
sub rsp, rax
lea rdi, [rsp + 0x50]
mov ecx, 0x420
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10e0]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x10c0], rax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0x1000
mov eax, dword [rsp + 0x60]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x1000
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x10e0]
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jl 0x180179513
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1801794aa
jmp 0x180179513
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0x60], eax
jae 0x1801794db
mov eax, dword [rsp + 0x60]
shl eax, 1
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call sym.ProcessMonitor.dll_PhReAllocate
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
lea rdx, [rsp + 0xb0]
call fcn.18000cf00
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x64], eax
jmp 0x18017944b
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
inc rcx
cmp rax, rcx
jae 0x180179542
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call sym.ProcessMonitor.dll_PhReAllocate
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x64], 0
jbe 0x18017958e
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x58]
mov byte [rcx + rax], 0
movzx eax, byte [rsp + 0x10e8]
test eax, eax
je 0x180179579
mov eax, dword [rsp + 0x64]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call sym.ProcessMonitor.dll_PhConvertUtf8ToUtf16Ex
mov qword [rsp + 0x50], rax
jmp 0x18017958e
mov eax, dword [rsp + 0x64]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call sym.ProcessMonitor.dll_PhCreateBytesEx
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x58]
call sym.ProcessMonitor.dll_PhFree
mov rax, qword [rsp + 0x50]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804b2a00]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x10c0]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x10d0
pop rdi
ret
Function at 0x180004e30
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1801a5770
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 5
je 0x1801a57b6
cmp dword [rsp + 0x44], 0x39
je 0x1801a57c0
cmp dword [rsp + 0x44], 0x94
je 0x1801a57ca
jmp 0x1801a57d4
mov dword [rsp + 0x24], 0
jmp 0x1801a57de
mov dword [rsp + 0x24], 1
jmp 0x1801a57de
mov dword [rsp + 0x24], 2
jmp 0x1801a57de
mov eax, 0xc0000003
jmp 0x1801a589c
mov eax, dword [rsp + 0x24]
lea rcx, [0x1805a01f0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
xor eax, eax
cmp eax, 1
je 0x1801a5858
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000023
je 0x1801a5838
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1801a5854
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x34]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x28], rax
jmp 0x1801a5856
jmp 0x1801a5858
jmp 0x1801a5800
cmp dword [rsp + 0x20], 0
jge 0x1801a586f
mov rcx, qword [rsp + 0x28]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x20]
jmp 0x1801a589c
cmp dword [rsp + 0x34], 0x100000
ja 0x1801a588b
mov eax, dword [rsp + 0x24]
lea rcx, [0x1805a01f0]
mov edx, dword [rsp + 0x34]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c0ce0]
call fcn.180014e20
mov rax, rdi
add rsp, 0x50
pop rdi
ret
Function at 0x180005270
Capabilities:
Receive http response

Disassembly:
jmp 0x180227440
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
lea rdi, [rsp + 0x40]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x98], 0
lea rax, [0x1808ea760]
mov cx, 1
lock xadd word [rax], cx
inc cx
movzx eax, cx
mov word [rsp + 0xe4], ax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
movzx r8d, word [rsp + 0xe4]
movzx edx, word [rsp + 0x110]
mov rcx, qword [rsp + 0x108]
call fcn.180227cb0
movzx eax, al
test eax, eax
jne 0x1802274fb
jmp 0x1802275c8
mov rcx, qword [rsp + 0x100]
call fcn.18000dc80
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18022751a
jmp 0x1802275c8
mov rcx, qword [rsp + 0x40]
call fcn.180010c30
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180227536
jmp 0x1802275c8
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x180227570
jmp 0x1802275c8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180227583
jmp 0x1802275c8
lea r8, [rsp + 0xd4]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhHttpSocketReadDataToBuffer
movzx eax, al
test eax, eax
jne 0x1802275a3
jmp 0x1802275c8
lea r9, [rsp + 0x98]
mov r8d, dword [rsp + 0xd4]
mov rdx, qword [rsp + 0x78]
movzx ecx, word [rsp + 0xe4]
call fcn.180227e70
movzx eax, al
cmp qword [rsp + 0x48], 0
je 0x1802275db
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x78], 0
je 0x1802275ed
mov rcx, qword [rsp + 0x78]
call sym.ProcessMonitor.dll_PhFree
cmp qword [rsp + 0x58], 0
je 0x1802275ff
mov rcx, qword [rsp + 0x58]
call sym.ProcessMonitor.dll_PhFree
mov rax, qword [rsp + 0x98]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804e2280]
call fcn.180014e20
mov rax, rdi
add rsp, 0xf0
pop rdi
ret

Function at 0x180005440
Capabilities:
Lock the desktop

Disassembly:
jmp 0x18002c0c0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
call qword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x18002c0da
mov al, 1
jmp 0x18002c0f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
xor r8d, r8d
lea rdx, str.Unable_to_lock_the_computer.
mov rcx, qword [rsp + 0x30]
call sym.ProcessMonitor.dll_PhShowStatus
xor al, al
add rsp, 0x20
pop rdi
ret