joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

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

Function at 0x405615
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b004]
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.00403715
and dword [ebp - 0x14], 0
cmp dword [0x42dd7c], 0
mov dword [ebp - 0x18], eax
jne 0x4056c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405770
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405770
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42dd7c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42dd80], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42dd84], eax
call edi
push eax
call esi
mov dword [0x42dd8c], eax
test eax, eax
je 0x4056c8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42dd88], eax
mov eax, dword [0x42dd88]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405721
cmp dword [0x42dd8c], ecx
je 0x405721
push eax
call esi
push dword [0x42dd8c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405721
test ebx, ebx
je 0x405721
call edi
test eax, eax
je 0x405718
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405718
test byte [ebp - 8], 1
jne 0x405721
or dword [ebp + 0x10], 0x200000
jmp 0x405754
mov eax, dword [0x42dd80]
cmp eax, dword [ebp - 0x18]
je 0x405754
push eax
call esi
test eax, eax
je 0x405754
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405754
mov eax, dword [0x42dd84]
cmp eax, dword [ebp - 0x18]
je 0x405754
push eax
call esi
test eax, eax
je 0x405754
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42dd7c]
call esi
test eax, eax
je 0x405770
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405772
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x423310
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42bdc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1efff28]
push edi
mov edi, dword [0x1f00584]
call fcn.00423260
cmp dword [0x1f00584], 0x2f
jne 0x423369
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00423290
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423620
Capabilities:
Get disk information
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.004076f0
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x423649
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x4236f1
cmp dword [0x1f00584], 0xa5f
jne 0x423695
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x818]
push edx
push str.wefanecidageziroxefojuvu
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 4], 0x84526b
jne 0x4236ba
mov eax, dword [0x42cbe0]
mov dword [0x1f00584], eax
mov ecx, dword [0x1f00584]
add ecx, 0xa231
mov dword [0x1f00584], ecx
cmp dword [0x1f00584], 0x141
jne 0x4236ec
push str.jisaxivemuvanacucoxoxobo_necogoduhutevepipojomaji_kadesezimini_joretevigusopibiyigibiga_wemakihumovuyo
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x42e2a0], 0xec58acac
mov dword [0x42e2a4], 0xffffffff
jmp 0x423640
call fcn.00423380
jmp dword [0x1efff28]
Function at 0x40b74f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40b75e
pop dword [ebp - 0xc]
mov eax, 0x40b75e
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x49e3e
push 0
mov eax, 0x6fc8638d
add eax, 0x907e044b
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x88e0ae26
sub ecx, 0x88e07621
xor edx, edx
add edx, eax
mov ebx, 0x9189f335
add ebx, 0x6ebeeccb
add ebx, dword [ebp - 0xc]
mov edi, 0x1537079f
xor dword [ebp - 4], edx
mov esi, dword [ebx]
add dword [ebp - 8], 0xb4969bab
sub esi, edi
mov dword [edx], esi
mov dword [ebp - 4], 0xba9cd84c
add edx, 0xbd03f751
sub edx, 0xbd03f74d
add ebx, 0x9d5c8601
sub ebx, 0x9d5c85fd
loop 0x40b7b4
add eax, 0xd2e7
xor ebx, ebx
add ebx, eax
add eax, 0xade1d96f
add eax, 0x521e2696
mov ecx, 0x4963810
sub ecx, 0x4563810
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x408fda
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409019
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409019
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409019
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409019
cmp dword [ecx + 0x74], 0xe
jbe 0x409019
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40eed6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4770a8
push 0x4770a0
push str.FlsAlloc
push 0x1f
call fcn.0040ed95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef0a
push dword [ebp + 8]
mov ecx, esi
call dword [0x427130]
call esi
jmp 0x40ef10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ef54
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4770b8
push 0x4770b0
push str.FlsGetValue
push 0x21
call fcn.0040ed95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x427130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ef93
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4770c0
push 0x4770b8
push str.FlsSetValue
push 0x22
call fcn.0040ed95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40efcd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
sub esp, 8
push ebx
push esi
push edi
mov edi, 8
cmp dword [ebp + 0x38], edi
jae 0x401059
lea eax, [ebp + 0x24]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401100
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 8], ebx
mov word [ebp - 4], 0xfeff
call edi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ebx
jae 0x4010a9
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
lea edx, [ebp - 8]
push edx
lea edx, [ecx + ecx]
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x4010d9
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], esi
jb 0x4010f7
mov edx, dword [ebp + 0x24]
push edx
call edi
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x1c], edi
jb 0x401114
mov eax, dword [ebp + 8]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x401132
mov edx, dword [ebp + 0x24]
push edx
call esi
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [ebx + 0x10]
mov eax, 0xcccccccd
mul edi
shr edx, 3
xor ecx, ecx
inc edx
mov esi, 0x811c9dc5
test edi, edi
je 0x404dde
jmp 0x404dc0
cmp dword [ebx + 0x14], 8
jb 0x404dca
mov eax, dword [ebx]
jmp 0x404dcc
mov eax, ebx
movzx eax, word [eax + ecx*2]
imul esi, esi, 0x1000193
add ecx, edx
xor esi, eax
cmp ecx, edi
jb 0x404dc0
pop edi
mov eax, esi
pop esi
ret
Function at 0x405c70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43add8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
jae 0x405cb5
lea eax, [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405d70
lea ecx, [ebp - 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x14], esi
jg 0x405d69
mov eax, dword [ebp - 0x18]
jl 0x405cf7
cmp eax, 0x80000
jae 0x405d69
add eax, 2
push eax
call fcn.00438d15
mov edx, dword [ebp - 0x18]
add edx, 2
push edx
mov edi, eax
push esi
push edi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push esi
lea eax, [ebp - 0x20]
push eax
push ecx
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [edi], 0xff
jne 0x405d40
cmp byte [edi + 1], 0xfe
jne 0x405d40
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 2]
push edx
call fcn.004045d0
jmp 0x405d5f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405d45
mov esi, dword [ebp - 0x1c]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00404c70
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 8
jb 0x405d83
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x413c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x238], 0xffffffff
je 0x413cab
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jae 0x413c42
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x404]
push 0x200
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov ecx, dword [esi + 0x238]
add esp, 0x10
push 0
lea edx, [ebp - 0x408]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push ecx
mov dword [ebp - 0x408], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x1c], 8
jb 0x413c99
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438de6
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], 8
jb 0x413cbe
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00438de6
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x414f20
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
add esi, 0x1bc
cmp dword [esi + 0x14], 8
jb 0x414f44
mov eax, dword [esi]
jmp 0x414f46
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4c], 0
jb 0x414f5e
mov eax, dword [esi]
jmp 0x414f60
mov eax, esi
push 0x4416e8
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
mov eax, dword [ebp - 0x4c]
add esp, 0xc
test eax, eax
je 0x414f9c
push eax
push 2
lea ecx, [ebp - 0x48]
push 1
push ecx
mov word [ebp - 0x48], 0xfeff
call dword [sym.imp.MSVCR100.dll_fwrite]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
push 0x4416f0
lea edx, [ebp - 0x44]
call fcn.004167d0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x414fb8
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x44]
push ecx
push str.ReturnCode
push str.ScanResult
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00438de6
mov esp, ebp
pop ebp
ret 8

Function at 0x41c740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
sub esp, 8
push ebx
push esi
push edi
mov edi, 8
cmp dword [ebp + 0x38], edi
jae 0x41c759
lea eax, [ebp + 0x24]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c802
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 8], ebx
mov word [ebp - 4], 0xfeff
call edi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ebx
jae 0x41c7a9
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
lea edx, [ebp - 8]
push edx
lea edx, [ecx + ecx]
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x41c7d9
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], esi
jb 0x41c7f7
mov edx, dword [ebp + 0x24]
push edx
call edi
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x1c], edi
jb 0x41c816
mov eax, dword [ebp + 8]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x41c834
mov edx, dword [ebp + 0x24]
push edx
call esi
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x41d360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x441cbc
mov ebx, 1
push 0x80000002
mov esi, ecx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], 0x104
mov dword [ebp - 0x20c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41d3ca
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438de6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push str.BaseModulePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41d3fb
xor bl, bl
jmp 0x41d434
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d404
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.00404c70
mov ecx, esi
call fcn.00437da0
push 5
mov eax, str.Core_
mov ecx, esi
call fcn.0040d100
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00438de6
mov esp, ebp
pop ebp
ret
Function at 0x41d930
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b7c1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
mov eax, 1
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
mov word [ecx], dx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x28], eax
jmp 0x41d9a2
xor esi, esi
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x24]
lea ecx, [ebp - 0x20]
add edi, 0x400
call edx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x4c]
push edi
lea ecx, [ebp - 0x20]
call edx
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x41d9cc
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
mov ecx, 8
cmp dword [ebp + 0x1c], ecx
jae 0x41d9dc
lea esi, [ebp + 8]
mov edx, dword [ebp + 0x40]
cmp dword [ebp + 0x54], ecx
jae 0x41d9e7
lea edx, [ebp + 0x40]
cmp dword [ebp + 0x38], ecx
mov ecx, dword [ebp + 0x24]
jae 0x41d9f2
lea ecx, [ebp + 0x24]
push esi
push edi
push eax
push 0x4401a0
push edx
push ecx
call ebx
lea ecx, [edi - 1]
lea edx, [ecx - 1]
cmp eax, edx
je 0x41d9a0
cmp eax, ecx
je 0x41d9a0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41da14
sub ecx, esi
mov esi, dword [ebp - 0x24]
sar ecx, 1
push ecx
call fcn.00404c70
mov dword [ebp - 0x20], vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
je 0x41da53
push eax
lea ecx, [ebp - 0x20]
call dword [0x443994]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov ebx, 8
mov dword [ebp - 0x20], vtable.ES_CMN_FUNCS::BUFFER::IESBuffer.0
cmp dword [ebp + 0x1c], ebx
jb 0x41da71
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], ebx
jb 0x41da93
mov edx, dword [ebp + 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp + 0x38], 7
mov dword [ebp + 0x34], edi
mov word [ebp + 0x24], ax
cmp dword [ebp + 0x54], ebx
jb 0x41dab5
mov ecx, dword [ebp + 0x40]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e4a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b761
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov eax, 1
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
jae 0x41e4fb
lea eax, [ebp + 8]
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
je 0x41e591
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 2
neg ecx
or ecx, eax
push ecx
call fcn.00438d15
add esp, 4
cmp dword [ebp + 0x1c], 8
mov ebx, eax
mov eax, dword [ebp + 8]
jae 0x41e538
lea eax, [ebp + 8]
push ebx
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41e57c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
push str.StringFileInfo000004b0FileVersion
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41e57c
mov eax, dword [ebp - 0x14]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41e567
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00404c70
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x41e591
cmp dword [ebp + 0x1c], 8
jb 0x41e5a4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41f1c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b719
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call dword [0x443968]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x4c]
push 0x20a
lea ecx, [ebp - 0x28]
call eax
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x41f2f8
push 1
push 0x23
mov eax, 0x20a
push edi
push ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [ebp - 0x24]
cmp eax, 1
jne 0x41f2af
cmp edi, ebx
je 0x41f27e
lea esi, [ebp - 0x10]
mov edx, edi
call fcn.0041d600
mov esi, dword [ebp + 8]
cmp eax, ebx
jge 0x41f287
xor ecx, ecx
jmp 0x41f28a
mov eax, 0x80070057
xor ecx, ecx
jmp 0x41f28a
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
jne 0x41f292
cmp ecx, ebx
jne 0x41f2af
cmp edi, ebx
je 0x41f2f8
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x50]
push edi
lea ecx, [ebp - 0x28]
call eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jmp 0x41f2f8
cmp edi, ebx
je 0x41f2f8
mov eax, edi
lea edx, [eax + 2]
jmp 0x41f2c0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41f2c0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00404c70
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x41f2f5
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x50]
push edi
lea ecx, [ebp - 0x28]
call eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], ebx
je 0x41f30e
push 0x11
mov eax, str.EPSONEPSONSCAN2
mov ecx, esi
call fcn.0040d100
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov dword [ebp - 4], 2
cmp edi, ebx
je 0x41f32a
push edi
lea ecx, [ebp - 0x28]
call dword [0x443994]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4