joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x423558
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.00413de8
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 0x42a310
call fcn.00413e2e
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.00413e74
lea ecx, [esp + 0x38]
mov byte [esp + 0x458], 1
push ecx
call fcn.00415816
mov eax, dword [esp + 0x40]
add esp, 0x14
cmp eax, ebp
je 0x404cd4
push 0x42a310
lea ecx, [esp + 0x1c]
call fcn.00413e2e
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.004140d9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44c], 4
call fcn.00413fec
lea ecx, [esp + 0x20]
mov byte [esp + 0x448], bl
call fcn.00413e8c
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], 1
call fcn.00413e8c
mov eax, dword [esp + 0x2c]
mov esi, 1
cmp eax, esi
jle 0x404cd4
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x42a310
lea ecx, [esp + 0x1c]
call fcn.00413e2e
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.004140d9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44c], 6
call fcn.00413fec
lea ecx, [esp + 0x38]
mov byte [esp + 0x448], 5
call fcn.00413e8c
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], 1
call fcn.00413e8c
lea ecx, [esp + 0x10]
call fcn.00413ead
push eax
call edi
cmp eax, 0xffffffff
je 0x404c28
test al, 0x10
jne 0x404cc7
lea ecx, [esp + 0x10]
call fcn.00413ead
push eax
call fcn.0041a811
add esp, 4
test eax, eax
je 0x404cc7
lea ecx, [esp + 0x10]
call fcn.00413ead
push eax
push str.Unable_to_create_directory__s
push ebp
call fcn.0040f9a0
add esp, 8
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00419bfc
add esp, 0xc
lea edx, [esp + 0x40]
lea ecx, [esp + 0x20]
push edx
call fcn.00413e2e
lea eax, [esp + 0x20]
push 5
push eax
mov byte [esp + 0x450], 7
call fcn.00406eb0
add esp, 8
cmp eax, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x448], 1
sete bl
call fcn.00413e8c
test bl, bl
je 0x404cad
call fcn.00407bd0
lea ecx, [esp + 0x10]
call fcn.00413ead
push eax
call fcn.0041a811
add esp, 4
test eax, eax
jne 0x404c42
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x404baf
mov esi, dword [esp + 0x28]
mov byte [esp + 0x448], 0
cmp esi, ebp
je 0x404d04
cmp eax, ebp
je 0x404cfb
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x404cea
mov esi, dword [esp + 0x28]
push esi
call fcn.00419f48
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x448], 0xffffffff
call fcn.00413e8c
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 0x404d40
Capabilities:
Print debug messages
Terminate process

Disassembly:
push 0
push 0
push 0
call fcn.00410e77
push eax
push 1
call fcn.004111cc
test eax, eax
jne 0x404d75
push eax
mov eax, dword [0x432ab4]
push 0x432408
push str.AddDevice_failed__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xa
call fcn.00419f80
jmp fcn.00410db7
Function at 0x405000
Capabilities:
Create thread

Disassembly:
sub esp, 0x168
push ebx
push ebp
push esi
push edi
push 0x48
mov ecx, 0x432418
call fcn.00401160
push 0
push 0
call fcn.0041681f
mov ecx, dword [0x42580c]
mov ebp, eax
mov eax, dword [0x425808]
mov edx, dword [0x425810]
mov dword [esp + 0x20], eax
mov eax, dword [0x425814]
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 0x432408
push edx
push ebx
push ebp
mov dword [esp + 0x4c], 0x1c
mov dword [esp + 0x60], eax
call fcn.004167df
push 0x4a
mov ecx, 0x432418
call fcn.00401160
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.0041692b
push 0x4c
mov ecx, 0x432418
call fcn.00401160
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x58], 0x128
push ebp
call fcn.004168f8
test eax, eax
je 0x40516b
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov eax, dword [0x432bcc]
or edx, 0x1810800
or ch, 8
mov dword [esp + 0x54], edx
test eax, eax
mov dword [esp + 0x58], ecx
je 0x405135
mov eax, edx
or al, 0x80
mov dword [esp + 0x54], eax
mov edi, 0x4324a8
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.004168c5
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push 0
push eax
push ebp
call fcn.00416888
push 0x4e
mov ecx, 0x432418
call fcn.00401160
push 0x42a870
mov ecx, 0x432498
mov byte [0x432bd5], 1
call fcn.004141db
test eax, eax
je 0x4051bc
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push 0x40af00
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 0x4324a8
push ebx
push 0
call fcn.0041684e
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x405202
mov eax, dword [0x432bd0]
mov dword [0x432bcc], 1
or al, 2
mov dword [0x432bd0], eax
mov byte [0x432bd5], 0
add esp, 0x168
ret

Function at 0x405210
Capabilities:
Print debug messages

Disassembly:
call fcn.00413a5a
test eax, eax
je 0x405220
call fcn.004057e0
jmp 0x405225
call fcn.00405250
call fcn.00410c15
test eax, eax
jne 0x405245
mov eax, dword [0x432bd0]
mov dword [0x432bcc], 1
or al, 0x80
mov dword [0x432bd0], eax
ret
jmp fcn.00410d4e
Function at 0x406eb0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x432ab4]
sub esp, 0x200
push ebx
push ebp
push esi
push edi
push eax
xor bl, bl
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x406edf
mov ecx, dword [0x432ab4]
push 0
push ecx
call ebp
mov bl, 1
mov dl, byte [0x432408]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push str.Customisation
push 0
call fcn.00410fa4
mov esi, str.Egan
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406f3c
test cl, cl
je 0x406f38
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406f3c
add eax, 2
add esi, 2
test cl, cl
jne 0x406f18
xor eax, eax
jmp 0x406f41
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0x100
jne 0x406f5d
mov ecx, dword [0x4326b0]
lea eax, [esp + 0x114]
push eax
push 0x14
push ecx
jmp 0x406f6d
mov eax, dword [0x4326b0]
lea edx, [esp + 0x114]
push edx
push 4
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x110]
push ecx
push 0
call fcn.0040f9a0
push eax
call fcn.004231fb
mov edx, dword [esp + 0x224]
add esp, 0xc
mov esi, eax
push edx
push esi
push 0
call fcn.0040f9a0
mov ecx, dword [esp + 0x220]
add esp, 8
push eax
call fcn.00413ead
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
mov edi, eax
call fcn.0041a54c
add esp, 4
test bl, bl
je 0x406fcf
mov eax, dword [0x432ab4]
push 5
push eax
call ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
Function at 0x407ae0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x407b31
cmp dword [esp + 4], 5
jne 0x407b28
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x407b1b
mov al, 0x58
add esp, 0x94
ret
test eax, eax
jne 0x407b28
mov al, 0x32
add esp, 0x94
ret
mov al, 0x34
add esp, 0x94
ret
cmp eax, 1
jne 0x407b63
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x407b48
mov al, 0x38
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x407b56
mov al, 0x38
add esp, 0x94
ret
cmp dword [esp + 4], 4
jne 0x407b63
test eax, eax
mov al, 0x35
je 0x407b65
mov al, 0x3f
add esp, 0x94
ret

Function at 0x407b70
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 0x407b9e
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 0x407bd0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x423788
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.0040f9a0
add esp, 8
lea ecx, [esp + 4]
push eax
call fcn.00413e2e
lea eax, [esp + 4]
push 0x104
push eax
mov dword [esp + 0x1c], 0
call fcn.00406eb0
add esp, 8
cmp eax, 6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
sete bl
call fcn.00413e8c
test bl, bl
pop ebx
je 0x407c3f
push 4
call fcn.00419f80
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4086d0
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 0x40873d
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 0x408760
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x360
mov ecx, 0x432418
push ebx
push esi
push edi
push 0x64
call fcn.00401160
push 0x65
mov ecx, 0x432418
call fcn.00401160
lea eax, [esp + 0x60]
push 0x104
push eax
push str.UPDD_Folder
push 0
call fcn.00410fa4
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, 0x4326b4
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 0x408881
mov esi, 0x400
call fcn.00415668
test eax, eax
je 0x40886a
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 0x40adc0
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 0x40ade5
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 0x40ae30
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 0x40ae55
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 0x40b100
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 0x40b196
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 0x40b17b
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 [0x432bd6], al
mov dword [0x432bcc], eax
mov eax, dword [0x432bd0]
or al, 4
mov dword [0x432bd0], eax
pop ebx
add esp, 0x104
ret
Function at 0x40b4e0
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, 0x432ab8
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 0x40b5c4
mov esi, 0x400
call fcn.00415668
test eax, eax
je 0x40b594
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 0x40b5c4
inc edi
cmp edi, 0x190
jl 0x40b5ac
pop edi
pop esi
pop ebx
add esp, 0x25c
ret
Function at 0x40c210
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x423bbc
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.0041103b
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.00413e2e
push str._system.ini
lea ecx, [esp + 8]
mov dword [esp + 0x234], 0
call fcn.00413e2e
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x234], 1
call fcn.00413fec
lea ecx, [esp + 4]
mov byte [esp + 0x230], 0
call fcn.00413e8c
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0x18]
call fcn.00413e2e
mov bl, 2
push str.win.ini
lea ecx, [esp + 8]
mov byte [esp + 0x234], bl
call fcn.00413e2e
lea edx, [esp + 4]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x234], 3
call fcn.00413fec
lea ecx, [esp + 4]
mov byte [esp + 0x230], bl
call fcn.00413e8c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40c423
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00413ead
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push str.penc.drv
push 0x42b80c
push str.Drivers
call ebp
lea ecx, [esp + 0x18]
call fcn.00413ead
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.00410fa4
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.00413ead
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.00410fa4
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.00413ead
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.00413e8c
lea ecx, [esp + 0xc]
mov dword [esp + 0x230], 0xffffffff
call fcn.00413e8c
mov ecx, dword [esp + 0x228]
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x40c460
Capabilities:
Access peb ldr_data
Get kernel32 base address
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x423bf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov ecx, dword [esp + 0x28]
push esi
mov esi, dword [0x42a148]
xor eax, eax
cmp ecx, esi
mov dword [esp + 4], eax
jbe 0x40c4a6
push eax
push str.Error
push str.A_file_exceeds_the_size_of_the_target_media
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 4
call fcn.00419f80
push edi
mov edi, dword [0x42a14c]
mov edx, esi
sub edx, edi
cmp edx, ecx
ja 0x40c4cb
push ebx
mov edx, 0x42a14c
mov ebx, dword [edx + 4]
add edx, 4
mov edi, esi
inc eax
sub edi, ebx
cmp edi, ecx
jbe 0x40c4bb
pop ebx
mov esi, dword [eax*4 + 0x42a14c]
add esi, ecx
mov dword [eax*4 + 0x42a14c], esi
inc eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004143a8
add esp, 8
mov esi, eax
push str.DISK
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.00413e2e
push esi
mov esi, dword [esp + 0x30]
push esi
mov ecx, eax
mov byte [esp + 0x2c], 2
call fcn.004140d9
mov dword [esp + 8], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00413e8c
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00413e8c
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40cfc0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x423d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push str.Unrecognised_registry_format____n_File:
lea ecx, [esp + 8]
call fcn.00413e2e
mov eax, dword [esp + 0x24]
xor ebx, ebx
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x20], ebx
call fcn.00413fec
push str._nLine:
lea ecx, [esp + 0x10]
call fcn.00413e2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
push ecx
lea ecx, [esp + 8]
call fcn.00413fec
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.00413e8c
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push edx
call fcn.00413e2e
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x20], 2
call fcn.00413fec
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.00413e8c
push str._nLine_:
lea ecx, [esp + 0x10]
call fcn.00413e2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
push ecx
lea ecx, [esp + 8]
call fcn.00413fec
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.00413e8c
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004143a8
add esp, 8
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x20], 4
call fcn.00413fec
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.00413e8c
lea ecx, [esp + 4]
push ebx
push ecx
call fcn.00406eb0
add esp, 8
push 4
call fcn.00419f80
pop ebx
nop
nop
nop
nop
nop
nop
nop