joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
mov edi, eax
call fcn.004067d0
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f7c5
call fcn.0040cef0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f7dc
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.00407e30
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00411f80
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00412080
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x40f83b
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f811
xor ecx, ecx
jmp 0x40f813
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov eax, esi
cmp edx, esi
ja 0x40f81e
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov ecx, ebx
call fcn.0040ee50
lea eax, [ebp - 0x18]
mov edx, edi
inc esi
call fcn.00412080
cmp esi, dword [eax + 8]
jne 0x40f806
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40f8c6
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f874
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f874
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xa
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f8a0
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f8a0
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx]
shr eax, 3
imul eax, dword [ebx + 0x24]
push edx
push ecx
call fcn.00407ea0
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f8ed
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f8ed
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0x5d
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f919
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f919
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x40f94c
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f94c
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
mov edi, eax
call fcn.004067d0
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f985
call fcn.0040cef0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f99c
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.00407e30
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00411f80
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00412080
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x40f9ff
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f9d1
xor ecx, ecx
jmp 0x40f9d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov eax, esi
cmp edx, esi
ja 0x40f9de
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
push edx
mov eax, ebx
call fcn.0040f0a0
add esp, 4
lea eax, [ebp - 0x18]
mov edx, edi
inc esi
call fcn.00412080
cmp esi, dword [eax + 8]
jne 0x40f9c6
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40fa8a
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40fa38
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40fa38
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xa
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40fa64
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40fa64
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx]
shr eax, 3
imul eax, dword [ebx + 0x24]
push edx
push ecx
call fcn.00407ea0
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40fab1
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40fab1
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0x5d
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40fadd
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40fadd
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x40fb10
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40fb10
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x10]
test eax, eax
jns 0x412c76
mov byte [ebp - 0x10], 0x2d
lea ecx, [ebp - 0xf]
neg eax
push edi
call fcn.00405540
lea edi, [ebp - 0x10]
mov edx, edi
mov dword [ebp - 0x14], eax
cmp edx, eax
je 0x412d07
push ebx
push esi
lea ebx, [ebx]
movsx ax, byte [edi]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov esi, dword [edx]
movzx ebx, ax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x412cc5
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412cc5
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], bl
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x412cf4
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412cf4
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
shr ebx, 8
mov byte [ecx], bl
inc dword [esi + 0xc]
inc edi
cmp edi, dword [ebp - 0x14]
jne 0x412c90
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.0042543a
mov esp, ebp
pop ebp
ret 4

Function at 0x412d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x10]
call fcn.00405540
lea edi, [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x14], eax
cmp ecx, eax
je 0x412dc7
push ebx
push esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov esi, dword [ecx]
movsx dx, byte [edi]
mov eax, dword [esi + 0xc]
movzx ebx, dx
cmp eax, dword [esi + 8]
jb 0x412d85
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412d85
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], bl
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x412db4
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412db4
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
shr ebx, 8
mov byte [ecx], bl
inc dword [esi + 0xc]
inc edi
cmp edi, dword [ebp - 0x14]
jne 0x412d50
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.0042543a
mov esp, ebp
pop ebp
ret 8
Function at 0x412de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 4], eax
fld qword [ebp + 0xc]
mov eax, dword [ebp + 8]
fld st(0)
push ebx
fld st(1)
mov dword [ebp - 0x2c], eax
fldz
push esi
fld st(0)
push edi
fucomp st(2)
lea esi, [ebp - 0x20]
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x412e2b
fstp st(2)
mov al, 0x30
fstp st(0)
lea ecx, [ebp - 0x1d]
fstp st(0)
mov word [ebp - 0x20], 0x2e30
mov byte [ebp - 0x1e], al
mov dword [ebp - 0x24], ecx
jmp 0x412e69
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x412e41
fstp st(0)
mov byte [ebp - 0x20], 0x2d
lea esi, [ebp - 0x1f]
fchs
jmp 0x412e43
fstp st(1)
sub esp, 8
lea edx, [ebp - 0x28]
fstp qword [esp]
push edx
push esi
lea eax, [ebp - 0x24]
call fcn.00405b70
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
add esp, 0x10
mov ecx, esi
call fcn.00405cd0
mov dword [ebp - 0x24], eax
lea edi, [ebp - 0x20]
mov eax, edi
cmp eax, dword [ebp - 0x24]
je 0x412ee8
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov esi, dword [eax]
movsx cx, byte [edi]
mov eax, dword [esi + 0xc]
movzx ebx, cx
cmp eax, dword [esi + 8]
jb 0x412ea8
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412ea8
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], bl
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x412ed7
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412ed7
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
shr ebx, 8
mov byte [ecx], bl
inc dword [esi + 0xc]
inc edi
cmp edi, dword [ebp - 0x24]
jne 0x412e73
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042543a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a060
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426eb1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x433018]
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 0x41a0d2
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 0x41a0fc
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
mov ecx, 8
cmp dword [ebp + 0x1c], ecx
jae 0x41a10c
lea esi, [ebp + 8]
mov edx, dword [ebp + 0x40]
cmp dword [ebp + 0x54], ecx
jae 0x41a117
lea edx, [ebp + 0x40]
cmp dword [ebp + 0x38], ecx
mov ecx, dword [ebp + 0x24]
jae 0x41a122
lea ecx, [ebp + 0x24]
push esi
push edi
push eax
push 0x429fe4
push edx
push ecx
call ebx
lea ecx, [edi - 1]
lea edx, [ecx - 1]
cmp eax, edx
je 0x41a0d0
cmp eax, ecx
je 0x41a0d0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41a144
sub ecx, esi
mov esi, dword [ebp - 0x24]
sar ecx, 1
push ecx
call fcn.00401b40
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 0x41a183
push eax
lea ecx, [ebp - 0x20]
call dword [0x42bb7c]
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 0x41a1a1
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 0x41a1c3
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 0x41a1e5
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 0x41aba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426e51
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x433018]
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 0x41abfb
lea eax, [ebp + 8]
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
je 0x41ac91
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 2
neg ecx
or ecx, eax
push ecx
call fcn.00425368
add esp, 4
cmp dword [ebp + 0x1c], 8
mov ebx, eax
mov eax, dword [ebp + 8]
jae 0x41ac38
lea eax, [ebp + 8]
push ebx
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41ac7c
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 0x41ac7c
mov eax, dword [ebp - 0x14]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41ac67
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00401b40
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x41ac91
cmp dword [ebp + 0x1c], 8
jb 0x41aca4
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 0x41b400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426e09
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x433018]
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 [0x42bb50]
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 0x41b538
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 0x41b4ef
cmp edi, ebx
je 0x41b4be
lea esi, [ebp - 0x10]
mov edx, edi
call fcn.00419c40
mov esi, dword [ebp + 8]
cmp eax, ebx
jge 0x41b4c7
xor ecx, ecx
jmp 0x41b4ca
mov eax, 0x80070057
xor ecx, ecx
jmp 0x41b4ca
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
jne 0x41b4d2
cmp ecx, ebx
jne 0x41b4ef
cmp edi, ebx
je 0x41b538
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 0x41b538
cmp edi, ebx
je 0x41b538
mov eax, edi
lea edx, [eax + 2]
jmp 0x41b500
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41b500
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00401b40
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x41b535
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 0x41b54e
push 0x11
mov eax, str.EPSONEPSONSCAN2
mov ecx, esi
call fcn.00401a10
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 0x41b56a
push edi
lea ecx, [ebp - 0x28]
call dword [0x42bb7c]
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

Function at 0x42543a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433018]
jne 0x425444
repz ret
jmp fcn.00425967
Function at 0x401410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 2
je 0x401481
cmp dword [ebp + 0xc], 0x111
jne 0x401492
mov eax, dword [ebp + 0x10]
cmp ax, 0x3e9
jne 0x401467
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.https:__link3.cc_takatprury
mov dword [esp + 4], str.open
mov dword [esp], 0
call sym._ShellExecuteA_24
sub esp, 0x18
jmp 0x4014b7
mov eax, dword [ebp + 0x10]
cmp ax, 0x3ea
jne 0x4014b7
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x4014b7
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x4014b8
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._DefWindowProcA_16
sub esp, 0x10
jmp 0x4014bd
nop
mov eax, 0
leave
ret 0x10
Function at 0x4014c1
Capabilities:
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ecx
add esp, 0xffffff80
call sym.___main
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x38]
mov eax, 0
mov ecx, 0xa
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x34], dbg._Z10WindowProcP6HWND__jjl@16
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], str.SimpleApp
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym._RegisterClassA_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xfa
mov dword [esp + 0x18], 0x190
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0x40606f
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [ebp - 0x10], eax
mov dword [esp + 0x2c], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x3e9
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0x406078
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [esp + 0x2c], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x3ea
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x10], 0xfa
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0x406084
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
setne al
test al, al
je 0x4016b2
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
jmp 0x401665
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop edi
pop ebp
lea esp, [ecx - 4]
ret