joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x184], 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x180], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x17c], 0
lea eax, [ebp - 0xc]
push eax
push 3
push 0
push 0x45ad10
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e20e
jmp 0x40e2e7
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x184
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x45ad40
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e242
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x184], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x180
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x45ad54
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e276
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x180], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x17c
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x45ad68
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e2a9
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x17c], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x190
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x45ad70
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e2dd
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x190], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40e2eb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 3
push 0
push 0x45ad78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e331
jmp 0x40e3b6
push 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x184
push ecx
push 4
push 0
push 0x45ada8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov eax, dword [ebp - 0x14]
add eax, 0x180
push eax
push 4
push 0
push 0x45adbc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov edx, dword [ebp - 0x14]
add edx, 0x17c
push edx
push 4
push 0
push 0x45add0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x190
push ecx
push 4
push 0
push 0x45add8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40fbc1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov byte [ebp - 3], al
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 3
push 0
push 0x45b03c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
jne 0x40fc03
jmp 0x40fc9d
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x1c0], 0
je 0x40fc52
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1b8]
call fcn.00418c57
push 0x45b058
lea ecx, [ebp - 0xc]
push ecx
call fcn.00422880
add esp, 8
mov dword [ebp - 0x10], 0xa
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x45b060
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40fc93
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x1b8]
call fcn.00418cac
push str.FALSE
lea eax, [ebp - 0xc]
push eax
call fcn.00422880
add esp, 8
mov dword [ebp - 0x10], 0xa
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
push 1
push 0
push 0x45b078
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x410436
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c8], 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1bc], 0
lea eax, [ebp - 0xc]
push eax
push 3
push 0
push 0x45b0d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41049c
jmp 0x410575
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x1c8
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x45b100
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4104d0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c4
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x45b114
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410504
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c4], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x1bc
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x45b128
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410537
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1bc], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x1c0
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x45b130
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41056b
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c0], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x410579
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 3
push 0
push 0x45b138
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4105bf
jmp 0x410644
push 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c8
push ecx
push 4
push 0
push str.VolumeSliderValue
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov eax, dword [ebp - 0x14]
add eax, 0x1c4
push eax
push 4
push 0
push 0x45b17c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov edx, dword [ebp - 0x14]
add edx, 0x1bc
push edx
push 4
push 0
push 0x45b190
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c0
push ecx
push 4
push 0
push 0x45b198
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x410d0f
Capabilities:
Get geographical location
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 3
push 0
push 0x45b1c4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410d40
jmp 0x410f1f
mov ecx, dword [ebp - 0x28]
add ecx, 0xc8
call fcn.0040a130
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 0x1bc], al
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cl, byte [eax + 0x1bc]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0xc8
call fcn.00412640
mov edx, dword [ebp - 0x28]
add edx, 0x1c5
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00422d60
add esp, 8
test eax, eax
je 0x410de7
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
add edx, 0x1c5
push edx
call fcn.00422880
add esp, 8
mov eax, dword [ebp - 0x28]
add eax, 0x1c5
push eax
call fcn.00422ce0
add esp, 4
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x1c5
push ecx
push 1
push 0
push 0x45b1e0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x410ddd
jmp 0x410f1d
mov ecx, dword [ebp - 0x28]
call fcn.00411b80
jmp 0x410df4
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x1b8], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x104
call fcn.0040a130
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x104
call fcn.004125e0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x1c1], eax
push 4
mov edx, dword [ebp - 0x28]
add edx, 0x1c1
push edx
push 4
push 0
push 0x45b1ec
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x410e42
jmp 0x410f1b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x1c1]
push edx
push 0x1e
mov ecx, dword [ebp - 0x28]
call fcn.004123a9
push 4
mov eax, dword [ebp - 0x28]
add eax, 0x1eb
push eax
push 4
push 0
push 0x45b1f4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x410e7d
jmp 0x410f19
push 4
mov edx, dword [ebp - 0x28]
add edx, 0x1ef
push edx
push 4
push 0
push 0x45b200
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x410ea2
jmp 0x410f17
cmp dword [0x45b1b0], 0
je 0x410f09
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x1e3]
cmp dword [edx + 0xd8], 1
jne 0x410ed2
mov byte [0x45ff8e], 0
push 0
push 0x1b
mov ecx, dword [ebp - 0x28]
call fcn.004123a9
jmp 0x410ee5
mov byte [0x45ff8e], 3
push 0
push 0x1c
mov ecx, dword [ebp - 0x28]
call fcn.004123a9
mov eax, dword [0x45b1b0]
push eax
push 0x45ff8c
push 3
push 0
push 0x45b208
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x410f09
jmp 0x410f15
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410f1f
jmp 0x410f09
jmp 0x410f09
jmp 0x410f09
jmp 0x410f09
jmp 0x410f09
mov esp, ebp
pop ebp
ret
Function at 0x410f23
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0x45b218
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410f69
jmp 0x4110fe
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x1c1
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x45b234
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410fab
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1c1], 1
mov dword [ebp - 8], 0x1e
mov dword [ebp - 0xc], 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c5
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x45b23c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410ff7
push 0x45b248
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c5
push ecx
call fcn.00422880
add esp, 8
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x1eb
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.CountryCB
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411038
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1eb], 0
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x1ef
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x45b25c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41107a
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1ef], 0xffffffff
mov eax, dword [0x45b1b0]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 3
lea ecx, [ebp - 8]
push ecx
push 0x45ff8c
lea edx, [ebp - 0xc]
push edx
push 0
push 0x45b264
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4110b7
mov dword [0x45b1b0], 0
jmp 0x4110f4
mov ecx, dword [ebp - 8]
mov dword [0x45b1b0], ecx
xor edx, edx
mov dl, byte [0x45ff8e]
test edx, edx
jne 0x4110e1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1e3]
mov dword [ecx + 0xd8], 1
jmp 0x4110f4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1e3]
mov dword [eax + 0xd8], 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x411102
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
push 3
push 0
push 0x45b274
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x45b290
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x45b298
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x104
call fcn.0040a100
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
jmp 0x4111cc
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 8]
jge 0x411205
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x104
call fcn.004125e0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 4]
jne 0x411203
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x104
call fcn.0040a160
jmp 0x4111c3
mov ecx, dword [ebp - 0x28]
add ecx, 0x104
call fcn.0040a130
cmp eax, 0xffffffff
jne 0x41128e
mov dword [ebp - 0x18], 0
jmp 0x41122a
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
jge 0x41128e
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x104
call fcn.004125e0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x41128c
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x104
call fcn.0040a160
push 5
push 0x435
mov ecx, dword [ebp - 0x28]
call fcn.00434ba8
mov ecx, eax
call fcn.00434d99
push 1
mov ecx, dword [ebp - 0x28]
call fcn.00439c30
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x1e7], 1
jmp 0x411221
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x413395
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x68], 0
lea edx, [ebp - 8]
push edx
push 3
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xdc]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4133f1
jmp 0x413457
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x64
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x45b55c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41341f
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x64], 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x68
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x45b570
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41344d
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x68], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x415fb5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f96e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x164], 0
je 0x415fe6
xor eax, eax
jmp 0x416121
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push str..SMSERIAL
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x164], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x164], 0xffffffff
jne 0x416107
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x164], 0
lea ecx, [ebp - 0x10]
push ecx
push 3
push 0
push 0x45ba1c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416103
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x45ba38
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4160f9
cmp dword [ebp - 0x18], 0
je 0x4160d5
lea ecx, [ebp - 0x20]
call fcn.00401370
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004359d8
test eax, eax
jne 0x4160b1
push 0x8100
lea ecx, [ebp - 0x20]
call fcn.004359d8
push 0
push 0x12010
lea ecx, [ebp - 0x20]
call fcn.00401390
push eax
call fcn.00439023
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00435634
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push str.ErrorCode
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x416121
mov ecx, dword [ebp - 0x24]
call fcn.0041612f
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24c], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41612f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
push 0x20019
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x416208
mov dword [ebp - 0x4c], 0
jmp 0x416185
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x58], 0x40
mov edx, dword [ebp - 0x58]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 4]
push edx
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4161f6
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
je 0x4161f4
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4161f8
jmp 0x4161fa
jmp 0x41617c
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41620b
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x4183c5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0040a3b0
test eax, eax
jne 0x4183df
jmp 0x4184ae
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x418409
push 0xffffffffffffffff
push 0
push 0x811f
call fcn.0043905b
jmp 0x4184ae
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x418456
push 0xffffffffffffffff
push 0
push 0x8120
call fcn.0043905b
push 1
push 0
push 0
push 0x46071c
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x418480
push 0xffffffffffffffff
push 0
push 0x8121
call fcn.0043905b
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4184ae
push 0xffffffffffffffff
push 0
push 0x8122
call fcn.0043905b
mov esp, ebp
pop ebp
ret