joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478e33
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00478daf
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x478fa2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x478fa2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x478f57
jg 0x478e8f
test eax, eax
je 0x478f4d
push 1
push 0x1000
call fcn.00469996
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x478eb2
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x478f44
push 0x8000
push ebx
call fcn.00461410
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x478edb
jg 0x478ed6
cmp ecx, 0x1000
jb 0x478edb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046ce62
add esp, 0x10
cmp eax, 0xffffffff
je 0x478f20
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x478ed6
jl 0x478f07
test ecx, ecx
jne 0x478ec8
push dword [ebp - 0xc]
push ebx
call fcn.00461410
push esi
call fcn.004699f3
add esp, 0xc
xor ebx, ebx
jmp 0x478fb0
cmp byte [edi + 0x24], 0
je 0x478f37
cmp dword [edi + 0x20], 5
jne 0x478f37
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x478f42
mov ebx, dword [edi + 0x18]
jmp 0x478f44
xor ebx, ebx
push esi
call fcn.004699f3
pop ecx
jmp 0x478fb0
test ecx, ecx
jg 0x478f19
jl 0x478f57
test eax, eax
jae 0x478f19
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046e7b2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x478f77
cmp byte [edi + 0x1c], 0
je 0x478f19
jmp 0x478fa8
push ebx
call fcn.00465028
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x478f19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x478fb0
cmp byte [edi + 0x1c], 0
je 0x478fad
mov ebx, dword [edi + 0x18]
jmp 0x478fb0
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046e7b2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x479f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x479f6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x479f6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403568
and dword [ebp - 0x14], 0
cmp dword [0x422940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422948], eax
call edi
push eax
call esi
mov dword [0x422950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42294c], eax
mov eax, dword [0x42294c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x422950], ecx
je 0x404367
push eax
call esi
push dword [0x422950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x422944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x422948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41c2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41c510
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c430
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c56d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041c480
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.00497780
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4043d6
mov eax, dword [ebp - 0x214]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x4043d6
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x4043ce
cmp eax, 0x103
jae 0x4043d6
mov ecx, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
lea ecx, [ebp - 0x20c]
jmp 0x4043db
mov ecx, 0x4c4348
push esi
call fcn.00424e40
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x404470
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004a7ca0
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x40453f
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.00497780
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x40453f
cmp eax, 0x1fff
ja 0x40453f
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40452e
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x4cd228
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40452e
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x426e50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp eax, 1
jne 0x426e64
mov esi, str.EnableAvira
jmp 0x426e7a
cmp eax, 3
jne 0x426e70
mov esi, str.EnableKP
jmp 0x426e7a
cmp eax, 2
jne 0x426ed9
mov esi, str.EnableBD
lea eax, [ebp - 4]
push eax
push 2
push edi
push str.Software360TotalSecuritydeepscan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 4]
cmp eax, edi
je 0x426eb1
cmp ecx, edi
jne 0x426eb1
cmp eax, 2
jne 0x426ed1
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x426ec2
cmp eax, 2
jne 0x426ec7
mov edi, 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426ef0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ecx
push esi
call edi
test eax, eax
jne 0x426f81
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00497780
push esi
push str._s.bak
lea ecx, [ebp - 0x20c]
push 0x208
push ecx
call fcn.00424b40
add esp, 0x1c
lea edx, [ebp - 0x20c]
push edx
call edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x426f7c
push 4
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
call fcn.00426fa0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x426fa0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4f37c8]
test eax, eax
jne 0x426fb3
call fcn.004232d0
mov dword [0x4f37c8], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x426fd3
mov eax, dword [0x4f37c8]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x426fd3
mov eax, dword [eax + 0x50]
jmp 0x426fd5
xor eax, eax
push esi
test eax, eax
je 0x426fdd
call eax
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret

Function at 0x427480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0
push esi
je 0x4274b2
cmp dword [eax + 0x18], 8
jb 0x427492
mov esi, dword [eax + 4]
jmp 0x427495
lea esi, [eax + 4]
test esi, esi
je 0x4274b2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4274b6
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4274ba
xor eax, eax
pop esi
ret
test al, 0x10
je 0x4274b2
mov eax, 1
pop esi
ret
Function at 0x427620
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4276e4
push edi
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x61c]
push str.__s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4276e3
push esi
push 0
push 0
push 0x4c4348
push 0
push 0x4cdad0
lea eax, [ebp - 0x61c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x4cdad8
push str.QHActiveDefense
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x4276d2
lea ecx, [ebp - 0x620]
push ecx
push 1
push esi
mov dword [ebp - 0x620], 0x4cdad8
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4276e2
push esi
call edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x428860
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bedab
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
lea edx, [ebp - 0x220]
push edx
push 8
push esi
push str.Software360TotalSecurity_srvtpi
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4289d6
mov ebx, dword [ebp - 0x220]
xor edi, edi
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], edi
lea eax, [ebp - 0x240]
push eax
push esi
push esi
push esi
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x21c]
push edx
push edi
push ebx
mov dword [ebp - 0x234], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4289cb
mov eax, dword [esi + 0x4eb4a0]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00491c26
add esp, 8
test eax, eax
je 0x4289b6
add esi, 4
cmp esi, 4
jb 0x428922
xor ebx, ebx
xor edi, edi
xor esi, esi
mov edi, edi
mov edx, dword [esi + 0x4eb3c4]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00491c26
add esp, 8
test eax, eax
je 0x428975
add esi, 0x14
inc edi
cmp esi, 0x3c
jb 0x428950
jmp 0x42898c
mov ecx, dword [ebp - 0x228]
lea ebx, [edi + edi*4]
mov dword [ecx + edi*4], 1
lea ebx, [ebx*4 + 0x4eb3c4]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x238]
push 0
lea edx, [ebp - 0x21c]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00428670
mov ebx, dword [ebp - 0x220]
mov edi, dword [ebp - 0x224]
inc edi
xor esi, esi
cmp edi, 0x200
mov dword [ebp - 0x224], edi
jl 0x4288f0
cmp ebx, esi
je 0x4289d6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret 4

Function at 0x428e40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
test al, 0x50
call fcn.00428ba7
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00428b5c
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x428e85
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00428b97
and cl, ch
int3
Function at 0x4022b2
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x41625c
call fcn.0040ef50
sub esp, 0x10
push esi
xor esi, esi
push 0x20019
push esi
push esi
push str.SoftwareEpsonSTM3
push 0x80000002
lea ecx, [ebp - 0x1c]
mov dword [0x420bd4], esi
call fcn.0040dc20
cmp dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
je 0x402302
push esi
push 0x41c334
lea ecx, [ebp - 0x1c]
call fcn.0040e0a0
neg eax
sbb eax, eax
neg eax
mov dword [0x420bd4], eax
push str.CE_srcvxxApp::InitInstance___Start_n
call fcn.004024eb
pop ecx
push str.EPSON_StatusMonitor3_Environment_Check
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, esi
mov dword [0x420bc0], eax
je 0x402336
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov dword [0x420bc8], esi
je 0x402340
mov dword [0x420bc8], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040dcd0
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x4024eb
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x416284
call fcn.0040ef50
push ecx
push ecx
push esi
xor esi, esi
cmp dword [0x420bd4], esi
push edi
je 0x40259d
push esi
push 0x80
push 4
push esi
push 1
push 0xc0000000
push str.c:E_SRCV.LOG
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40259d
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40259d
lea ecx, [ebp - 0x10]
call fcn.004013e3
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.00402132
add esp, 0x18
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
push esi
push eax
call fcn.00401b8a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e04
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
jne 0x40258a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x402632
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4162e8
call fcn.0040ef50
sub esp, 0x230
push esi
push edi
mov edi, ecx
push 1
mov esi, 0x105
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40266e
and dword [ebp - 0x10], eax
jmp 0x4027ba
lea eax, [ebp - 0x134]
push ebx
push eax
call fcn.0040f150
and byte [ebp + eax - 0x135], 0
pop ecx
mov ebx, 0x420bb0
lea ecx, [ebp - 0x14]
push ebx
call fcn.00401595
lea eax, [ebp - 0x134]
lea ecx, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00401de8
test eax, eax
je 0x4026b1
lea eax, [ebp - 0x134]
jmp 0x4026ce
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4026c8
and dword [ebp - 0x10], eax
jmp 0x4026d7
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401680
cmp dword [ebp - 0x10], 1
jne 0x4027ad
lea eax, [ebp - 0x14]
push 0x41c058
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040176a
add esp, 0xc
push str.ebapiext
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call fcn.0040176a
add esp, 0xc
lea esi, [edi + 4]
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00401618
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00401563
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401563
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call fcn.004013ef
mov ecx, edi
call fcn.00402bd2
cmp eax, 1
jne 0x4027a1
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004013ef
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
call fcn.004013ef
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 6
call fcn.004013ef
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 7
call fcn.004013ef
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004027e5
test eax, eax
je 0x4027ad
push ebx
mov ecx, esi
call fcn.00401680
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401563
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8
Function at 0x4027e5
Capabilities:
Copy file

Disassembly:
mov eax, 0x41633c
call fcn.0040ef50
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x41c058
lea eax, [ebp + 0x10]
push esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 3
push eax
xor ebx, ebx
call fcn.0040176a
add esp, 0xc
push ecx
lea edx, [ebp + 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.004016fe
add esp, 0xc
mov ecx, edi
call fcn.00402cf8
lea ecx, [ebp - 0x10]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00401563
test edi, edi
je 0x402854
cmp edi, 1
je 0x402854
cmp edi, 2
jmp 0x4028f8
lea eax, [ebp + 0x10]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040176a
add esp, 0xc
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004016fe
add esp, 0xc
mov edi, eax
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.0040176a
add esp, 0xc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004016fe
add esp, 0xc
mov esi, eax
push 0
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00401e04
push eax
mov ecx, esi
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x10]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401563
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00401563
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00401563
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401563
test esi, esi
jne 0x4028fd
push 2
pop ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10

Function at 0x402bd2
Capabilities:
Create directory

Disassembly:
mov eax, 0x4163a0
call fcn.0040ef50
sub esp, 0x140
push esi
push edi
lea eax, [ebp - 0x14c]
xor edi, edi
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00401b8a
push eax
lea ecx, [ebp + 8]
call fcn.00401a44
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401ab0
cmp esi, 0xffffffff
jne 0x402c38
cmp dword [ebp + 0xc], 1
jne 0x402c4b
push edi
lea ecx, [ebp + 8]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
jne 0x402c4b
push eax
pop edi
jmp 0x402c4b
test byte [ebp - 0x14c], 0x10
je 0x402c44
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8