joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413660
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x240
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x250], rcx
nop
lea rcx, [rbp + 0x36]
mov edx, 0x104
call sub.kernel32.dll_GetWindowsDirectoryW
lea rcx, [rbp + 0x20]
lea rdx, [rbp + 0x36]
call fcn.004134c0
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
call fcn.00413590
mov rcx, qword [rbp + 0x250]
mov rdx, qword [rbp + 0x28]
lea r8, [0x0041371c]
call fcn.0040b880
nop
lea rcx, [rbp + 0x20]
mov edx, 2
call fcn.0040a590
mov rax, qword [rbp + 0x250]
lea rsp, [rbp + 0x240]
pop rbp
ret

Function at 0x4139f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x70], r8
mov qword [rbp + 0x78], r9
mov rcx, qword [rbp + 0x70]
call fcn.0040a640
mov rcx, qword [rbp + 0x78]
call fcn.0040a640
mov rcx, qword [rbp + 0x80]
call fcn.0040a640
nop
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x80]
call fcn.0040aa10
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, qword [rbp + 0x68]
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x413af7
mov rcx, qword [rbp + 0x78]
call fcn.0040b4d0
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x34]
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x413aee
mov rcx, qword [rbp + 0x60]
mov edx, dword [rbp + 0x30]
call fcn.0040b6d0
mov rcx, qword [rbp + 0x78]
call fcn.0040b4d0
mov rbx, rax
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax]
call fcn.0040b4d0
mov rcx, qword [rbp + 0x38]
mov rdx, rbx
xor r8, r8
lea r9, [rbp + 0x34]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
mov rcx, qword [rbp + 0x60]
mov edx, dword [rbp + 0x30]
sub edx, 1
call fcn.0040b6d0
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_RegCloseKey
nop
lea rcx, [rbp + 0x70]
mov edx, 3
call fcn.0040a590
mov rax, qword [rbp + 0x60]
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret

Function at 0x414110
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push rbp
sub rsp, 0x10
mov rbp, rsp
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov dword [rbp + 0x38], r9d
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0xc], eax
xor eax, eax
mov ecx, dword [rbp + 0x38]
sub ecx, 1
mov dword [rbp + 8], eax
cmp dword [rbp + 8], ecx
jg 0x414185
sub ecx, eax
add ecx, 1
mov eax, dword [rbp + 0xc]
shr eax, 8
and eax, 0xffffff
lea rdx, [0x004297c0]
mov r8, qword [rbp + 0x28]
movsxd r9, dword [rbp + 8]
movzx r8, byte [r8 + r9]
mov r9d, dword [rbp + 0xc]
xor r9d, r8d
and r9d, 0xff
movsxd r9, r9d
xor eax, dword [rdx + r9*4]
mov dword [rbp + 0xc], eax
add dword [rbp + 8], 1
sub ecx, 1
test ecx, ecx
jne 0x414142
nop
mov eax, dword [rbp + 0xc]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x414190
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x70]
call fcn.0040a640
nop
mov dword [rbp + 0x5c], 0xffffffff
movsxd rcx, dword [0x004297bc]
call fcn.00404d90
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0xffffffffffffffff
je 0x414262
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x50]
mov r8d, dword [0x004297bc]
lea r9, [rbp + 0x4c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
mov ecx, dword [rbp + 0x5c]
mov rdx, qword [rbp + 0x50]
mov r8d, 0x100000
mov r9d, dword [rbp + 0x4c]
call fcn.00414110
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x4c]
movsxd rcx, dword [0x004297bc]
cmp rax, rcx
je 0x414202
mov rcx, qword [rbp + 0x40]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp + 0x50]
call fcn.00404dc0
not dword [rbp + 0x5c]
nop
lea rcx, [rbp + 0x70]
call fcn.0040a4b0
mov eax, dword [rbp + 0x5c]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x415240
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov rcx, qword [rbp + 0x48]
call sub.user32.dll_GetWindowTextLengthW
mov rcx, qword [rbp + 0x40]
mov edx, eax
add edx, 1
call fcn.0040b3f0
mov dword [rbp + 0x2c], 0
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
je 0x415288
mov rax, qword [rbp + 0x40]
mov rax, qword [rax]
mov eax, dword [rax - 4]
shr eax, 1
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax]
call fcn.0040b280
mov rcx, qword [rbp + 0x48]
mov rdx, rax
mov r8d, dword [rbp + 0x2c]
call sub.user32.dll_GetWindowTextW
mov dword [rbp + 0x28], 0
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
je 0x4152c5
mov rax, qword [rbp + 0x40]
mov rax, qword [rax]
mov eax, dword [rax - 4]
shr eax, 1
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 0x40]
mov edx, dword [rbp + 0x28]
sub edx, 1
call fcn.0040b3f0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x4164e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x50], rcx
mov dword [rbp + 0x58], edx
mov dword [rbp + 0x60], r8d
nop
mov rcx, qword [rbp + 0x50]
call fcn.0040a4b0
cmp dword [rbp + 0x58], 0
je 0x41656d
mov ecx, 0x10
mov eax, dword [rbp + 0x58]
xor edx, edx
div ecx
mov rax, rdx
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
lea rdx, [rbp + 0x28]
lea r8, [0x00429e28]
sub eax, ecx
movsxd rax, eax
movzx rax, word [r8 + rax*2]
mov rcx, rdx
mov edx, eax
call fcn.0040b520
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov ecx, 0x10
mov eax, dword [rbp + 0x58]
xor edx, edx
div ecx
mov dword [rbp + 0x58], eax
cmp dword [rbp + 0x58], 0
jne 0x41650b
nop
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
jne 0x4165a7
jmp 0x416591
mov rcx, qword [rbp + 0x50]
lea rdx, [0x00416684]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax]
call fcn.0040abe0
cmp eax, dword [rbp + 0x60]
jl 0x41657a
jmp 0x41664b
mov dword [rbp + 0x3c], 0
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
je 0x4165c5
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
mov eax, dword [rax - 4]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
movsxd rcx, dword [rbp + 0x3c]
cmp word [rax + rcx*2 - 2], 0x2d
jne 0x416639
mov dword [rbp + 0x38], 0
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
je 0x4165f6
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
mov eax, dword [rax - 4]
mov dword [rbp + 0x38], eax
mov rcx, qword [rbp + 0x50]
mov edx, dword [rbp + 0x38]
mov r8d, 1
call fcn.0040bb00
lea rcx, [0x00416694]
mov rdx, qword [rbp + 0x50]
mov r8d, 1
call fcn.0040bb80
jmp 0x416639
mov rcx, qword [rbp + 0x50]
lea rdx, [0x00416684]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax]
call fcn.0040abe0
cmp eax, dword [rbp + 0x60]
jl 0x416622
nop
lea rcx, [rbp + 0x28]
call fcn.0040a4b0
mov rax, qword [rbp + 0x50]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x4166a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rdx
nop
mov rcx, qword [rbp + 0x100]
call fcn.0040a500
mov dword [rbp + 0x54], 0x10
lea rcx, [rbp + 0xdc]
xor edx, edx
xor r8, r8
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000020
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x416823
mov ecx, dword [rbp + 0xdc]
mov edx, 0x8003
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x416816
mov dword [rbp + 0x48], 0
cmp qword [rbp + 0x108], 0
je 0x41674f
mov rax, qword [rbp + 0x108]
mov eax, dword [rax - 4]
mov dword [rbp + 0x48], eax
mov rcx, qword [rbp + 0x108]
call fcn.0040b130
mov ecx, dword [rbp + 0xd8]
mov rdx, rax
mov r8d, dword [rbp + 0x48]
xor r9, r9
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x41680b
mov ecx, dword [rbp + 0xd8]
mov edx, 2
lea r8, [rbp + 0x58]
lea r9, [rbp + 0x54]
mov dword [rsp + 0x20], 0
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x41680b
xor eax, eax
mov ebx, dword [rbp + 0x54]
sub ebx, 1
mov dword [rbp + 0x50], eax
cmp dword [rbp + 0x50], ebx
jg 0x41680a
sub ebx, eax
add ebx, 1
lea rcx, [rbp + 0x38]
mov rax, qword [rbp + 0x100]
mov rdx, qword [rax]
call fcn.0040b620
lea rcx, [rbp + 0x30]
movsxd rax, dword [rbp + 0x50]
movzx rdx, byte [rax + rbp + 0x58]
mov r8d, 2
call fcn.004164e0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.0040b7b0
mov rcx, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.0040b220
add dword [rbp + 0x50], 1
sub ebx, 1
test ebx, ebx
jne 0x4167b2
nop
mov ecx, dword [rbp + 0xd8]
call sub.advapi32.dll_CryptDestroyHash
mov ecx, dword [rbp + 0xdc]
xor edx, edx
call sub.advapi32.dll_CryptReleaseContext
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040a590
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rbx
pop rbp
ret
Function at 0x419130
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x50], rcx
mov dword [rbp + 0x58], edx
mov dword [rbp + 0x60], r8d
nop
mov rcx, qword [rbp + 0x50]
call fcn.0040a4b0
cmp dword [rbp + 0x58], 0
je 0x4191bd
mov ecx, 0x10
mov eax, dword [rbp + 0x58]
xor edx, edx
div ecx
mov rax, rdx
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
lea rdx, [rbp + 0x28]
lea r8, str.0123456789ABCDEF
sub eax, ecx
movsxd rax, eax
movzx rax, word [r8 + rax*2]
mov rcx, rdx
mov edx, eax
call fcn.0040b520
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov ecx, 0x10
mov eax, dword [rbp + 0x58]
xor edx, edx
div ecx
mov dword [rbp + 0x58], eax
cmp dword [rbp + 0x58], 0
jne 0x41915b
nop
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
jne 0x4191f7
jmp 0x4191e1
mov rcx, qword [rbp + 0x50]
lea rdx, [0x004192d4]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax]
call fcn.0040abe0
cmp eax, dword [rbp + 0x60]
jl 0x4191ca
jmp 0x41929b
mov dword [rbp + 0x3c], 0
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
je 0x419215
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
mov eax, dword [rax - 4]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
movsxd rcx, dword [rbp + 0x3c]
cmp word [rax + rcx*2 - 2], 0x2d
jne 0x419289
mov dword [rbp + 0x38], 0
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
je 0x419246
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
mov eax, dword [rax - 4]
mov dword [rbp + 0x38], eax
mov rcx, qword [rbp + 0x50]
mov edx, dword [rbp + 0x38]
mov r8d, 1
call fcn.0040bb00
lea rcx, [0x004192e4]
mov rdx, qword [rbp + 0x50]
mov r8d, 1
call fcn.0040bb80
jmp 0x419289
mov rcx, qword [rbp + 0x50]
lea rdx, [0x004192d4]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax]
call fcn.0040abe0
cmp eax, dword [rbp + 0x60]
jl 0x419272
nop
lea rcx, [rbp + 0x28]
call fcn.0040a4b0
mov rax, qword [rbp + 0x50]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x419e10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xc8]
call fcn.0040aa90
mov rcx, qword [rbp + 0x78]
call fcn.00419030
mov byte [rbp + 0x83], al
cmp byte [rbp + 0x83], 0
jne 0x419e85
lea rcx, [rbp + 0x78]
mov edx, 1
mov r8d, 1
call fcn.0040bb00
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.0041b220
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x419fd8
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x90]
call fcn.00419830
mov rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x54]
call fcn.0041a170
test al, al
je 0x419fb8
lea rcx, [rbp + 0x70]
xor edx, edx
mov r8d, dword [rbp + 0x58]
add r8d, 1
call fcn.0040a770
mov eax, dword [rbp + 0x54]
sub eax, 1
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jl 0x419fb7
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x88], eax
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x84]
mov r8, rax
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004196b0
test al, al
je 0x419fa3
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040b570
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x40]
call fcn.00419e10
sub dword [rbp + 0x84], 1
cmp dword [rbp + 0x84], 0xffffffff
jne 0x419f17
nop
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
call fcn.00419830
mov rcx, qword [rbp + 0x90]
call sub.advapi32.dll_RegCloseKey
cmp byte [0x00431354], 0
je 0x41a037
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.004197e0
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040b4d0
mov rcx, rbx
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov r8d, dword [rax + 0x2c]
and r8d, 0x300
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004196b0
mov byte [rbp + 0x8f], al
jmp 0x41a076
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.004197e0
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040b4d0
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004196b0
mov byte [rbp + 0x8f], al
nop
lea rcx, [rbp + 0x40]
call fcn.0040a4b0
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.0040a590
movzx rax, byte [rbp + 0x8f]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret
Function at 0x41b9d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
nop
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x50]
mov rax, qword [rax + 8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0xb8]
call fcn.00419830
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
lea rdx, [rbp + 0x64]
call fcn.0041a170
test al, al
je 0x41bb50
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
xor r9, r9
call fcn.0041b850
lea rcx, [rbp + 0x58]
xor edx, edx
mov r8d, dword [rbp + 0x70]
add r8d, 1
call fcn.0040a770
xor eax, eax
mov ebx, dword [rbp + 0x6c]
sub ebx, 1
mov dword [rbp + 0x80], eax
cmp dword [rbp + 0x80], ebx
jg 0x41bb4f
sub ebx, eax
add ebx, 1
mov eax, dword [rbp + 0x70]
add eax, 1
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x58]
call fcn.0040b4d0
mov rcx, qword [rbp + 0xb8]
mov edx, dword [rbp + 0x80]
mov r8, rax
lea r9, [rbp + 0x84]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumValueW
mov rcx, qword [rbp + 0xb0]
mov rcx, qword [rcx + 0x50]
mov edx, eax
call fcn.004196b0
test al, al
je 0x41bb3d
mov rcx, qword [rbp + 0x58]
call fcn.0040b4d0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040b570
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
mov r9, qword [rbp + 0x40]
call fcn.0041b850
add dword [rbp + 0x80], 1
sub ebx, 1
test ebx, ebx
jne 0x41ba9f
nop
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0x88]
call fcn.00419830
nop
lea rcx, [rbp + 0x40]
call fcn.0040a4b0
lea rcx, [rbp + 0x58]
call fcn.0040a4b0
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x41c0f0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov byte [rbp + 0x80], r8b
mov byte [rbp + 0x5f], 0
mov rcx, qword [rbp + 0x78]
mov edx, 8
xor r8, r8
call fcn.00405b70
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, rax
lea rdx, [rbp + 0x3c]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x58], eax
cmp dword [rbp + 0x58], 0
jbe 0x41c24f
mov ecx, dword [rbp + 0x58]
call fcn.00404d90
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, rax
xor edx, edx
mov r8d, dword [rbp + 0x58]
mov r9, qword [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41c243
mov rcx, qword [rbp + 0x50]
lea rdx, [0x0041c25c]
lea r8, [rbp + 0x40]
lea r9, [rbp + 0x4c]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41c243
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x5f], 1
cmp byte [rbp + 0x80], 0
je 0x41c1f2
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx + 8]
shr ecx, 0x10
mov word [rax], cx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
movzx rcx, word [rcx + 8]
and cx, 0xffff
mov word [rax + 2], cx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx + 0xc]
shr ecx, 0x10
mov word [rax + 4], cx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
movzx rcx, word [rcx + 0xc]
and cx, 0xffff
mov word [rax + 6], cx
jmp 0x41c243
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
movzx rcx, word [rcx + 8]
mov word [rax], cx
mov rax, qword [rbp + 0x30]
mov eax, dword [rax + 8]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x78]
mov ecx, dword [rbp + 0x2c]
shr ecx, 0x10
mov word [rax + 2], cx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
movzx rcx, word [rcx + 0xc]
mov word [rax + 4], cx
mov rax, qword [rbp + 0x30]
mov eax, dword [rax + 0xc]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x78]
mov ecx, dword [rbp + 0x28]
shr ecx, 0x10
mov word [rax + 6], cx
mov rcx, qword [rbp + 0x50]
mov edx, dword [rbp + 0x58]
call fcn.00404dc0
movzx rax, byte [rbp + 0x5f]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x41db70
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbp, rsp
mov rbx, rdx
xor esi, esi
call fcn.0040b280
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov ecx, eax
cmp rcx, 0xffffffffffffffff
je 0x41dc4c
mov edi, eax
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer
mov rcx, rdi
lea rdx, [rbp + 0x4c]
mov r8d, 0x40
lea r9, [rbp + 0x8c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
cmp word [rbp + 0x4c], 0x5a4d
jne 0x41dc44
mov rcx, rdi
mov edx, dword [rbp + 0x88]
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x108
lea r9, [rbp + 0x8c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
cmp dword [rbx], 0x4550
jne 0x41dc44
mov sil, 1
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov eax, esi
lea rsp, [rbp + 0x98]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x41dc60
Capabilities:
Get file size

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov ebx, edx
xor esi, esi
call fcn.0040b4d0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x41dcc4
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_GetFileSize
cmp eax, ebx
jne 0x41dcbc
mov sil, 1
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov eax, esi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret

Function at 0x41dd00
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x68], 0
nop
xor eax, eax
mov byte [rbp + 0x57], al
mov rcx, qword [rbp + 0x40]
call fcn.0040b4d0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x41dde9
mov rcx, rsi
xor edx, edx
call sub.kernel32.dll_GetFileSize
mov ebx, eax
lea rcx, [rbp + 0x78]
mov edx, ebx
xor r8, r8
call fcn.0040b160
lea rcx, [rbp + 0x78]
call fcn.0040ad10
mov rcx, rsi
mov rdx, rax
mov r8d, ebx
lea r9, [rbp + 0x74]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x78]
call fcn.004166a0
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x58]
call fcn.0040b620
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x48]
call fcn.0040ba90
test eax, eax
jne 0x41dde1
mov al, 1
mov byte [rbp + 0x57], al
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x58]
call fcn.0040a500
lea rcx, [rbp + 0x68]
call fcn.0040a4b0
lea rcx, [rbp + 0x78]
call fcn.0040a500
movzx rax, byte [rbp + 0x57]
lea rsp, [rbp + 0x80]
pop rbx
pop rsi
pop rbp
ret
Function at 0x41e3b0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2a8
mov rbp, rsp
mov rbx, rdx
xor esi, esi
call fcn.0040b4d0
mov rcx, rax
mov edx, 0xc0000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov ecx, eax
cmp rcx, 0xffffffffffffffff
je 0x41e513
mov edi, eax
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer
mov rcx, rdi
lea rdx, [rbp + 0x25c]
mov r8d, 0x40
lea r9, [rbp + 0x29c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
cmp word [rbp + 0x25c], 0x5a4d
jne 0x41e50b
mov rcx, rdi
mov edx, dword [rbp + 0x298]
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer
mov rcx, rdi
lea rdx, [rbp + 0x154]
mov r8d, 0x108
lea r9, [rbp + 0x29c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
cmp dword [rbp + 0x154], 0x4550
jne 0x41e50b
mov sil, 1
movzx rax, word [rbp + 0x16c]
sub ax, 0x10b
test ax, ax
je 0x41e4b4
sub ax, 0x100
test ax, ax
jne 0x41e507
jmp 0x41e4df
mov byte [rbx + 1], 1
movzx rax, word [rbp + 0x16a]
mov ecx, eax
test cx, 0x2000
je 0x41e4ce
mov byte [rbx], 2
jmp 0x41e50b
test ax, 2
je 0x41e4da
mov byte [rbx], 1
jmp 0x41e50b
mov byte [rbx], 0
jmp 0x41e50b
mov byte [rbx + 1], 2
movzx rax, word [rbp + 0x62]
mov ecx, eax
test cx, 0x2000
je 0x41e4f6
mov byte [rbx], 2
jmp 0x41e50b
test ax, 2
je 0x41e502
mov byte [rbx], 1
jmp 0x41e50b
mov byte [rbx], 0
jmp 0x41e50b
mov byte [rbx + 1], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov eax, esi
lea rsp, [rbp + 0x2a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret