joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002b5e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd rsi, edx
mov rbp, rcx
mov rdi, rsi
test edx, edx
jle 0x18002b653
movzx eax, byte [0x18028c660]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
lea r14, [0x18028c848]
mov rbx, rcx
cmp al, 0x20
jne 0x18002b627
call fcn.18002bd50
movzx eax, byte [0x18028c660]
movzx ecx, al
inc rbx
movzx eax, byte [rcx + r14]
xor byte [rbx - 1], al
movzx eax, byte [0x18028c660]
inc al
mov byte [0x18028c660], al
dec rdi
jne 0x18002b617
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
lea rcx, [0x18028c670]
mov r8d, esi
mov rdx, rbp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.18002cc50

Function at 0x18002b700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov rdx, rcx
lea rcx, [0x18028c670]
mov r8d, ebx
call fcn.18002cc50
test rbx, rbx
jle 0x18002b776
movzx eax, byte [0x18028c660]
mov qword [rsp + 0x30], rsi
lea rsi, [0x18028c848]
nop word [rax + rax]
cmp al, 0x20
jne 0x18002b750
call fcn.18002bd50
movzx eax, byte [0x18028c660]
movzx ecx, al
inc rdi
movzx eax, byte [rcx + rsi]
xor byte [rdi - 1], al
movzx eax, byte [0x18028c660]
inc al
mov byte [0x18028c660], al
dec rbx
jne 0x18002b740
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800453a0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x90
mov dword [rsp + 0x20], 0x94
call fcn.180050a30
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x180045400
mov rdx, rdi
mov rcx, rbx
call fcn.180045ab0
jmp 0x180045414
cmp eax, 6
jne 0x180045412
mov rdx, rdi
mov rcx, rbx
call fcn.180045440
jmp 0x180045414
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18004fba0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret

Function at 0x1800468e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]

Function at 0x180046920
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
add rsp, 0x28
jmp fcn.1800468e0

Function at 0x180046940
Capabilities:
Terminate process

Disassembly:
cmp byte [rcx + 0x557], 0
je fcn.180046920
ret
push rbx
sub rsp, 0x20
mov r9d, dword [rcx + 0x55c]
lea r8, [rcx + 0x222]
lea rdx, [rcx + 0x254]
mov rbx, rcx
xor ecx, ecx
call fcn.180048230
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1800468d0
Function at 0x180046ad0
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x280
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
lea rdx, [rsp + 0x60]
mov r8d, 0x208
xor ecx, ecx
mov dword [rsp + 0x48], 0x78563412
mov dword [rsp + 0x4c], 0x21346587
mov dword [0x18028c9f0], 1
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x60]
lea r8d, [rbp + 3]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180046c78
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x298], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r9d, [rbp + 2]
lea edx, [rbp - 8]
xor r8d, r8d
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea r8d, [rbp + 8]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180046c39
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0x50]
jne 0x180046c42
lea r9d, [rbp + 2]
lea edx, [rbp - 0xc]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea r8d, [rbp + 4]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180046c39
mov rdx, qword [rdi]
lea r9d, [rbp + 4]
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
xor r8d, r8d
mov qword [0x18028ca18], rax
sub esi, dword [rdi]
mov rcx, rbx
lea edx, [rsi - 0xc]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rdi]
mov rdx, qword [0x18028ca18]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180046c71
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18004fba0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, 1
jmp 0x180046c44
xor eax, eax
jmp 0x180046c4c

Function at 0x180046f10
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r8d, r8d
add rax, 0x18
mov r9, rcx
add rax, rdx
test r10d, r10d
je 0x180046f55
nop dword [rax + rax]
mov edx, dword [rax + 8]
test edx, edx
jne 0x180046f3a
mov edx, dword [rax + 0x10]
mov ecx, dword [rax + 0xc]
cmp r9, rcx
jl 0x180046f49
add edx, ecx
cmp r9, rdx
jl 0x180046f57
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x180046f30
xor eax, eax
ret
Function at 0x180047ee0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
push r15
sub rsp, 0x48
mov eax, 0x5a4d
mov r15, rdx
mov rsi, rcx
cmp word [rcx], ax
je 0x180047f02
xor eax, eax
add rsp, 0x48
pop r15
pop rsi
ret
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x180047ef8
mov ecx, 0xf0
cmp word [rax + rsi + 0x14], cx
jne 0x180047ef8
mov ecx, 0x20b
cmp word [rax + rsi + 0x18], cx
jne 0x180047ef8
mov qword [0x18028c900], rsi
movsxd rdx, dword [rsi + 0x3c]
mov qword [rsp + 0x20], r14
add rdx, rsi
mov r14d, dword [rdx + 0x88]
mov ecx, r14d
call fcn.180046f10
test rax, rax
je 0x180047f69
test r14, r14
jne 0x180047f78
lea r9d, [r14 + 0x10]
lea rdx, str.Error_in_GetProcAddressDirectly__
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov r14, qword [rsp + 0x20]
add rsp, 0x48
pop r15
pop rsi
ret
mov qword [rsp + 0x68], rbx
add r14, rsi
mov qword [rsp + 0x40], rbp
mov ecx, dword [r14 + 0x24]
mov edx, dword [r14 + 0x20]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov r12d, dword [r14 + 0x1c]
add rcx, rsi
add rdx, rsi
mov rax, r15
xor ebx, ebx
shr rax, 0x10
add r12, rsi
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x28], r13
test ax, ax
je 0x18004806b
mov r13d, dword [r14 + 0x14]
mov edi, ebx
dec r13d
nop
cmp dword [r12], ebx
je 0x180048031
mov ebp, dword [r14 + 0x18]
mov r10d, ebx
mov r11, rdx
dec ebp
mov r9, rcx
movzx eax, word [r9]
cmp eax, edi
jne 0x180048017
mov eax, dword [r11]
mov r8, r15
add rax, rsi
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180048013
inc rax
test ecx, ecx
jne 0x180048000
test edx, edx
je 0x18004803c
inc r10d
add r9, 2
add r11, 4
cmp r10d, ebp
jbe 0x180047fe5
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
inc edi
cmp edi, r13d
jbe 0x180047fd0
xor eax, eax
jmp 0x180048045
mov eax, edi
mov eax, dword [r12 + rax*4]
add rax, rsi
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
add rsp, 0x48
pop r15
pop rsi
ret
mov edx, dword [r14 + 0x14]
mov r8d, dword [r14 + 0x10]
dec edx
lea ecx, [r8 + rbx]
cmp r15, rcx
jne 0x180048086
mov ecx, dword [r12 + rbx*4]
test ecx, ecx
jne 0x180048090
inc ebx
cmp ebx, edx
jbe 0x180048075
xor eax, eax
jmp 0x180048045
mov rax, rcx
shl rax, 6
jmp 0x180048042
jmp 0x180047ee0
Function at 0x1800480a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
push r15
sub rsp, 0x48
mov eax, 0x5a4d
mov r15, rdx
mov rsi, rcx
cmp word [rcx], ax
je 0x180047f02
xor eax, eax
add rsp, 0x48
pop r15
pop rsi
ret
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x180047ef8
mov ecx, 0xf0
cmp word [rax + rsi + 0x14], cx
jne 0x180047ef8
mov ecx, 0x20b
cmp word [rax + rsi + 0x18], cx
jne 0x180047ef8
mov qword [0x18028c900], rsi
movsxd rdx, dword [rsi + 0x3c]
mov qword [rsp + 0x20], r14
add rdx, rsi
mov r14d, dword [rdx + 0x88]
mov ecx, r14d
call fcn.180046f10
test rax, rax
je 0x180047f69
test r14, r14
jne 0x180047f78
lea r9d, [r14 + 0x10]
lea rdx, str.Error_in_GetProcAddressDirectly__
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov r14, qword [rsp + 0x20]
add rsp, 0x48
pop r15
pop rsi
ret
mov qword [rsp + 0x68], rbx
add r14, rsi
mov qword [rsp + 0x40], rbp
mov ecx, dword [r14 + 0x24]
mov edx, dword [r14 + 0x20]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov r12d, dword [r14 + 0x1c]
add rcx, rsi
add rdx, rsi
mov rax, r15
xor ebx, ebx
shr rax, 0x10
add r12, rsi
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x28], r13
test ax, ax
je 0x18004806b
mov r13d, dword [r14 + 0x14]
mov edi, ebx
dec r13d
nop
cmp dword [r12], ebx
je 0x180048031
mov ebp, dword [r14 + 0x18]
mov r10d, ebx
mov r11, rdx
dec ebp
mov r9, rcx
movzx eax, word [r9]
cmp eax, edi
jne 0x180048017
mov eax, dword [r11]
mov r8, r15
add rax, rsi
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180048013
inc rax
test ecx, ecx
jne 0x180048000
test edx, edx
je 0x18004803c
inc r10d
add r9, 2
add r11, 4
cmp r10d, ebp
jbe 0x180047fe5
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
inc edi
cmp edi, r13d
jbe 0x180047fd0
xor eax, eax
jmp 0x180048045
mov eax, edi
mov eax, dword [r12 + rax*4]
add rax, rsi
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
add rsp, 0x48
pop r15
pop rsi
ret
mov edx, dword [r14 + 0x14]
mov r8d, dword [r14 + 0x10]
dec edx
lea ecx, [r8 + rbx]
cmp r15, rcx
jne 0x180048086
mov ecx, dword [r12 + rbx*4]
test ecx, ecx
jne 0x180048090
inc ebx
cmp ebx, edx
jbe 0x180048075
xor eax, eax
jmp 0x180048045
mov rax, rcx
shl rax, 6
jmp 0x180048042
jmp 0x180047ee0

Function at 0x180048320
Capabilities:
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov dword [rdx], 1
mov r8, rdx
xor edx, edx
jmp fcn.1800483c0
Function at 0x1800483c0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x500
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
xor r14d, r14d
mov rbx, r8
mov rbp, rcx
test edx, edx
je 0x180048409
lea rcx, [rsp + 0xf0]
call fcn.180048150
test eax, eax
jne 0x1800484e6
lea rcx, [rsp + 0xf0]
xor edx, edx
mov r8d, 0x400
call fcn.180050a30
lea rdx, [rsp + 0xf0]
mov ecx, 0x1ff
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, str.YShow3D.exe
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x180253a10]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
mov edx, eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180048473
xor eax, eax
jmp 0x18004859f
lea r8, [0x180253a14]
lea rdx, [rsp + 0x50]
mov r9d, 0x293b0
mov rcx, rax
call fcn.18004c950
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0xf0]
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800484e6
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xf0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x80]
lea r8d, [rdx + 0x68]
call fcn.180050a30
xor eax, eax
mov edi, 1
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x80], 0x68
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0xbc], edi
mov word [rsp + 0xc0], di
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18004846c
cmp dword [rbx], edi
jne 0x18004858f
mov ecx, dword [rsp + 0x68]
mov dword [rbx], ecx
jmp 0x18004859d
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.18004fba0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180048990
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov ebx, dword [r8]
mov edi, dword [r8 + 4]
mov esi, dword [r8 + 8]
mov ebp, dword [r8 + 0xc]
mov r9d, dword [rdx]
mov r10d, dword [rdx + 4]
mov r8d, 0x20
xor r11d, r11d
nop dword [rax]
nop word [rax + rax]
mov ecx, r10d
mov eax, r10d
lea r11d, [r11 - 0x61c88647]
shr ecx, 5
shl eax, 4
dec r8d
add ecx, edi
add eax, ebx
xor ecx, eax
lea eax, [r11 + r10]
xor ecx, eax
add r9d, ecx
mov ecx, r9d
mov eax, r9d
shr ecx, 5
shl eax, 4
add ecx, ebp
add eax, esi
xor ecx, eax
lea eax, [r11 + r9]
xor ecx, eax
add r10d, ecx
test r8d, r8d
jg 0x1800489d0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [rdx], r9d
mov dword [rdx + 4], r10d
ret

Function at 0x1800490f0
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbx, rdx
xor edx, edx
lea rcx, [rsp + 0x51]
lea r8d, [rdx + 0x63]
mov byte [rsp + 0x50], 0
call fcn.180050a30
xor eax, eax
lea rcx, [rsp + 0xc1]
xor edx, edx
mov r8d, 0x12b
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x31], rax
mov qword [rsp + 0x39], rax
mov word [rsp + 0x41], ax
mov byte [rsp + 0x43], al
mov byte [rsp + 0xc0], al
call fcn.180050a30
lea r9, [rsp + 0x50]
lea r8, str.127.0.0.1
lea rdx, str.ServerName
lea rcx, str.ConnectServer
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea r9, [rsp + 0x30]
lea r8, str.3001
lea rdx, str.PORT
lea rcx, str.ConnectServer
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea r9, [rsp + 0xc0]
lea r8, str.3001
lea rdx, str.mMsg
lea rcx, str.ConnectServer
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x12c
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x30]
call fcn.1800524dc
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x50]
mov r8d, eax
call qword [0x18028c9c0]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.18004fba0
add rsp, 0x200
pop rbx
ret
Function at 0x1800495a0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x207
mov byte [rsp + 0x20], 0
call fcn.180050a30
lea rcx, [rsp + 0x231]
xor edx, edx
mov r8d, 0x207
mov byte [rsp + 0x230], 0
call fcn.180050a30
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, str.SetupApi.dll
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180049798
lea rdx, str.SetupDiGetClassDevsA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetupDiEnumDeviceInterfaces
mov qword [0x18028c918], rax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetupDiGetDeviceInterfaceDetailA
mov qword [0x18028c920], rax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetupDiDestroyDeviceInfoList
mov qword [0x18028c928], rax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x230]
mov edx, 0x104
mov qword [0x18028c930], rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, str.hid.dll
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x230]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x180049788
lea rdx, str.HidD_GetHidGuid
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidD_SetFeature
mov qword [0x18028c938], rax
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidD_GetFeature
mov qword [0x18028c940], rax
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidD_GetPreparsedData
mov qword [0x18028c948], rax
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidD_GetAttributes
mov qword [0x18028c950], rax
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidD_FreePreparsedData
mov qword [0x18028c958], rax
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidP_GetCaps
mov qword [0x18028c960], rax
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18028c968], rax
mov eax, 1
jmp 0x1800497b6
lea r8, [0x180068338]
lea rdx, [0x180068350]
jmp 0x1800497a6
lea r8, [0x180068278]
lea rdx, [0x180068294]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18004fba0
add rsp, 0x450
pop rbx
ret
Function at 0x18004a390
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor r12d, r12d
mov r14, r9
mov ebp, r8d
mov r15, rdx
mov dword [rsp + 0x40], 0x104
mov ebx, r12d
mov edi, r12d
nop word [rax + rax]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov edx, edi
mov rcx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test eax, eax
jne 0x18004a43b
lea r8d, [rax + 0x15]
lea rdx, [rsp + 0x54]
lea rcx, str.HIDVid_3689Pid_8762
mov dword [rsp + 0x40], 0xc8
call fcn.1800523b0
test eax, eax
jne 0x18004a43b
cmp ebx, ebp
je 0x18004a46f
inc ebx
inc edi
test esi, esi
je 0x18004a3e0
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18004fba0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, [0x180068378]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x54]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x18004a443
Function at 0x18004b910
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0xe0
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rcx
test rcx, rcx
jne 0x18004b93a
xor eax, eax
jmp 0x18004b9c9
mov qword [rsp + 0xf8], rbx
movsxd rbx, dword [rcx + 0x3c]
mov edx, 0x108
add rbx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x18004baa8
cmp dword [rbx], 0x4550
jne 0x18004baa8
mov ebx, dword [rbx + 0x50]
mov qword [rsp + 0xc8], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [0x18028ca10]
mov r14, rax
lea rax, [rsp + 0x30]
mov r9d, 0x40
mov r8d, ebx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18004b9b7
movsxd rax, dword [rdi + 0x3c]
mov ebx, dword [rax + rdi + 0x88]
test rbx, rbx
jne 0x18004b9e2
xor eax, eax
mov r14, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18004fba0
add rsp, 0xe0
pop rdi
ret
mov qword [rsp + 0x100], rbp
mov ebp, dword [rbx + rdi + 0x1c]
xor edx, edx
mov qword [rsp + 0xd8], rsi
lea rcx, [rsp + 0x4c]
lea r8d, [rdx + 0x58]
mov qword [rsp + 0xd0], r12
add rbp, rdi
mov dword [rsp + 0x40], 0x3333b848
mov qword [rsp + 0xc0], r15
mov dword [rsp + 0x44], 0x11113333
mov dword [rsp + 0x48], 0xe0ff1111
call fcn.180050a30
xor r15d, r15d
lea r12, [0x18028ca40]
mov esi, r15d
nop
mov eax, esi
lea r8, [rsp + 0x40]
mov r9d, 0xc
mov edx, dword [rbp + rax*4]
mov rax, qword [r12 + rax*8]
mov rcx, r14
add rdx, rdi
mov qword [0x18028ca08], rax
mov qword [rsp + 0x42], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rbx + rdi + 0x14]
dec eax
inc esi
cmp esi, eax
jbe 0x18004ba40
mov r15, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0x100]
mov eax, 1
jmp 0x18004b9b9
xor eax, eax
jmp 0x18004b9c1

Function at 0x18004bab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov qword [0x18028c900], rcx
movsxd rax, dword [rcx + 0x3c]
mov r15, r8
mov edi, dword [rax + rcx + 0x88]
mov r14, rdx
mov rsi, rcx
test rdi, rdi
jne 0x18004baef
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
add rdi, rcx
mov qword [rsp + 0x48], rbp
mov ebp, dword [rdi + 0x1c]
add rbp, rcx
cmp dword [rdi + 0x14], 1
jae 0x18004bb07
xor eax, eax
jmp 0x18004bb6a
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], r12
lea r12, [0x18028ca40]
xor ebx, ebx
nop word [rax + rax]
cmp byte [r14 + 7], 1
jne 0x18004bb37
mov edx, dword [rdi + 0x10]
mov rcx, r15
add edx, ebx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x18004bb3e
mov eax, dword [rbp + rbx*4]
add rax, rsi
mov qword [r12 + rbx*8], rax
mov qword [0x18029ac20], rax
mov qword [0x18028ca08], rax
mov eax, dword [rdi + 0x14]
inc ebx
dec eax
cmp ebx, eax
jbe 0x18004bb20
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret