joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801020e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180102127
xor al, al
jmp 0x1801021c9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180102151
xor al, al
jmp 0x1801021c9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1801021c1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1801021c1
mov al, 1
jmp 0x1801021c9
jmp 0x1801021c7
xor al, al
add rsp, 0x78
ret

Function at 0x1801024d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1801465a0]
mov qword [rsp + 0x28], rax
jmp 0x1801024f0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18010251f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18010251d
call sub.KERNEL32.dll_GetLastError
jmp 0x180102521
jmp 0x1801024e2
xor eax, eax
add rsp, 0x38
ret
Function at 0x180102d90
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1801465b8], eax
je 0x180102dab
mov eax, 0x10dd
jmp 0x180102ed0
mov rax, qword [0x1801465d0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180102e55
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180102e20
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180102e20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180101830
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180123220
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180102db7
mov qword [0x1801465d0], 0
call fcn.180102290
mov rax, qword [0x1801465c8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180102eb9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180123220
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180102e71
mov qword [0x1801465c8], 0
mov dword [0x1801465b8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180103400
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1801465bc], 0
je 0x18010341d
mov eax, dword [0x1801465bc]
jmp 0x1801034e3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180103430
xor eax, eax
jmp 0x1801034e3
mov ecx, 0x10
call fcn.180122e64
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18010349e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180103483
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180123220
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1801465bc], eax
mov qword [0x1801465c0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1801034e3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1801034b8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180103459
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1801465c8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1801465c8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x1801035e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x18010360d
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18010362d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1801037a6
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x180103664
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1801037a6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180103682
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1801037a6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x1801036ae
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x18010378a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180103785
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x180103713
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x180103715
jmp 0x18010378a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x18010375b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x18010375d
jmp 0x18010378a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180103777
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x1801037a6
jmp 0x1801036a4
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1801037a6
add rsp, 0x78
ret
Function at 0x1801037b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x1801037f8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180103817
jmp 0x1801038bb
cmp dword [rsp + 0x68], 0x1000
jne 0x18010383c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18010383c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18010383e
jmp 0x1801037e3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180103874
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180103874
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180103879
jmp 0x1801037e3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x1801037e3
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x1801038bd
xor eax, eax
add rsp, 0x88
ret

Function at 0x180105da0
Capabilities:
Log keystrokes via polling

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx eax, byte [rsp + 0x48]
test eax, eax
jne 0x180105e04
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x40]
mov word [rdx + rax], cx
mov dword [rsp + 0x20], 1
jmp 0x180105dde
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x100
jge 0x180105e02
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
mov word [rdx + rcx*2], ax
jmp 0x180105dd4
jmp 0x180105e1f
movzx eax, byte [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, byte [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov word [rdx + rcx*2], ax
add rsp, 0x38
ret

Function at 0x18010b160
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov ecx, 0x10
call fcn.180122e64
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov qword [0x180146cd0], 0
mov rdx, qword [rsp + 0x20]
lea rcx, [0x18010b420]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x30]
call fcn.180123220
mov rax, qword [0x180146cd0]
add rsp, 0x48
ret
Function at 0x18011ed00
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x2c], 0
jne 0x18011ee05
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x2c], 1
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rax + 0x38]
xor eax, eax
mov rcx, qword [rcx + 0x18]
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x80]
add rax, 0x40
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax + 0x18]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax + 0x38]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x18011ee05
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18011ee05
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x2c], 0
jmp 0x18011ef4c
cmp dword [rsp + 0x98], 0
jl 0x18011ee33
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x18011ee33
xor eax, eax
jmp 0x18011ef72
mov rax, qword [rsp + 0x80]
add rax, 0x40
mov r9d, 1
lea r8, [rsp + 0x30]
mov rdx, rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x2c], 0
cmp dword [rsp + 0x34], 0
je 0x18011ef4c
cmp dword [rsp + 0x30], 0
jbe 0x18011ef4c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x38]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x18011ef01
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x90], rax
jbe 0x18011eec7
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x18011eed4
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x38]
inc rax
mov rdi, qword [rsp + 0x88]
mov rsi, rax
mov rcx, qword [rsp + 0x38]
rep movsb byte [rdi], byte [rsi]
jmp 0x18011ef4c
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x90], rax
jbe 0x18011ef1a
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x18011ef27
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rax + 0x38]
mov rcx, qword [rsp + 0x38]
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x34], 0
jne 0x18011ef6e
lea rdx, [0x18012aa58]
mov rcx, qword [rsp + 0x80]
call fcn.18011f710
mov eax, 0xffffffff
jmp 0x18011ef72
mov eax, dword [rsp + 0x38]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x18011efc0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
cmp qword [rsp + 0xa0], rax
jb 0x18011f010
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x40], rax
jmp 0x18011f08f
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
sub rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
mov eax, CMapStringToOb::HashKey
mov rcx, qword [rsp + 0x48]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18011f0f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x3e5
je 0x18011f0f9
lea rdx, [0x18012aa38]
mov rcx, qword [rsp + 0x90]
call fcn.18011f710
mov dword [rsp + 0x34], 0xffffffff
jmp 0x18011f16c
cmp dword [rsp + 0xa8], 0
jl 0x18011f124
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18011f124
xor eax, eax
jmp 0x18011f18a
mov r9d, 1
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18011f16c
lea rdx, [0x18012aa48]
mov rcx, qword [rsp + 0x90]
call fcn.18011f710
mov dword [rsp + 0x34], 0xffffffff
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x40], rax
je 0x18011f186
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x34]
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x18011f1a0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.hid.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180146cf0], rax
cmp qword [0x180146cf0], 0
je 0x18011f3c4
lea rdx, str.HidD_GetAttributes
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d00], rax
cmp qword [0x180146d00], 0
jne 0x18011f1f5
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, str.HidD_GetSerialNumberString
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d08], rax
cmp qword [0x180146d08], 0
jne 0x18011f224
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, str.HidD_GetManufacturerString
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d10], rax
cmp qword [0x180146d10], 0
jne 0x18011f253
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, str.HidD_GetProductString
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d18], rax
cmp qword [0x180146d18], 0
jne 0x18011f282
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, str.HidD_SetFeature
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d20], rax
cmp qword [0x180146d20], 0
jne 0x18011f2b1
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, str.HidD_GetFeature
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d28], rax
cmp qword [0x180146d28], 0
jne 0x18011f2e0
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, str.HidD_GetIndexedString
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d30], rax
cmp qword [0x180146d30], 0
jne 0x18011f30f
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, [0x18012a960]
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d38], rax
cmp qword [0x180146d38], 0
jne 0x18011f33e
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, str.HidD_FreePreparsedData
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d40], rax
cmp qword [0x180146d40], 0
jne 0x18011f36a
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, [0x18012a990]
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d48], rax
cmp qword [0x180146d48], 0
jne 0x18011f396
mov eax, 0xffffffff
jmp 0x18011f3cd
lea rdx, [0x18012a9a0]
mov rcx, qword [0x180146cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180146d50], rax
cmp qword [0x180146d50], 0
jne 0x18011f3c2
mov eax, 0xffffffff
jmp 0x18011f3cd
jmp 0x18011f3cb
mov eax, 0xffffffff
jmp 0x18011f3cd
xor eax, eax
add rsp, 0x28
ret
Function at 0x1801243c8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r9, rcx
mov eax, 0x5a4d
lea rdx, [0x180000000]
cmp word [0x180000000], ax
je 0x1801243ef
xor eax, eax
mov r8d, dword [0x18000003c]
jmp 0x180124411
movsxd r8, dword [0x18000003c]
xor eax, eax
cmp dword [r8 + rdx], 0x4550
jne 0x180124411
mov r10d, 0x20b
cmp word [r8 + rdx + 0x18], r10w
sete al
test eax, eax
je 0x180124473
sub r9, rdx
movsxd r10, r8d
add r10, rdx
xor edx, edx
movzx eax, word [r10 + 0x14]
lea rcx, [r10 + 0x18]
add rcx, rax
mov qword [rsp + 8], rcx
mov dword [rsp], edx
movzx eax, word [r10 + 6]
cmp edx, eax
jae 0x180124459
mov r8d, dword [rcx + 0xc]
cmp r9, r8
jb 0x180124451
mov eax, dword [rcx + 8]
add eax, r8d
cmp r9, rax
jb 0x18012445b
inc edx
add rcx, 0x28
jmp 0x18012442c
xor ecx, ecx
test rcx, rcx
jne 0x180124464
xor eax, eax
jmp 0x180124473
mov eax, dword [rcx + 0x24]
shr eax, 0x1f
not eax
and eax, 1
jmp 0x180124473
add rsp, 0x18
ret
Function at 0x1400cbedd
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14013bc00
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14013bc28
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14013bc72
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14013bc1d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400cd607
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401f7fe0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401f7ffd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401f8058
test al, 7
jne 0x1401f7ff0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401f8011
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401f8082
test dh, dh
je 0x1401f807c
shr rdx, 0x10
test dl, dl
je 0x1401f8076
test dh, dh
je 0x1401f8070
shr rdx, 0x10
test dl, dl
je 0x1401f806a
test dh, dh
je 0x1401f8064
shr edx, 0x10
test dl, dl
je 0x1401f805e
test dh, dh
jne 0x1401f8011
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400cd63e
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402440e0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140243c60
lea rcx, [rsp + 0x20]
call fcn.140243cb0
movzx eax, al
test eax, eax
jne 0x140244125
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140243c90
mov rax, qword [rsp + 0x40]
jmp 0x14024421f
lea rcx, [rsp + 0x20]
call fcn.140243db0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140243d50
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400cd9b8
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400ccf8b
lea rcx, [rsp + 0x28]
call fcn.1400cdeb8
movzx eax, al
test eax, eax
jne 0x1402441bf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400cf3df
lea rcx, [rsp + 0x20]
call fcn.140243c90
mov rax, qword [rsp + 0x50]
jmp 0x14024421f
lea rcx, [rsp + 0x20]
call fcn.140243db0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400d0410
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400cd8ff
lea rcx, [rsp + 0x28]
call fcn.1400d0db6
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400cf3df
lea rcx, [rsp + 0x20]
call fcn.140243c90
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret