joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1414f3dce
Capabilities:
Hash data using murmur3

Disassembly:
inc rsi
ror ecx, 1
xchg rdx, rax
xor ecx, 0xf00a482a
xor r11b, r11b
jae 0x1414f29aa
xor esi, 0xc92c5fa4
bswap r11d
lea esi, [rsi + rcx - 0x64500a80]
movsx ebp, dl
push r11
mov qword [rsp + rcx*2 - 0x2773fff8], rbx
call fcn.1414d5110
mov ebx, 0xf1167781
mov ebp, dword [r8 - 4]
movsx eax, bx
lea rsi, [rbx + rax*8 + 0x3b00813e]
xor ebp, r11d
not ebp
push rbx
lea ebp, [rbp + rbx - 0x4e0b66fb]
rol ebp, 1
bswap ebp
movsx ecx, al
mov qword [rsp + rax*2 - 0xef02], r11
movzx r11d, bl
xor dword [rsp + rax - 0x7781], ebp
jmp 0x1414de76a
mov ecx, dword [r9 + rdx*2 - 0xcf0a]
xor sil, 0x9b
xor si, 0xc1b9
xor ecx, ebx
movsx ebp, si
neg ecx
xor al, 0x20
xadd sil, bpl
rol ecx, 1
neg ecx
lea r8, [rsi + rbp*2 + 0x3ebb05a8]
xor bp, r11w
bswap ecx
lea ecx, [rcx + rdx + 0x43360ea3]
jno 0x141463191
add byte [rax], al
add byte [rax], al
movsd dword [rdi], dword [rsi]
sbb edi, dword [rcx]
invalid
pop r11
ror esi, cl
mov edx, ebx
mov dword [rdi + rax*4 - 0x1de08], ebp
shl rbx, 0xb9
lea r9, [rsi*8 - 0x41f48dc2]
mov rdx, qword [r8 + rax*2 - 0xef0e]
dec bl
js 0x14150cd74
call fcn.14150082a
lea ecx, [rcx + rax*4 + 0x1680e92b]
jne 0x1414ab40e
push rbp
sub dword [rsp + rax - 0x6785], 0x552b382d
mov qword [rsp + rax*2 - 0xcf0a], rbx
rol ebp, 0x78
rol r11b, 0xe7
xor dword [rsp + rax*2 - 0xcf0a], ecx
pop rbx
add r8, rax
xor eax, r8d
movsxd rcx, ecx
adc rdi, rcx
shl r11w, 0x4e
and sil, 0xa4
call fcn.14149e74c
inc r8
xor r11d, 0x21aa1729
dec rdx
lea rsp, [rsp + 0x10]
jne 0x141507b21
mov r9d, 0x802544bb
mov edx, 0x4635cf32
pop rdi
shl r9w, 0xed
pop r9
mov eax, 0x67156785
movsx edx, ax
not r11d
movsx esi, dl
movzx ecx, dl
sub si, cx
mov dword [r10 + rax - 0x67156785], r11d
lea r9, [r9 + rdx*4 - 0x19e18]
mov r11d, eax
jp 0x1414d9c67
mov esi, dword [r9 + rcx - 0x13ba0000]
movzx r11d, cl
dec r11
lea rax, [rcx*2 + 0x3d069c8b]
xor esi, ebx
movsx edx, ax
jmp 0x1414fecfb
lea r11, [rdx + rdx + 0x15a1c119]
dec esi
xor esi, 0xd6b8a99c
shl dl, 0x84
rol dx, 0x28
lea esi, [rcx + rsi - 0x1053753]
push rax
xor word [rsp + rax - 0x647a9c87], 0x5c9e
jge 0x141480988
and cl, bl
xor rdx, r11
rol eax, 0x9b
jae 0x1414ecd9d
mov esi, 0x8ea806ae
mov ebp, esi
xor r11d, ebx
not si
not r11d
or rsi, rsi
dec r11d
movsx ecx, bpl
movsx r8d, bpl
shl cx, 1
ror r11d, 2
jmp 0x1414ba9c6

Function at 0x1414f4bf8
Capabilities:
Hash data using murmur3

Disassembly:
neg ecx
inc rsi
rol bp, 0x2a
call fcn.1414eb8e1
Function at 0x1414f79f9
Capabilities:
Hash data using murmur3

Disassembly:
xor dword [rsp + rax - 0xb8], edx
mov qword [rsp + rax - 0xc0], rbx
shl word [rsp + rax - 0xbd], 0xcb
jne 0x14151048a
mov r11, qword [rsp + rax*2 - 0x178]
bswap eax
setnp r9b
movsxd rdx, edx
mov qword [rsp + rbp + 8], 0x18a8fb20
adc r10, rdx
sub bx, word [rsp + rbp]
adc ebx, ebp
lea r8, [r8 + rbp - 4]
seto bpl
not bx
mov ebx, dword [r8 + rbp]
xor ebx, r11d
bswap r9d
or r9w, 0x9982
xor ebx, ecx
sub ax, 0x4db3
lea ebx, [rax + rbx - 0x1cf5a1c7]
add r9w, r9w
rol ebx, 1
xadd byte [rsp + rbp + 0xa], al
bswap ebx
mov qword [rsp + rbp + 8], r11
sub r9d, dword [rsp + rsi - 0x5c008cb1]
jge 0x141516903
mov qword [rsp + rbp*4 - 0x18c00], r11
movsx ecx, ax
mov qword [rsp + rbx - 0x59bec8b9], rbp
and ecx, 0xbe0a4c9b
xor dword [rsp + rbp - 0x62ee], r9d
sal word [rsp + rbx - 0x59bec8ad], 0x86
sbb word [rsp + rbp*4 - 0x18c0f], ax
movsx r11d, ax
mov r11, qword [rsp + rbx - 0x59bec8a9]
movsxd r9, r9d
call fcn.1414fc8ff
xor dword [rsp + rbp*2 + 8], ebx
mov r11, qword [rsp + rbp + 8]
inc rcx
inc byte [rsp + rbp*2 + 7]
sal bpl, 0x86
lea rdi, [rdi + r9 - 0x327c]
movsx edx, r9w
dec esi
mov dword [rdi + r9*4 - 0xc9e0], ebx
pop rdx
pop rax
ja fcn.1415024e5
add sil, 0x2a
sal byte [rsp + rcx*2 + 0x39], 0xc4
ror sil, 1
neg sil
inc sil
xadd qword [rsp + rcx + 0xc], rcx
xor r11b, sil
lea rsi, [rsp + rsi + 0x40]
or r9, rbp
lea rcx, [r9 + r9*8 + 0x6925198e]
inc dword [rsp + rcx - 0x692add4c]
mov rax, qword [rcx + rsi - 0x692add85]
movsx ebx, cx
lea rdi, [rdi + rbp - 0xd7]
sar rdx, 0xa4
mov qword [rcx + rdi - 0x692add85], rax
sbb word [rsp + rcx - 0x692add61], cx
pop rbp
pop rdx
pop rcx
pop r9
pop rdx
pop rbx
pop rax
pop rsi
jg fcn.1415024e5
sub r9, 2
movzx ecx, word [r9]
mov r11d, 0x541ebd31
call fcn.141519ed7
call fcn.1414bfe30
sub r9, 4
call fcn.1414bfc7e
push rbx
not si
xor dword [rsp + r11*2 - 0xdeb0], edx
pop rbx
lea r8, [rsi*8 - 0x11f3ffdc]
movsxd rdx, edx
rol r11b, 0xe6
adc rdi, rdx
jmp 0x1414f8112
Function at 0x1414f9332
Capabilities:
Encode data using base64

Disassembly:
mov r9d, dword [rdi + r8]
movzx eax, r11b
adc r11w, r8w
xor r9d, ebx
push r8
lea r9d, [r9 + r8 - 0x2b9b4dbb]
call fcn.141505696
xor eax, ebx
sub r11w, 0x4907
rol r8, cl
neg eax
and r11b, 0xa5
not eax
bswap eax
push rbp
lea eax, [rcx + rax - 0x692e31b4]
movsx edx, cl
rol eax, 1
lea rsi, [r8*2 - 0x2260aed9]
sub r11b, 0x94
xadd si, bp
mov qword [rsp + rcx - 0x33025894], rbx
sub dl, r11b
jne 0x1414f7e1e
add ebp, 0x451a5e1a
xor dword [rsp + rcx*2 - 0x6604b130], eax
shl r8w, 0x8e
rol bp, 0xa9
shr rdx, cl
mov rbx, qword [rsp + rcx - 0x33025894]
mov qword [rsp + rbp - 0x45198356], rbp
call fcn.14149fc75
mov word [r10 + rbp*2], r11w
mov qword [rsp + rcx - 0x4a00040], r8
pop rax
pop rbp
jae fcn.141485a3f
mov dword [rcx + r10 - 0x3302589c], edx
neg dword [rsp + rcx*2 - 0x6604b134]
inc bpl
movsx r8d, cx
mov dword [r8 + r10 - 0x5898], eax
lea r9, [rcx + r9 - 0x330258a0]
mov eax, dword [r8 + r9 - 0x589c]
jne 0x1414b82b9
mov eax, 0xfe10d619
mov esi, eax
mov rax, qword [rbp + riz]
xor sil, sil
movsx r8d, sil
mov si, word [rbp + r8 + 8]
lea rbp, [r8 + rbp + 0xa]
mov r11d, r8d
lea r9, [r8 + r8 + 0x61081ebf]
mov word [rax + r8*8], si
lea rdi, [r8 + rdi - 4]
jae 0x1414817ba
mov ebx, 0x44ab4a2c
xor ecx, 0xf60dd680
inc bx
lea rax, [rbx + rbx*4 - 0x697b98f1]
lea rsi, [rbx + rax*8 - 0x54ea4650]
not ecx
movsx edx, si
sub ecx, 0x888f0203
or rax, rax
dec dl
xor ecx, 0xdba0e2b2
not eax
push r11
mov r9d, ebx
shr r9w, 0x41
xor dword [rsp + rax - 0x1223260f], ecx
movsx ebp, bl
sar ebx, 0x78
ror rbx, 0x78
pop r11
add rsi, rbx
sal rbx, 0xe6
movsxd rcx, ecx
adc r10, rcx
sar dx, 0x28
jmp r10

Function at 0x1414fae22
Capabilities:
Encode data using xor

Disassembly:
call fcn.140d9f965
scasb al, byte [rdi]
push 0xffffffffffffffe8
pop rcx
and r12, rax
sbb cl, byte [rdx + 0x1d]
mov eax, 0xf4fb62e2
add byte gs:[0x1312b4fe7], dh
invalid
lea rsp, [rsp + 0x10]
jmp 0x140e1dbd9

Function at 0x1414fbbd0
Capabilities:
Hash data using murmur3

Disassembly:
pop r8
lea ebp, [rbp + r11 + 0x400b8c93]
sar dl, 0x64
push rsi
shl dword [rsp + rsi - 0x7d97a77e], cl
bswap ebp
not ebp
adc word [rsp + r11*2 - 0x103], 0xb2b1
movzx r8d, byte [rsp + r11*2 - 0x103]
or cl, r8b
inc ebp
lea rcx, [rcx*4 + 0x3205d3a6]
and dl, sil
mov qword [rsp + rsi - 0x7d97a782], rbx
jge 0x1414a04d2
Function at 0x1415102c7
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [rdi + rsi - 0x603b4031]
lea rdi, [rsi + rdi - 0x603b4031]
xchg esi, ebp
movzx eax, si
shl dx, cl
mov ecx, esi
neg rax
mov ebx, 0xd321619b
mov word [rdi + rsi*2 - 0x8066], dx
lea r8, [r8 + rsi*2 - 0x806a]
sbb rsi, rbx
mov r9d, eax
mov esi, dword [r8 + rax*2 + 0x8066]
setae bpl
xor esi, r11d
sar bl, 0x25
jbe 0x1414f3e75
mov esi, dword [rdi + r8*2 - 0xea374a]
xor esi, ebx
movsx ecx, r8w
xadd qword [rsp + r8 - 0x751b8d], rax
lea esi, [rsi + r8*4 + 0x61664501]
mov qword [rsp + r8 - 0x751b9d], rax
lea rdx, [r8*4 + 0x791db931]
adc word [rsp + r8*4 - 0x1d46e7c], ax
xor esi, 0xbc29ef93
pop rcx
add rcx, 0x77c1
jmp rcx
mov dword [rcx + r10 - 0x900], esi
lea rsi, [r11 + r11*4 - 0x14d68c53]
pop rbp
pop rcx
jle fcn.141485a3f
mov dx, word [rdi + rbp*2 - 0x8066]
jmp 0x14146aa1d
sub cl, r11b
mov rbx, qword [rsp + rcx - 0x8f0]
pop rax
mov qword [rsp + rcx*8 - 0x47f8], 0x3ac9ca1
movsxd rbp, ebp
mov qword [rsp + rcx - 0x900], r11
adc rdi, rbp
add si, 0x9e1f
mov rsi, r10
mov ebp, 0xeafb691
lea r10, [rcx + r10 - 0x904]
jne 0x14151eab5
jnp 0x14148feb1
xor esi, 0x1d9fbe86
movsx r11d, dx
inc rcx
rol esi, 2
push rbx
xor dword [rsp + rcx*2 - 0x16474], esi
pop rbx
movsxd rsi, esi
shr cx, 0x2c
js 0x141487915
jnp 0x1414f04ce

Function at 0x1415157ca
Capabilities:
Hash data using murmur3

Disassembly:
rol r9d, 1
add r9d, 0x895ed19
not r9d
mov qword [rsp], r11
xor dword [rsp], r9d
and bx, 0x58a0
xadd ebx, esi
pop r11
inc ebx
movsx ebp, cx
inc sil
movsxd r9, r9d
xor ebp, 0x9812f808
xor bl, bpl
adc r10, r9
and rbx, 0xffffffff8db8aabf
xadd bl, sil
jp 0x141480543
sub rdi, 4
call fcn.1414aceec

Function at 0x14151581d
Capabilities:
Hash data using murmur3

Disassembly:
dec esi
call fcn.1414f2587
mov rbx, qword [rsp + rdx - 0x229717f8]
movsx esi, bpl
mov qword [rsp + rdx - 0x229717f8], r11
pop rbp
movsxd r8, r8d
or byte [rsp + rdx - 0x229717fe], sil
lea rbp, [rdx + r11 - 0x4f7995cc]
adc rdi, r8
lea r9, [rdx + r9 - 0x22971801]
xor r11, rdx
not rsi
and dx, word [rsp + rdx - 0x22971800]
movzx ecx, byte [r9 + rdx - 0x22970000]
movzx r8d, byte [rsp + r11 - 0x21d817ff]
xor cl, bl
sar r11, 0xa7
pop rdx
sub r11d, r8d
sbb cl, 0x3d
dec r11d
rol cl, 1
neg cl
inc cl
push rsi
sal dword [rsp + rdx*4 - 0xffbfffd], 0x44
dec ax
xor cl, 0x15
sub si, word [rsp + rdx - 0x3fefffe]
sbb rdx, rdx
xor bl, cl
neg word [rsp + rdx*2 + 6]
inc r8w
neg bp
lea rcx, [rsp + rcx + 8]
rol al, 0xc7
add sil, al
rol rsi, 0x2b
mov r8w, word [rcx + rdx*4]
jne 0x1414e7e48
not cx
ror r11d, 0x7b
call fcn.1414a82e2
Function at 0x140003890
Capabilities:
Delete service
Query service status

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14007ca30]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14000392a
lea rdx, str.ApHidMonitorService
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x80], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140003919
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140003910
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140020640
add rsp, 0x70
pop rbx
ret
Function at 0x140006290
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14007ca30]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea r9, [rsp + 0x38]
mov ebx, eax
lea rax, [rsp + 0x40]
lea r8d, [rdi + 8]
mov edx, ebx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
lea r9, [rsp + 0x30]
lea r8d, [rdi + 5]
mov esi, eax
lea rax, [rsp + 0x40]
mov edx, ebx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x140006333
mov rcx, qword [rsp + 0x30]
test esi, esi
je 0x14000632d
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140006310
test rax, rax
je 0x14000632d
mov rdx, qword [rsp + 0x38]
mov eax, 1
cmp dword [rdx], edi
cmove edi, eax
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
je 0x140006342
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140020640
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140007cd0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14007ca30]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
lea rcx, str.setupapi
xor dil, dil
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140007eb4
lea rdx, str.SetupUninstallOEMInfA
mov rcx, rax
mov qword [rsp + 0x3e8], rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetupGetLineTextA
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rsi, rsi
je 0x140007ea1
test rax, rax
je 0x140007ea1
xor ecx, ecx
mov edx, 0x104
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x1a0]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140007ea1
mov ecx, 0x104
lea rax, [rsp + 0x1a0]
cmp byte [rax], 0
je 0x140007d95
inc rax
dec rcx
jne 0x140007d86
jmp 0x140007dfa
test rcx, rcx
je 0x140007dfa
mov edx, 0x104
lea rax, [rsp + 0x1a0]
sub rdx, rcx
mov ecx, 0x104
lea rax, [rax + rdx]
sub rcx, rdx
je 0x140007df4
add rdx, 0x7ffffefa
lea r9, str.inf
add rdx, rcx
sub r9, rax
nop dword [rax]
test rdx, rdx
je 0x140007def
movzx r8d, byte [r9 + rax]
test r8b, r8b
je 0x140007def
mov byte [rax], r8b
inc rax
dec rdx
dec rcx
jne 0x140007dd0
jmp 0x140007df4
test rcx, rcx
jne 0x140007df7
dec rax
mov byte [rax], 0
lea r9, [rsp + 0x1a0]
lea r8, str._soem.inf
lea rcx, [rsp + 0x2b0]
mov edx, 0x104
call fcn.140001ac0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140007e92
mov qword [rsp + 0x3e0], rbp
mov ebp, 1
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x20]
call fcn.14000aad0
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.140007ee0
lea rdx, [rsp + 0x60]
movzx edi, dil
test al, al
mov rcx, rsi
cmovne edi, ebp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140007e50
mov rbp, qword [rsp + 0x3e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, dil
jmp 0x140007eac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov rsi, qword [rsp + 0x3e8]
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140020640
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
Function at 0x140015890
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push r14
sub rsp, 0x2a8
mov rax, qword [0x14007ca30]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, [rsp + 0x82]
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x60], 0x104
mov word [rsp + 0x80], r14w
call fcn.14002ef40
lea rcx, [0x1400607a8]
mov edx, 0x10000000
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov rbp, rax
test rax, rax
je 0x140015ab5
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x2c8], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x2d0], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x2a0], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140015a8a
mov ebx, r14d
cmp dword [rsp + 0x70], ebx
jbe 0x140015a8a
or r15, 0xffffffffffffffff
nop dword [rax + rax]
lea r8, [rsp + 0x80]
mov r9d, 0x104
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140015a7e
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015a7e
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, str.DriverDesc
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400159f8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140015a7e
mov edi, dword [rsp + 0x60]
mov eax, 2
mul rdi
cmovo rax, r15
mov rcx, rax
call fcn.1400227d0
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.14002ef40
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.DriverDesc
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
test edi, edi
je 0x140015a63
call fcn.1400218a0
jmp 0x140015a7e
lea rdx, str.AlpsAlpine_PTP_Filter
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
mov rcx, rsi
mov edi, eax
call fcn.1400218a0
test edi, edi
je 0x140015ad0
inc ebx
cmp ebx, dword [rsp + 0x70]
jb 0x140015970
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2c0]
mov r15, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140020640
add rsp, 0x2a8
pop r14
pop rbp
ret
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140015a95
Function at 0x401736
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x401796
mov eax, 1
jmp 0x401801
lea r8, [rbp - 0x10]
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov dword [rbp - 0xc], eax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
cmp dword [rbp - 0xc], 0
jne 0x4017ec
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x401801
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x401c30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00402a90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402a90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x401ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004070b4]
test esi, esi
mov rbx, rcx
jle 0x401dd0
mov rax, qword [0x004070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x401ceb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x401d75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401cd0
mov rcx, rbx
call fcn.00402720
test rax, rax
mov rdi, rax
je 0x401df2
mov rax, qword [0x004070b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.00402860
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401dd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401d6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x401d80
add dword [0x004070b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004070b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401c30
nop dword [rax]
xor esi, esi
jmp 0x401cf8
mov rax, qword [0x004070b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.00401c30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00401c30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x402390
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00407120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407100]
test rbx, rbx
je 0x4023ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x4023e3
test eax, eax
jne 0x4023e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4023c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402720
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402740
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402748
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402740
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x40279d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402794
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402740
add rax, 0x28
cmp rax, r9
jne 0x402780
xor eax, eax
ret

Function at 0x4027a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004043d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x4027bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4027c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x4027bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x402860
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004043d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x40287f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x402888
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret