Function at 0x40c070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 0x34], eax
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x40c08e
test edi, edi
jne 0x40c0a5
push 0x7a
push str.e:docmy_work__c__gitencryptionencryptionwinapiSalsa20.inl
push str.input___nullptr__output___nullptr
call fcn.004211dd
mov eax, dword [ebp - 0x34]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x40c399
mov ecx, eax
lea edx, [ebp - 0xba]
sub ecx, edx
mov dword [ebp - 0x7c], ecx
push esi
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
mov dword [ebp - 0x38], 0xa
movdqu xmmword [ebp - 0x78], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [ebp - 0x68], xmm0
movdqu xmm0, xmmword [eax + 0x20]
movdqu xmmword [ebp - 0x58], xmm0
mov edi, dword [ebp - 0x4c]
movdqu xmm0, xmmword [eax + 0x30]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x70]
movdqu xmmword [ebp - 0x48], xmm0
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], eax
add eax, ebx
mov ebx, dword [ebp - 0x30]
rol eax, 7
xor dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
rol eax, 9
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
rol eax, 0xd
xor ebx, eax
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x30], ebx
ror eax, 0xe
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
rol eax, 7
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
rol eax, 9
xor esi, eax
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, esi
rol eax, 0xd
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, esi
ror eax, 0xe
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
add eax, ebx
rol eax, 7
xor edx, eax
mov eax, dword [ebp - 4]
add eax, edx
rol eax, 9
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, edx
rol eax, 0xd
xor ebx, eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x24]
ror eax, 0xe
xor dword [ebp - 4], eax
lea eax, [edi + ecx]
rol eax, 7
xor ebx, eax
mov dword [ebp - 0x24], ebx
lea eax, [ebx + ecx]
mov ebx, dword [ebp - 0x2c]
rol eax, 9
xor ebx, eax
mov eax, dword [ebp - 0x24]
add eax, ebx
mov dword [ebp - 0x2c], ebx
rol eax, 0xd
xor edi, eax
lea eax, [ebx + edi]
ror eax, 0xe
xor ecx, eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x24]
rol eax, 7
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
add eax, dword [ebp - 0x10]
rol eax, 9
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
add eax, dword [ebp - 0x14]
rol eax, 0xd
mov ebx, dword [ebp - 0x24]
xor ebx, eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov dword [ebp - 0x24], ebx
ror eax, 0xe
mov dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x10]
xor ebx, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 8]
rol eax, 7
xor dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
add eax, dword [ebp - 0x1c]
rol eax, 9
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x78], ebx
mov ebx, dword [ebp - 0x2c]
xor ebx, eax
mov eax, dword [ebp - 0x28]
add eax, ebx
mov dword [ebp - 0x2c], ebx
rol eax, 0xd
xor dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
add eax, ebx
ror eax, 0xe
mov dword [ebp - 0x5c], ebx
mov ebx, dword [ebp - 0x1c]
xor ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x64], ebx
mov ebx, dword [ebp - 0x20]
add eax, ebx
rol eax, 7
xor edi, eax
mov eax, dword [ebp - 4]
add eax, edi
rol eax, 9
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
add eax, edi
rol eax, 0xd
xor ebx, eax
mov eax, ebx
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
add eax, dword [ebp - 0xc]
ror eax, 0xe
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
lea eax, [ecx + edx]
rol eax, 7
xor ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], ebx
lea eax, [ecx + ebx]
rol eax, 9
xor esi, eax
lea eax, [esi + ebx]
rol eax, 0xd
xor edx, eax
lea eax, [edx + esi]
ror eax, 0xe
xor ecx, eax
dec dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
jne 0x40c142
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], esi
jmp 0x40c310
mov ecx, dword [ebp - 0x7c]
lea esi, [ebp - 0xba]
add esi, eax
mov ecx, dword [esi + ecx]
add dword [ebp + eax - 0x78], ecx
mov edx, dword [ebp + eax - 0x78]
mov ecx, edx
shr ecx, 8
mov byte [esi - 1], cl
mov ecx, edx
mov byte [ebp + eax - 0xbc], dl
add eax, 4
shr ecx, 0x10
shr edx, 0x18
mov byte [esi], cl
mov byte [esi + 1], dl
cmp eax, 0x40
jb 0x40c310
mov ecx, dword [ebp - 0x34]
mov eax, 0
mov edx, dword [ebp + 0x10]
mov esi, edx
inc dword [ecx + 0x20]
sete al
add dword [ecx + 0x24], eax
cmp edx, 0x40
mov eax, 0x40
cmovae esi, eax
xor ecx, ecx
test esi, esi
je 0x40c38d
mov al, byte [ebp + ecx - 0xbc]
dec edx
xor al, byte [ebx]
inc ecx
mov byte [edi], al
inc ebx
inc edi
cmp ecx, esi
jb 0x40c371
mov dword [ebp + 0x10], edx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edi
mov eax, dword [ebp - 0x34]
test edx, edx
jne 0x40c0c0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc