Function at 0x4040e0
Capabilities:
Contain obfuscated stackstrings
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1024
call fcn.0041c2a0
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x14], 0x2a
mov byte [esp + 0x15], 0x26
mov byte [esp + 0x16], 0x36
mov byte [esp + 0x17], 0x33
mov byte [esp + 0x18], 0x30
mov byte [esp + 0x19], 0x63
mov byte [esp + 0x1a], 0x6d
mov byte [esp + 0x1b], 0x6a
mov byte [esp + 0x1c], 0x65
mov byte [esp + 0x1d], 0x79
mov byte [esp + 0x1e], 0x23
mov byte [esp + 0x1f], 0x46
mov byte [esp + 0x20], 0x67
mov byte [esp + 0x21], 0x32
mov byte [esp + 0x22], 0x74
mov byte [esp + 0x23], 0x62
mov byte [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x1038]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
lea ebx, [esp + ecx + 0x35]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x103c]
not ecx
dec ecx
test edx, edx
lea ebx, [ebx + ecx + 1]
je 0x4041e8
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
jmp 0x4041ec
mov byte [ebx], 0
inc ebx
mov edx, dword [esp + 0x1040]
test edx, edx
je 0x404228
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
jmp 0x40422c
mov byte [ebx], 0
inc ebx
or ecx, 0xffffffff
mov edi, 0x4523d8
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4523d4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ipe_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4523c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._pdm_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.sysmsg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80000080
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push 3
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
lea eax, [esp + 0x28]
push 0xc0000000
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x404364
cmp ebp, 0xffffffff
je 0x404364
mov dword [0x452048], 0xa
jmp 0x4043a5
mov eax, dword [0x452048]
xor edi, edi
test eax, eax
jle 0x4043a5
push 0
push 0x80000080
push 3
push 0
push 1
lea ecx, [esp + 0x28]
push 0xc0000000
push ecx
call esi
mov ebp, eax
test ebp, ebp
je 0x404393
cmp ebp, 0xffffffff
jne 0x4043a5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x452048]
inc edi
cmp edi, eax
jl 0x40436f
test ebp, ebp
je 0x404481
cmp ebp, 0xffffffff
je 0x404481
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x34]
lea edx, [esp + 0x10]
push 0
sub ebx, eax
push edx
lea ecx, [esp + 0x3c]
push ebx
push ecx
push ebp
call esi
test eax, eax
jne 0x4043ea
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1024
ret
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x3c]
push 0x1000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40442a
lea ecx, [esp + 0x10]
push eax
push ecx
push 0xb
push str.ClientQuit
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1024
ret
mov eax, dword [esp + 0x1044]
test eax, eax
je 0x404459
mov edx, dword [esp + 0x10]
lea esi, [esp + 0x34]
mov ecx, edx
mov edi, eax
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [edx + eax], 0
lea edx, [esp + 0x10]
push 0
push edx
push 0xb
push str.ClientQuit
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1024
ret
pop edi
pop esi
pop ebp
mov dword [0x452048], 0
xor eax, eax
pop ebx
add esp, 0x1024
ret