joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180102240
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1801027d0
mov qword [rsp + 0x28], 0
cmp qword [0x1801475a8], 0
jne 0x180102288
cmp qword [0x1801475a0], 0
je 0x180102288
mov rax, qword [0x1801475a0]
mov qword [0x1801475a8], rax
cmp qword [0x1801475a8], 0
je 0x18010232e
mov rax, qword [0x1801475a8]
cmp qword [rax + 0x10], 0
je 0x18010232e
mov rax, qword [0x1801475a8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18010232e
mov rax, qword [0x1801475a8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18010232e
mov rax, qword [0x1801475a8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1801022f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1801022fb
xor eax, eax
jmp 0x1801024a9
mov rax, qword [0x1801475a8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1801024a9
mov rax, qword [0x1801475a0]
mov qword [0x1801475a8], rax
jmp 0x180102350
mov rax, qword [0x1801475a8]
mov rax, qword [rax + 8]
mov qword [0x1801475a8], rax
cmp qword [0x1801475a8], 0
je 0x18010239d
cmp qword [0x1801475a8], 0
je 0x18010239b
mov rax, qword [0x1801475a8]
cmp qword [rax + 0x10], 0
je 0x18010239b
mov rax, qword [0x1801475a8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18010239b
mov rax, qword [0x1801475a8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18010239b
jmp 0x1801022cc
jmp 0x18010233e
mov rcx, qword [rsp + 0x60]
call fcn.1801046b0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1801024b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1801024a7
mov rax, qword [rsp + 0x48]
mov qword [0x1801475a8], rax
mov rax, qword [0x1801475a8]
mov dword [rax], 0x52727464
mov rax, qword [0x1801475a8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1801475a8]
mov rcx, qword [0x1801475a0]
mov qword [rax + 8], rcx
mov rax, qword [0x1801475a8]
mov qword [0x1801475a0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1801475a8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180102458
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180102492
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18010244e
mov rax, qword [0x1801475a8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1801022cc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1801031c0
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 0x180103207
xor al, al
jmp 0x1801032a9
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 0x180103231
xor al, al
jmp 0x1801032a9
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 0x1801032a1
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 0x1801032a1
mov al, 1
jmp 0x1801032a9
jmp 0x1801032a7
xor al, al
add rsp, 0x78
ret

Function at 0x1801035b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1801475a0]
mov qword [rsp + 0x28], rax
jmp 0x1801035d0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801035ff
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1801035fd
call sub.KERNEL32.dll_GetLastError
jmp 0x180103601
jmp 0x1801035c2
xor eax, eax
add rsp, 0x38
ret
Function at 0x180103e70
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1801475b8], eax
je 0x180103e8b
mov eax, 0x10dd
jmp 0x180103fb0
mov rax, qword [0x1801475d0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180103f35
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 0x180103f00
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180103f00
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180102910
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.180124300
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180103e97
mov qword [0x1801475d0], 0
call fcn.180103370
mov rax, qword [0x1801475c8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180103f99
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.180124300
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180103f51
mov qword [0x1801475c8], 0
mov dword [0x1801475b8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1801044e0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1801475bc], 0
je 0x1801044fd
mov eax, dword [0x1801475bc]
jmp 0x1801045c3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180104510
xor eax, eax
jmp 0x1801045c3
mov ecx, 0x10
call fcn.180123f44
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18010457e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180104563
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180124300
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1801475bc], eax
mov qword [0x1801475c0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1801045c3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180104598
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180104539
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1801475c8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1801475c8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x1801046c0
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 0x1801046ed
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 0x18010470d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180104886
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 0x180104744
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180104886
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180104762
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180104886
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 0x18010478e
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 0x18010486a
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 0x180104865
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x1801047f3
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x1801047f5
jmp 0x18010486a
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 0x18010483b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x18010483d
jmp 0x18010486a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180104857
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 0x180104886
jmp 0x180104784
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180104886
add rsp, 0x78
ret
Function at 0x180104890
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 0x1801048d8
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 0x1801048f7
jmp 0x18010499b
cmp dword [rsp + 0x68], 0x1000
jne 0x18010491c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18010491c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18010491e
jmp 0x1801048c3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180104954
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180104954
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180104959
jmp 0x1801048c3
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 0x1801048c3
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x18010499d
xor eax, eax
add rsp, 0x88
ret

Function at 0x180106e80
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 0x180106ee4
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 0x180106ebe
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x100
jge 0x180106ee2
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 0x180106eb4
jmp 0x180106eff
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 0x18010c240
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov ecx, 0x10
call fcn.180123f44
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 [0x180147cd0], 0
mov rdx, qword [rsp + 0x20]
lea rcx, [0x18010c500]
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.180124300
mov rax, qword [0x180147cd0]
add rsp, 0x48
ret
Function at 0x18011fde0
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 0x18011fee5
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 0x18011fee5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18011fee5
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 0x18012002c
cmp dword [rsp + 0x98], 0
jl 0x18011ff13
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 0x18011ff13
xor eax, eax
jmp 0x180120052
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 0x18012002c
cmp dword [rsp + 0x30], 0
jbe 0x18012002c
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 0x18011ffe1
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x90], rax
jbe 0x18011ffa7
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x18011ffb4
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 0x18012002c
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x90], rax
jbe 0x18011fffa
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x180120007
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 0x18012004e
lea rdx, [0x18012ba58]
mov rcx, qword [rsp + 0x80]
call fcn.1801207f0
mov eax, 0xffffffff
jmp 0x180120052
mov eax, dword [rsp + 0x38]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x1801200a0
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 0x1801200f0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x40], rax
jmp 0x18012016f
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 0x1801201d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x3e5
je 0x1801201d9
lea rdx, [0x18012ba38]
mov rcx, qword [rsp + 0x90]
call fcn.1801207f0
mov dword [rsp + 0x34], 0xffffffff
jmp 0x18012024c
cmp dword [rsp + 0xa8], 0
jl 0x180120204
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 0x180120204
xor eax, eax
jmp 0x18012026a
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 0x18012024c
lea rdx, [0x18012ba48]
mov rcx, qword [rsp + 0x90]
call fcn.1801207f0
mov dword [rsp + 0x34], 0xffffffff
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x40], rax
je 0x180120266
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 0x180120280
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.hid.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180147cf0], rax
cmp qword [0x180147cf0], 0
je 0x1801204a4
lea rdx, str.HidD_GetAttributes
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d00], rax
cmp qword [0x180147d00], 0
jne 0x1801202d5
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, str.HidD_GetSerialNumberString
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d08], rax
cmp qword [0x180147d08], 0
jne 0x180120304
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, str.HidD_GetManufacturerString
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d10], rax
cmp qword [0x180147d10], 0
jne 0x180120333
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, str.HidD_GetProductString
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d18], rax
cmp qword [0x180147d18], 0
jne 0x180120362
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, str.HidD_SetFeature
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d20], rax
cmp qword [0x180147d20], 0
jne 0x180120391
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, str.HidD_GetFeature
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d28], rax
cmp qword [0x180147d28], 0
jne 0x1801203c0
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, str.HidD_GetIndexedString
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d30], rax
cmp qword [0x180147d30], 0
jne 0x1801203ef
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, [0x18012b960]
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d38], rax
cmp qword [0x180147d38], 0
jne 0x18012041e
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, str.HidD_FreePreparsedData
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d40], rax
cmp qword [0x180147d40], 0
jne 0x18012044a
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, [0x18012b990]
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d48], rax
cmp qword [0x180147d48], 0
jne 0x180120476
mov eax, 0xffffffff
jmp 0x1801204ad
lea rdx, [0x18012b9a0]
mov rcx, qword [0x180147cf0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180147d50], rax
cmp qword [0x180147d50], 0
jne 0x1801204a2
mov eax, 0xffffffff
jmp 0x1801204ad
jmp 0x1801204ab
mov eax, 0xffffffff
jmp 0x1801204ad
xor eax, eax
add rsp, 0x28
ret