Function at 0x404e60
Capabilities:
Create directory
Create process on windows
Create process suspended
Get common file path
Get file size
Move file
Query or enumerate registry value
Read file on windows
Set current directory
Set environment variable
Set file attributes
Write and execute a file
Write file on windows

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 0x413380
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x9e8
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x9dc], eax
mov dword [ebp - 0x9d0], ecx
mov dword [ebp - 0x9fc], eax
lea eax, [ebp - 0x9c8]
push eax
mov dword [ebp - 0x9c8], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x94c]
push eax
push 0x419258
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x419258
push dword [ebp - 0x98c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x260]
mov byte [ebp - 0x9c9], 0
push eax
push 1
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Scratch
push str._ls
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x260]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x260]
add esp, 0xc
push 0
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x260]
push 2
push eax
call esi
push str.1.0.0.0
push str._ls
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x260]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x260]
push 0
push eax
call edi
push 2
lea eax, [ebp - 0x260]
push eax
call esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x260]
push eax
push 0x4192ac
call esi
lea eax, [ebp - 0x260]
push eax
push 0x4192b4
call esi
lea eax, [ebp - 0x260]
push eax
push str.C51LIB
call esi
push str._temp.tmp
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp - 0x9d0]
mov esi, eax
push 0
lea eax, [ebp - 0x94c]
push eax
push edi
call fcn.0040a4b5
add esp, 4
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
lea eax, [ebp - 0x260]
push eax
push 0x401d00
push str.COMPILER_IOROBOX
push 0
call esi
lea eax, [ebp - 0x260]
push eax
push 0x401d00
push str.IO3.0_edu
push 0
call esi
push str.C51.exe
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x948]
mov dword [ebp - 0x908], 0
push eax
push 0
push 0
push 0x8000000
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x948], 0x44
push 0
push str._temp.tmp_LARGE_BROWSE_DEBUG_OBJECTEXTEND
lea eax, [ebp - 0x260]
movlpd qword [ebp - 0x944], xmm0
push eax
movlpd qword [ebp - 0x93c], xmm0
movlpd qword [ebp - 0x934], xmm0
movlpd qword [ebp - 0x92c], xmm0
movlpd qword [ebp - 0x924], xmm0
movlpd qword [ebp - 0x918], xmm0
movlpd qword [ebp - 0x910], xmm0
mov dword [ebp - 0x91c], 0x80
call esi
test eax, eax
je 0x4061e2
push dword [ebp - 0x960]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebp - 0x95c]
call edi
lea eax, [ebp - 0x8c4]
mov dword [ebp - 0x8c4], 0
push eax
push dword [ebp - 0x95c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x95c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x8c4], 2
je 0x405315
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.BL51.exe
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x948]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push str._temp.obj__IOROBOX.lib_RAMSIZE__256_
lea eax, [ebp - 0x260]
push eax
call esi
test eax, eax
je 0x405315
push dword [ebp - 0x960]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x95c]
call edi
push dword [ebp - 0x95c]
call esi
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str._temp.m51
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0xfffffffffffffff3
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x94c]
push eax
push 0xd
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x94c], 0xd
jne 0x405315
cmp byte [ebp - 0x40], 0x20
jne 0x405315
cmp byte [ebp - 0x3f], 0x30
jne 0x405315
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.OH51.exe
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x948]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push str._temp
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405315
push dword [ebp - 0x960]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x95c]
call edi
lea eax, [ebp - 0x8c4]
push eax
push dword [ebp - 0x95c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x95c]
call esi
cmp dword [ebp - 0x8c4], 0
jne 0x405315
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
jmp 0x405343
push 0
lea eax, [ebp - 0x94c]
push eax
push 0x419420
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push 0x419420
push dword [ebp - 0x98c]
call edi
mov al, byte [ebp - 0x9c9]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
mov byte [ebp - 0x9c9], al
call esi
cmp byte [ebp - 0x9c9], 0
je 0x40620e
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str._temp.hex
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x94c], eax
call fcn.004067d3
add esp, 4
mov edi, eax
lea eax, [ebp - 0x94c]
mov dword [ebp - 0x8c8], edi
push 0
push eax
push dword [ebp - 0x94c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi + 1]
xor ecx, ecx
mov edi, esi
mov dword [ebp - 0x9d0], ecx
xor dh, dh
mov byte [ebp - 0x9cb], dh
lea eax, [edi + 7]
mov dword [ebp - 0x950], eax
mov ecx, eax
mov al, byte [ebp - 0x9c9]
mov dl, al
mov byte [ebp - 0x9c9], dl
cmp byte [ecx], 0x31
mov ecx, 0
je 0x4055a0
mov byte [ebp - 0x9c9], dl
mov dl, byte [edi]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x405430
mov dl, al
jmp 0x405448
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x40543d
add dl, 0xc9
jmp 0x405448
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x405448
add dl, 0xa9
mov cl, byte [edi + 1]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x405457
mov cl, al
jmp 0x40546f
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x405464
add cl, 0xc9
jmp 0x40546f
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x40546f
add cl, 0xa9
mov ch, byte [edi + 2]
shl dl, 4
mov al, ch
sub al, 0x30
add dl, cl
cmp al, 9
ja 0x405483
mov ch, al
jmp 0x40549b
mov al, ch
sub al, 0x41
cmp al, 5
ja 0x405490
add ch, 0xc9
jmp 0x40549b
mov al, ch
sub al, 0x61
cmp al, 5
ja 0x40549b
add ch, 0xa9
mov ah, byte [edi + 3]
mov al, ah
sub al, 0x30
cmp al, 9
ja 0x4054aa
mov ah, al
jmp 0x4054c2
mov al, ah
sub al, 0x41
cmp al, 5
ja 0x4054b7
add ah, 0xc9
jmp 0x4054c2
mov al, ah
sub al, 0x61
cmp al, 5
ja 0x4054c2
add ah, 0xa9
mov cl, byte [edi + 4]
mov al, cl
mov byte [ebp - 0x9ca], cl
sub al, 0x30
cmp al, 9
ja 0x4054db
mov byte [ebp - 0x9ca], al
jmp 0x4054f9
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x4054e8
add cl, 0xc9
jmp 0x4054f3
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x4054f9
add cl, 0xa9
mov byte [ebp - 0x9ca], cl
mov dh, byte [edi + 5]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x405508
mov dh, al
jmp 0x405520
mov al, dh
sub al, 0x41
cmp al, 5
ja 0x405515
add dh, 0xc9
jmp 0x405520
mov al, dh
sub al, 0x61
cmp al, 5
ja 0x405520
add dh, 0xa9
movsx cx, ch
movsx ax, ah
shl cx, 4
add cx, ax
mov al, byte [ebp - 0x9ca]
shl cx, 4
cbw
add cx, ax
movsx ax, dh
shl cx, 4
add cx, ax
movzx eax, cx
mov ecx, dword [ebp - 0x9d0]
cmp cx, ax
jae 0x405569
mov ecx, eax
mov dh, dl
mov dword [ebp - 0x9d0], ecx
mov byte [ebp - 0x9cb], dh
jmp 0x40556f
mov dh, byte [ebp - 0x9cb]
movsx eax, byte [edi + 7]
add edi, 8
sub eax, 0x30
je 0x405589
sub eax, 2
je 0x405585
sub eax, 2
jne 0x405593
xor ecx, ecx
jmp 0x4055a8
test dl, dl
je 0x405593
movzx eax, dl
lea edi, [edi + eax*2]
add edi, 5
cmp byte [edi + 7], 0x31
jne 0x405422
movzx ecx, cx
movzx eax, dh
add ecx, eax
lea eax, [ecx + 0x7f]
and eax, 0xffffff80
push eax
mov dword [ebp - 0x94c], eax
call fcn.004067d3
mov dword [ebp - 0x9f4], eax
add esp, 4
mov eax, dword [ebp - 0x950]
cmp byte [eax], 0x31
je 0x4057d4
mov ch, byte [ebp - 0x9c9]
nop dword [eax + eax]
mov dl, byte [esi]
mov al, dl
mov byte [ebp - 0x9cb], ch
sub al, 0x30
cmp al, 9
ja 0x4055f4
mov dl, al
jmp 0x40560c
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x405601
add dl, 0xc9
jmp 0x40560c
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x40560c
add dl, 0xa9
mov cl, byte [esi + 1]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x40561b
mov cl, al
jmp 0x405633
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x405628
add cl, 0xc9
jmp 0x405633
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x405633
add cl, 0xa9
mov ch, byte [esi + 2]
add esi, 2
shl dl, 4
mov al, ch
sub al, 0x30
mov dword [ebp - 0x9d0], esi
add dl, cl
cmp al, 9
ja 0x405650
mov ch, al
jmp 0x405668
mov al, ch
sub al, 0x41
cmp al, 5
ja 0x40565d
add ch, 0xc9
jmp 0x405668
mov al, ch
sub al, 0x61
cmp al, 5
ja 0x405668
add ch, 0xa9
mov ah, byte [esi + 1]
mov al, ah
sub al, 0x30
cmp al, 9
ja 0x405677
mov ah, al
jmp 0x40568f
mov al, ah
sub al, 0x41
cmp al, 5
ja 0x405684
add ah, 0xc9
jmp 0x40568f
mov al, ah
sub al, 0x61
cmp al, 5
ja 0x40568f
add ah, 0xa9
mov cl, byte [esi + 2]
mov al, cl
mov byte [ebp - 0x9ca], cl
sub al, 0x30
cmp al, 9
ja 0x4056a8
mov byte [ebp - 0x9ca], al
jmp 0x4056c6
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x4056b5
add cl, 0xc9
jmp 0x4056c0
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x4056c6
add cl, 0xa9
mov byte [ebp - 0x9ca], cl
mov dh, byte [esi + 3]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x4056d5
mov dh, al
jmp 0x4056ed
mov al, dh
sub al, 0x41
cmp al, 5
ja 0x4056e2
add dh, 0xc9
jmp 0x4056ed
mov al, dh
sub al, 0x61
cmp al, 5
ja 0x4056ed
add dh, 0xa9
movsx cx, ch
add esi, 6
movsx ax, ah
shl cx, 4
add cx, ax
mov al, byte [ebp - 0x9ca]
shl cx, 4
cbw
add cx, ax
movsx ax, dh
shl cx, 4
add cx, ax
mov eax, dword [ebp - 0x9d0]
movzx edi, cx
mov cl, byte [ebp - 0x9cb]
mov ch, cl
movsx eax, byte [eax + 5]
sub eax, 0x30
je 0x405747
sub eax, 2
je 0x4057ce
sub eax, 2
je 0x4057ce
jmp 0x4057c1
mov ch, cl
test dl, dl
je 0x4057c1
add edi, dword [ebp - 0x9f4]
movzx eax, dl
mov dword [ebp - 0x9d0], eax
nop dword [eax]
mov cl, byte [esi]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x40576e
mov cl, al
jmp 0x405786
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x40577b
add cl, 0xc9
jmp 0x405786
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x405786
add cl, 0xa9
mov dl, byte [esi + 1]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x405795
mov dl, al
jmp 0x4057ad
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x4057a2
add dl, 0xc9
jmp 0x4057ad
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x4057ad
add dl, 0xa9
shl cl, 4
add esi, 2
add cl, dl
mov byte [edi], cl
inc edi
sub dword [ebp - 0x9d0], 1
jne 0x405760
add esi, 5
cmp byte [esi + 7], 0x31
jne 0x4055e0
mov byte [ebp - 0x9c9], ch
push dword [ebp - 0x8c8]
call fcn.004065d1
mov ax, word [0x41c454]
or edi, 0xffffffff
mov ecx, 0x43
mov dword [ebp - 0x9f0], edi
add esp, 4
cmp cx, ax
je 0x405805
mov ecx, 0x63
cmp cx, ax
jne 0x405880
mov ax, word [0x41c456]
mov ecx, 0x4f
cmp cx, ax
je 0x40581f
mov ecx, 0x6f
cmp cx, ax
jne 0x405880
mov ax, word [0x41c458]
mov ecx, 0x4d
cmp cx, ax
je 0x405839
mov ecx, 0x6d
cmp cx, ax
jne 0x405880
push 0x41c454
lea eax, [ebp - 0x7f8]
push str.._ls
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x7f8]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x9f0], edi
cmp edi, 0xffffffff
jne 0x405a0d
xor eax, eax
mov word [0x41c454], ax
lea eax, [ebp - 0x950]
push eax
push 1
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059e7
lea eax, [ebp - 0x8cc]
mov dword [ebp - 0x8c8], 0x64
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x8cc], 0x14
push eax
xor esi, esi
lea eax, [ebp - 0x8c8]
push esi
push esi
push eax
lea eax, [ebp - 0x728]
push eax
push esi
push dword [ebp - 0x950]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x4059d6
lea eax, [ebp - 0x728]
push str.DeviceProlificSerial
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x40598c
lea eax, [ebp - 0x728]
push str.DeviceSilabser
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x40598c
lea eax, [ebp - 0x728]
push str.DeviceSerial
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x40598c
lea eax, [ebp - 0x8cc]
mov dword [ebp - 0x8c8], 0x64
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x8cc], 0x14
push eax
push 0
push 0
lea eax, [ebp - 0x8c8]
inc esi
push eax
lea eax, [ebp - 0x728]
push eax
push esi
push dword [ebp - 0x950]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4058f4
jmp 0x4059d6
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x54]
push eax
push 0x41c454
call esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x790]
push str.._ls
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x790]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x9f0], edi
push dword [ebp - 0x950]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0xffffffff
jne 0x405a0d
push 0
lea eax, [ebp - 0x94c]
mov byte [ebp - 0x9c9], 0
push eax
push 0x41951c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x41951c
jmp 0x4061be
mov esi, dword [ebp - 0x9dc]
push edi
push str.CommHandle
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_SetPropW]
lea eax, [ebp - 0x8e8]
mov dword [ebp - 0x8d0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x8e8], xmm0
or dword [ebp - 0x8e0], 1
push eax
movq qword [ebp - 0x8d8], xmm0
push edi
mov dword [ebp - 0x8e8], 0x1c
mov word [ebp - 0x8d6], 0x208
mov dword [ebp - 0x8e4], 0x960
mov byte [ebp - 0x8d4], 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x4062f4
push 0x400
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_SetupComm]
test eax, eax
je 0x406313
push 0xc
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
je 0x406332
lea eax, [ebp - 0x8fc]
mov dword [ebp - 0x8fc], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x8f8], 0xa
push edi
movlpd qword [ebp - 0x8f4], xmm0
mov dword [ebp - 0x8ec], 0x1388
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
je 0x406351
push 0
push 0x1388
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
push 0x41945c
push edi
call esi
test eax, eax
je 0x406370
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
lea eax, [ebp - 0x660]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40638f
cmp dword [ebp - 0x94c], 0
je 0x405b03
cmp byte [ebp - 0x660], 0x46
jne 0x405b03
push 0
lea eax, [ebp - 0x94c]
push eax
push 0x419460
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x419460
push dword [ebp - 0x98c]
call esi
mov esi, dword [ebp - 0x9dc]
mov eax, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1388
push 1
push esi
call eax
mov esi, 1
nop
cmp esi, 4
ja 0x405bc4
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
lea eax, [ebp - 0x660]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4063ae
cmp dword [ebp - 0x94c], 0
je 0x405b90
inc esi
jmp 0x405b90
mov esi, 5
nop dword [eax]
movsx eax, byte [ebp - 0x65c]
inc eax
cmp esi, eax
jg 0x405c0b
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
lea eax, [ebp - 0x660]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4063cd
cmp dword [ebp - 0x94c], 0
je 0x405bd0
inc esi
jmp 0x405bd0
cmp byte [ebp - 0x65b], 0x50
jne 0x40659e
push 4
mov edx, 0x419478
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x40659e
mov dl, byte [ebp - 0x9c9]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x647]
mov byte [ebp - 0x9c9], dl
cmp al, byte [ecx + 0x419590]
jne 0x40657f
inc ecx
cmp ecx, 2
jb 0x405c40
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebp - 0x657]
mov ecx, 2
mov dword [ebp - 0x8c4], 0
mov dx, word [ebp - 0x8c4]
mov dword [ebp - 0x2c], 0x6ab946
mov word [ebp - 0x28], 0x10e
mov byte [ebp - 0x26], al
mov dword [ebp - 0x25], 0x64ff40
mov word [ebp - 0x21], 0x9700
movzx eax, byte [ebp + ecx - 0x2c]
inc ecx
add dx, ax
mov word [ebp - 0x8c4], dx
cmp ecx, 0xc
jle 0x405ca0
mov eax, dword [ebp - 0x8c4]
shr eax, 8
mov byte [ebp - 0x1f], al
mov al, dl
push 0
mov byte [ebp - 0x1e], al
lea eax, [ebp - 0x94c]
push eax
push 0x10
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1d], 0x16
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4063ec
mov esi, dword [ebp - 0x9dc]
mov eax, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1388
push 1
push esi
call eax
xor esi, esi
cmp esi, 8
ja 0x405d35
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
lea eax, [ebp - 0x660]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40640b
cmp dword [ebp - 0x94c], 0
je 0x405d01
inc esi
jmp 0x405d01
push 6
mov edx, 0x419484
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x40642a
mov esi, dword [ebp - 0x9dc]
push 1
push esi
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 0x8e8]
mov dword [ebp - 0x8e4], 0x9600
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x406449
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x94c]
push eax
push 0xd
push 0x41948c
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406468
mov eax, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1388
push 1
push esi
call eax
xor esi, esi
cmp esi, 8
ja 0x405dec
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
lea eax, [ebp - 0x660]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406487
cmp dword [ebp - 0x94c], 0
je 0x405db8
inc esi
jmp 0x405db8
push 6
mov edx, 0x41949c
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x4064a6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x94c]
push eax
push 0xd
push 0x4194a4
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4064c5
mov esi, dword [ebp - 0x9dc]
mov eax, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1388
push 1
push esi
call eax
xor esi, esi
cmp esi, 0xf
ja 0x405e7a
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
lea eax, [ebp - 0x660]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4064e4
cmp dword [ebp - 0x94c], 0
je 0x405e46
inc esi
jmp 0x405e46
push 6
mov edx, 0x4194b4
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x406503
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x9f4]
call fcn.0040a4b5
movsd xmm1, qword [0x419598]
mov ecx, eax
shr ecx, 7
add esp, 4
mov eax, ecx
mov dword [ebp - 0x9f8], ecx
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x4195b0]
xor eax, eax
divsd xmm1, xmm0
movsd qword [ebp - 0x40], xmm1
mov dword [ebp - 0x9d0], eax
cmp eax, ecx
jae 0x40613b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4195b0]
mulsd xmm0, xmm1
call fcn.00413270
push eax
lea eax, [ebp - 0x8c0]
push str.__u__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x94c]
push 0
push eax
lea eax, [ebp - 0x8c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x8c0]
push eax
push dword [ebp - 0x98c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x9d0]
test ecx, ecx
jne 0x405f66
mov eax, dword [0x4194d4]
mov dword [ebp - 0x660], eax
mov ax, word [0x4194d8]
jmp 0x405f77
mov eax, dword [0x4194dc]
mov dword [ebp - 0x660], eax
mov ax, word [0x4194e0]
movaps xmm3, xmmword [0x4195a0]
lea edi, [ebp - 0x656]
mov word [ebp - 0x65c], ax
mov esi, ecx
mov eax, ecx
shl esi, 7
shr eax, 1
xorps xmm1, xmm1
mov byte [ebp - 0x65a], al
xorps xmm2, xmm2
mov al, cl
mov word [ebp - 0x658], 0xa55a
shl al, 7
mov ecx, 0x20
add esi, dword [ebp - 0x9f4]
mov byte [ebp - 0x659], al
rep movsd dword es:[edi], dword [esi]
mov ecx, 2
nop word [eax + eax]
movq xmm0, qword [ebp + ecx - 0x660]
punpcklbw xmm0, xmm0
psraw xmm0, 8
andps xmm0, xmm3
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx - 0x658]
punpcklbw xmm0, xmm0
add ecx, 0x10
psraw xmm0, 8
andps xmm0, xmm3
paddw xmm2, xmm0
cmp ecx, 0x81
jle 0x405fd0
paddw xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddw xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddw xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
paddw xmm1, xmm0
movd eax, xmm1
movzx eax, ax
mov dword [ebp - 0x8c4], eax
cmp ecx, 0x89
jg 0x406077
mov dx, ax
mov esi, 0xff
movsx ax, byte [ebp + ecx - 0x660]
inc ecx
and ax, si
add dx, ax
mov word [ebp - 0x8c4], dx
cmp ecx, 0x89
jle 0x406052
mov eax, dword [ebp - 0x8c4]
mov edi, dword [ebp - 0x9f0]
shr eax, 8
mov byte [ebp - 0x5d6], al
mov al, byte [ebp - 0x8c4]
push 0
mov byte [ebp - 0x5d5], al
lea eax, [ebp - 0x94c]
push eax
push 0x8d
lea eax, [ebp - 0x660]
mov byte [ebp - 0x5d4], 0x16
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406522
mov esi, dword [ebp - 0x9dc]
mov eax, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1388
push 1
push esi
call eax
xor esi, esi
cmp esi, 9
ja 0x40610a
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
lea eax, [ebp - 0x660]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406541
cmp dword [ebp - 0x94c], 0
je 0x4060d6
inc esi
jmp 0x4060d6
push 7
mov edx, 0x4194e4
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x406560
mov eax, dword [ebp - 0x9d0]
movsd xmm1, qword [ebp - 0x40]
inc eax
mov ecx, dword [ebp - 0x9f8]
jmp 0x405ede
mov esi, dword [ebp - 0x9dc]
push 1
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push str.CommHandle
push esi
call dword [sym.imp.USER32.dll_RemovePropW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4061a7
mov esi, 0x41950c
push 0
lea eax, [ebp - 0x94c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp - 0x98c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push dword [ebp - 0x9f4]
call fcn.004065d1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
jmp 0x40620e
push 0
lea eax, [ebp - 0x94c]
push eax
push 0x419420
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x419420
push dword [ebp - 0x98c]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
mov eax, 0x614
mov dword [ebp - 0x980], 0
mov word [ebp - 0x970], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x974], 0
push eax
push 0x104
movlpd qword [ebp - 0x96e], xmm0
mov dword [ebp - 0x966], 0
mov dword [ebp - 0x97c], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41955c
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x4062ef
xor ecx, ecx
mov word [ebp + eax - 0x260], cx
lea eax, [ebp - 0x260]
mov dword [ebp - 0x978], eax
lea eax, [ebp - 0x980]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push 1
call esi
push 0
lea eax, [ebp - 0x94c]
push eax
push 1
push 0x4190dc
push dword [ebp - 0x98c]
call edi
mov al, byte [ebp - 0x9c9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004065c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004066f8
push 0x41a4fc
lea eax, [ebp - 0x9d1]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9d1], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9d2]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9d2], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9d3]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9d3], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e6]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e6], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9d4]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9d4], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9d5]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9d5], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9d6]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9d6], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9d7]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9d7], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9d8]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9d8], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9eb]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9eb], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9ea]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9ea], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e9]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e9], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e8]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e8], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e7]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e7], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e3]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e3], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e2]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e2], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e1]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e1], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e4]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e4], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e0]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e0], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9df]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9df], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9de]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9de], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9e5]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9e5], 0
call fcn.004082fc
push 0x41a4fc
lea eax, [ebp - 0x9dd]
mov byte [ebp - 0x9c9], 0
push eax
mov byte [ebp - 0x9dd], 0
call fcn.004082fc
int3