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

Disassembly:
jmp 0x14002da50
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x1400b4087]
call fcn.140021842
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0xc]
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea r8, [rbp + 0x78]
lea rdx, [0x140021973]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x14002dbdb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea r8, [rbp + 0x98]
mov rdx, qword [rbp + 0x78]
mov rcx, rax
call fcn.140020668
test eax, eax
je 0x14002dbdb
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x138], 0
jmp 0x14002db29
mov rax, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x138]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x138], rax
mov eax, dword [rbp + 0xa0]
cmp qword [rbp + 0x138], rax
jae 0x14002dbdb
mov rax, qword [rbp + 0x138]
mov rcx, qword [rbp + 0x118]
add rcx, rax
mov rax, rcx
mov r8d, 0x30
lea rdx, [rbp + 0xc8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jb 0x14002dbd6
mov eax, dword [rbp + 0xec]
and eax, 0x10
cmp eax, 0x10
je 0x14002dba8
mov eax, dword [rbp + 0xec]
and eax, 0x20
cmp eax, 0x20
je 0x14002dba8
mov eax, dword [rbp + 0xec]
and eax, 0x80
cmp eax, 0x80
je 0x14002dba8
mov eax, dword [rbp + 0xec]
and eax, 0x40
cmp eax, 0x40
jne 0x14002dbd6
mov rax, qword [rbp + 0x138]
mov rcx, qword [rbp + 0x118]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x218], rax
lea rdx, [rbp + 0x218]
lea rcx, [0x1400a84d8]
call fcn.14002050f
jmp 0x14002db11
lea rcx, [rbp - 0x20]
lea rdx, [0x14006bde0]
call fcn.1400213b0
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret

Function at 0x1400207da
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
jmp 0x140037f40
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b40d9]
call fcn.140021842
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
call fcn.140020695
movzx eax, al
test eax, eax
je 0x140037f99
mov rax, qword gs:[0x60]
add rax, 0x30
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax]
add rax, 0x74
mov qword [rbp + 0x28], rax
jmp 0x140037fb9
mov rax, qword gs:[0x60]
add rax, 0x30
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax]
add rax, 0x18
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140020a00
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x140056c50
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1400b43ad]
call fcn.140021842
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, SafeArrayLock
rep stosb byte [rdi], al
mov qword [rbp + 0x38], 0
mov dword [rbp + 0x54], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140056cdc
lea rcx, str.OpenProcessToken
call fcn.140020d5c
mov eax, dword [rbp + 0x54]
jmp 0x140056d6d
mov dword [rbp + 8], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0x14], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rbp + rax + 0xc]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140056d54
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 8]
xor edx, edx
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
jne 0x140056d52
lea rcx, str.AdjustTokenPrivileges
call fcn.140020d5c
jmp 0x140056d60
lea rcx, str.LookupPrivilegeValue
call fcn.140020d5c
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x54]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140020af0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x1400435a0
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b4141]
call fcn.140021842
mov rax, qword gs:[0x60]
mov qword [rbp + 8], rax
lea rcx, str.___Increasing_SizeOfImage_in_PE_Header_to:_0x100000_n
call fcn.1400200d7
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
mov ecx, 8
imul rcx, rcx, 1
mov rax, qword [rax + rcx + 8]
mov qword [rbp + 0x28], rax
xor eax, eax
mov ecx, 8
imul rcx, rcx, 0
add rax, rcx
mov rcx, qword [rbp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x48]
lea rax, [rcx + rax + 0x38]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x48]
mov rax, qword [rax + 0x30]
add rax, 0x100000
mov rcx, qword [rbp + 0x68]
mov dword [rcx], eax
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140020d20
Capabilities:
Enumerate services

Disassembly:
jmp 0x140049c80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400b416e]
call fcn.140021842
mov dword [rbp + 4], 0xe000
mov eax, dword [rbp + 4]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x1b8], 0
je 0x140049d04
mov rax, qword [rbp + 0x1b8]
mov dword [rax], 0
cmp qword [rbp + 0x28], 0
je 0x140049e8a
mov eax, dword [rbp + 4]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.140021090
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov qword [rsp + 0x48], 0
lea rax, [rbp + 0x64]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x1b8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, dword [rbp + 0x1a8]
xor edx, edx
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x140049d9a
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov eax, 1
jmp 0x140049e8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0xea
jne 0x140049e6e
mov eax, dword [rbp + 0x44]
mov ecx, dword [rbp + 4]
add ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_realloc]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140049e6c
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 4]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.140021090
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x1b8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, dword [rbp + 0x1a8]
xor edx, edx
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x140049e6c
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov eax, 1
jmp 0x140049e8c
jmp 0x140049e80
mov edx, dword [rbp + 0x84]
lea rcx, str.ERROR:__u_n
call fcn.140020adc
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140020d34
Capabilities:
Terminate process

Disassembly:
jmp 0x14005cd80
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 0x140020d61
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
jmp 0x140049010
push rbp
push rdi
sub rsp, 0xa18
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1be
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x9e8], rax
lea rcx, [0x1400b4166]
call fcn.140021842
movzx eax, word [0x14006733c]
mov word [rbp + 0x240], ax
lea rax, [rbp + 0x242]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, str.qemu_ga
mov qword [rbp + 0x468], rax
lea rax, str.SPICE_Guest_Tools
mov qword [rbp + 0x470], rax
mov eax, 2
mov word [rbp + 0x494], ax
mov dword [rbp + 0x4b4], 0
jmp 0x1400490b0
mov eax, dword [rbp + 0x4b4]
inc eax
mov dword [rbp + 0x4b4], eax
movzx eax, word [rbp + 0x494]
cmp dword [rbp + 0x4b4], eax
jge 0x140049190
movzx eax, word [0x14006733c]
mov word [rbp + 0x4e0], ax
lea rax, [rbp + 0x4e2]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
call fcn.14002125c
test eax, eax
je 0x140049106
mov r8d, 0x104
lea rdx, [rbp + 0x10]
lea rcx, str._ProgramW6432_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x14004911b
xor r9d, r9d
mov r8d, 0x26
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
movsxd rax, dword [rbp + 0x4b4]
mov r8, qword [rbp + rax*8 + 0x468]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea r9, [rbp + 0x240]
lea r8, str.Checking_QEMU_directory__s
mov edx, pe_nt_image_headers64
lea rcx, [rbp + 0x4e0]
call fcn.1400206fe
lea rcx, [rbp + 0x240]
call fcn.1400213f6
test eax, eax
je 0x14004917d
lea rdx, [rbp + 0x4e0]
mov ecx, 1
call fcn.1400219b4
jmp 0x14004918b
lea rdx, [rbp + 0x4e0]
xor ecx, ecx
call fcn.1400219b4
jmp 0x1400490a2
lea rcx, [rbp - 0x20]
lea rdx, [0x140075fe0]
call fcn.1400213b0
mov rcx, qword [rbp + 0x9e8]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x9f8]
pop rdi
pop rbp
ret
Function at 0x140020f41
Capabilities:
Get geographical location

Disassembly:
jmp 0x14005bad0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14005bb0d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14002181f
add rsp, 0x58
ret

Function at 0x140020fa5
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140054d80
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x188]
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400b43ad]
call fcn.140021842
xor edx, edx
mov ecx, 4
call fcn.140020b09
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140054e6c
mov dword [rbp + 0x28], 0x1c
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call fcn.140020ece
test eax, eax
je 0x140054e62
mov eax, dword [rbp + 0x28]
cmp rax, 0x10
jb 0x140054e51
mov eax, dword [rbp + 0x160]
cmp dword [rbp + 0x34], eax
jne 0x140054e51
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov ecx, 0x20000
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140054e38
lea rcx, str.OpenThread
call fcn.140020d5c
jmp 0x140054e51
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x30]
jmp 0x140054e7a
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call fcn.140020258
test eax, eax
jne 0x140054dfa
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.CreateToolhelp32Snapshot
call fcn.140020d5c
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007d2c0]
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14002104f
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x14004ed80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x708
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x728]
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x6d8], rax
lea rcx, [0x1400b41b1]
call fcn.140021842
mov dword [rbp + 4], 0
mov edx, dword [rbp + 0x700]
mov ecx, 8
call fcn.140020b09
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x14004ee42
mov dword [rbp + 0x50], 0x438
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.140020ed3
test eax, eax
je 0x14004ee38
mov rdx, qword [rbp + 0x708]
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14004ee27
mov dword [rbp + 4], 1
jmp 0x14004ee38
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.140020339
test eax, eax
jne 0x14004ee06
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007afe0]
call fcn.1400213b0
mov eax, edi
mov rcx, qword [rbp + 0x6d8]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x6e8]
pop rdi
pop rbp
ret

