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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x13c], ecx
push 0x12c
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.004097d0
add esp, 0xc
push 0x12c
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x416b89
xor eax, eax
jmp 0x416b9d
lea edx, [ebp - 0x138]
push edx
mov ecx, dword [ebp + 8]
call fcn.004013a0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 4

Function at 0x416bb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e52f
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d8], ecx
mov eax, dword [0x435374]
mov dword [ebp - 0x2c8], eax
mov byte [ebp - 0x2c1], 0x41
lea ecx, [ebp - 0x2a4]
push ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x38], eax
push str.Logical_Drives:
lea ecx, [ebp - 0x34]
call fcn.004012e0
mov dword [ebp - 4], 0
push 0x432fb6
lea ecx, [ebp - 0x2c0]
call fcn.004012e0
mov byte [ebp - 4], 1
mov byte [ebp - 0x235], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x2a4]
mov dword [ebp - 0x14], edx
jmp 0x416c5c
mov eax, dword [ebp - 0x14]
push eax
call fcn.00409690
add esp, 4
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x416d34
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2d0], edx
mov eax, dword [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x34]
call fcn.004013e0
push 0x435388
lea ecx, [ebp - 0x34]
call fcn.004013e0
mov ecx, dword [ebp - 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x2cc], 5
jne 0x416d2f
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0x2c1], al
mov cl, byte [ebp - 0x2c1]
mov byte [ebp - 0x2c8], cl
push 0x1f4
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x416d2f
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00415d01
add esp, 8
test eax, eax
jne 0x416d2f
mov al, byte [ebp - 0x2c1]
mov byte [ebp - 0x2d1], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c0]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401360
mov al, byte [ebp - 0x2d1]
jmp 0x416d5f
jmp 0x416c46
mov byte [ebp - 0x2d2], 0x30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c0]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401360
mov al, byte [ebp - 0x2d2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 4
Function at 0x417340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e8cb
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x15c], ecx
push 0x104
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004097d0
add esp, 0xc
push str.SOFTWAREAutoRun
lea ecx, [ebp - 0x144]
push ecx
call fcn.00409b50
add esp, 8
push str.RunDashboard
lea ecx, [ebp - 0x30]
call fcn.004012e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x38], 0x100
lea edx, [ebp - 0x10]
push edx
push 1
push 0
lea eax, [ebp - 0x144]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x417425
lea ecx, [ebp - 0x10]
push ecx
push 0x201
push 0
lea edx, [ebp - 0x144]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x417425
mov dword [ebp - 0x14c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401360
mov eax, dword [ebp - 0x14c]
jmp 0x417558
mov eax, dword [ebp - 0x38]
push eax
call fcn.004099f8
add esp, 4
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x148]
push edx
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.004014a0
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xea
jne 0x417483
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x148]
push edx
call fcn.0040a6a9
add esp, 8
mov dword [ebp - 0x148], eax
jmp 0x417437
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], 0
je 0x4174da
push str.Get_RunDashboard_status_failed
call fcn.0042a070
add esp, 4
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.0040984a
add esp, 4
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x150], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401360
mov eax, dword [ebp - 0x150]
jmp 0x417558
mov edx, dword [ebp - 0x148]
push edx
push 0x4360d4
call fcn.00415d01
add esp, 8
test eax, eax
jne 0x417520
push str.Needt_run_client_app.....
call fcn.0042a0d0
add esp, 4
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401360
mov eax, dword [ebp - 0x154]
jmp 0x417558
mov eax, dword [ebp - 0x148]
push eax
call fcn.0040984a
add esp, 4
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x158], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401360
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret
Function at 0x4181a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e9a2
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x18], 0
push 0x801
push 0
mov eax, dword [ebp - 0x40]
add eax, 0x344
push eax
call fcn.004097d0
add esp, 0xc
push 0x435c20
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a26d
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x418218
push str.ERR:_Open_file_failed...
call fcn.0042a070
add esp, 4
xor eax, eax
jmp 0x41832f
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040a964
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040ab86
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cdq
and edx, 0x7ff
add eax, edx
sar eax, 0xb
add eax, 1
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040a964
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.004012b0
mov dword [ebp - 4], 0
jmp 0x41827d
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jle 0x4182de
mov eax, dword [ebp - 0x10]
push eax
push 0x800
push 1
mov ecx, dword [ebp - 0x40]
add ecx, 0x344
push ecx
call fcn.0040ae94
add esp, 0x10
mov edx, dword [ebp - 0x40]
add edx, 0x344
push edx
call fcn.00415fdb
add esp, 4
mov eax, dword [ebp - 0x40]
add eax, 0x344
push eax
lea ecx, [ebp - 0x38]
call fcn.004013e0
push 0x801
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x344
push ecx
call fcn.004097d0
add esp, 0xc
jmp 0x418274
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x38]
call fcn.004014a0
push eax
call fcn.0040a030
add esp, 8
test eax, eax
je 0x41830b
push str.Is_driver_inf_file__YES...
call fcn.0042a0d0
add esp, 4
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040a12d
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401360
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 8
Function at 0x4186a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ea30
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4411c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004014a0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 5
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x1c], 0
jne 0x418745
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
push 0x435744
call fcn.0042a0d0
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401360
mov eax, dword [ebp - 0x38]
jmp 0x418847
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004099f8
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4187a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x435778
call fcn.0042a0d0
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401360
mov eax, dword [ebp - 0x3c]
jmp 0x418847
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x4357a8
mov ecx, dword [ebp - 0x24]
push ecx
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x24]
mov word [ecx], ax
movzx edx, word [ebp - 0x16]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x24]
mov word [ecx + 2], ax
movzx edx, word [ebp - 0x14]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x24]
mov word [ecx + 4], ax
movzx edx, word [ebp - 0x12]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x24]
mov word [ecx + 6], ax
mov dword [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401360
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x418980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ea83
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x2c]
call fcn.004012b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
add eax, 0xd40
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401380
push 0x435574
lea ecx, [ebp - 0x2c]
call fcn.004013e0
push 0x435578
lea ecx, [ebp - 0x2c]
call fcn.004013e0
lea ecx, [ebp - 0x2c]
call fcn.004014a0
push eax
push str.UnInstallServer__s
call fcn.0042a0d0
add esp, 8
push 0
push 0
push str._remove
lea ecx, [ebp - 0x2c]
call fcn.004014a0
push eax
push 0x4355a8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret
Function at 0x4198c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x114], 1
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004097d0
add esp, 0xc
push str.SYSTEMCurrentControlSetServiceshwdatacard
lea ecx, [ebp - 0x110]
push ecx
call fcn.00409b50
add esp, 8
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x419952
push 0x434d64
call fcn.0042a070
add esp, 4
xor eax, eax
jmp 0x419a82
push 4
lea edx, [ebp - 0x114]
push edx
push 4
push 0
push str.QCDriverPowerManagementEnabled
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x419989
lea ecx, [ebp - 0x110]
push ecx
push str.Could_not_set_Power_Management_key_for__s.
call fcn.0042a070
add esp, 8
push 4
lea edx, [ebp - 0x114]
push edx
push 4
push 0
push 0x434dd4
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4199c0
lea ecx, [ebp - 0x110]
push ecx
push 0x434de8
call fcn.0042a070
add esp, 8
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004097d0
add esp, 0xc
push str.SYSTEMCurrentControlSetServiceshwusbfake
lea ecx, [ebp - 0x110]
push ecx
call fcn.00409b50
add esp, 8
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x419a39
push str.Could_not_create_the_registry_key.
call fcn.0042a070
add esp, 4
xor eax, eax
jmp 0x419a82
push 4
lea edx, [ebp - 0x114]
push edx
push 4
push 0
push str.QCDriverResident
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x419a70
lea ecx, [ebp - 0x110]
push ecx
push str.Could_not_set_Resident_key_for__s.
call fcn.0042a070
add esp, 8
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret
Function at 0x419d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x124], ecx
push 0x104
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.004097d0
add esp, 0xc
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0xc], 0x100
mov ecx, dword [ebp + 8]
call fcn.004014a0
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00409b50
add esp, 8
mov ecx, dword [ebp + 8]
call fcn.004014a0
push eax
push str.Reg_path_is__s
call fcn.0042a0d0
add esp, 8
mov ecx, dword [ebp + 0xc]
call fcn.004014a0
push eax
push str.Key_name_is__s
call fcn.0042a0d0
add esp, 8
lea edx, [ebp - 4]
push edx
push 1
push 0
lea eax, [ebp - 0x118]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x419e63
lea ecx, [ebp - 4]
push ecx
push 0x201
push 0
lea edx, [ebp - 0x118]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x419e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str._Open_REG_key:_s_error..._ErrorCode_is:__d
call fcn.0042a070
add esp, 0xc
xor eax, eax
jmp 0x419f39
mov edx, dword [ebp - 0xc]
push edx
call fcn.004099f8
add esp, 4
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004014a0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xea
jne 0x419ec1
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.0040a6a9
add esp, 8
mov dword [ebp - 0x11c], eax
jmp 0x419e75
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x419edc
push 0x434708
call fcn.0042a070
add esp, 4
cmp dword [ebp - 8], 0
je 0x419f0c
push str._Get_client_app_path_failed_
call fcn.0042a070
add esp, 4
mov eax, dword [ebp - 0x11c]
push eax
call fcn.0040984a
add esp, 4
mov dword [ebp - 0x11c], 0
xor eax, eax
jmp 0x419f39
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004013a0
mov edx, dword [ebp - 0x11c]
push edx
call fcn.0040984a
add esp, 4
mov dword [ebp - 0x11c], 0
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419f50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
push str.Stat_search_sysconfig_file..
call fcn.0042a0d0
add esp, 4
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004097d0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00409b50
add esp, 8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x419fca
mov ecx, dword [ebp + 8]
push ecx
push str.Exist_sysconfig_file__s
call fcn.0042a0d0
add esp, 8
mov eax, 1
jmp 0x419fd9
push str.Not_exist_sysconfig_file...
call fcn.0042a070
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 8

Function at 0x419ff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004097d0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0x4344ec
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 0x14]
call fcn.004014a0
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.pszIniFile_s__pszSection_s__pszKey_s__VALUE_s
call fcn.0042a0d0
add esp, 0x14
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004013a0
mov eax, dword [ebp + 0x14]
push eax
push 0x434538
call fcn.004031b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41a0a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Read_Ini_string_error
call fcn.0042a070
add esp, 8
xor eax, eax
jmp 0x41a0a8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4200e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x124], ecx
mov byte [ebp - 0x120], 0
push 0x103
push 0
lea eax, [ebp - 0x11f]
push eax
call fcn.004097d0
add esp, 0xc
push str.SOFTWAREAutoRunInstallCount
lea ecx, [ebp - 0x120]
push ecx
call fcn.00409b50
add esp, 8
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], 0
lea edx, [ebp - 4]
push edx
push 0x2001f
push 0
lea eax, [ebp - 0x120]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4201bd
cmp dword [ebp + 0xc], 1
jne 0x4201b8
cmp dword [ebp - 0xc], 2
jne 0x420183
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4201b8
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 4
push 0
push 0x43a140
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42026e
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x43a148
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x420239
cmp dword [ebp + 0xc], 1
jne 0x420201
cmp dword [ebp - 0x10], 0
jbe 0x4201f8
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x4201ff
mov dword [ebp - 0x10], 1
jmp 0x420219
cmp dword [ebp - 0x10], 1
jbe 0x420212
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
jmp 0x420219
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 4
push 0
push 0x43a150
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
jmp 0x420264
cmp dword [ebp - 0xc], 2
jne 0x420264
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 4
push 0
push str.value
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x420285
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, 1
jmp 0x420290
mov eax, dword [ebp + 8]
mov dword [eax], 0
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 8