Function at 0x42e930
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
sub esp, 0x13c
push ebx
push ebp
mov ebp, dword [esp + 0x150]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__ismbcspace]
push edi
movsx eax, byte [ebp]
push eax
call esi
add esp, 4
test eax, eax
je 0x42e96b
movsx ecx, byte [ebp + 1]
inc ebp
push ecx
call esi
add esp, 4
test eax, eax
jne 0x42e955
mov dword [esp + 0x158], ebp
mov ebx, dword [esp + 0x154]
movsx edx, byte [ebx]
push edx
call esi
add esp, 4
test eax, eax
je 0x42e995
movsx eax, byte [ebx + 1]
inc ebx
push eax
call esi
add esp, 4
test eax, eax
jne 0x42e97f
mov dword [esp + 0x154], ebx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], esi
mov ebp, ecx
test esi, esi
mov dword [esp + 0x10], ebp
jbe 0x42e9d9
movsx ecx, byte [ebx + esi - 1]
mov edi, dword [sym.imp.MSVCRT.dll__ismbcspace]
push ecx
call edi
add esp, 4
test eax, eax
je 0x42e9d3
dec esi
jne 0x42e9bb
mov dword [esp + 0x14], esi
jmp 0x42e9df
mov edi, dword [sym.imp.MSVCRT.dll__ismbcspace]
test ebp, ebp
jbe 0x42ea00
mov edx, dword [esp + 0x158]
movsx eax, byte [edx + ebp - 1]
push eax
call edi
add esp, 4
test eax, eax
je 0x42e9fc
dec ebp
jne 0x42e9e3
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [ebx + 0x24]
mov edx, dword [ebx + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov dword [esp + 0x1c], ecx
add edx, ebp
lea eax, [edx + esi + 6]
and al, 0xfc
mov dword [esp + 0x18], eax
add eax, 0x60
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
mov ecx, 7
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
lea eax, [ebp + 0x60]
add ecx, 0x60
mov edx, eax
and ecx, 0xffff
add esp, 4
mov dword [ebp], ecx
mov ecx, dword [esp + 0x1c]
sub edx, ebp
inc ecx
mov word [ebp + 0x24], dx
mov esi, dword [ebx + 0x24]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x154]
lea eax, [eax + ecx + 1]
mov ecx, dword [esp + 0x14]
mov edx, eax
mov edi, eax
sub edx, ebp
mov word [ebp + 0x26], dx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov esi, dword [esp + 0x158]
add eax, ecx
mov byte [eax], 0
inc eax
mov ecx, eax
mov edi, eax
sub ecx, ebp
mov word [ebp + 0x28], cx
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
add eax, edi
mov byte [eax], 0
inc eax
mov ecx, eax
mov edi, eax
sub ecx, ebp
mov word [ebp + 0x2a], cx
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x1c]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
test esi, esi
jbe 0x42eb17
mov ecx, eax
and ecx, 0x3f
mov dl, byte [ecx*2 + 0x445c8c]
mov cl, byte [eax + ebp + 0x60]
xor cl, dl
mov byte [eax + ebp + 0x60], cl
inc eax
cmp eax, esi
jb 0x42eafc
mov ecx, dword [ebx + 0x28]
lea eax, [esp + 0x2c]
push 0x1c
push eax
push ecx
mov byte [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
test eax, eax
je 0x42eb7d
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x48]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42eb7d
lea ecx, [esp + 0x48]
push 0x5c
push ecx
call edi
add esp, 8
test eax, eax
je 0x42eb63
inc eax
jmp 0x42eb67
lea eax, [esp + 0x48]
push 0x14
lea edx, [ebp + 0x2c]
push eax
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
mov byte [ebp + 0x3f], 0
jmp 0x42eb81
mov byte [ebp + 0x2c], 0
mov eax, dword [ebx + 0x20]
push 0x5c
push eax
call edi
mov esi, eax
mov eax, dword [ebx + 0x20]
push 0x2f
push eax
call edi
add esp, 0x10
cmp esi, eax
ja 0x42eb9c
mov esi, eax
test esi, esi
jne 0x42eba5
mov esi, dword [ebx + 0x20]
jmp 0x42eba6
inc esi
push 0x20
lea eax, [ebp + 0x40]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
mov byte [ebp + 0x5f], 0
mov ecx, dword [0x4470c4]
mov dword [esp + 0x1c], ebp
mov dword [ebp + 0xc], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4470c8]
add esp, 0xc
mov dword [edx + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4470cc]
mov dword [ecx + 0x20], edx
mov eax, dword [0x4471d4]
test eax, eax
je 0x42ec30
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42ec26
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 1
lea edx, [esp + 0x20]
mov ecx, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [0x4471d8]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x4471d4]
push edx
push eax
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x42ec30
mov dword [0x4471d4], 0
push 0x4470ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4471ec]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, 0x4471e4
call fcn.00430010
mov al, byte [0x4471e2]
test al, al
je 0x42ed62
mov al, byte [0x4471e1]
mov ecx, dword [0x4471ec]
test al, al
mov eax, dword [0x4471e8]
je 0x42ec8b
test eax, eax
je 0x42ed62
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edx, 0x32
jb 0x42ed62
mov dl, byte [0x4471e3]
test dl, dl
jne 0x42ed25
test eax, eax
je 0x42ed25
mov edx, ecx
sub edx, eax
sar edx, 2
je 0x42ed25
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x4470d0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42ed62
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
mov eax, dword [0x4471e8]
test eax, eax
je 0x42ed13
mov ecx, dword [0x4471ec]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x42ed13
mov eax, dword [eax + esi*4]
lea edx, [esp + 0x18]
push 0
push edx
mov ecx, dword [eax]
push ecx
push eax
push edi
call ebx
inc esi
jmp 0x42ece7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4471ec]
mov eax, dword [0x4471e8]
mov edi, dword [sym.imp.MSVCRT.dll_free]
xor esi, esi
test eax, eax
je 0x42ed5d
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x42ed5d
mov edx, dword [eax + esi*4]
push edx
call edi
mov eax, dword [0x4471e8]
add esp, 4
mov dword [eax + esi*4], 0
mov ecx, dword [0x4471ec]
mov eax, dword [0x4471e8]
inc esi
jmp 0x42ed2d
mov dword [0x4471ec], eax
push 0x4470ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret