Function at 0x7e2de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [0x7e8658]
xor eax, eax
mov dword [ebp - 0x28], eax
push ebx
push esi
mov dword [ebp - 0x24], eax
push edi
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x7e2e51
mov esi, dword [ebp + 0x14]
test esi, esi
jbe 0x7e2e39
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
xor edx, edx
mov bl, al
mov dl, byte [eax]
add bl, cl
mov dl, byte [edx + 0x7e8060]
xor dl, bl
mov byte [eax], dl
inc eax
dec esi
jne 0x7e2e23
mov eax, dword [0x7e8658]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.007e2cb0
add esp, 4
test al, al
jne 0x7e2e74
mov ecx, dword [0x7e8658]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x50f]
test eax, eax
je 0x7e3150
mov al, byte [ebx + 0x262]
test al, al
je 0x7e3150
cmp al, 2
jne 0x7e2ec5
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
add ebx, 0x2d
push ecx
push ebx
call fcn.007e32c0
mov edx, dword [0x7e8658]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x7e3052
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov esi, eax
and ecx, 0xf
mov dword [ebp - 8], ecx
sub esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], esi
lea edi, [eax + ecx]
mov eax, edi
mov dword [ebp - 0xc], edi
and eax, 0xf
mov dword [ebp + 8], edi
je 0x7e2efe
mov edx, 0x10
sub edx, eax
add edi, edx
mov dword [ebp + 8], edi
sub edi, esi
push 4
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x10], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 8]
test eax, eax
je 0x7e2fdd
xor eax, eax
lea ecx, [ebp - 0x2c]
mov ax, word [ebx + 0xd]
lea edx, [ebp - 4]
add eax, esi
mov esi, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
push edx
push 0x10
push esi
push eax
mov dword [ebp - 0x20], 0
call fcn.007df690
test eax, eax
jne 0x7e2f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x7e2f91
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [0x7e8658]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
lea edx, [ebp - 4]
push 1
lea eax, [ebp - 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [ebp - 4], 0x10
je 0x7e2fce
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [0x7e8658]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x2d]
push esi
push eax
call fcn.007da820
add esp, 8
jmp 0x7e2fe0
mov esi, dword [ebp + 0x10]
test byte [ebp - 0xc], 0xf
je 0x7e308c
mov edi, dword [ebp + 8]
xor ecx, ecx
mov cx, word [ebx + 0xd]
mov dword [ebp - 0x20], 0
lea eax, [esi + edi - 0x10]
lea edx, [ecx + edi - 0x10]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], edx
lea edx, [ebp - 4]
push ecx
push edx
push 0x10
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [ebx]
push eax
call fcn.007df690
test eax, eax
jne 0x7e305b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x7e305b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x7e305b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [0x7e8658]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
lea edx, [ebp - 4]
push 1
lea eax, [ebp - 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [ebp - 4], 0x10
je 0x7e307c
sub edi, 0x10
mov dword [ebp + 8], edi
jmp 0x7e308c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x2d]
push edx
push eax
call fcn.007da820
add esp, 8
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jbe 0x7e30cb
add edx, esi
lea eax, [ebx + 0x2d]
push edx
push eax
call fcn.007da610
mov edx, dword [ebp + 0x10]
add esi, 0x10
add esp, 8
cmp esi, edi
jb 0x7e30b2
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
sub edi, ecx
cmp eax, edi
jb 0x7e30d9
mov edi, eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x7e30f2
xor esi, esi
mov si, word [ebx + 0xd]
mov dword [eax + 0xc], 0
add esi, ecx
mov dword [eax + 8], esi
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x7e3107
push ecx
mov ecx, dword [ebx]
push eax
push edi
push edx
push ecx
call fcn.007df8d0
jmp 0x7e3116
mov ecx, dword [ebx]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edx
push ecx
call fcn.007df6c0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx]
push 0
push 0
push edx
push eax
call fcn.007df750
mov ecx, dword [ebp + 0x10]
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [0x7e8658]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x14]
test edi, edi
jbe 0x7e317e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov esi, edi
mov dword [ebp + 0x14], ecx
jmp 0x7e3169
mov ecx, dword [ebp + 0x14]
xor edx, edx
add cl, al
mov dl, byte [eax]
mov dl, byte [edx + ebx + 0x12d]
xor dl, cl
mov byte [eax], dl
inc eax
dec esi
jne 0x7e3166
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x7e319a
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [ebx + 0xd]
mov dword [esi + 0xc], 0
add eax, ecx
mov dword [esi + 8], eax
mov edx, dword [ebx]
xor ecx, ecx
mov cx, word [ebx + 0xd]
push 1
push 0
push ecx
push edx
call fcn.007df750
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x7e31c5
mov ecx, dword [ebx]
push eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push eax
push ecx
call fcn.007df8d0
jmp 0x7e31d7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx]
lea edx, [ebp - 0x18]
push esi
push edx
push edi
push eax
push ecx
call fcn.007df6c0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebx]
push 0
add edx, edi
push 0
push edx
push eax
call fcn.007df750
mov ecx, dword [0x7e8658]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret