Function at 0x401f80
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 0x413320
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 0x41930c
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 0x403302
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 0x402435
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 0x402435
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 0x402435
cmp byte [ebp - 0x40], 0x20
jne 0x402435
cmp byte [ebp - 0x3f], 0x30
jne 0x402435
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 0x402435
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 0x402435
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
jmp 0x402463
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 0x40332e
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 0x4026c0
mov byte [ebp - 0x9c9], dl
mov dl, byte [edi]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x402550
mov dl, al
jmp 0x402568
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x40255d
add dl, 0xc9
jmp 0x402568
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x402568
add dl, 0xa9
mov cl, byte [edi + 1]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x402577
mov cl, al
jmp 0x40258f
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x402584
add cl, 0xc9
jmp 0x40258f
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x40258f
add cl, 0xa9
mov ch, byte [edi + 2]
shl dl, 4
mov al, ch
sub al, 0x30
add dl, cl
cmp al, 9
ja 0x4025a3
mov ch, al
jmp 0x4025bb
mov al, ch
sub al, 0x41
cmp al, 5
ja 0x4025b0
add ch, 0xc9
jmp 0x4025bb
mov al, ch
sub al, 0x61
cmp al, 5
ja 0x4025bb
add ch, 0xa9
mov ah, byte [edi + 3]
mov al, ah
sub al, 0x30
cmp al, 9
ja 0x4025ca
mov ah, al
jmp 0x4025e2
mov al, ah
sub al, 0x41
cmp al, 5
ja 0x4025d7
add ah, 0xc9
jmp 0x4025e2
mov al, ah
sub al, 0x61
cmp al, 5
ja 0x4025e2
add ah, 0xa9
mov cl, byte [edi + 4]
mov al, cl
mov byte [ebp - 0x9ca], cl
sub al, 0x30
cmp al, 9
ja 0x4025fb
mov byte [ebp - 0x9ca], al
jmp 0x402619
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x402608
add cl, 0xc9
jmp 0x402613
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x402619
add cl, 0xa9
mov byte [ebp - 0x9ca], cl
mov dh, byte [edi + 5]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x402628
mov dh, al
jmp 0x402640
mov al, dh
sub al, 0x41
cmp al, 5
ja 0x402635
add dh, 0xc9
jmp 0x402640
mov al, dh
sub al, 0x61
cmp al, 5
ja 0x402640
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 0x402689
mov ecx, eax
mov dh, dl
mov dword [ebp - 0x9d0], ecx
mov byte [ebp - 0x9cb], dh
jmp 0x40268f
mov dh, byte [ebp - 0x9cb]
movsx eax, byte [edi + 7]
add edi, 8
sub eax, 0x30
je 0x4026a9
sub eax, 2
je 0x4026a5
sub eax, 2
jne 0x4026b3
xor ecx, ecx
jmp 0x4026c8
test dl, dl
je 0x4026b3
movzx eax, dl
lea edi, [edi + eax*2]
add edi, 5
cmp byte [edi + 7], 0x31
jne 0x402542
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 0x4028f4
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 0x402714
mov dl, al
jmp 0x40272c
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x402721
add dl, 0xc9
jmp 0x40272c
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x40272c
add dl, 0xa9
mov cl, byte [esi + 1]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x40273b
mov cl, al
jmp 0x402753
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x402748
add cl, 0xc9
jmp 0x402753
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x402753
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 0x402770
mov ch, al
jmp 0x402788
mov al, ch
sub al, 0x41
cmp al, 5
ja 0x40277d
add ch, 0xc9
jmp 0x402788
mov al, ch
sub al, 0x61
cmp al, 5
ja 0x402788
add ch, 0xa9
mov ah, byte [esi + 1]
mov al, ah
sub al, 0x30
cmp al, 9
ja 0x402797
mov ah, al
jmp 0x4027af
mov al, ah
sub al, 0x41
cmp al, 5
ja 0x4027a4
add ah, 0xc9
jmp 0x4027af
mov al, ah
sub al, 0x61
cmp al, 5
ja 0x4027af
add ah, 0xa9
mov cl, byte [esi + 2]
mov al, cl
mov byte [ebp - 0x9ca], cl
sub al, 0x30
cmp al, 9
ja 0x4027c8
mov byte [ebp - 0x9ca], al
jmp 0x4027e6
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x4027d5
add cl, 0xc9
jmp 0x4027e0
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x4027e6
add cl, 0xa9
mov byte [ebp - 0x9ca], cl
mov dh, byte [esi + 3]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x4027f5
mov dh, al
jmp 0x40280d
mov al, dh
sub al, 0x41
cmp al, 5
ja 0x402802
add dh, 0xc9
jmp 0x40280d
mov al, dh
sub al, 0x61
cmp al, 5
ja 0x40280d
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 0x402867
sub eax, 2
je 0x4028ee
sub eax, 2
je 0x4028ee
jmp 0x4028e1
mov ch, cl
test dl, dl
je 0x4028e1
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 0x40288e
mov cl, al
jmp 0x4028a6
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x40289b
add cl, 0xc9
jmp 0x4028a6
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x4028a6
add cl, 0xa9
mov dl, byte [esi + 1]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x4028b5
mov dl, al
jmp 0x4028cd
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x4028c2
add dl, 0xc9
jmp 0x4028cd
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x4028cd
add dl, 0xa9
shl cl, 4
add esi, 2
add cl, dl
mov byte [edi], cl
inc edi
sub dword [ebp - 0x9d0], 1
jne 0x402880
add esi, 5
cmp byte [esi + 7], 0x31
jne 0x402700
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 0x402925
mov ecx, 0x63
cmp cx, ax
jne 0x4029a0
mov ax, word [0x41c456]
mov ecx, 0x4f
cmp cx, ax
je 0x40293f
mov ecx, 0x6f
cmp cx, ax
jne 0x4029a0
mov ax, word [0x41c458]
mov ecx, 0x4d
cmp cx, ax
je 0x402959
mov ecx, 0x6d
cmp cx, ax
jne 0x4029a0
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 0x402b2d
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 0x402b07
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 0x402af6
lea eax, [ebp - 0x728]
push str.DeviceProlificSerial
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x402aac
lea eax, [ebp - 0x728]
push str.DeviceSilabser
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x402aac
lea eax, [ebp - 0x728]
push str.DeviceSerial
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x402aac
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 0x402a14
jmp 0x402af6
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 0x402b2d
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 0x4032de
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 0x403414
push 0x400
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_SetupComm]
test eax, eax
je 0x403433
push 0xc
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
je 0x403452
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 0x403471
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 0x403490
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 0x4034af
cmp dword [ebp - 0x94c], 0
je 0x402c23
cmp byte [ebp - 0x660], 0x46
jne 0x402c23
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 0x402ce4
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 0x4034ce
cmp dword [ebp - 0x94c], 0
je 0x402cb0
inc esi
jmp 0x402cb0
mov esi, 5
nop dword [eax]
movsx eax, byte [ebp - 0x65c]
inc eax
cmp esi, eax
jg 0x402d2b
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 0x4034ed
cmp dword [ebp - 0x94c], 0
je 0x402cf0
inc esi
jmp 0x402cf0
cmp byte [ebp - 0x65b], 0x50
jne 0x4036be
push 4
mov edx, 0x419478
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x4036be
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 + 0x419480]
jne 0x40369f
inc ecx
cmp ecx, 2
jb 0x402d60
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 0x402dc0
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 0x40350c
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 0x402e55
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 0x40352b
cmp dword [ebp - 0x94c], 0
je 0x402e21
inc esi
jmp 0x402e21
push 6
mov edx, 0x419484
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x40354a
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 0x403569
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 0x403588
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 0x402f0c
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 0x4035a7
cmp dword [ebp - 0x94c], 0
je 0x402ed8
inc esi
jmp 0x402ed8
push 6
mov edx, 0x41949c
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x4035c6
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 0x4035e5
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 0x402f9a
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 0x403604
cmp dword [ebp - 0x94c], 0
je 0x402f66
inc esi
jmp 0x402f66
push 6
mov edx, 0x4194b4
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x403623
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 0x40325b
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 0x403086
mov eax, dword [0x4194d4]
mov dword [ebp - 0x660], eax
mov ax, word [0x4194d8]
jmp 0x403097
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 0x4030f0
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 0x403197
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 0x403172
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 0x403642
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 0x40322a
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 0x403661
cmp dword [ebp - 0x94c], 0
je 0x4031f6
inc esi
jmp 0x4031f6
push 7
mov edx, 0x4194e4
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x403680
mov eax, dword [ebp - 0x9d0]
movsd xmm1, qword [ebp - 0x40]
inc eax
mov ecx, dword [ebp - 0x9f8]
jmp 0x402ffe
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 0x4032c7
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 0x40332e
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 0x40340f
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