Function at 0x4036f0
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 0x413350
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 0x419564
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 0x404a72
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 0x403ba5
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 0x403ba5
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 0x403ba5
cmp byte [ebp - 0x40], 0x20
jne 0x403ba5
cmp byte [ebp - 0x3f], 0x30
jne 0x403ba5
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 0x403ba5
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 0x403ba5
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
jmp 0x403bd3
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 0x404a9e
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 0x403e30
mov byte [ebp - 0x9c9], dl
mov dl, byte [edi]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x403cc0
mov dl, al
jmp 0x403cd8
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x403ccd
add dl, 0xc9
jmp 0x403cd8
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x403cd8
add dl, 0xa9
mov cl, byte [edi + 1]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x403ce7
mov cl, al
jmp 0x403cff
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x403cf4
add cl, 0xc9
jmp 0x403cff
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x403cff
add cl, 0xa9
mov ch, byte [edi + 2]
shl dl, 4
mov al, ch
sub al, 0x30
add dl, cl
cmp al, 9
ja 0x403d13
mov ch, al
jmp 0x403d2b
mov al, ch
sub al, 0x41
cmp al, 5
ja 0x403d20
add ch, 0xc9
jmp 0x403d2b
mov al, ch
sub al, 0x61
cmp al, 5
ja 0x403d2b
add ch, 0xa9
mov ah, byte [edi + 3]
mov al, ah
sub al, 0x30
cmp al, 9
ja 0x403d3a
mov ah, al
jmp 0x403d52
mov al, ah
sub al, 0x41
cmp al, 5
ja 0x403d47
add ah, 0xc9
jmp 0x403d52
mov al, ah
sub al, 0x61
cmp al, 5
ja 0x403d52
add ah, 0xa9
mov cl, byte [edi + 4]
mov al, cl
mov byte [ebp - 0x9ca], cl
sub al, 0x30
cmp al, 9
ja 0x403d6b
mov byte [ebp - 0x9ca], al
jmp 0x403d89
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x403d78
add cl, 0xc9
jmp 0x403d83
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x403d89
add cl, 0xa9
mov byte [ebp - 0x9ca], cl
mov dh, byte [edi + 5]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x403d98
mov dh, al
jmp 0x403db0
mov al, dh
sub al, 0x41
cmp al, 5
ja 0x403da5
add dh, 0xc9
jmp 0x403db0
mov al, dh
sub al, 0x61
cmp al, 5
ja 0x403db0
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 0x403df9
mov ecx, eax
mov dh, dl
mov dword [ebp - 0x9d0], ecx
mov byte [ebp - 0x9cb], dh
jmp 0x403dff
mov dh, byte [ebp - 0x9cb]
movsx eax, byte [edi + 7]
add edi, 8
sub eax, 0x30
je 0x403e19
sub eax, 2
je 0x403e15
sub eax, 2
jne 0x403e23
xor ecx, ecx
jmp 0x403e38
test dl, dl
je 0x403e23
movzx eax, dl
lea edi, [edi + eax*2]
add edi, 5
cmp byte [edi + 7], 0x31
jne 0x403cb2
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 0x404064
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 0x403e84
mov dl, al
jmp 0x403e9c
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x403e91
add dl, 0xc9
jmp 0x403e9c
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x403e9c
add dl, 0xa9
mov cl, byte [esi + 1]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x403eab
mov cl, al
jmp 0x403ec3
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x403eb8
add cl, 0xc9
jmp 0x403ec3
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x403ec3
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 0x403ee0
mov ch, al
jmp 0x403ef8
mov al, ch
sub al, 0x41
cmp al, 5
ja 0x403eed
add ch, 0xc9
jmp 0x403ef8
mov al, ch
sub al, 0x61
cmp al, 5
ja 0x403ef8
add ch, 0xa9
mov ah, byte [esi + 1]
mov al, ah
sub al, 0x30
cmp al, 9
ja 0x403f07
mov ah, al
jmp 0x403f1f
mov al, ah
sub al, 0x41
cmp al, 5
ja 0x403f14
add ah, 0xc9
jmp 0x403f1f
mov al, ah
sub al, 0x61
cmp al, 5
ja 0x403f1f
add ah, 0xa9
mov cl, byte [esi + 2]
mov al, cl
mov byte [ebp - 0x9ca], cl
sub al, 0x30
cmp al, 9
ja 0x403f38
mov byte [ebp - 0x9ca], al
jmp 0x403f56
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x403f45
add cl, 0xc9
jmp 0x403f50
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x403f56
add cl, 0xa9
mov byte [ebp - 0x9ca], cl
mov dh, byte [esi + 3]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x403f65
mov dh, al
jmp 0x403f7d
mov al, dh
sub al, 0x41
cmp al, 5
ja 0x403f72
add dh, 0xc9
jmp 0x403f7d
mov al, dh
sub al, 0x61
cmp al, 5
ja 0x403f7d
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 0x403fd7
sub eax, 2
je 0x40405e
sub eax, 2
je 0x40405e
jmp 0x404051
mov ch, cl
test dl, dl
je 0x404051
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 0x403ffe
mov cl, al
jmp 0x404016
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x40400b
add cl, 0xc9
jmp 0x404016
mov al, cl
sub al, 0x61
cmp al, 5
ja 0x404016
add cl, 0xa9
mov dl, byte [esi + 1]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x404025
mov dl, al
jmp 0x40403d
mov al, dl
sub al, 0x41
cmp al, 5
ja 0x404032
add dl, 0xc9
jmp 0x40403d
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x40403d
add dl, 0xa9
shl cl, 4
add esi, 2
add cl, dl
mov byte [edi], cl
inc edi
sub dword [ebp - 0x9d0], 1
jne 0x403ff0
add esi, 5
cmp byte [esi + 7], 0x31
jne 0x403e70
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 0x404095
mov ecx, 0x63
cmp cx, ax
jne 0x404110
mov ax, word [0x41c456]
mov ecx, 0x4f
cmp cx, ax
je 0x4040af
mov ecx, 0x6f
cmp cx, ax
jne 0x404110
mov ax, word [0x41c458]
mov ecx, 0x4d
cmp cx, ax
je 0x4040c9
mov ecx, 0x6d
cmp cx, ax
jne 0x404110
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 0x40429d
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 0x404277
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 0x404266
lea eax, [ebp - 0x728]
push str.DeviceProlificSerial
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x40421c
lea eax, [ebp - 0x728]
push str.DeviceSilabser
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x40421c
lea eax, [ebp - 0x728]
push str.DeviceSerial
push eax
call fcn.0040738c
add esp, 8
test eax, eax
jne 0x40421c
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 0x404184
jmp 0x404266
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 0x40429d
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 0x404a4e
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 0x404b84
push 0x400
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_SetupComm]
test eax, eax
je 0x404ba3
push 0xc
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
je 0x404bc2
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 0x404be1
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 0x404c00
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 0x404c1f
cmp dword [ebp - 0x94c], 0
je 0x404393
cmp byte [ebp - 0x660], 0x46
jne 0x404393
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 0x404454
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 0x404c3e
cmp dword [ebp - 0x94c], 0
je 0x404420
inc esi
jmp 0x404420
mov esi, 5
nop dword [eax]
movsx eax, byte [ebp - 0x65c]
inc eax
cmp esi, eax
jg 0x40449b
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 0x404c5d
cmp dword [ebp - 0x94c], 0
je 0x404460
inc esi
jmp 0x404460
cmp byte [ebp - 0x65b], 0x50
jne 0x404e2e
push 4
mov edx, 0x419478
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x404e2e
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 + 0x419578]
jne 0x404e0f
inc ecx
cmp ecx, 2
jb 0x4044d0
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], 0xc300
movzx eax, byte [ebp + ecx - 0x2c]
inc ecx
add dx, ax
mov word [ebp - 0x8c4], dx
cmp ecx, 0xc
jle 0x404530
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 0x404c7c
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 0x4045c5
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 0x404c9b
cmp dword [ebp - 0x94c], 0
je 0x404591
inc esi
jmp 0x404591
push 6
mov edx, 0x419484
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x404cba
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 0x404cd9
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 0x404cf8
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 0x40467c
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 0x404d17
cmp dword [ebp - 0x94c], 0
je 0x404648
inc esi
jmp 0x404648
push 6
mov edx, 0x41949c
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x404d36
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 0x404d55
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 0x40470a
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 0x404d74
cmp dword [ebp - 0x94c], 0
je 0x4046d6
inc esi
jmp 0x4046d6
push 6
mov edx, 0x4194b4
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x404d93
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 0x4049cb
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 0x4047f6
mov eax, dword [0x4194d4]
mov dword [ebp - 0x660], eax
mov ax, word [0x4194d8]
jmp 0x404807
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 0x404860
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 0x404907
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 0x4048e2
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 0x404db2
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 0x40499a
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 0x404dd1
cmp dword [ebp - 0x94c], 0
je 0x404966
inc esi
jmp 0x404966
push 7
mov edx, 0x4194e4
lea ecx, [ebp - 0x660]
call fcn.00401df0
test al, al
je 0x404df0
mov eax, dword [ebp - 0x9d0]
movsd xmm1, qword [ebp - 0x40]
inc eax
mov ecx, dword [ebp - 0x9f8]
jmp 0x40476e
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 0x404a37
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 0x404a9e
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 0x404b7f
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