Function at 0x40a600
Capabilities:
Accept command line arguments
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42444a
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040fea0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
lea edx, [ecx + 2]
mov word [ebp - 0x248], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a687
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00404100
mov dword [ebp - 4], 0
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
xor ecx, ecx
mov dword [ebp - 0x230], 0
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
call fcn.00404100
lea eax, [ebp - 0x2c4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x230]
call fcn.00407640
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.0040a160
push eax
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.00403ca0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x40a779
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a76f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afba
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2b0]
cmp edx, 8
jb 0x40a7da
mov ecx, dword [ebp - 0x2c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a7d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afba
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 7
mov word [ebp - 0x2c4], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40a83b
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a831
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afba
push edx
push ecx
call fcn.0040e74a
add esp, 8
push dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x2ac], 0
cmp dword [ebp - 0x234], 8
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
xor ecx, ecx
mov word [ebp - 0x2ac], cx
lea ecx, [ebp - 0x2ac]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
call fcn.00404100
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00407640
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.00407640
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call fcn.0040a160
push eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xb
call fcn.00403ca0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x2f8]
cmp edx, 8
jb 0x40a933
mov ecx, dword [ebp - 0x30c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a929
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afbf
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 7
mov word [ebp - 0x30c], ax
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x2e0]
cmp edx, 8
jb 0x40a994
mov ecx, dword [ebp - 0x2f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a98a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afbf
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 7
mov word [ebp - 0x2f4], ax
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x2c8]
cmp edx, 8
jb 0x40a9f5
mov ecx, dword [ebp - 0x2dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afbf
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 7
mov word [ebp - 0x2dc], ax
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x298]
cmp edx, 8
jb 0x40aa56
mov ecx, dword [ebp - 0x2ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afbf
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x29c], 0
mov edx, str.FlashAssistant
mov dword [ebp - 0x298], 7
lea ecx, [ebp - 0x290]
mov word [ebp - 0x2ac], ax
call fcn.0040cf00
test al, al
je 0x40aedf
mov edx, 0x42fe60
lea ecx, [ebp - 0x278]
call fcn.0040cf00
test al, al
je 0x40aedf
lea ecx, [ebp - 0x2c4]
call fcn.0040a510
mov esi, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2ac]
push 0x10
xor eax, eax
mov dword [ebp - 0x2ac], 0
push 0x42fe6c
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
call fcn.00404100
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 0x12
push eax
mov ecx, esi
call fcn.00401e00
mov byte [ebp - 4], 0x11
mov esi, eax
mov edx, dword [ebp - 0x298]
cmp edx, 8
jb 0x40ab45
mov ecx, dword [ebp - 0x2ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afc4
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x29c], 0
push esi
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
call fcn.00403ca0
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x2b0]
cmp edx, 8
jb 0x40abb2
mov ecx, dword [ebp - 0x2c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aba8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afc9
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x2b4], 0
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
mov word [ebp - 0x2c4], ax
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x260]
cmp dword [ebp - 0x234], 8
push 0
cmovae eax, dword [ebp - 0x248]
push ecx
push eax
mov dword [ebp - 0x2b0], 7
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40ac0c
xor bl, bl
jmp 0x40ae9d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x230], 0
mov ecx, edx
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00404100
mov byte [ebp - 4], 0x15
mov eax, 0x7ffffffe
mov ecx, dword [ebp - 0x238]
sub eax, ecx
cmp eax, 1
jb 0x40afce
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
push 1
push 0x42fd44
push ecx
push dword [ebp - 0x294]
lea ecx, [ebp - 0x2f4]
call fcn.00409fe0
push 0x42fd44
lea edx, [ebp - 0x2f4]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2dc]
call fcn.004099e0
add esp, 4
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x40accd
mov eax, dword [eax]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push edx
cmovae ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x220]
push eax
push ecx
call fcn.004073e0
mov edx, dword [ebp - 0x2c8]
add esp, 0xc
mov esi, eax
cmp edx, 8
jb 0x40ad34
mov ecx, dword [ebp - 0x2dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afd3
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x2e0]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 7
mov word [ebp - 0x2dc], ax
cmp edx, 8
jb 0x40ad95
mov ecx, dword [ebp - 0x2f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afd3
push edx
push ecx
call fcn.0040e74a
add esp, 8
test esi, esi
jne 0x40adb1
mov eax, dword [ebp - 0x238]
push esi
push ecx
add eax, 2
push eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.00406d10
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x248]
cmp dword [ebp - 0x21c], 8
mov edx, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
push esi
push eax
push ecx
call fcn.004073e0
add esp, 0xc
test eax, eax
jne 0x40ae03
push eax
push ecx
push esi
push ecx
lea ecx, [ebp - 0x230]
call fcn.00406d10
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push 0
cmovae ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push 0
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x21c]
mov bl, 1
cmp edx, 8
jb 0x40ae80
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afd8
push edx
push ecx
call fcn.0040e74a
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x40aee1
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aed3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afd8
push edx
push ecx
call fcn.0040e74a
add esp, 8
jmp 0x40aee1
xor bl, bl
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x40af21
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40af17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afdd
push edx
push ecx
call fcn.0040e74a
add esp, 8
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x40af61
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40af57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afdd
push edx
push ecx
call fcn.0040e74a
add esp, 8
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x40af9d
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40af93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afdd
push edx
push ecx
call fcn.0040e74a
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e3a6
mov esp, ebp
pop ebp
ret
call fcn.0041260f
call fcn.0041260f
call fcn.0041260f
call fcn.0041260f
call fcn.00401590
call fcn.0041260f
call fcn.0041260f
call fcn.0041260f
int3