Function at 0x402960
Capabilities:
Encode data using xor
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, ecx
mov dword [ebp - 0x84], edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], ebx
mov edx, dword [esi + 0x7c]
mov dword [ebp - 0x70], edi
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], 0
test edx, edx
je 0x4029d6
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
inc ecx
cmp ecx, eax
jbe 0x4029d6
push dword [edx + 4]
add eax, eax
cmp eax, ecx
lea edi, [eax + 2]
cmovae edi, eax
mov eax, dword [esi + 0x78]
imul eax, edi
push eax
push dword [esi + 0x6c]
mov eax, dword [edx]
call eax
add esp, 0xc
test eax, eax
je 0x4029d3
mov dword [esi + 0x74], edi
mov dword [esi + 0x6c], eax
mov edi, dword [ebp - 0x70]
mov eax, dword [esi + 0x74]
sub eax, dword [esi + 0x70]
je 0x402ce5
mov edx, ebx
mov ecx, esi
call fcn.00402930
cmp eax, 0xffffffff
je 0x402a1a
push dword [ebp - 0x68]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040621f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], 0
lea ecx, [esi + 0x34]
mov edx, dword [esi + 0x1c]
push 0
call fcn.00401890
add esp, 4
test eax, eax
je 0x402ce5
push 1
mov edx, 0x4180e4
lea ecx, [esi + 0x34]
call fcn.00401890
add esp, 4
test eax, eax
je 0x402ce5
push 0
mov edx, ebx
lea ecx, [esi + 0x34]
call fcn.00401890
add esp, 4
test eax, eax
je 0x402ce5
mov eax, dword [esi + 0x34]
lea edx, [ebp - 0x6c]
mov ecx, eax
mov dword [ebp - 0x80], eax
call fcn.00405aa0
mov edi, dword [ebp - 0x68]
mov ebx, 1
test edi, edi
jne 0x402a9b
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402c28
mov eax, dword [esi]
push 0
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push eax
push 0x4180e8
push dword [esi + 0x68]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x60], ebx
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x402b48
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
mov eax, dword [eax]
push dword [ebp - 0x30]
push 0
call eax
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x60], ebx
test eax, eax
je 0x402b48
push 0
push 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x60], ebx
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x68]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
js 0x402b48
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x60], ebx
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
js 0x402b48
push 0
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
xor ecx, ecx
test eax, eax
cmovns ebx, ecx
mov dword [ebp - 0x60], ebx
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
mov eax, dword [eax]
push 0
push dword [ebp - 0x7c]
call eax
add esp, 0xc
test ebx, ebx
jne 0x402c15
mov eax, dword [esi + 0x70]
mov edi, dword [esi + 0x6c]
test eax, eax
je 0x402b9f
test byte [edi], 2
je 0x402b97
xor dl, dl
xor eax, eax
nop
mov cl, byte [eax + edi + 0xc]
xor cl, byte [ebp + eax - 0x24]
inc eax
or dl, cl
cmp eax, 0x20
jne 0x402b80
test dl, dl
je 0x402bc4
mov eax, dword [esi + 0x70]
inc ebx
add edi, 0x2c
cmp ebx, eax
jne 0x402b75
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_AddFontResourceW]
mov ecx, dword [ebp - 0x68]
push ecx
test eax, eax
jne 0x402bf7
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402c28
cmp ebx, 0xffffffff
je 0x402b9f
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
push ecx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040621f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi + 0x58]
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], 2
jmp 0x402c32
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x60], ebx
inc dword [esi + 0x5c]
mov dword [ebp - 0x5c], 0x10
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x7c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
test edx, edx
je 0x402cab
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
inc ecx
cmp ecx, eax
jbe 0x402cab
push dword [edx + 4]
add eax, eax
cmp eax, ecx
lea edi, [eax + 2]
cmovae edi, eax
mov eax, dword [esi + 0x78]
imul eax, edi
push eax
push dword [esi + 0x6c]
mov eax, dword [edx]
call eax
add esp, 0xc
test eax, eax
je 0x402cab
mov dword [esi + 0x74], edi
mov dword [esi + 0x6c], eax
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
sub eax, edx
mov dword [ebp - 0x74], edx
cmp eax, 1
jb 0x402cd2
mov ecx, dword [esi + 0x78]
lea eax, [ebp - 0x5c]
mov edi, ecx
inc edx
imul edi, dword [ebp - 0x74]
mov dword [esi + 0x70], edx
add edi, dword [esi + 0x6c]
mov esi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040621f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040621f
mov esp, ebp
pop ebp
ret