Function at 0x4fe0e0
Capabilities:
Check for time delay via gettickcount
Create directory
Create process on windows
Create process suspended
Encode data using xor
Get file size
Read file on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x10b4
call fcn.005067e0
push ebx
mov ebx, ecx
push ebp
push esi
mov al, byte [ebx]
push edi
test al, al
jne 0x4ffa27
call fcn.004ffe20
mov byte [ebx + 0x1271], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 0x1204], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x10c8]
mov dword [0xec6328], eax
lea eax, [ebx + 0x1208]
push 0x20
push ecx
push eax
call fcn.0050826f
add esp, 0xc
mov ecx, ebx
mov byte [ebx + 0x1227], 0
push 0x104
push 0xec6004
call fcn.004ffec0
push 0
push 0xec6004
call fcn.00508229
add esp, 8
cmp eax, 0xffffffff
jne 0x4fe1a9
push 0
push 0xec6004
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4fe1a9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x54fac0
call fcn.005049d0
add esp, 4
add ebx, 0x28
push eax
push ebx
call fcn.004ffbe0
add esp, 0xc
mov eax, 0x6f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x51b144
push 0xec6004
call esi
push 0x54fab0
call fcn.005049d0
add esp, 4
push eax
push 0xec6004
call esi
mov eax, dword [ebx + 0x28]
lea ebp, [ebx + 0x28]
cmp eax, 0xffffffff
jne 0x4fe413
mov edi, 0xec6004
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x1030], 0
mov dword [ebp + 0x1034], 0x3e8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x4fe23e
cmp byte [0xec6005], 0x3a
je 0x4fe23e
lea edx, [esp + 0xb4]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xb4]
push 0x5c
push eax
call fcn.005081b7
add esp, 8
lea edx, [eax + 1]
test eax, eax
jne 0x4fe245
lea edx, [esp + 0xb4]
mov edi, 0xec6004
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80000080
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc8]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp], eax
je 0x4fe413
lea esi, [ebp + 0x101c]
push esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
xor eax, eax
mov dx, word [ebp + 0x102a]
mov ax, word [ebp + 0x1028]
push edx
xor ecx, ecx
mov cx, word [ebp + 0x1026]
xor edx, edx
mov dx, word [ebp + 0x1024]
push eax
push ecx
xor eax, eax
mov ax, word [ebp + 0x1022]
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [ebp + 0x101e]
mov dx, word [esi]
push eax
push ecx
push edx
push 0x54fa60
lea edi, [ebp + 0x1c]
call fcn.00504960
add esp, 4
push eax
push edi
call fcn.0050543d
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x1034]
not ecx
dec ecx
cmp eax, 0x3e7
mov esi, ecx
mov dword [esp + 0x10], esi
jne 0x4fe31f
xor esi, esi
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0x1030]
test eax, eax
je 0x4fe366
test esi, esi
jle 0x4fe408
mov edi, 0xffffffe4
lea eax, [ebp + 0x1c]
sub edi, ebp
mov ecx, 2
mov edx, dword [ebp + 0x1030]
add edx, ecx
mov dword [ebp + 0x1030], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [edi + eax]
cmp edx, esi
jl 0x4fe340
push 0
lea edx, [esp + 0x38]
jmp 0x4fe69d
xor esi, esi
lea edi, [ebp + 0x102c]
mov si, word [ebp + 0x102a]
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
xor edx, edx
mov cx, word [ebp + 0x1028]
mov dx, word [ebp + 0x1026]
add ecx, esi
push 0
add ecx, eax
xor eax, eax
mov ax, word [ebp + 0x1022]
add edx, ecx
xor ecx, ecx
mov cx, word [ebp + 0x101e]
imul eax, ecx
xor ecx, ecx
mov cx, word [ebp + 0x101c]
imul eax, ecx
imul eax, esi
inc eax
imul edx, eax
and edx, 0xffffff
mov eax, dword [ebp]
or edx, 0x1a000000
mov dword [edi], edx
lea edx, [esp + 0x18]
push edx
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x4fe408
mov edx, 0xffffffe4
lea eax, [ebp + 0x1c]
sub edx, ebp
mov ecx, dword [edi]
lea ecx, [ecx + ecx*2 + 1]
mov dword [edi], ecx
add cl, 0x65
xor byte [eax], cl
inc eax
lea ecx, [eax + edx]
cmp ecx, esi
jl 0x4fe3f3
push 0
lea edx, [esp + 0x38]
jmp 0x4fe69d
push 0x2e
push 0xec6004
call fcn.005081b7
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x1c], esi
je 0x4fe6ad
mov eax, 1
mov dword [esp + 0x10], eax
push eax
push 0x54fa54
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.0050543d
mov eax, dword [ebp]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4fe50d
mov edi, 0xec6004
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x1030], 0
mov dword [ebp + 0x1034], 0x3e8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x4fe4bc
cmp byte [0xec6005], 0x3a
je 0x4fe4bc
lea ecx, [esp + 0xb4]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xb4]
push 0x5c
push edx
call fcn.005081b7
add esp, 8
lea edx, [eax + 1]
test eax, eax
jne 0x4fe4c3
lea edx, [esp + 0xb4]
mov edi, 0xec6004
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80000080
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc8]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp], eax
jne 0x4fe528
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jge 0x4fe6ad
mov esi, dword [esp + 0x1c]
jmp 0x4fe439
lea esi, [ebp + 0x101c]
push esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
xor eax, eax
mov dx, word [ebp + 0x102a]
mov ax, word [ebp + 0x1028]
push edx
xor ecx, ecx
mov cx, word [ebp + 0x1026]
xor edx, edx
mov dx, word [ebp + 0x1024]
push eax
push ecx
xor eax, eax
mov ax, word [ebp + 0x1022]
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [ebp + 0x101e]
mov dx, word [esi]
push eax
push ecx
push edx
push 0x54fa60
lea edi, [ebp + 0x1c]
call fcn.00504960
add esp, 4
push eax
push edi
call fcn.0050543d
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x1034]
not ecx
dec ecx
cmp eax, 0x3e7
mov esi, ecx
mov dword [esp + 0x10], esi
jne 0x4fe5b4
xor esi, esi
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0x1030]
test eax, eax
je 0x4fe5f5
test esi, esi
jle 0x4fe697
mov edi, 0xffffffe4
lea eax, [ebp + 0x1c]
sub edi, ebp
mov ecx, 2
mov edx, dword [ebp + 0x1030]
add edx, ecx
mov dword [ebp + 0x1030], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [edi + eax]
cmp edx, esi
jl 0x4fe5d5
jmp 0x4fe697
xor esi, esi
lea edi, [ebp + 0x102c]
mov si, word [ebp + 0x102a]
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
xor edx, edx
mov cx, word [ebp + 0x1028]
mov dx, word [ebp + 0x1026]
add ecx, esi
push 0
add ecx, eax
xor eax, eax
mov ax, word [ebp + 0x1022]
add edx, ecx
xor ecx, ecx
mov cx, word [ebp + 0x101e]
imul eax, ecx
xor ecx, ecx
mov cx, word [ebp + 0x101c]
imul eax, ecx
imul eax, esi
inc eax
imul edx, eax
and edx, 0xffffff
mov eax, dword [ebp]
or edx, 0x1a000000
mov dword [edi], edx
lea edx, [esp + 0x38]
push edx
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x4fe697
mov edx, 0xffffffe4
lea eax, [ebp + 0x1c]
sub edx, ebp
mov ecx, dword [edi]
lea ecx, [ecx + ecx*2 + 1]
mov dword [edi], ecx
add cl, 0x65
xor byte [eax], cl
inc eax
lea ecx, [eax + edx]
cmp ecx, esi
jl 0x4fe682
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 0x1c]
push esi
push eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.Thu_Mar_17_14:23:26_2005
push 0x2d
push 0x54fa0c
call fcn.00504960
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov ecx, dword [esp + 0x10d8]
mov edx, dword [ebx + 0x1204]
add esp, 0x10
push fcn.004fdcf0
push ecx
push edx
push 0x54f9cc
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0x14
call fcn.00501120
call fcn.00501200
mov al, byte [ebx + 0x1280]
test al, al
je 0x4fe714
push 1
call fcn.00502d40
add esp, 4
push 0x251c
mov ecx, ebx
call fcn.005004c0
test eax, eax
jne 0x4fe73b
push 0x54f9b0
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
push 0
mov ecx, ebx
call fcn.005005d0
test eax, eax
jne 0x4fe7b9
mov ecx, dword [0xec6344]
push 0x54f99c
inc ecx
mov dword [0xec6344], ecx
call fcn.005049d0
add esp, 4
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
test esi, esi
je 0x4fe7b9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4fe7b2
push 0x251c
mov ecx, ebx
call fcn.005005d0
test eax, eax
jne 0x4fe7a8
pop edi
pop esi
pop ebp
mov eax, 0x6e
pop ebx
add esp, 0x10b4
ret 4
mov dword [0xec6344], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
and eax, 0xfff00000
mov dword [esp + 0x1c], eax
push 0
push 0
lea eax, [esp + 0x44]
push 0
push eax
mov dword [esp + 0x4c], 0xc
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 1
call esi
test eax, eax
mov dword [ebx + 0x127c], eax
jne 0x4fe80f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x54f978
jmp 0x4fe85c
push 0
push 0
lea ecx, [esp + 0x44]
push 1
push ecx
call esi
test eax, eax
mov dword [ebx + 0x18], eax
jne 0x4fe835
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x54f954
jmp 0x4fe85c
push 0
push 0
lea edx, [esp + 0x44]
push 0
push edx
call esi
test eax, eax
mov dword [ebx + 0x1278], eax
jne 0x4fe880
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x54f930
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
mov eax, 0xab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f928
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
lea eax, [esp + 0x1bc]
mov ecx, ebx
push 0x104
push eax
call fcn.004fff10
mov edi, 0x51b144
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x54f914
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005049d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00508229
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4fe95b
lea ecx, [esp + 0x1bc]
push ecx
push 0x54f900
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
mov eax, 0x99
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
lea edx, [esp + 0x1bc]
push 1
lea ecx, [ebx + 0x11bc]
push edx
mov byte [esp + 0x22], 0
call fcn.00503a80
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4feb2a
mov eax, dword [ebx + 0x1200]
mov byte [esp + 0x1b], 0
cmp eax, 8
jne 0x4fe9a1
call esi
cmp eax, 0x80090006
jne 0x4fe9a1
mov byte [esp + 0x1b], 1
call esi
mov edi, dword [ebx + 0x1200]
lea eax, [esp + 0x1bc]
push eax
call esi
push eax
push edi
push 0x54f8e4
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0x14
lea ecx, [esp + 0x1bc]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4fea17
lea edx, [esp + 0x1bc]
push edx
call esi
push eax
push 0x54f8cc
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0x10
jmp 0x4fea85
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0x54f8bc
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
push 2
push 0
push 0xfffffffffffffffc
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
push edx
push 0x54f8ac
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x1b]
test al, al
je 0x4feb01
mov al, byte [ebx + 0x1271]
test al, al
jne 0x4feacb
call fcn.00502090
test al, al
je 0x4feacb
lea eax, [esp + 0x1bc]
push 1
push eax
lea ecx, [ebx + 0x11bc]
call fcn.00503a80
test al, al
jne 0x4feae2
cmp dword [ebx + 0x1200], 8
jne 0x4feadd
call esi
cmp eax, 0x80090006
jne 0x4feadd
pop edi
pop esi
pop ebp
mov eax, 0x9b
pop ebx
add esp, 0x10b4
ret 4
mov byte [esp + 0x1a], 1
push 0x54f894
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov al, byte [esp + 0x22]
add esp, 8
test al, al
je 0x4feb2a
push 0x54f870
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
mov eax, 0x7c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f868
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x58]
mov edx, dword [0xec6344]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov eax, dword [ebx + 0x1204]
mov dword [esp + 0x28], ecx
add esp, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x28], ecx
push edx
mov edx, dword [ebx + 0x127c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x18]
push eax
push ecx
lea eax, [ebx + 0x1208]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push 0x54f850
call fcn.005049d0
add esp, 4
lea ecx, [esp + 0x2d8]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea edx, [esp + 0x2c0]
push edx
push str.cmd:__s
push ebp
call fcn.004ffbe0
lea eax, [esp + 0x2cc]
push eax
call fcn.005048c0
mov dword [esp + 0x20], eax
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea esi, [esp + 0x4c4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
push edi
push str.len:__d
push ebp
call fcn.004ffbe0
lea eax, [edi + 4]
add esp, 0xc
test eax, eax
jle 0x4fec2d
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [edi]
inc edi
push eax
push str.x_02x
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x4fec0b
lea ecx, [esp + 0x4c4]
mov byte [esi], 0
push ecx
push str.enc:__s
push ebp
call fcn.004ffbe0
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4c4]
push edx
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x1dc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4fec92
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c0]
push eax
push ecx
jmp 0x4ff624
push 0x54f828
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov edx, dword [ebx + 0x127c]
mov eax, dword [esp + 0x28]
add esp, 8
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], 0
mov dword [esp + 0x48], edx
push 0xffffffffffffffff
push 0
push ecx
push 2
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4fed4b
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4fed0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x54f804
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
mov ecx, dword [esp + 0x30]
push ecx
push 0x54f7e0
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f7d8
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
lea ecx, [esp + 0x28]
push ecx
call fcn.00501b70
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
mov dword [esp + 0x1c], eax
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x3c0]
push 0x104
push ecx
mov ecx, ebx
call fcn.004ffec0
mov edi, 0x51b144
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x54f7cc
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x1208]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005049d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c0]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x3c0]
push 1
push eax
lea ecx, [ebx + 0x11bc]
call fcn.00503a80
test al, al
jne 0x4fee88
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [ebx + 0x1200]
call esi
push eax
push ebx
push 0x54f7b4
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0x10
mov eax, 0x78
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
mov ecx, dword [0x54f364]
push ecx
call fcn.005049d0
add esp, 4
add eax, 5
lea edx, [esp + 0x8c4]
lea ecx, [ebx + 0x11bc]
push eax
push 0x7ff
lea eax, [esp + 0x3c8]
push edx
push eax
call fcn.00503e90
test al, al
jne 0x4feefa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [ebx + 0x1200]
call esi
push eax
push ebx
push 0x54f794
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0x10
mov eax, 0x82
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f788
call fcn.00504960
add esp, 4
lea ecx, [esp + 0x8c4]
lea edx, [esp + 0x94]
mov esi, eax
push ecx
push 0x20
push edx
push 0x54f77c
call fcn.00504960
add esp, 4
push eax
push 0x54f76c
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.00504c20
lea eax, [ebx + 0x1208]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.00508022
add esp, 0x20
test eax, eax
je 0x4fef81
push 0x54f754
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
mov eax, 0x8e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
lea ecx, [esp + 0x8c4]
push ecx
push 1
push 0x54f748
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.00504bb0
add esp, 0x10
lea edx, [esp + 0x8c4]
mov dword [0x54f368], eax
push edx
push 0x186a0
push 0x54f738
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.00504bb0
add esp, 0x10
mov dword [0xec632c], eax
lea eax, [esp + 0x8c4]
push eax
push 0
push 0x54f728
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.00504bb0
add esp, 0x10
lea ecx, [esp + 0x8c4]
mov dword [0xec6330], eax
push ecx
push 0
push 0x54f718
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.00504bb0
add esp, 0x10
lea edx, [esp + 0x8c4]
mov dword [esp + 0x14], eax
push edx
push 0
push 0x54f70c
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.00504bb0
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x8c4]
push eax
push 0
push 0x54f6f8
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.00504bb0
add esp, 0x10
lea ecx, [esp + 0x8c4]
shr eax, 1
not al
push ecx
and al, 1
push 0x3e8
push 0x54f6e0
mov byte [ebx + 0x25], al
call fcn.005049d0
add esp, 4
push eax
push esi
call fcn.00504bb0
mov dword [ebx + 0x1274], eax
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x8d4]
push 0x54f6d8
rep stosd dword es:[edi], eax
call fcn.005049d0
add esp, 0x14
push eax
push ebp
call fcn.004ffbe0
add esp, 8
mov ecx, ebx
push 0x104
push 0xec6218
call fcn.004ffec0
mov edi, 0x51b144
or ecx, 0xffffffff
xor eax, eax
push 0x54f6c8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0xec6218
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005049d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0xec6218
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0xec6350]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4ff1c8
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 4]
mov dl, byte [eax + 3]
push ecx
xor ecx, ecx
mov cl, byte [eax + 2]
push edx
push ecx
xor edx, edx
mov dl, byte [eax + 1]
xor ecx, ecx
mov cl, byte [eax]
push edx
push ecx
push 0x54f6a4
call fcn.005049d0
mov edx, dword [0xec6350]
add esp, 4
add edx, 0x28
push eax
push edx
call fcn.004ffbe0
mov eax, dword [0xec6350]
add esp, 0x1c
test eax, eax
je 0x4ff1c8
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 4]
mov cl, byte [esi + 3]
push eax
xor edx, edx
mov dl, byte [esi + 2]
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 1]
mov cl, byte [esi]
push edx
push eax
push ecx
push 0x54f680
call fcn.005049d0
mov edx, dword [0xec6350]
add esp, 4
add edx, 0x28
push eax
push edx
call fcn.004ffbe0
add esp, 0x1c
push 0x54f668
call fcn.005049d0
add esp, 4
push eax
push 0x54f654
call fcn.00504960
add esp, 4
push eax
call esi
push eax
call fcn.00501dd0
push 0x54f64c
mov dword [ebx + 0x20], eax
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
push 0
push 0xec6218
call fcn.00508229
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4ff2ce
push 0x104
push 0xec6218
mov ecx, ebx
call fcn.004ffec0
mov edi, 0x51b144
or ecx, 0xffffffff
xor eax, eax
push 0x54f63c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0xec6218
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005049d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0xec6218
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xec6218
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00508229
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4ff2ce
push 0xec6218
push 0x54f620
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
mov eax, 0x9a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 1
push 0xec6218
lea ecx, [ebx + 0x11bc]
call fcn.00503a80
test al, al
jne 0x4ff324
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [ebx + 0x1200]
push 0xec6218
call esi
push eax
push ebx
push 0x54f8e4
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0x14
mov eax, 0x7a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f618
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
lea ecx, [ebx + 0x1064]
call fcn.005033d0
test al, al
jne 0x4ff373
push 0x54f604
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
mov eax, 0xa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f5fc
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [esp + 0x14]
and esi, 0xfff00000
cmp eax, 0x2d
jae 0x4ff3b3
pop edi
pop esi
pop ebp
mov eax, 0x78
pop ebx
add esp, 0x10b4
ret 4
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x127c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x127c]
mov ecx, dword [ebx + 0x1278]
push edx
push eax
lea eax, [ebx + 0x1208]
lea edi, [ebx + 0x1064]
push ecx
push eax
mov ecx, edi
call fcn.00503150
push eax
mov ecx, edi
call fcn.00503140
xor edx, edx
push eax
mov dl, byte [ebx + 0x1271]
mov eax, dword [ebx + 0x1204]
push edx
push eax
push esi
push 0x54f5d4
call fcn.005049d0
add esp, 4
lea ecx, [esp + 0x2e4]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x2ec]
push edx
call fcn.005048c0
mov dword [esp + 0x40], eax
lea edi, [esp + 0x2f0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x30
lea esi, [esp + 0x4c4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + 4]
test eax, eax
jle 0x4ff49f
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [edi]
inc edi
push eax
push str.x_02x
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x4ff47d
push 0x54f5cc
mov byte [esi], 0
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov eax, dword [0xec6344]
add esp, 8
test eax, eax
je 0x4ff5e3
push 0
mov ecx, ebx
call fcn.005005d0
test eax, eax
jne 0x4ff537
push 0x54f99c
call fcn.005049d0
add esp, 4
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
test esi, esi
je 0x4ff537
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4ff530
push 0x251c
mov ecx, ebx
call fcn.005005d0
test eax, eax
jne 0x4ff526
pop edi
pop esi
pop ebp
mov eax, 0x6e
pop ebx
add esp, 0x10b4
ret 4
mov dword [0xec6344], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0xec6344]
test eax, eax
je 0x4ff5e3
lea edi, [esp + 0x4c4]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xc0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x7eb
mov edx, ecx
mov ecx, dword [ebx + 0x1204]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
lea edi, [esp + 0x4c4]
or ecx, 0xffffffff
xor eax, eax
add edx, 0xd
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0xb4], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb8]
push ecx
call fcn.00502db0
add esp, 8
test eax, eax
jne 0x4ff669
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea edx, [esp + 0x2c0]
push edx
push 0xec6218
call esi
push eax
push 0x54f5a8
jmp 0x4ff629
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
push eax
push ecx
push 0
push 0
push 4
push 1
push 0
lea edx, [esp + 0x4e0]
push 0
push edx
push 0xec6218
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4ff64d
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xec6218
push 0x54f580
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0x14
mov eax, 0xaa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
mov ecx, dword [esp + 0x28]
push ecx
push 0x54f574
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
mov eax, dword [0xec6330]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov dword [0xec6340], eax
jne 0x4ff69e
mov edx, dword [esp + 0x1c]
push edx
push 0x54f560
push 0xec6218
call fcn.00501960
add esp, 0xc
and eax, 0xff
mov dword [0xec6340], eax
push 0x54f558
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
lea edi, [ebx + 0x1064]
add esp, 8
mov ecx, edi
call fcn.00503510
test eax, eax
jne 0x4ff6fa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x54f544
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
mov eax, 0xa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push eax
push 0x54f514
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov eax, dword [0xec6344]
add esp, 0xc
test eax, eax
jne 0x4ff7d5
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebx + 0x1278]
mov eax, dword [0xec632c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x38]
push 0
push ecx
push 2
mov dword [esp + 0x48], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4ff821
push 0x54f500
call fcn.005049d0
add esp, 4
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
je 0x4ff7a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0xec632c]
mov eax, dword [ebx + 0x1278]
push edx
push eax
call esi
test eax, eax
je 0x4ff821
mov ecx, dword [0xec632c]
push ecx
push 0x54f4e4
jmp 0x4ff7fd
mov edx, dword [0xec632c]
push edx
push 0x54f4cc
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
mov eax, 0x72
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
mov eax, 0xcccccccd
mul dword [0xec632c]
mov eax, dword [ebx + 0x1278]
shr edx, 3
push edx
push eax
call esi
test eax, eax
je 0x4ff821
mov ecx, dword [0xec632c]
push ecx
push 0x54f4cc
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
mov eax, 0x72
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f4bc
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov edx, dword [ebx + 0x127c]
add esp, 8
push 0
push edx
call esi
test eax, eax
je 0x4ff870
push 0x54f4a4
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
mov eax, 0x72
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f500
call fcn.005049d0
add esp, 4
xor esi, esi
push eax
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
cmp eax, esi
je 0x4ff8b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x54f498
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
jmp 0x4ff8c3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [0xec6348], eax
mov dword [0xec634c], ecx
push 0x54f490
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov eax, dword [0xec6344]
add esp, 8
cmp eax, esi
je 0x4ff906
push 0x54f484
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
mov dword [0xec6348], esi
mov dword [0xec634c], esi
cmp dword [0xec6340], esi
jne 0x4ff920
pop edi
pop esi
pop ebp
mov eax, 0x7a
pop ebx
add esp, 0x10b4
ret 4
call fcn.00501400
mov esi, eax
test esi, esi
jne 0x4ff938
push 0xb
push 0x62d
push edi
call fcn.005006f0
push esi
push 0x54f46c
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 0xc
call fcn.00501760
mov esi, eax
test esi, esi
jne 0x4ff96e
push 0xd
push 0x630
push 0x8b1
mov ecx, edi
call fcn.005032d0
push esi
push 0x54f454
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov al, byte [ebx + 0x25]
add esp, 0xc
test al, al
je 0x4ff9c8
mov edx, dword [ebx + 0x1274]
mov ecx, ebx
push edx
call fcn.00500080
test al, al
jne 0x4ff9c8
push 0x54f438
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
mov eax, 0xdc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 4
push 0x54f430
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
mov eax, dword [ebx + 0x1204]
add esp, 8
mov ecx, edi
push eax
push 0x611
push 0x8b1
call fcn.005032d0
mov ecx, dword [esp + 0x1c]
push ecx
push 0x617
push 0x8b1
mov ecx, edi
call fcn.005032d0
push 0x54f410
call fcn.005049d0
add esp, 4
push eax
push ebp
call fcn.004ffbe0
add esp, 8
mov byte [ebx], 1
pop edi
pop esi
pop ebp
mov eax, 0x755
pop ebx
add esp, 0x10b4
ret 4