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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x401fe8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, 3
jl 0x4020f9
push 4
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4020f9
mov edx, 3
mov ecx, 2
cmp edi, edx
jle 0x402092
cmp word [esi + edx*2], 0x5c
jne 0x40208d
inc ecx
cmp edx, ecx
jle 0x4020f9
jmp 0x402040
movzx eax, word [esi + ecx*2]
cmp eax, 0x5c
je 0x40207f
cmp eax, 0x2f
je 0x40207f
cmp eax, 0x3a
je 0x40207f
cmp eax, 0x2a
je 0x40207f
cmp eax, 0x3f
je 0x40207f
cmp eax, 0x22
je 0x40207f
cmp eax, 0x3c
je 0x40207f
cmp eax, 0x3e
je 0x40207f
cmp eax, 0x7c
je 0x40207f
cmp eax, 0x2e
je 0x40207f
cmp eax, 0x20
je 0x40207f
xor eax, eax
jmp 0x402084
mov eax, 1
inc ecx
test eax, eax
jne 0x4020f9
cmp ecx, edx
jl 0x402040
inc edx
cmp edx, edi
jl 0x402028
inc ecx
cmp ecx, edx
jge 0x4020e4
movzx eax, word [esi + ecx*2]
cmp eax, 0x5c
je 0x4020d6
cmp eax, 0x2f
je 0x4020d6
cmp eax, 0x3a
je 0x4020d6
cmp eax, 0x2a
je 0x4020d6
cmp eax, 0x3f
je 0x4020d6
cmp eax, 0x22
je 0x4020d6
cmp eax, 0x3c
je 0x4020d6
cmp eax, 0x3e
je 0x4020d6
cmp eax, 0x7c
je 0x4020d6
cmp eax, 0x2e
je 0x4020d6
cmp eax, 0x20
je 0x4020d6
xor eax, eax
jmp 0x4020db
mov eax, 1
inc ecx
test eax, eax
jne 0x4020f9
cmp ecx, edx
jl 0x402097
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043cefb
mov esp, ebp
pop ebp
ret

Function at 0x402560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x40261a
test ebx, ebx
je 0x40261a
push esi
xor esi, esi
nop
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40260b
cmp dword [ebp - 8], 2
jne 0x40260b
mov ax, word [ebp - 4]
cmp ax, 0xd
je 0x4025b4
mov word [ebx + esi*2], ax
inc esi
cmp esi, 0x31f
jl 0x402580
cmp esi, 0x31f
jne 0x4025e9
lea esp, [esp]
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [ebp - 4], 0xa
jne 0x4025c0
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
mov word [ebx], ax
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
test esi, esi
je 0x4026a6
test edx, edx
je 0x4026a6
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4026a6
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ebx, [eax + eax]
lea eax, [ebp - 4]
push eax
push ebx
push edx
push esi
mov dword [ebp - 8], 0xd
mov dword [ebp - 0xc], 0xa
call edi
test eax, eax
je 0x40269c
cmp dword [ebp - 4], ebx
jne 0x40269c
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 8]
push eax
push esi
call edi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push esi
call edi
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404b00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x404ba4
mov eax, dword [esi]
push 0x320
lea ecx, [ebp - 0x644]
push ecx
mov ecx, esi
call dword [eax + 0x48]
cmp eax, 0xffffffff
je 0x404b71
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x404bb5
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x404b83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, esi
mov dword [eax + 0xc80], 0
mov eax, dword [esi + 0xc]
mov dword [eax + 0xc84], 0
mov eax, dword [esi]
call dword [eax + 0x18]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x404b71
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x644]
push eax
call ebx
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x404be8
push eax
jmp 0x404c03
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0xc]
cmp eax, dword [ecx + 0xc80]
je 0x404c87
push dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x644]
push eax
call ebx
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x404c4c
push eax
call edi
pop edi
pop ebx
mov dword [esi + 0x18], 0
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
mov ecx, esi
mov dword [eax + 0xc80], 0
mov eax, dword [esi + 0xc]
mov dword [eax + 0xc84], 0
mov eax, dword [esi]
mov dword [esi + 0x1c], 0
call dword [eax + 0x18]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
Function at 0x404cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xb], 0
je 0x404dc2
mov eax, dword [esi + 0x10]
cmp dword [eax + 4], 0
jne 0x404dc2
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x404d11
mov eax, dword [esi + 0x18]
test eax, eax
je 0x404cf0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov eax, dword [esi + 8]
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0x1000000
jmp 0x404d7c
cmp eax, 1
jne 0x404d7c
mov dword [ecx + 8], 0x1000000
xorps xmm0, xmm0
movsd qword [ecx], xmm0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc84]
mov edx, dword [eax + 0xc80]
mov eax, dword [esi + 8]
mov byte [eax + 8], 1
test ecx, ecx
jne 0x404d44
movsd qword [eax], xmm0
jmp 0x404d7c
movd xmm1, edx
movd xmm0, ecx
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
shr ecx, 0x1f
addsd xmm1, qword [edx*8 + 0x461400]
addsd xmm0, qword [ecx*8 + 0x461400]
divsd xmm1, xmm0
mulsd xmm1, qword [0x4613f0]
movsd qword [eax], xmm1
push dword [esi + 0x10]
mov dword [esi + 0x20], 1
push 0
push esi
push 0x406060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x10]
cmp dword [eax + 4], 0
jne 0x404dca
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
mov dword [eax + 4], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404e40
Capabilities:
Check internet connectivity via wininet
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
jne 0x404f58
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x404e9e
mov ecx, esi
call fcn.00404b00
cmp eax, 0xffffffff
je 0x404e9e
push 0
push 0
push 0
push 1
push str.DlSession
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [esi + 0x14]
mov dword [edx], eax
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
jne 0x404eb0
mov ecx, esi
call fcn.00404f70
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x404ec8
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi + 0x14]
mov dword [eax + 4], 0
mov eax, dword [esi + 0xc]
push dword [eax + 0xc80]
lea eax, [ebp - 0x68]
push str.Range:bytes_d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x68]
push 0
push 0x4000000
push 0xffffffffffffffff
push eax
push dword [esi + 0xc]
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ecx, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x14]
cmp dword [eax + 4], 0
je 0x404e97
push 0
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0x20000005
mov dword [ebp - 0x70], 4
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x404e97
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x404e97
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xc80]
add eax, edx
cmp dword [ecx + 0xc84], eax
je 0x404f58
mov dword [ecx + 0xc84], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043cefb
mov esp, ebp
pop ebp
ret

