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

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404d3e
xor al, al
ret
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
pop esi
sete al
ret

Function at 0x404d80
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x25c
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
push eax
mov ebx, 0x3d
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 0x64]
push 0x208
xor ebp, ebp
push ecx
push str.UPDD_Folder
push ebp
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], bp
call fcn.00413c6a
mov edi, str.keypadws__S__AUTO
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x68]
push ecx
push ebp
push ebp
push 0x200
push ebp
push ebp
push ebp
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404e86
mov esi, 0x400
call fcn.00418537
test eax, eax
je 0x404e23
mov esi, 0x100400
mov eax, dword [esp + 0x18]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
push ebx
mov ecx, 0x4540c0
call fcn.004011a0
push 0x3e8
push esi
inc ebx
call edi
cmp eax, 0x102
jne 0x404e5d
inc ebp
cmp ebp, 0x190
jl 0x404e39
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallVirtual_Keypad
push 0x80000002
call fcn.00404ea0
mov eax, dword [0x45487c]
add esp, 8
or ah, 4
mov dword [0x454878], 1
mov dword [0x45487c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
Function at 0x404ea0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x114]
push eax
push 0x20019
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f18
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
xor esi, esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x404f03
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00404ea0
add esp, 8
inc esi
jmp 0x404ed8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x404f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43e8f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00416c6c
xor ebp, ebp
mov dword [esp + 0x448], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
sub esp, 8
mov byte [esp + 0x450], 1
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x44a3cc
call fcn.00416cb2
mov eax, dword [esp + 0x458]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x45c], 2
call fcn.00416cf8
lea ecx, [esp + 0x38]
mov byte [esp + 0x458], 1
push ecx
call fcn.004185a6
mov eax, dword [esp + 0x40]
add esp, 0x14
cmp eax, ebp
je 0x405164
push 0x44a3cc
lea ecx, [esp + 0x1c]
call fcn.00416cb2
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
mov bl, 3
push edx
push eax
mov byte [esp + 0x450], bl
call fcn.00416f5d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44c], 4
call fcn.00416e70
lea ecx, [esp + 0x20]
mov byte [esp + 0x448], bl
call fcn.00416d10
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], 1
call fcn.00416d10
mov eax, dword [esp + 0x2c]
mov esi, 1
cmp eax, esi
jle 0x405164
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x44a3cc
lea ecx, [esp + 0x1c]
call fcn.00416cb2
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x38]
push ecx
push edx
lea ecx, [eax + esi*8]
mov byte [esp + 0x450], 5
call fcn.00416f5d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44c], 6
call fcn.00416e70
lea ecx, [esp + 0x38]
mov byte [esp + 0x448], 5
call fcn.00416d10
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], 1
call fcn.00416d10
lea ecx, [esp + 0x10]
call fcn.00416d31
push eax
call edi
cmp eax, 0xffffffff
je 0x4050b8
test al, 0x10
jne 0x405157
lea ecx, [esp + 0x10]
call fcn.00416d31
push eax
call fcn.00433ca0
add esp, 4
test eax, eax
je 0x405157
lea ecx, [esp + 0x10]
call fcn.00416d31
push eax
push str.Unable_to_create_directory__s
push ebp
call fcn.00412ac0
add esp, 8
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004330da
add esp, 0xc
lea edx, [esp + 0x40]
lea ecx, [esp + 0x20]
push edx
call fcn.00416cb2
lea eax, [esp + 0x20]
push 5
push eax
mov byte [esp + 0x450], 7
call fcn.00407480
add esp, 8
cmp eax, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x448], 1
sete bl
call fcn.00416d10
test bl, bl
je 0x40513d
call fcn.004081b0
lea ecx, [esp + 0x10]
call fcn.00416d31
push eax
call fcn.00433ca0
add esp, 4
test eax, eax
jne 0x4050d2
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x40503f
mov esi, dword [esp + 0x28]
mov byte [esp + 0x448], 0
cmp esi, ebp
je 0x405194
cmp eax, ebp
je 0x40518b
lea edi, [eax]
mov ecx, esi
call fcn.00416d10
add esi, 8
dec edi
jne 0x40517a
mov esi, dword [esp + 0x28]
push esi
call fcn.00433020
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x448], 0xffffffff
call fcn.00416d10
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x43c
ret
Function at 0x4051d0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push 0
push 0
push 0
call fcn.00413b1f
push eax
push 1
call fcn.00413f18
test eax, eax
jne 0x405205
push eax
mov eax, dword [0x45475c]
push 0x4540b0
push str.AddDevice_failed__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xa
call fcn.00433453
jmp fcn.00413a31
Function at 0x405490
Capabilities:
Create thread

Disassembly:
sub esp, 0x168
push ebx
push ebp
push esi
push edi
push 0x48
mov ecx, 0x4540c0
call fcn.004011a0
push 0
push 0
call fcn.00418ead
mov ecx, dword [0x4427fc]
mov ebp, eax
mov eax, dword [0x4427f8]
mov edx, dword [0x442800]
mov dword [esp + 0x20], eax
mov eax, dword [0x442804]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x30]
mov ebx, dword [esp + 0x17c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], edx
push ecx
push 1
push eax
lea edx, [esp + 0x2c]
push 0x4540b0
push edx
push ebx
push ebp
mov dword [esp + 0x4c], 0x1c
mov dword [esp + 0x60], eax
call fcn.00418e6d
push 0x4a
mov ecx, 0x4540c0
call fcn.004011a0
xor eax, eax
mov edi, ebx
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
mov word [esp + 0x1c], ax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1e], al
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 2
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push edx
push ebp
call fcn.00418fb9
push 0x4c
mov ecx, 0x4540c0
call fcn.004011a0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x58], 0x128
push ebp
call fcn.00418f86
test eax, eax
je 0x4055fb
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov eax, dword [0x454878]
or edx, 0x1810800
or ch, 8
mov dword [esp + 0x54], edx
test eax, eax
mov dword [esp + 0x58], ecx
je 0x4055c5
mov eax, edx
or al, 0x80
mov dword [esp + 0x54], eax
mov edi, 0x454150
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
push edx
push ebp
call fcn.00418f53
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push 0
push eax
push ebp
call fcn.00418f16
push 0x4e
mov ecx, 0x4540c0
call fcn.004011a0
push 0x44a898
mov ecx, 0x454140
mov byte [0x454881], 1
call fcn.0041705f
test eax, eax
je 0x40564c
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push 0x40bce0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 1
push 0x454150
push ebx
push 0
call fcn.00418edc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x405692
mov eax, dword [0x45487c]
mov dword [0x454878], 1
or al, 2
mov dword [0x45487c], eax
mov byte [0x454881], 0
add esp, 0x168
ret

Function at 0x4056a0
Capabilities:
Print debug messages

Disassembly:
call fcn.004169cb
test eax, eax
je 0x4056b0
call fcn.00405c70
jmp 0x4056b5
call fcn.004056e0
call fcn.00413913
test eax, eax
jne 0x4056d5
mov eax, dword [0x45487c]
mov dword [0x454878], 1
or al, 0x80
mov dword [0x45487c], eax
ret
jmp fcn.004139b5
Function at 0x407480
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x45475c]
sub esp, 0x200
push ebx
push ebp
push esi
push eax
xor bl, bl
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4074ae
mov ecx, dword [0x45475c]
push 0
push ecx
call ebp
mov bl, 1
mov dl, byte [0x4540b0]
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
push str.Customisation
push 0
call fcn.00413c6a
mov esi, str.EganPPT
lea eax, [esp + 0x10]
pop edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40750d
test cl, cl
je 0x407509
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40750d
add eax, 2
add esi, 2
test cl, cl
jne 0x4074e9
xor eax, eax
jmp 0x407512
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4075b0
mov esi, str.EganPPT2
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407547
test cl, cl
je 0x407543
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407547
add eax, 2
add esi, 2
test cl, cl
jne 0x407523
xor eax, eax
jmp 0x40754c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4075b0
mov esi, str.Egan
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40757d
test cl, cl
je 0x407579
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40757d
add eax, 2
add esi, 2
test cl, cl
jne 0x407559
xor eax, eax
jmp 0x407582
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push pe_nt_image_headers32
jne 0x40759e
mov ecx, dword [0x454358]
lea eax, [esp + 0x110]
push eax
push 0x14
push ecx
jmp 0x4075c6
mov eax, dword [0x454358]
lea edx, [esp + 0x110]
push edx
push 4
push eax
jmp 0x4075c6
mov edx, dword [0x454358]
lea ecx, [esp + 0x10c]
push pe_nt_image_headers32
push ecx
push 0x18
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esp + 0x214]
lea ecx, [esp + 0x10c]
push eax
push ecx
push 0
call fcn.00412ac0
mov ecx, dword [esp + 0x21c]
add esp, 8
push eax
call fcn.00416d31
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test bl, bl
mov esi, eax
je 0x40760d
mov edx, dword [0x45475c]
push 5
push edx
call ebp
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
Function at 0x408150
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40817e
xor al, al
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
ret

Function at 0x4081b0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x43eb68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push str.Are_you_sure_you_wish_to_cancel_the_installation
push 0
call fcn.00412ac0
add esp, 8
lea ecx, [esp + 4]
push eax
call fcn.00416cb2
lea eax, [esp + 4]
push 0x104
push eax
mov dword [esp + 0x1c], 0
call fcn.00407480
add esp, 8
cmp eax, 6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
sete bl
call fcn.00416d10
test bl, bl
pop ebx
je 0x40821f
push 4
call fcn.00433453
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408e30
Capabilities:
Delete file

Disassembly:
sub esp, 0x124
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 8
xor eax, eax
lea edi, [esp + 4]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 8], 3
push eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
pop edi
je 0x408e9d
xor eax, eax
add esp, 0x124
ret
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x1001
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, 1
add esp, 0x124
ret

Function at 0x408ec0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x360
mov ecx, 0x4540c0
push ebx
push esi
push edi
push 0x64
call fcn.004011a0
push 0x65
mov ecx, 0x4540c0
call fcn.004011a0
lea eax, [esp + 0x60]
push 0x104
push eax
push str.UPDD_Folder
push 0
call fcn.00413c6a
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or ecx, 0xffffffff
lea edi, [esp + 0x60]
xor eax, eax
lea edx, [esp + 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x164]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.TBMorph_POSTI__LANG_.UMD_Bundle
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x164]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45435c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x200
push 0
push 0
push 0
lea edx, [esp + 0x184]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408fe1
mov esi, 0x400
call fcn.00418537
test eax, eax
je 0x408fca
mov esi, 0x100400
mov eax, dword [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
add esp, 0x360
ret
Function at 0x40bba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bbc5
xor al, al
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp], eax
lea eax, [esp + 8]
push esi
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x40bc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bc35
xor al, al
pop ecx
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push esi
mov dword [esp + 0xc], eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x40bee0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.c:program_filescicmoufiltr.sys
call ebx
cmp eax, 0xffffffff
je 0x40bf76
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._system32driversmoufiltr.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
pop edi
pop esi
cmp eax, 0xffffffff
pop ebp
jne 0x40bf5b
lea ecx, [esp + 4]
push 0
push ecx
push str.c:program_filescicmoufiltr.sys
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov byte [0x454882], al
mov dword [0x454878], eax
mov eax, dword [0x45487c]
or al, 4
mov dword [0x45487c], eax
pop ebx
add esp, 0x104
ret
Function at 0x40c2c0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x25c
push ebx
push esi
lea eax, [esp + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0x26c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x48], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov word [esp + 0x4c], 0
rep movsb byte es:[edi], byte [esi]
mov edi, str.ReEnum
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push ecx
push 0
push 0
push 0x200
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c3a6
mov esi, 0x400
call fcn.00418537
test eax, eax
je 0x40c376
mov esi, 0x100400
mov eax, dword [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
xor edi, edi
push 0x3e8
push esi
call ebx
cmp eax, 0x102
jne 0x40c3a6
inc edi
cmp edi, 0x190
jl 0x40c38e
pop edi
pop esi
pop ebx
add esp, 0x25c
ret
Function at 0x40d1a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43efec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
lea eax, [esp + 0x18]
push ebx
push eax
push str.Pen20
push 0
call fcn.00413d19
lea ecx, [esp + 0x124]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x124]
lea ecx, [esp + 0xc]
push edx
call fcn.00416cb2
push str._system.ini
lea ecx, [esp + 8]
mov dword [esp + 0x234], 0
call fcn.00416cb2
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x234], 1
call fcn.00416e70
lea ecx, [esp + 4]
mov byte [esp + 0x230], 0
call fcn.00416d10
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0x18]
call fcn.00416cb2
mov bl, 2
push str.win.ini
lea ecx, [esp + 8]
mov byte [esp + 0x234], bl
call fcn.00416cb2
lea edx, [esp + 4]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x234], 3
call fcn.00416e70
lea ecx, [esp + 4]
mov byte [esp + 0x230], bl
call fcn.00416d10
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d3b3
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00416d31
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push str.penc.drv
push 0x44b8a0
push str.Drivers
call ebp
lea ecx, [esp + 0x18]
call fcn.00416d31
push eax
push str.penwin.dll
push str.penwindows
push str.Drivers
call ebp
lea eax, [esp + 0x2c]
push 0x104
push eax
push str.UPDD_Folder
push 0
call fcn.00413c6a
mov edi, str.TBCtPnlE.EXE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
and ecx, 3
lea eax, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push eax
push ecx
call ebx
lea ecx, [esp + 0x20]
call fcn.00416d31
lea edx, [esp + 0x2c]
push eax
push edx
push str.Control_Program
push str.Touch16
call ebp
lea eax, [esp + 0x2c]
push 0x104
push eax
push str.UPDD_Folder
push 0
call fcn.00413c6a
mov edi, str._tbcalib.EXE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
push 0x104
lea ecx, [esp + 0x30]
push eax
push ecx
call ebx
lea ecx, [esp + 0x20]
call fcn.00416d31
lea edx, [esp + 0x2c]
push eax
push edx
push str.Calibrate_Program
push str.Touch16
call ebp
pop edi
pop esi
pop ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 0
call fcn.00416d10
lea ecx, [esp + 0xc]
mov dword [esp + 0x230], 0xffffffff
call fcn.00416d10
mov ecx, dword [esp + 0x228]
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret