joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401037
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x42f608]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42f60c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.00401030
mov eax, dword [0x42f610]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x42f614]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x1a201cc], 0xc
mov dword [ebp - 4], eax
jne 0x4010b9
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x43c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x1a201cc]
cmp eax, 0xfa9
jne 0x4010d5
mov dword [0x1a201c8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ed
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x1a2011c], ebx
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a201c4], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a201cc], 0xc
mov dword [ebp - 4], eax
jne 0x40114e
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x61c88647
sub edi, eax
dec dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
jne 0x401089
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x40693e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e7a0]
jne 0x406948
repz ret
jmp fcn.0040b95e

Function at 0x40b1f2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406a3c
and dword [ebp - 4], 0
cmp dword [0x438698], 0
mov ebx, eax
jne 0x40b2a3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b354
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b354
push eax
call fcn.004069ca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438698], eax
call esi
push eax
call fcn.004069ca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43869c], eax
call esi
push eax
call fcn.004069ca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4386a0], eax
call esi
push eax
call fcn.004069ca
pop ecx
mov dword [0x4386a8], eax
test eax, eax
je 0x40b2a3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004069ca
pop ecx
mov dword [0x4386a4], eax
mov eax, dword [0x4386a4]
cmp eax, ebx
je 0x40b2fb
cmp dword [0x4386a8], ebx
je 0x40b2fb
push eax
call fcn.00406a45
push dword [0x4386a8]
mov esi, eax
call fcn.00406a45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2fb
test edi, edi
je 0x40b2fb
call esi
test eax, eax
je 0x40b2f2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2f2
test byte [ebp - 0xc], 1
jne 0x40b2fb
or dword [ebp + 0x10], 0x200000
jmp 0x40b334
mov eax, dword [0x43869c]
cmp eax, ebx
je 0x40b334
push eax
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b334
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b334
mov eax, dword [0x4386a0]
cmp eax, ebx
je 0x40b334
push eax
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b334
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438698]
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b354
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b356
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x4331d4]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareIntelDisplayigfxcuiigfxsrvcDesktopGammaDefault
xor bl, bl
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x20], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1e], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fc8
push edi
push 0x104
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00412490
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.BrightnessDefault
push edx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], 1
call edi
test eax, eax
jne 0x402f20
lea eax, [esp + 0x1c]
push eax
call fcn.0041295e
push 0x104
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esi + 0xc], eax
call fcn.00412490
add esp, 0x10
mov byte [esp + 0xf], 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.ContrastDefault
push edx
call edi
test eax, eax
jne 0x402f64
lea eax, [esp + 0x1c]
push eax
call fcn.0041295e
push 0x104
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esi + 0x10], eax
call fcn.00412490
add esp, 0x10
mov bl, 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.GammaDefault
push edx
call edi
pop edi
test eax, eax
jne 0x402fac
lea eax, [esp + 0x18]
push eax
call fcn.0041295e
push 0x104
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esi + 0x14], eax
call fcn.00412490
add esp, 0x10
mov byte [esp + 0xa], 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xb], 0
jne 0x402fd9
test bl, bl
jne 0x402fe6
cmp byte [esp + 0xa], bl
jne 0x402fe6
mov ecx, esi
call fcn.00402ce0
test eax, eax
jl 0x402fe6
mov bl, 1
mov byte [esp + 0xa], bl
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffc4
jl 0x402fe6
cmp eax, 0x64
jle 0x402fed
mov dword [esi + 0xc], 0
test bl, bl
je 0x402ffe
mov eax, dword [esi + 0x10]
cmp eax, 0x28
jl 0x402ffe
cmp eax, 0x64
jle 0x403005
mov dword [esi + 0x10], 0x32
cmp byte [esp + 0xa], 0
je 0x403019
mov eax, dword [esi + 0x14]
cmp eax, 0xa
jl 0x403019
cmp eax, 0x32
jle 0x403020
mov dword [esi + 0x14], 0xa
mov ecx, dword [esp + 0x11c]
pop esi
pop ebx
xor ecx, esp
call fcn.00412480
add esp, 0x118
ret

Function at 0x404dd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4331d4]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push 0x94
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.00412490
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404e1b
cmp dword [esp + 8], 6
lea eax, [esi + 1]
je 0x404e1d
mov eax, esi
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
call fcn.00412480
add esp, 0x98
ret
Function at 0x405f80
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x405fa0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x405fb4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x405fe0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x405ff6
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x406003
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x406b10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x4331d4]
xor eax, esp
mov dword [esp + 0x120], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0x14]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp esi, edi
jne 0x406b86
xor eax, eax
cmp ecx, edi
je 0x406b74
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x406b94
cmp ecx, edi
je 0x406c32
push ecx
jmp 0x406c2c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x406bfc
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.00406b10
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x406c4b
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x406bc0
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x406c0f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x406c32
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00412480
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x406c34
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412480
mov esp, ebp
pop ebp
ret 4

Function at 0x406ea0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x406ebe
xor al, al
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x406e90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop esi
pop ecx
ret
Function at 0x40c940
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x30]
push 0x426988
push eax
push 0x432170
mov ecx, 0x4348b0
call fcn.004065c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov cx, word [0x4275f8]
mov dl, byte [0x4275fa]
mov dword [0x4348e0], eax
lea eax, [esp + 0xc]
push eax
push esi
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
xor ebx, ebx
call fcn.00406840
mov esi, eax
add esp, 8
test esi, esi
je 0x40c9e4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea esp, [esp]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x40ca68
push str.RegServer
push esi
call edi
test eax, eax
je 0x40ca8a
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.00406840
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c9b0
mov ecx, 0x4348b0
call fcn.00406ea0
push 1
push 4
mov ecx, 0x4348b0
call fcn.00406dc0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
je 0x40ca38
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
jne 0x40ca20
mov ecx, 0x4348b0
call fcn.00406e50
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x4348b0
call fcn.00406d20
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret 0x10
push 0
push 0
push 0x64
push 0x4348b0
call fcn.0040c520
push 0
push 1
mov ecx, 0x4348b0
call fcn.0040b800
mov ebx, eax
jmp 0x40ca4d
push 0
push 1
push 0x64
push 0x4348b0
call fcn.0040c520
push 0
push 1
mov ecx, 0x4348b0
call fcn.0040b770
mov ebx, eax
jmp 0x40ca4d

Function at 0x412480
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4331d4]
jne 0x41248a
repz ret
jmp fcn.004168fc
Function at 0x4212a4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00414c02
and dword [ebp - 4], 0
cmp dword [0x435330], 0
mov ebx, eax
jne 0x421355
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421406
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x421406
push eax
call fcn.00414b90
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435330], eax
call esi
push eax
call fcn.00414b90
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435334], eax
call esi
push eax
call fcn.00414b90
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435338], eax
call esi
push eax
call fcn.00414b90
pop ecx
mov dword [0x435340], eax
test eax, eax
je 0x421355
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414b90
pop ecx
mov dword [0x43533c], eax
mov eax, dword [0x43533c]
cmp eax, ebx
je 0x4213ad
cmp dword [0x435340], ebx
je 0x4213ad
push eax
call fcn.00414c0b
push dword [0x435340]
mov esi, eax
call fcn.00414c0b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4213ad
test edi, edi
je 0x4213ad
call esi
test eax, eax
je 0x4213a4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4213a4
test byte [ebp - 0xc], 1
jne 0x4213ad
or dword [ebp + 0x10], 0x200000
jmp 0x4213e6
mov eax, dword [0x435334]
cmp eax, ebx
je 0x4213e6
push eax
call fcn.00414c0b
pop ecx
test eax, eax
je 0x4213e6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4213e6
mov eax, dword [0x435338]
cmp eax, ebx
je 0x4213e6
push eax
call fcn.00414c0b
pop ecx
test eax, eax
je 0x4213e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435330]
call fcn.00414c0b
pop ecx
test eax, eax
je 0x421406
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421408
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x573ade
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5a7495
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a7314

Function at 0x5adf86
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005adc46
Function at 0x405c00
Capabilities:
Get file version info

Disassembly:
sub esp, 0x424
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
mov ebp, dword [esp + 0x430]
push str.GetCompanyNameFromResource
lea ecx, [esp + 0x18]
call fcn.00405a40
push 0x208
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x405d08
push edi
push ebx
lea ecx, [esp + 0x20]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x405d07
push esi
push edi
call fcn.00488a0f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x405d06
push esi
push edi
push ebx
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405cfd
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405cfd
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xCompanyName
lea ecx, [esp + 0x234]
push 0x208
push ecx
call fcn.004032e0
add esp, 0x14
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x230]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405cfd
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x43c]
push edx
push eax
push ebp
call fcn.00401e30
mov ebx, 1
push esi
call fcn.004888bd
add esp, 4
pop esi
pop edi
lea ecx, [esp + 0x14]
call fcn.00403f90
mov ecx, dword [esp + 0x428]
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004888ae
add esp, 0x424
ret 8
Function at 0x419a90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b7b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x214]
mov dword fs:[0], eax
push str.CUninstallCtrl::DeleteES2UserSettingFiles
lea ecx, [esp + 8]
call fcn.00405a40
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov dword [esp + 0x228], 0
mov word [esp + 0x14], 0
call fcn.00489e60
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x419ba0
push str.EPSONEpson_Scan_2
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x419b88
lea eax, [esp + 8]
push eax
call fcn.0044fe20
add esp, 4
test al, 2
lea ecx, [esp + 8]
je 0x419b74
push 0
push ecx
call fcn.004505d0
add esp, 8
test al, al
je 0x419b5a
lea edx, [esp + 8]
push edx
push str._TRACE_UserFolder_is_deleted:__s
jmp 0x419b7a
lea eax, [esp + 8]
push eax
push str._ERROR_Failed_to_delete_UserFolder:__s
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
jmp 0x419bb3
push ecx
push str._TRACE_UserFolder_deosnt_exist:__s
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00403f90
mov al, 1
jmp 0x419bc9
push str._ERROR_Failed_to_get_ProgramData_folder
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00403f90
xor al, al
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004888ae
add esp, 0x21c
ret
Function at 0x42a630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b8cd2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [eax], vtable.CUninstLog.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x88], ecx
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x98], ecx
mov dword [eax + 0x9c], ecx
mov dword [eax + 0xa0], ecx
mov dword [eax + 0xa8], ecx
mov dword [eax + 0xac], ecx
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov dword [eax + 0xc0], ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x4347c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b9634
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00403380
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [esp + 0x20], 0
call fcn.00403380
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov byte [esp + 0x24], 1
call fcn.00403380
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
mov byte [esp + 0x28], 2
call fcn.00403380
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
mov byte [esp + 0x2c], 3
call fcn.00403380
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
mov byte [esp + 0x30], 4
call fcn.00403380
add esp, 0x18
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov cl, byte [edi + 0x1c]
mov byte [esi + 0x1c], cl
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4