Function at 0x140021068
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005e9f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14005ea10
xor al, al
jmp 0x14005ea91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14005ea23
xor al, al
jmp 0x14005ea91
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14005ea4d
xor al, al
jmp 0x14005ea91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14005ea61
xor al, al
jmp 0x14005ea91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14005ea73
xor al, al
jmp 0x14005ea91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14005ea8f
xor al, al
jmp 0x14005ea91
mov al, 1
add rsp, 0x38
ret
Function at 0x140021338
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x140059260
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400b43ad]
call fcn.140021842
mov dword [rbp + 4], 0
mov dword [rbp + 0x64], 0x2c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x2c0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400592ef
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo._n
call fcn.1400200d7
mov eax, 0xffffffff
jmp 0x14005943a
lea rdx, [rbp + 0x64]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0x6f
jne 0x14005937b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rbp + 0x64]
mov qword [rbp + 0x198], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x198]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140059367
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.140020adc
mov eax, 1
jmp 0x14005943a
lea rdx, [rbp + 0x64]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140059422
mov dword [rbp + 0xc4], 0
jmp 0x1400593a2
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 4
jge 0x1400593cd
movsxd rax, dword [rbp + 0xc4]
movsxd rcx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x1d0]
movzx eax, byte [rdx + rax*2]
mov byte [rbp + rcx + 0xa4], al
jmp 0x140059394
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140059422
mov rax, qword [rbp + 0x48]
cmp dword [rax + 0x194], 6
jne 0x140059415
mov rax, qword [rbp + 0x48]
add rax, 0x198
mov r8d, 3
mov rdx, rax
lea rcx, [rbp + 0xa4]
call fcn.140020870
test eax, eax
jne 0x140059415
mov dword [rbp + 4], 1
jmp 0x140059422
mov rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
jmp 0x1400593d5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x1400213f6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14005a450
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b43ad]
call fcn.140021842
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x14005a49b
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
je 0x14005a49b
mov dword [rbp + 0xd4], 1
jmp 0x14005a4a5
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140021577
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x14004f910
push rbp
push rsi
push rdi
sub rsp, 0x4b0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xc4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x488], rax
lea rcx, [0x1400b41c0]
call fcn.140021842
lea rax, [rbp + 8]
lea rcx, str.InjectedDLL.dll
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
lea rcx, str.notepad.exe
call fcn.1400204fb
mov dword [rbp + 0x2b4], eax
cmp dword [rbp + 0x2b4], 0
jne 0x14004f988
xor eax, eax
jmp 0x14004fac7
mov edx, dword [rbp + 0x2b4]
lea rcx, str._t___Getting_proc_id:__u_n
call fcn.1400200d7
mov ecx, dword [rbp + 0x2b4]
call fcn.140020fa5
mov dword [rbp + 0x2d4], eax
cmp dword [rbp + 0x2d4], 0
jne 0x14004f9bb
xor eax, eax
jmp 0x14004fac7
mov edx, dword [rbp + 0x2d4]
lea rcx, str._t___Getting_main_thread_id_of_proc_id:__u_n
call fcn.1400200d7
xor r9d, r9d
lea r8, [rbp + 0x50]
mov edx, 0x104
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rbp + 0x50]
lea rcx, str._t___Full_DLL_Path:__s_n
call fcn.1400200d7
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x298], rax
cmp qword [rbp + 0x298], 0
jne 0x14004fa21
lea rcx, str.LoadLibrary
call fcn.140020d5c
xor eax, eax
jmp 0x14004fac7
lea rcx, str._t___Looking_for_MyProc_in_our_dll_n
call fcn.1400200d7
lea rdx, str.MyProc
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0
jne 0x14004fa62
lea rcx, str.GetProcAddress
call fcn.140020d5c
xor eax, eax
jmp 0x14004fac7
mov rdx, qword [rbp + 0x278]
lea rcx, str._t___Found_at_0x_p_n
call fcn.1400200d7
mov r9d, dword [rbp + 0x2d4]
mov r8, qword [rbp + 0x298]
mov rdx, qword [rbp + 0x278]
mov ecx, 2
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp + 0x2f8], rax
cmp qword [rbp + 0x2f8], 0
jne 0x14004fab6
lea rcx, str.SetWindowsHookEx
call fcn.140020d5c
xor eax, eax
jmp 0x14004fac7
lea rcx, str.SetWindowsHookEx_created_successfully_..._n
call fcn.1400200d7
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x488]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x490]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002174d
Capabilities:
Get explorer pid

Disassembly:
jmp 0x140033e50
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x1400b4095]
call fcn.140021842
mov dword [rbp + 4], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rbp + 4]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14006ced0]
call fcn.1400213b0
mov eax, edi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400217de
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14005a4d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b43ad]
call fcn.140021842
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x14005a51b
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x14005a51b
mov dword [rbp + 0xd4], 1
jmp 0x14005a525
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret