joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413f18
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
push ebx
push esi
push edi
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x2ac], 0
test byte [ebp + 8], 2
je 0x413fd6
push 0x200
push 0x42cae0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x42cae0
lea eax, [ebp - 0x2a8]
push eax
call fcn.0041d13c
add esp, 8
push 0x505370
lea eax, [ebp - 0x2a8]
push eax
call fcn.0041d138
add esp, 8
push 0x4000
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x413fa6
mov dword [ebp - 0x2ac], 1
test byte [ebp + 8], 1
jne 0x413fd6
cmp dword [ebp - 0x2ac], 1
jne 0x413fcc
mov dword [ebp - 0x98], 2
jmp 0x413fd6
mov dword [ebp - 0x98], 0
test byte [ebp + 8], 1
je 0x414217
push 0x42cce4
push 0xf003f
push 0
push 0x505380
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x41405d
cmp dword [0x42c8d0], 2
je 0x414044
push 0x2002000
call fcn.0040648e
add esp, 4
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414222
cmp dword [ebp - 0x2ac], 1
jne 0x414058
or dword [ebp - 0x98], 2
jmp 0x414217
or dword [ebp - 0x98], 1
test byte [ebp + 8], 2
je 0x4141d5
mov dword [ebp - 0xa8], 0xc
push str.version
push 0x42c890
call fcn.0041d13c
add esp, 8
mov dword [ebp - 0x94], 1
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x42c890
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x4140e2
push 0x5053b8
lea eax, [ebp - 0xa4]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 0xa4]
push eax
push 0x434110
call fcn.0041d13c
add esp, 8
push 0x5053c0
lea eax, [ebp - 0xa4]
push eax
call fcn.0041d434
add esp, 8
test eax, eax
jge 0x41412b
cmp dword [ebp - 0x2ac], 1
jne 0x414126
or dword [ebp - 0x98], 2
jmp 0x4141d5
push 0x5053c8
lea eax, [ebp - 0xa4]
push eax
call fcn.0041d434
add esp, 8
test eax, eax
jg 0x414153
or dword [ebp - 0x98], 2
jmp 0x4141d5
or dword [ebp - 0x98], 1
push 0x5053d0
push 0x42c890
call fcn.0041d13c
add esp, 8
mov dword [ebp - 0x94], 4
mov dword [ebp - 0x90], 4
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x42c890
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x4141c1
or dword [ebp - 0x98], 2
test byte [ebp - 0x8c], 2
je 0x4141d5
or dword [ebp - 0x98], 2
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x414217
push 0x2002000
call fcn.0040648e
add esp, 4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414222
mov eax, dword [ebp - 0x98]
jmp 0x414222
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414842
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
call fcn.00413f18
add esp, 4
cmp eax, 1
jne 0x41495a
push str.3.81
push 0x434110
call fcn.0041d434
add esp, 8
test eax, eax
jl 0x41495a
push 0x42cce4
push 0xf003f
push 0
push 0x5053f0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x4148c7
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414961
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x505420
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x414918
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414961
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x41495a
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414961
xor eax, eax
jmp 0x414961
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414966
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x505428
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4149c5
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10007
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414a68
mov dword [ebp - 0x54], 0xffff
push 0x50543c
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d13c
add esp, 8
push 4
lea eax, [ebp - 0x54]
push eax
push 4
push 0
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x414a26
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414a68
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414a61
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414a68
xor eax, eax
jmp 0x414a68
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414afd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov byte [ebp - 4], 0
push 0x42cce4
push 0xf003f
push 0
push 0x505448
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x414b4f
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414bdb
push 1
lea eax, [ebp - 4]
push eax
push 3
push 0
push 0x505474
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x414b9f
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x414bdb
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x414bd4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x414bdb
xor eax, eax
jmp 0x414bdb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414f96
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x42cce4
push 0
push 0xf003f
push 0
push 0
push 0
push 0x505538
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x414fee
push 0x10007
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x415172
mov eax, dword [0x42cce4]
push eax
call fcn.004075ff
add esp, 4
cmp eax, 0xffffffff
jne 0x41500f
mov eax, 0xffffffff
jmp 0x415172
push str.ProcessorType
push 0x42c890
call fcn.0041d13c
add esp, 8
push 4
push 0x505580
push 1
push 0
push 0x42c890
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x415066
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x415172
mov dword [ebp - 0xc], 0xffff
push 0x505584
push 0x42c890
call fcn.0041d13c
add esp, 8
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x42c890
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x4150c3
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x415172
mov eax, dword [0x42cce4]
push eax
call fcn.0040709b
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4150e8
mov eax, 0xffffffff
jmp 0x415172
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x41511d
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x415172
call fcn.00419745
cmp dword [0x43acf8], 0
je 0x415143
push 0x505590
push 0x30
call fcn.00405af8
mov dword [ebp - 8], eax
jmp 0x415152
push 0x5055a0
push 0x30
call fcn.00405af8
mov dword [ebp - 8], eax
call fcn.0041975a
cmp dword [ebp - 8], 0xffffffff
jne 0x41516b
mov eax, 0xffffffff
jmp 0x415172
xor eax, eax
jmp 0x415172
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416228
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x42cce4
push 0xf003f
push 0
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 2
jne 0x416262
xor eax, eax
jmp 0x41632d
cmp dword [0x42c8d0], 0
je 0x416286
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41632d
cmp dword [ebp + 0xc], 0
je 0x4162aa
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [0x42c8d0], eax
jmp 0x4162be
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [0x42c8d0], eax
cmp dword [0x42c8d0], 0
je 0x4162fb
cmp dword [0x42c8d0], 2
je 0x4162fb
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10005
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41632d
mov eax, dword [0x42cce4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x416326
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41632d
xor eax, eax
jmp 0x41632d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416332
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test byte [ebp + 8], 4
je 0x4163f5
push 0x200
push 0x42cae0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
push 0x42c690
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5057b4
push 0x42cae0
call fcn.0041d138
add esp, 8
push 0x5057c0
push 0x42c690
call fcn.0041d138
add esp, 8
push str.pcrdhasp.inf
push 0x42c690
call fcn.0041d138
add esp, 8
push 0x42cae0
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x4163f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x4163f5
cmp dword [ebp - 8], 5
jne 0x4163e1
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004007
call fcn.0040648e
add esp, 4
mov dword [ebp - 4], 0xffffffff
test byte [ebp + 8], 8
je 0x4164c7
push 0x200
push 0x42cae0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5057d8
push 0x42cae0
call fcn.0041d138
add esp, 8
push 0x42cae0
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x416474
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x416474
cmp dword [ebp - 8], 5
jne 0x416460
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x200400f
call fcn.0040648e
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x42c690
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x4164c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x4164c7
cmp dword [ebp - 8], 5
jne 0x4164b3
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x200401d
call fcn.0040648e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
jmp 0x4164cf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4164d4
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test byte [ebp + 8], 1
je 0x4165ea
push 0x200
push 0x42cae0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
push 0x42c690
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5057e8
push 0x42c690
call fcn.0041d138
add esp, 8
push 0x5057f0
push 0x42cae0
call fcn.0041d138
add esp, 8
push 0x42cae0
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x416585
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x416585
cmp dword [ebp - 8], 5
jne 0x416571
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004017
call fcn.0040648e
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.hlpcmcia.inf
push 0x42c690
call fcn.0041d138
add esp, 8
push 0x42c690
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x4165ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x4165ea
cmp dword [ebp - 8], 5
jne 0x4165d6
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x200401d
call fcn.0040648e
add esp, 4
mov dword [ebp - 4], 0xffffffff
test byte [ebp + 8], 2
je 0x416669
push 0x200
push 0x42cae0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x505810
push 0x42cae0
call fcn.0041d138
add esp, 8
push 0x42cae0
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x416669
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x416669
cmp dword [ebp - 8], 5
jne 0x416655
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004019
call fcn.0040648e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
jmp 0x416671
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416676
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
mov dword [ebp - 0x404], 0
push 0x200
push 0x42cae0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x42cae0
lea eax, [ebp - 0x400]
push eax
call fcn.0041d13c
add esp, 8
push 0x42cae0
lea eax, [ebp - 0x200]
push eax
call fcn.0041d13c
add esp, 8
push 0x50581c
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
push str._aksusb.inf
lea eax, [ebp - 0x200]
push eax
call fcn.0041d138
add esp, 8
push 0x200
push 0x42c8e0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x42c8e0
lea eax, [ebp - 0x608]
push eax
call fcn.0041d13c
add esp, 8
push 0x505834
lea eax, [ebp - 0x608]
push eax
call fcn.0041d138
add esp, 8
push 0x505848
lea eax, [ebp - 0x608]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x416799
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x416799
cmp dword [ebp - 0x408], 5
jne 0x416782
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004010
call fcn.0040648e
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
lea eax, [ebp - 0x200]
push eax
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x4167fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x4167fa
cmp dword [ebp - 0x408], 5
jne 0x4167e3
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004011
call fcn.0040648e
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
cmp dword [ebp + 8], 0
je 0x41680f
mov eax, dword [ebp - 0x404]
jmp 0x416885
test byte [ebp + 0xc], 0x10
je 0x41687a
lea eax, [ebp - 0x608]
push eax
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x41687a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x41687a
cmp dword [ebp - 0x408], 5
jne 0x416863
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004010
call fcn.0040648e
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
mov eax, dword [ebp - 0x404]
jmp 0x416885
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41688a
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
mov dword [ebp - 0x404], 0
push 0x200
push 0x42cae0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
push 0x42c8e0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x42cae0
lea eax, [ebp - 0x608]
push eax
call fcn.0041d13c
add esp, 8
push 0x505854
lea eax, [ebp - 0x608]
push eax
call fcn.0041d138
add esp, 8
push 0x42cae0
lea eax, [ebp - 0x200]
push eax
call fcn.0041d13c
add esp, 8
push 0x505864
lea eax, [ebp - 0x200]
push eax
call fcn.0041d138
add esp, 8
push 0x42c8e0
lea eax, [ebp - 0x400]
push eax
call fcn.0041d13c
add esp, 8
push str.inf
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
push str._aksusb95.inf
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x4169ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x4169ad
cmp dword [ebp - 0x408], 5
jne 0x416996
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004011
call fcn.0040648e
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
cmp dword [ebp + 8], 0
je 0x4169c2
mov eax, dword [ebp - 0x404]
jmp 0x416a99
test byte [ebp + 0xc], 0x10
je 0x416a8e
lea eax, [ebp - 0x608]
push eax
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x416a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x416a2d
cmp dword [ebp - 0x408], 5
jne 0x416a16
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004010
call fcn.0040648e
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
lea eax, [ebp - 0x400]
push eax
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x416a8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x416a8e
cmp dword [ebp - 0x408], 5
jne 0x416a77
push 0x4000b
call fcn.004064f2
add esp, 4
push 0x2004010
call fcn.0040648e
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
mov eax, dword [ebp - 0x404]
jmp 0x416a99
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416a9e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push 0x200
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0041d13c
add esp, 8
push 0x50588c
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.00416dd5
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0xffffffff
jne 0x416b12
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0041d13c
add esp, 8
push 0x50589c
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.00416dd5
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0xffffffff
jne 0x416b68
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0041d13c
add esp, 8
push 0x5058a8
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.00419571
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xffffffff
jne 0x416bbe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0041d13c
add esp, 8
push 0x5058b8
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.004195ae
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0xffffffff
jne 0x416c14
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
cmp dword [ebp + 0xc], 0
je 0x416c5d
push 0x200
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32drivers
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
push 0x5058d8
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
jmp 0x416c87
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0041d13c
add esp, 8
push 0x5058e4
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.004195ae
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0xffffffff
jne 0x416cb3
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0
xor eax, eax
jmp 0x416cba
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419dee
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f28
call fcn.0041d328
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1388
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
push 0xf003f
push 0
push 0x518474
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x419e65
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x10001
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41a067
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2f28]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x5184ac
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x419ea2
mov byte [ebp - 0x2f28], 0
mov eax, dword [ebp - 0x810]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2f28]
test ecx, ecx
je 0x419f74
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 0x808]
push eax
call fcn.0041d60a
add esp, 4
push 0x5184b0
lea eax, [ebp - 0x808]
push eax
call fcn.0041d3d4
add esp, 8
test eax, eax
jne 0x419f4a
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x810]
add ecx, eax
inc ecx
mov dword [ebp - 0x810], ecx
jmp 0x419ea2
push 0x5184bc
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x818]
mov byte [ebp + eax - 0x1ba0], 0
mov eax, dword [ebp - 0x818]
inc eax
push eax
lea eax, [ebp - 0x1ba0]
push eax
push 7
push 0
push 0x5184c8
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41a022
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x10006
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41a067
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41a05d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x10002
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41a067
mov eax, 1
jmp 0x41a067
pop edi
pop esi
pop ebx
leave
ret