joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401eef
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x108]
push ebx
push eax
mov esi, ecx
call fcn.004057f0
lea eax, [esi + 0x210]
add esp, 0xc
cmp byte [eax], bl
jne 0x401f2c
lea eax, [ebp - 0x108]
push eax
push 1
add esi, 8
push esi
jmp 0x401f35
lea ecx, [ebp - 0x108]
push ecx
push ebx
push eax
call fcn.00404f50
add esp, 0xc
cmp byte [ebp - 0x108], bl
jne 0x401f49
xor eax, eax
jmp 0x401f94
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x401f8d
push 4
push ebx
push 4
push ebx
push str.TrayIconEnable
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop ebx
leave
ret

Function at 0x40215d
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x114]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.004057f0
push edi
lea eax, [ebp - 0x31c]
push ebx
push eax
call fcn.004057f0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea eax, [esi + 0x10c]
push eax
lea eax, [esi + 8]
push eax
lea eax, [esi + 0x210]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0040576a
add esp, 0x2c
cmp byte [ebp - 0x114], bl
je 0x4021d5
lea eax, [ebp - 0x114]
push eax
lea eax, [esi + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x114]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov edi, str.TrayIconSelected
jne 0x40223d
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0xb50]
push eax
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x40225d
lea eax, [esi + 0xec0]
cmp byte [eax], bl
je 0x40225d
push eax
push ebx
push edi
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0xb50], eax
lea eax, [esi + 0x10c]
push eax
lea eax, [esi + 0x314]
push eax
add esi, 0xbb4
push esi
call fcn.00404091
add esp, 0xc
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x402282
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x418]
push eax
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402301
push edi
lea eax, [ebp - 8]
push eax
lea edi, [esi + 0xb50]
push edi
push ebx
push ebx
push str.TrayIconSelected
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
jne 0x4022ef
push ebx
push dword [edi]
mov ecx, esi
call fcn.0040201f
push dword [esi + 0x620]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
jmp 0x402303
xor eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x402543
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004057f0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x40258f
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x402eea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, ecx
lea ebx, [esi + 0x314]
push ebx
push str.softwareEPSONSTM3Driver_
lea eax, [ebp - 0x314]
push str._s_sMenu
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x40c4a0
push eax
call edi
and dword [ebp - 4], 0
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x314]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fd9
mov eax, 0x104
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004057f0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x10c], 0
je 0x402fd9
lea eax, [esi + 8]
push eax
push ebx
lea eax, [esi + 0x10c]
push eax
lea eax, [esi + 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x51c]
push str._s__P___s___M___s___D___s___O___s_
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 0x51c]
push eax
mov ecx, esi
call fcn.00402543
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402fe0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0x203
push ebx
push esi
push edi
mov esi, ecx
je 0x4030bc
dec eax
jne 0x4030c3
push dword [esi + 0x620]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 0x620]
call dword [sym.imp.USER32.dll_SetFocus]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
push 0x10
mov ebx, eax
call edi
push 0x20
mov dword [ebp + 0xc], eax
call edi
xor edi, edi
cmp bx, di
jge 0x403052
cmp word [ebp + 0xc], di
jge 0x403052
cmp ax, di
jge 0x403052
push edi
push edi
push 0x10
push dword [esi + 0x620]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4030c3
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
push dword [esi + 0x624]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, dword [esi + 0x620]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp + 0xc], eax
jmp 0x403082
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
push 0xfffffffffffffff0
push edi
call ebx
test eax, 0x40000000
push edi
jne 0x40307a
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor ebx, ebx
push ebx
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push 2
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push ebx
push ebx
push ebx
push dword [esi + 0x620]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4030c3
mov ecx, esi
call fcn.00402d34
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x403b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
jne 0x403b59
xor eax, eax
jmp 0x403c6b
push edi
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x403c68
cmp byte [edi], bl
je 0x403c68
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x403c68
cmp byte [eax], bl
je 0x403c68
mov esi, 0x104
push esi
lea eax, [ebp - 0x51c]
push ebx
push eax
call fcn.004057f0
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004057f0
push esi
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.004057f0
add esp, 0x24
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
call edi
push str.softwareEPSONSTM3Driver_
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c68
push esi
lea eax, [ebp - 0x314]
push ebx
push eax
call fcn.004057f0
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 8], esi
call edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x403c5f
lea eax, [ebp - 0x314]
push eax
push dword [ebp + 8]
call edi
xor eax, eax
cmp esi, ebx
sete al
jmp 0x403c6a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ebf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x403ed7
xor eax, eax
jmp 0x403fc9
mov eax, dword [ebp + 0xc]
cmp eax, ebx
push edi
je 0x403fb8
cmp byte [eax], bl
je 0x403fb8
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x403fb8
cmp byte [edi], bl
je 0x403fb8
push edi
push eax
push 0x40c28c
push str.Profile
push dword [ebp + 8]
call fcn.00403dc7
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x403fb3
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x314]
push ebx
push eax
mov dword [ebp - 8], ebx
call fcn.004057f0
push esi
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.004057f0
add esp, 0x18
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.softwareEPSONSTM3Profile
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403fb2
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 1
pop esi
mov eax, dword [ebp - 4]
jmp 0x403fc8
push 0x40c28c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x403fcc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004057f0
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.00403ebf
add esp, 0x18
test eax, eax
je 0x40408c
cmp byte [ebp - 0x104], 0
je 0x40408c
lea eax, [ebp - 0x104]
push eax
push esi
lea eax, [ebp - 0x30c]
push eax
push 0x40c28c
push str.PrnDll
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40408c
cmp eax, 0x102
je 0x40408c
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
call fcn.00403c6f
add esp, 0xc
test eax, eax
jne 0x404068
push 0x40c500
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0x40c4e8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
add esp, 0x10
inc eax
jmp 0x40408e
xor eax, eax
pop esi
leave
ret
Function at 0x404316
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
lea eax, [ebp - 0x104]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x404346
push 0x40c52c
jmp 0x40434d
lea eax, [ebp - 0x104]
push eax
lea eax, [edi + 0x108]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
push 0
push 0x40c528
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x404387
push 0x40c28c
add edi, 0x734
push edi
call esi
xor eax, eax
jmp 0x4043a8
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x208]
push eax
add edi, 0x734
push edi
call esi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x40481f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
lea edi, [ecx + 0x324]
xor ebx, ebx
cmp byte [edi], bl
jne 0x40483d
xor eax, eax
jmp 0x4048c3
push esi
lea esi, [ecx + 0x52c]
cmp byte [esi], bl
je 0x40484d
xor eax, eax
inc eax
jmp 0x4048c2
push str.softwareEPSONSTM3Driver_
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x104
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40489b
xor eax, eax
jmp 0x4048c2
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push str.ModelID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop edi
pop ebx
leave
ret
Function at 0x404baa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push edi
mov edi, ecx
lea ebx, [edi + 0x630]
cmp byte [ebx], 0
mov dword [ebp - 0xc], edi
jne 0x404bcc
xor eax, eax
jmp 0x404cf7
push esi
mov esi, 0x40c624
push esi
push ebx
call fcn.00406680
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x404c45
lea eax, [ebp - 0x160]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
add edi, 0x108
test eax, eax
jne 0x404c05
push 0x40c52c
jmp 0x404c0c
lea eax, [ebp - 0x160]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push edi
lea eax, [ebp - 0x160]
push 0x40c4e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x160]
push esi
push eax
call fcn.00406680
add esp, 0x18
test eax, eax
mov dword [ebp - 4], eax
jne 0x404c45
xor eax, eax
jmp 0x404cf6
mov esi, 0x514
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x404c64
push dword [ebp - 4]
call fcn.004065bd
pop ecx
jmp 0x404c3e
and dword [ebp - 8], 0
push esi
push 0
push edi
call fcn.004057f0
mov ebx, dword [ebp - 4]
push ebx
push esi
push edi
call fcn.00406693
add esp, 0x18
test eax, eax
jne 0x404c90
test byte [ebx + 0xc], 0x10
je 0x404ce3
mov dword [ebp - 8], 1
push 0x50
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004057f0
mov ebx, dword [ebp - 0xc]
add esp, 0xc
push edi
lea eax, [ebp - 0x5c]
push eax
push edi
mov ecx, ebx
call fcn.00404180
push edi
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
call fcn.004048c7
lea eax, [ebp - 0x5c]
push eax
push 0x40c620
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404cdd
push edi
add ebx, 0x734
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 8], 0
je 0x404c68
push dword [ebp - 4]
call fcn.004065bd
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x404f50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0xc], str.softwareEPSONSTM3STMDataEPNTarget
jne 0x404f6f
mov dword [ebp - 0xc], str.softwareEPSONSTM3STMDataEPLTarget
lea eax, [ebp + 0xc]
push eax
push 0x20019
push esi
push dword [ebp - 0xc]
mov dword [ebp + 0xc], esi
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404f99
push 4
pop eax
jmp 0x40507a
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x10], esi
mov edi, 0x104
push esi
jmp 0x40504a
cmp dword [ebp - 8], 0x103
je 0x40506a
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405032
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push 0x40c62c
push dword [ebp - 4]
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
mov dword [ebp - 4], esi
jne 0x405032
push dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40507d
inc dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x404fc1
xor esi, esi
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0xc]
push str._s_s
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40506d
Function at 0x40509a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 0xc], str.softwareEPSONSTM3STMDataEPNTarget
jne 0x4050bb
mov dword [ebp - 0xc], str.softwareEPSONSTM3STMDataEPLTarget
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0xf003f
push ebx
lea eax, [ebp + 0xf]
push eax
push ebx
push dword [ebp - 0xc]
mov edi, 0x80000001
push edi
mov byte [ebp + 0xf], bl
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
call esi
test eax, eax
je 0x4050ff
push 4
pop eax
jmp 0x405225
mov dword [ebp - 4], ebx
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push dword [ebp - 0xc]
push str._sP_016d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
lea eax, [ebp + 0xf]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push edi
call esi
test eax, eax
jne 0x405212
cmp dword [ebp - 0x14], 1
je 0x405163
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x7fffffff
jl 0x405102
jmp 0x405219
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x40c62c
push dword [ebp - 8]
call esi
test eax, eax
je 0x40519a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 2
jmp 0x405219
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
pop eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
mov edi, str.Setting
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
call esi
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 4
push ebx
push str.Timer
push dword [ebp - 8]
mov dword [ebp - 4], 0xa
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push edi
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405200
cmp dword [ebp - 4], ebx
je 0x405207
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405219
mov dword [ebp - 0x10], 3
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40522a
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40525d
or eax, 0xffffffff
jmp 0x40534c
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, 0x104
jmp 0x4052ac
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4052cb
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x324]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x324]
push eax
call fcn.0040522a
add esp, 0x14
test eax, eax
jne 0x4052e3
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x40526c
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 8], esi
push esi
jmp 0x405325
or esi, 0xffffffff
jmp 0x40533f
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x405331
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x405310
inc dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
je 0x4052e8
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x40534f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40537a
or eax, 0xffffffff
leave
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Setting
push dword [ebp - 4]
mov dword [ebp - 8], 0xff
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call fcn.0040522a
pop ecx
xor eax, eax
leave
ret