Function at 0x4050d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push 0x320
lea edx, [ebp - 0x644]
push edx
call dword [eax + 0x48]
cmp eax, 0xffffffff
je 0x40511a
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40511a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
call fcn.0043cefb
mov esp, ebp
pop ebp
ret

Function at 0x405130
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push 0x320
lea edx, [ebp - 0x644]
push edx
call dword [eax + 0x4c]
cmp eax, 0xffffffff
je 0x40517a
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40517a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
Function at 0x405190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x650
mov eax, dword [0x467e60]
xor eax, esp
mov dword [esp + 0x64c], eax
push esi
push edi
mov edi, ecx
push 0x320
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x4c]
cmp eax, 0xffffffff
je 0x405349
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4051f2
push eax
jmp 0x405343
mov edx, dword [edi + 0xc]
push ecx
mov ecx, esi
call fcn.00402560
add esp, 4
cmp eax, 0xffffffff
jne 0x40522b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov word [eax], cx
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0xc]
push ecx
add edx, 0x640
mov ecx, esi
call fcn.00402560
add esp, 4
cmp eax, 0xffffffff
jne 0x40526e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov word [eax + 0x640], cx
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405342
cmp dword [esp + 0xc], 4
jne 0x405342
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 8]
push 0
mov dword [ecx + 0xc80], eax
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405342
cmp dword [esp + 0xc], 4
jne 0x405342
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 8]
mov dword [ecx + 0xc84], eax
mov eax, dword [edi + 0xc]
xorps xmm1, xmm1
mov ecx, dword [eax + 0xc84]
test ecx, ecx
je 0x40531e
mov eax, dword [eax + 0xc80]
movd xmm1, eax
movd xmm0, ecx
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
shr ecx, 0x1f
addsd xmm1, qword [eax*8 + 0x461400]
addsd xmm0, qword [ecx*8 + 0x461400]
divsd xmm1, xmm0
mulsd xmm1, qword [0x4613f0]
mov eax, dword [edi + 8]
push esi
movsd qword [eax], xmm1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x654]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
Function at 0x405360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push 0x320
mov eax, dword [ebx]
lea ecx, [ebp - 0x644]
push ecx
mov ecx, ebx
call dword [eax + 0x4c]
cmp eax, 0xffffffff
jne 0x40539f
or eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4053df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
push esi
push dword [ebx + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
mov edx, dword [ebx + 0xc]
push eax
mov ecx, edi
call fcn.00402630
add esp, 4
cmp eax, 0xffffffff
je 0x405422
mov eax, dword [ebx + 0xc]
add eax, 0x640
push eax
call esi
mov edx, dword [ebx + 0xc]
push eax
add edx, 0x640
mov ecx, edi
call fcn.00402630
add esp, 4
cmp eax, 0xffffffff
jne 0x40543d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x648]
push eax
mov eax, dword [ebx + 0xc]
push 4
add eax, 0xc80
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x648]
push eax
mov eax, dword [ebx + 0xc]
push 4
add eax, 0xc84
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043cefb
mov esp, ebp
pop ebp
ret

Function at 0x405490
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc84
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push 0x320
lea edx, [ebp - 0xc84]
push edx
call dword [eax + 0x48]
cmp eax, 0xffffffff
jne 0x4054c9
or eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x644]
lea esi, [ebp - 0xc84]
mov eax, ecx
mov edx, 0x320
sub esi, eax
nop
lea eax, [edx + 0x7ffffcde]
test eax, eax
je 0x4054fe
movzx eax, word [esi + ecx]
test ax, ax
je 0x4054fe
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4054e0
jmp 0x405502
test edx, edx
jne 0x405505
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 - 6]
pop esi
cmp eax, 0x640
jae 0x405556
xor ecx, ecx
mov word [ebp + eax - 0x644], cx
push 1
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0xc84]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0043cefb
mov esp, ebp
pop ebp
ret
call fcn.0043dc10
int3
Function at 0x406350
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x467e60]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x467e60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x406394
xor eax, eax
jmp 0x406451
push 0x208
call fcn.0043ce13
push 0x208
mov esi, eax
push 0
push esi
call fcn.0043f3e0
add esp, 0x10
push esi
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x38], eax
cmp word [esi], ax
jne 0x4063e3
xor ecx, ecx
jmp 0x4063ff
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4063f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4063f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.004018a0
push esi
call fcn.0043d6b8
add esp, 4
lea ecx, [esp + 0x10]
push 9
push 0x46099c
call fcn.004042f0
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [esp + 0x24], 8
jb 0x40644c
push dword [esp + 0x10]
call fcn.0043d6b8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret 4
Function at 0x406e30
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451b8e
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x467e60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
movzx edi, word [ebp + 0x8c]
push 0
push 0x82
push 2
push 0
push 2
mov dword [ebp - 4], 1
push 0xc0000000
lea ecx, [ebp + 8]
mov esi, 1
mov dword [ebp - 0x9c], 0
call fcn.00412398
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x98], eax
cmp eax, 0xffffffff
jne 0x406efd
lea ecx, [ebp - 0x94]
xor esi, esi
call fcn.00411da7
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x94]
push str.Error_:__x
push eax
call fcn.0041229f
add esp, 0xc
lea ecx, [ebp - 0x94]
push esi
push esi
call fcn.00412398
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00411e57
jmp 0x406f6f
lea ecx, [ebp + 0x90]
call fcn.00412398
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x406f22
mov edi, dword [ebp - 0x98]
xor esi, esi
jmp 0x406f68
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x406f18
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x406f18
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x406f18
push 0
lea ecx, [ebp - 0x9c]
push ecx
push eax
push edi
mov edi, dword [ebp - 0x98]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
cmove esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00411e57
lea ecx, [ebp + 0x90]
mov dword [ebp - 4], 0xffffffff
call fcn.00411e57
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret 0x10c
Function at 0x4075c0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x467e60]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
push str.SETUP_MK_BOX
push 1
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40761a
push 0x1000
push 0x460af4
push 0x460afc
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.btn_close
lea ecx, [ebx + 0x1c]
call fcn.0040f138
push str.btn_install
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x264], eax
call fcn.0040f138
push str.btn_getpath
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x268], eax
call fcn.0040f138
push str.edit_path
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x26c], eax
call fcn.0040f138
push str.btn_check_deskshortcut
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x270], eax
call fcn.0040f138
push str.btn_check_installbinder1
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x274], eax
call fcn.0040f138
push str.btn_check_installbinder2
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x278], eax
call fcn.0040f138
push str.btn_check_installbinder3
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x27c], eax
call fcn.0040f138
push str.btn_check_installbinder4
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x280], eax
call fcn.0040f138
push str.btn_check_installbinder5
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x284], eax
call fcn.0040f138
push str.Progress_setup
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x288], eax
call fcn.0040f138
mov dword [ebx + 0x29c], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.0043f3e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call fcn.00406350
test eax, eax
je 0x407734
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40775c
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x2ac]
call fcn.00411eed
jmp 0x40773f
mov ecx, ebx
call fcn.00407aa0
test eax, eax
je 0x40775c
mov eax, dword [ebx + 0x270]
lea ecx, [ebx + 0x2ac]
mov esi, dword [eax]
call fcn.00412398
mov ecx, dword [ebx + 0x270]
push eax
call dword [esi + 0x2c]
mov ecx, dword [ebx + 0x278]
push 0
mov eax, dword [ecx]
call dword [eax + 0xc4]
mov ecx, dword [ebx + 0x27c]
push 0
mov eax, dword [ecx]
call dword [eax + 0xc4]
mov ecx, dword [ebx + 0x280]
push 0
mov eax, dword [ecx]
call dword [eax + 0xc4]
mov ecx, dword [ebx + 0x284]
push 0
mov eax, dword [ecx]
call dword [eax + 0xc4]
mov ecx, dword [ebx + 0x288]
push 0
mov eax, dword [ecx]
call dword [eax + 0xc4]
mov ecx, ebx
call fcn.004088d0
mov ecx, dword [ebx + 0x274]
push 1
call fcn.00412a27
mov ecx, ebx
call fcn.00408f70
mov ecx, ebx
call fcn.00408ac0
mov ecx, dword [ebx + 0x29c]
push 0
call fcn.00412e2d
mov ecx, dword [ebx + 0x268]
mov eax, dword [ecx]
call dword [eax + 0xe8]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043cefb
mov esp, ebp
pop ebp
ret