Function at 0x43f480
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x440], edi
cmp dword [esi + 0x140], 0
mov eax, dword [edi + 8]
mov ebx, dword [esi + 0xa8]
mov dword [ebp - 0x43c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x438], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x434], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x430], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x42c], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x428], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x424], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x420], eax
jl 0x43f827
mov eax, dword [esi + 0xac]
lea edx, [ebp - 0x458]
mov dword [ebp - 0x458], eax
mov eax, dword [esi + 0x60]
push edx
push dword [esi + 0xb8]
mov ecx, dword [eax + 0x49c]
mov eax, dword [eax + 0x4a0]
add eax, 0x10
push eax
lea eax, [esi + 0xc4]
push eax
call fcn.004a73f0
test eax, eax
je 0x43f556
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x43fc09
mov esi, dword [esi + 0xb8]
mov eax, dword [esi]
test eax, eax
je 0x43f579
cmp eax, 6
je 0x43f579
cmp eax, 1
je 0x43f579
cmp eax, 2
je 0x43f579
mov esi, dword [ebp - 0x448]
jmp 0x43f582
add esi, 8
mov dword [ebp - 0x448], esi
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f587
mov eax, dword [ebp - 0x44c]
sub ecx, edx
sar ecx, 1
lea edx, [ebp - 0x450]
mov dword [ebp - 0x450], ecx
mov ecx, esi
mov eax, dword [eax + 0x60]
push dword [eax + 0x32c]
call fcn.004534d0
mov eax, dword [ebp - 0x44c]
add esp, 4
mov eax, dword [eax + 0x60]
push dword [eax + 0x448]
push 0x104
push ebx
call fcn.004d9c76
mov eax, dword [ebp - 0x44c]
mov edx, 0x103
add esp, 0xc
mov eax, dword [eax + 0x60]
sub edx, dword [eax + 0x454]
mov dword [ebp - 0x444], edx
je 0x43f6aa
mov ecx, ebx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f600
sub ecx, edi
sar ecx, 1
lea eax, [ebx + ecx*2]
mov ecx, esi
mov dword [ebp - 0x450], eax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f620
sub ecx, esi
mov edi, edx
sar ecx, 1
cmp ecx, edx
cmovbe edi, ecx
lea esi, [edi + edi]
push esi
push dword [ebp - 0x448]
push dword [ebp - 0x450]
call fcn.004d6950
mov eax, dword [ebp - 0x450]
xor ecx, ecx
mov edx, dword [ebp - 0x444]
add esp, 0xc
mov word [esi + eax], cx
sub edx, edi
je 0x43f6a4
mov ecx, ebx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f670
sub ecx, esi
mov eax, 1
sar ecx, 1
cmp edx, eax
cmovb eax, edx
lea edi, [ebx + ecx*2]
lea esi, [eax + eax]
push esi
push 0x504dd0
push edi
call fcn.004d6950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x440]
push ebx
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004d9c76
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f6c4
sub ecx, edx
lea esi, [edi + 0x50]
sar ecx, 1
mov ebx, 0x103
mov dword [ebp - 0x444], esi
sub ebx, ecx
je 0x43f74a
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f6f0
sub ecx, edx
lea edx, [ebp - 0x214]
sar ecx, 1
lea edx, [edx + ecx*2]
mov ecx, esi
mov dword [ebp - 0x440], edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f713
sub ecx, esi
mov edi, ebx
sar ecx, 1
cmp ecx, ebx
cmovbe edi, ecx
lea esi, [edi + edi]
push esi
push dword [ebp - 0x444]
push edx
call fcn.004d6950
mov eax, dword [ebp - 0x440]
xor ecx, ecx
add esp, 0xc
sub ebx, edi
mov word [esi + eax], cx
mov eax, dword [ebp - 0x44c]
add eax, 0x8c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fc09
mov eax, 0x103
sub eax, ebx
cmp eax, 4
jb 0x43f819
push 4
lea esi, [ebp + eax*2 - 0x21c]
push str..exe
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..bat
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..pif
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..scr
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..cmd
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..vbs
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
mov edx, dword [ebp - 0x454]
push 0xa
push edx
jmp 0x43fbf6
add edi, 0x50
lea eax, [ebp - 0x41c]
push edi
push 0x104
push eax
mov dword [ebp - 0x444], edi
call fcn.004d9c76
mov eax, dword [esi + 0x60]
add esp, 0xc
push dword [eax + 0x448]
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004d9c76
mov eax, dword [esi + 0x60]
add esp, 0xc
mov esi, 0x103
sub esi, dword [eax + 0x454]
mov dword [ebp - 0x450], esi
je 0x43f8e1
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f881
sub ecx, edx
lea edx, [ebp - 0x214]
sar ecx, 1
lea edx, [edx + ecx*2]
mov ecx, edi
mov dword [ebp - 0x440], edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f8a4
sub ecx, edi
mov edi, esi
sar ecx, 1
cmp ecx, esi
cmovbe edi, ecx
lea esi, [edi + edi]
push esi
push dword [ebp - 0x444]
push edx
call fcn.004d6950
mov eax, dword [ebp - 0x440]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov esi, dword [ebp - 0x450]
sub esi, edi
mov edi, dword [ebp - 0x44c]
lea eax, [edi + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x103
sub eax, esi
cmp eax, 4
jb 0x43f99b
push 4
lea esi, [ebp + eax*2 - 0x21c]
push str..exe
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..bat
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..pif
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..scr
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..cmd
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
je 0x43f983
push 4
push str..vbs
push esi
call fcn.004e3611
add esp, 0xc
test eax, eax
jne 0x43f99b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43fbeb
push 0x20
call fcn.004d3886
mov ecx, eax
mov dword [ebp - 0x444], eax
call fcn.004069a0
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0x448], eax
mov esi, dword [ecx + 0x470]
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 1
push dword [ebp - 0x448]
lea eax, [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.0041cc40
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [eax]
mov edi, dword [ebp - 0x448]
xor esi, esi
mov dword [ebp - 0x440], esi
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 8
jb 0x43fbe1
lea eax, [ecx + 4]
mov ecx, dword [edi + 4]
mov dword [edi + 0x10], eax
mov edx, dword [ecx + eax]
add eax, 4
mov dword [edi + 0x10], eax
test edx, edx
je 0x43fa43
lea esi, [ecx + eax]
add eax, edx
mov dword [ebp - 0x440], esi
mov dword [edi + 0x10], eax
mov edi, dword [ebp - 0x44c]
mov eax, dword [edi + 0x60]
push dword [eax + 0x448]
push 0x104
push ebx
call fcn.004d9c76
mov eax, dword [edi + 0x60]
mov ebx, 0x103
add esp, 0xc
sub ebx, dword [eax + 0x454]
je 0x43fb18
mov edx, dword [ebp - 0x454]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fa80
sub ecx, edi
sar ecx, 1
lea edx, [edx + ecx*2]
mov ecx, esi
mov dword [ebp - 0x444], edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43faa0
sub ecx, esi
mov edi, ebx
sar ecx, 1
cmp ecx, ebx
cmovbe edi, ecx
lea esi, [edi + edi]
push esi
push dword [ebp - 0x440]
push edx
call fcn.004d6950
mov eax, dword [ebp - 0x444]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
sub ebx, edi
je 0x43fb18
mov edx, dword [ebp - 0x454]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fae4
sub ecx, esi
mov eax, 1
sar ecx, 1
cmp ebx, eax
cmovb eax, ebx
lea edi, [edx + ecx*2]
lea esi, [eax + eax]
push esi
push 0x504dd0
push edi
call fcn.004d6950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov ebx, dword [ebp - 0x454]
lea eax, [ebp - 0x214]
push ebx
push 0x104
push eax
call fcn.004d9c76
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fb40
sub ecx, edx
mov esi, 0x103
sar ecx, 1
sub esi, ecx
je 0x43fbaf
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fb61
sub ecx, edx
lea edi, [ebp - 0x214]
sar ecx, 1
lea edi, [edi + ecx*2]
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43fb82
sub ecx, edx
lea eax, [ebp - 0x41c]
sar ecx, 1
cmp ecx, esi
cmovbe esi, ecx
add esi, esi
push esi
push eax
push edi
call fcn.004d6950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fa00
push 0xa
push ebx
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, dword [ebp - 0x448]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x43fc09
mov eax, dword [edi + 0x60]
push 0xa
push dword [eax + 0x448]
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4