Function at 0x78e190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0xbd33e0]
mov esi, edx
mov edi, ecx
xor eax, ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], edi
mov eax, dword [ecx]
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x10], eax
movzx eax, word [edx + 0xc4]
mov dword [esp + 0x20], ecx
mov word [esp + 8], ax
mov eax, dword [edx + 0x60]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x64], eax
add edx, ecx
test ecx, ecx
mov ecx, dword [edi + 0x6c]
mov ebx, dword [edi + 0x68]
sete al
test edx, edx
mov dword [esp + 4], edx
setg dl
and dl, al
lea ecx, [ecx + ecx*4]
lea ecx, [ecx*4 + 7]
and ecx, 0xfffffff8
add ebx, ecx
mov dword [esp + 0x48], ebx
mov ebx, dword [esi + 0x30]
sub ebx, ecx
mov ecx, edi
and ebx, 0xfffffff8
mov dword [esp + 0x50], ebx
sar ebx, 0x1f
mov dword [esp + 0x54], ebx
movzx ebx, dl
lea edx, [esp + 0x64]
call fcn.007d12b0
cmp byte [esi + 0x14], 0
jne 0x78e228
xor ecx, ecx
jmp 0x78e234
xor ecx, ecx
cmp byte [esi + 0x15], 0
setne cl
shl ecx, 7
mov edx, dword [esp + 4]
mov eax, 0xffffff7f
movzx edi, word [esp + 8]
mov dword [esp + 0x30], esi
add edx, ebx
mov ebx, dword [esp + 0x28]
and eax, dword [ebx + 0x98]
or eax, ecx
movsx ecx, di
mov dword [ebx + 0x98], eax
mov dword [esp + 0x1c], ecx
mov cl, byte [esi + 0xc7]
test cl, cl
jne 0x78e272
mov ecx, edx
jmp 0x78e40c
cmp edx, 9
mov eax, 0xa
cmovg eax, edx
cmp cl, 2
mov dword [esp + 0xc], eax
jne 0x78e2a1
mov ecx, ebx
mov edx, 4
call fcn.007d13b0
mov dword [esp + 0x24], 0xc
mov esi, 8
jmp 0x78e2b7
mov ecx, ebx
mov edx, 8
mov dword [esp + 0x24], 8
call fcn.007d13b0
xor esi, esi
mov eax, fcn.007c7540
mov edi, esi
mov dword [esp + 0x34], esi
imul eax, eax
and eax, 3
mov dword [esp + 0x40], eax
xor esi, esi
mov dword [esp + 0x38], edi
xor ebx, ebx
cmp dword [esp + 0x40], 3
mov edi, dword [esi*4 + 0xb52d40]
mov dword [esp + 0x18], esi
mov eax, 1
sete bl
mov dword [esp + 0x14], edi
xor ebx, 0xe7a1a893
add ebx, 0xe00
xor ebx, dword [esi*4 + 0xb52da0]
mov esi, dword [esi*4 + str._f_f_b_b_b_b_b]
mov ecx, ebx
and cl, 7
movzx edx, cl
shl eax, cl
xor cl, 7
mov dword [esp + 4], edx
mov edx, 1
shl edx, cl
movzx ecx, byte [edi + esi - 1]
mov edi, dword [esp + 4]
bt ecx, edi
mov edi, dword [esp + 0x14]
jb 0x78e3c4
mov dword [esp + 0x2c], eax
mov al, byte [edi + esi - 1]
mov ecx, eax
or cl, dl
lock cmpxchg byte [edi + esi - 1], cl
jne 0x78e340
mov ecx, dword [esp + 0x2c]
movzx eax, al
test edx, eax
je 0x78e362
movzx eax, byte [edi + esi - 1]
test ecx, eax
je 0x78e357
jmp 0x78e3c4
mov dword [esp + 0x3c], edx
movzx eax, byte [edi + esi - 1]
test ecx, eax
jne 0x78e3ba
lea eax, [esi - 4]
shr eax, 2
mov dword [esp + 0x44], eax
je 0x78e3b2
xor eax, eax
mov ecx, edi
mov edx, dword [ecx]
mov dword [esp + 8], ecx
mov ecx, eax
mov dword [esp + 4], ebx
inc eax
shl dword [esp + 4], cl
and cl, 0x1f
xor cl, 0x1f
xor edx, ebx
shr ebx, cl
mov ecx, dword [esp + 8]
or ebx, dword [esp + 4]
mov dword [ecx], edx
not edx
add ecx, 4
imul ebx, edx
cmp eax, dword [esp + 0x44]
jne 0x78e37f
mov eax, dword [esp + 0x2c]
or byte [edi + esi - 1], al
mov eax, dword [esp + 0x3c]
not al
and byte [edi + esi - 1], al
mov esi, dword [esp + 0x18]
inc esi
cmp esi, 0xc
jne 0x78e2d2
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edx, edi
mov ecx, ebx
sub edx, esi
push 0
push dword [edi*4 + 0xb4ccc4]
push 0
call fcn.007d1410
add esp, 0xc
inc edi
cmp edi, dword [esp + 0x24]
jne 0x78e2cc
mov eax, dword [ebx + 0x98]
mov ecx, dword [esp + 0xc]
and eax, 0xfffffffc
lea edi, [esp + 0x48]
mov dword [esp + 0xc], ecx
xor edx, edx
mov dword [ebx + 0x98], eax
lea eax, [ecx*8]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov ecx, edi
lea eax, [eax + eax*4]
push 0
mov dword [esp + 0xc], eax
push eax
call fcn.007d1450
add esp, 8
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x1c]
mov ecx, edi
xor edx, edx
lea eax, [eax*8]
lea eax, [eax + eax*4]
push 0
mov dword [esp + 0x1c], eax
push eax
call fcn.007d1450
add esp, 8
mov dword [ebx + 0x64], eax
mov ecx, edi
xor edx, edx
mov eax, dword [esp + 0x64]
shl eax, 2
push 0
mov dword [esp + 0x18], eax
push eax
call fcn.007d1450
add esp, 8
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x20]
mov ecx, edi
xor edx, edx
lea eax, [eax*4]
push 0
mov dword [esp + 8], eax
push eax
call fcn.007d1450
add esp, 8
mov dword [ebx + 0x60], eax
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov eax, edi
or eax, esi
je 0x78e548
mov ecx, dword [esp + 0x10]
mov edx, edi
push esi
call fcn.007995d0
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0xc4], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
cmp byte [ecx + 0x51], 0
jne 0x78e548
mov edx, dword [ebx + 0x58]
lea edi, [esp + 0x48]
mov ecx, edi
push 0
push dword [esp + 0xc]
call fcn.007d1450
add esp, 8
mov dword [ebx + 0x58], eax
mov ecx, edi
mov edx, dword [ebx + 0x64]
push 0
push dword [esp + 0x1c]
call fcn.007d1450
add esp, 8
mov dword [ebx + 0x64], eax
mov ecx, edi
mov edx, dword [ebx + 0x5c]
push 0
push dword [esp + 0x18]
call fcn.007d1450
add esp, 8
mov dword [ebx + 0x5c], eax
mov ecx, edi
mov edx, dword [ebx + 0x60]
push 0
push dword [esp + 8]
call fcn.007d1450
add esp, 8
mov dword [ebx + 0x60], eax
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [ecx + 0xd8]
mov dword [ebx + 0x80], eax
mov dword [ecx + 0xd8], 0
movzx eax, byte [ecx + 0xc7]
mov edx, dword [ebx + 0x98]
and eax, 3
and edx, 0xfffffff3
lea eax, [edx + eax*4]
mov dword [ebx + 0x98], eax
cmp byte [edi + 0x51], 0
je 0x78e59e
mov word [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
jmp 0x78e5e4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x1c], eax
mov word [ebx + 0x10], dx
mov ecx, dword [ebx + 0x64]
push 1
push edi
call fcn.007d14a0
add esp, 8
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x18], edx
mov ecx, dword [ebx + 0x58]
push pe_nt_image_headers32
push edi
call fcn.007d14a0
add esp, 8
push dword [esp + 4]
push 0
push dword [ebx + 0x60]
call fcn.0098a5f0
add esp, 0xc
mov ecx, ebx
call fcn.00789120
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00989fe9
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret