joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e90
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b8f5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4a5018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
push dword [ebx + 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
jne 0x403ed5
xor ebx, ebx
jmp 0x403f54
mov esi, dword [0x4aaa7c]
test esi, esi
je 0x403ee9
lock inc dword [esi + 4]
mov esi, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebx + 0x30]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x10]
mov ebx, eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403f31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x403f54
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x403f54
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x403f54
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x403f73
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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 0x403f90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b8f5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4a5018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
push dword [ebx + 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x40404e
mov esi, dword [0x4aaa7c]
test esi, esi
je 0x403fe5
lock inc dword [esi + 4]
mov esi, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebx + 0x30]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40402b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40404e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40404e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40404e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40406d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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 4
Function at 0x406770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4067c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4067c9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4067b8
cmp esi, edx
jae 0x4067c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4067a6
cmp esi, edx
jae 0x4067c9
cmp word [esi], 0
je 0x4067c9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40c890
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4a5018]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040c7e0
mov esi, eax
test esi, esi
jne 0x40c987
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40c959
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040c890
mov esi, eax
test esi, esi
jne 0x40c987
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40c920
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c970
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040c9d0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c996
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00454d47
mov esp, ebp
pop ebp
ret 4
Function at 0x40d590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c16b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4a5018]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40d63c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40d63c
call fcn.0040bcd0
mov edi, eax
jmp 0x40d75b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40d65f
call fcn.0040bcd0
jmp 0x40d74e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40d67d
call fcn.0040bcd0
jmp 0x40d74e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40d69e
mov edi, 0x8007000e
jmp 0x40d750
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40d794
jb 0x40d6bc
cmp eax, 0xffffffff
ja 0x40d794
cmp eax, 0x400
jbe 0x40d6d1
push eax
lea ecx, [ebp - 0x418]
call fcn.0040bca0
jmp 0x40d6f7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40d6f7
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40d70e
mov edi, 0x8007000e
jmp 0x40d750
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40d72e
call fcn.0040bcd0
jmp 0x40d74e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040d430
mov edi, eax
test esi, esi
je 0x40d75b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d774
lea ecx, [ebp - 0x418]
call fcn.0040bc80
mov eax, edi
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.00454d47
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00402980
int3
Function at 0x40e150
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c25b
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.00455f10
mov eax, dword [0x4a5018]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 8], 0
jne 0x40e198
cmp dword [edi + 4], 0
je 0x40e2e2
lea ebx, [edi + 0x14]
push ebx
mov dword [ebp - 0x2020], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x201c], 1
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
jle 0x40e1e4
test esi, esi
je 0x40e2db
push esi
push eax
call fcn.0045675d
add esp, 8
test eax, eax
je 0x40e2db
sub eax, dword [edi + 0x10]
sar eax, 1
js 0x40e2db
push 0x2000
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.004573c0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x2014]
push 0xfff
push eax
call fcn.00406d60
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0045d013
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x40e23a
cmp eax, 0xfff
ja 0x40e23a
jne 0x40e240
xor eax, eax
mov word [ebp - 0x16], ax
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x40e2fe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2014]
mov byte [ebp - 4], 1
push eax
push esi
lea eax, [ebp - 0x2018]
push str.__s___s_r_n
push eax
call fcn.00407700
mov esi, dword [ebp - 0x2018]
add esp, 0x10
cmp dword [edi + 8], 0
je 0x40e290
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 4], 0
je 0x40e2bf
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x40e2bf
push 0
mov dword [ebp - 0x2018], 0
lea edx, [ebp - 0x2018]
mov eax, dword [esi - 0xc]
push edx
add eax, eax
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e2db
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00454d47
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402980
int3
Function at 0x412670
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c955
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a5018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push str..temp
mov edx, edi
call fcn.0040eab0
add esp, 4
mov dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.004569c8
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x4127d8
sub eax, dword [edi]
sar eax, 1
test eax, eax
jle 0x4127d8
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00412810
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
push esi
call fcn.00414820
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x41272b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
jmp 0x4127bb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 4]
mov ecx, eax
mov edx, dword [ebx]
sub ecx, edx
mov dword [ebp + 0xc], eax
cmp edi, ecx
jae 0x412758
lea eax, [edx + edi]
jmp 0x412786
jbe 0x412789
mov eax, dword [ebx + 8]
sub eax, edx
cmp edi, eax
jbe 0x41276e
push ecx
push edi
mov ecx, ebx
call fcn.00412b60
jmp 0x412789
sub edi, ecx
push edi
push 0
push dword [ebp + 0xc]
call fcn.004573c0
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, edi
mov edi, dword [ebp - 0x18]
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x4127b8
mov eax, dword [ebx]
mov dword [ebx + 4], eax
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4127da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4127da
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4127f9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x414760
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
mov eax, edx
push 1
push SysReAllocString
push ecx
mov dword [eax], 0
mov dword [ebp - 4], eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4147d3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x41480f
cmp eax, 0xffffffff
je 0x41480f
add eax, 8
push 0x483636
push eax
call fcn.00455292
mov ebx, dword [ebp - 4]
mov ecx, eax
add esp, 8
mov dword [ebx], ecx
test ecx, ecx
jne 0x4147dc
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
add eax, 8
push eax
push 0
push ecx
call fcn.004573c0
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push dword [edi]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp ecx, dword [edi]
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415310
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cc9f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4a5018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
lea edx, [edi + 0x24]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 0x18], edx
mov dword [edx], eax
lea esi, [edi + 0x28]
mov dword [edi], vtable.CKDUpdateMgr.1.0
mov dword [edi + 4], vtable.CKDUpdateMgr.0
mov dword [ebp - 0x20], esi
mov dword [esi + 4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov dword [esi], vtable.CHttpDownloadEventPtr_class_CKDUpdateMgr_.0
mov dword [ebp - 0x14], 0
call fcn.00417310
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [eax + 0x24], edi
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x24], eax
mov byte [ebp - 4], 3
lea esi, [edi + 0x30]
mov dword [ebp - 0x20], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004551d2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0
lea eax, [edi + 0x38]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x415464
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41545e
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x415537
mov byte [ebp - 4], 5
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x41553d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x54], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x20]
mov dword [edi + 0x68], 0
push dword [ebp - 0x18]
mov dword [edi + 0x6c], 0
push 0x4a5c78
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
call fcn.004061f0
add esp, 8
movzx eax, ax
lea ecx, [edi + 4]
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.00406100
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], 0
mov dword [eax + 0x28], 0x416280
mov dword [eax + 0x2c], 0
mov eax, dword [edi + 0x2c]
mov dword [eax + 0x38], 0x4164f0
mov dword [eax + 0x3c], 0
mov eax, dword [edi + 0x2c]
mov dword [eax + 0x30], 0x416330
mov dword [eax + 0x34], 0
mov eax, edi
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push eax
call fcn.00402980
push 0x80004005
call fcn.00402980
int3
Function at 0x4158e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd4d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4a5018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 0x50]
mov dword [ebx + 0x58], 0
test eax, eax
je 0x415ab9
mov eax, dword [eax + 0x10]
cmp dword [eax - 0xc], 0
je 0x415ab9
push 0x492e10
push str.start
push str.update
push 0
call fcn.00426ad0
mov eax, dword [ebx + 0x50]
mov ecx, dword [eax + 0x10]
sub ecx, 0x10
call fcn.00406910
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00419e70
mov byte [ebp - 4], 1
lea edx, [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
push dword [ecx + 4]
push dword [eax]
push str._sXDCVInstallerLX__s.exe
push edx
call fcn.00407700
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 0x20
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4159a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x54]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415a09
lea edx, [ebx + 0x54]
lea ecx, [ebp - 0x18]
call fcn.0042b780
mov dword [ebp - 0x14], 1
mov ecx, dword [ebx + 0x50]
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x415ae0
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4159fc
test dx, dx
je 0x4159f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4159fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4159d6
xor eax, eax
jmp 0x415a01
sbb eax, eax
or eax, 1
mov byte [ebp - 0xd], 1
test eax, eax
je 0x415a0d
mov byte [ebp - 0xd], 0
test byte [ebp - 0x14], 1
je 0x415a2d
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415a2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x54]
push ecx
add ecx, 0xfffffff0
mov edi, esp
cmp byte [ebp - 0xd], 0
je 0x415a52
mov dword [ebp - 0x14], edi
call fcn.00406910
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.00415d60
jmp 0x415a84
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x20], edi
call fcn.00406910
add eax, 0x10
mov dword [edi], eax
push ecx
mov edi, esp
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
mov dword [ebp - 0x20], edi
call fcn.00406910
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
mov byte [ebp - 4], 0
call fcn.00415af0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415aa3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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
cmp dword [ebx + 0x5c], 0
je 0x415ac7
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 0x80004005
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
push 0x80004005
call fcn.00402980
int3
Function at 0x415d60
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ce0d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a5018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
or ebx, 0xffffffff
cmp dword [edi + 0x60], 0
je 0x415da8
mov dword [edi + 0x60], 0
xor edi, edi
jmp 0x415ee5
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415dcb
cmp dword [edi + 0x5c], eax
je 0x415dc1
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov edi, 0x80004005
jmp 0x415ee5
cmp dword [edi + 0x50], 0
je 0x415e61
lea esi, [edi + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x30]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004169a0
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x1c]
mov esi, dword [edx]
cmp esi, edx
je 0x415e52
nop
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x415e12
mov eax, dword [ecx]
push dword [edi + 0x50]
call dword [eax + 0x24]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x415e38
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x415e34
cmp esi, dword [eax + 8]
jne 0x415e34
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x415e24
mov esi, eax
jmp 0x415e4e
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x415e4e
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x415e42
cmp esi, edx
jne 0x415e00
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0
push eax
mov ecx, eax
call fcn.00417280
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x415f1a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov edx, 5
mov ecx, dword [edi + 0x58]
mov eax, 8
test ecx, ecx
lea ecx, [ebp - 0x14]
cmove eax, edx
mov edx, str._S__R__U
push eax
mov eax, str._S__U
cmovne eax, edx
push eax
call fcn.004069d0
mov esi, dword [ebp - 0x14]
push 1
push 0
push esi
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor edi, edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415ee5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x415f04
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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
push 0x80004005
call fcn.00402980
int3