Function at 0xb65730
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc0f9fe
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [str.g.0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x48
mov esi, ecx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xb8], ebx
call fcn.00ba2640
add esp, 4
cmp eax, ebx
je 0xb65eaa
mov dword [ebp - 0xbc], eax
mov dword [eax], eax
mov eax, dword [ebp - 0xbc]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0xbc]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0xbc]
mov byte [ecx + 0x44], 1
mov edx, dword [ebp - 0xbc]
mov byte [edx + 0x45], 1
lea eax, [ebp - 0xc0]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00b64fb0
add esp, 4
mov dword [ebp - 0xb0], eax
cmp eax, ebx
jge 0xb65829
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0xc4]
lea esi, [ebp - 0xc0]
call fcn.00b40e80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.00ba25e4
mov eax, dword [ebp - 0xb0]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00ba2239
mov esp, ebp
pop ebp
ret
push 6
mov edi, 0xf
push str.status
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
call fcn.00b22a60
mov byte [ebp - 4], 2
push 1
push 0xc2e94c
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
call fcn.00b22a60
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.00b40330
cmp dword [ebp - 0x5c], 0x10
mov edx, dword [ebp - 0x70]
jae 0xb65889
lea edx, [ebp - 0x70]
mov esi, dword [eax + 0x10]
mov ecx, esi
mov ecx, dword [ebp - 0x60]
cmp esi, ecx
jae 0xb65897
mov ecx, esi
cmp dword [eax + 0x14], 0x10
jb 0xb6589f
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.00b22790
add esp, 0xc
cmp eax, ebx
jne 0xb658c5
mov eax, dword [ebp - 0x60]
cmp esi, eax
jae 0xb658ba
or eax, 0xffffffff
jmp 0xb658c3
xor edx, edx
cmp esi, eax
setne dl
mov eax, edx
cmp eax, ebx
mov esi, 0x10
sete byte [ebp - 0xa9]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x5c], esi
jb 0xb658e6
mov eax, dword [ebp - 0x70]
push eax
call fcn.00ba25e4
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
cmp dword [ebp - 0x78], esi
jb 0xb65906
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00ba25e4
add esp, 4
cmp byte [ebp - 0xa9], bl
jne 0xb659b9
push 6
push str.status
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
call fcn.00b22a60
mov byte [ebp - 4], 4
push 1
push 0xc30c6c
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
call fcn.00b22a60
lea edx, [ebp - 0x70]
push edx
push ecx
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00b40330
add esp, 4
push eax
call fcn.00b2d6c0
add esp, 8
mov byte [ebp - 4], 4
mov byte [ebp - 0xa9], al
cmp dword [ebp - 0x5c], esi
jb 0xb6598d
mov eax, dword [ebp - 0x70]
push eax
call fcn.00ba25e4
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
cmp dword [ebp - 0x78], esi
jb 0xb659ad
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00ba25e4
add esp, 4
cmp byte [ebp - 0xa9], bl
je 0xb65e68
push 7
push str.payload
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
call fcn.00b22a60
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 7
call fcn.00b40330
mov byte [ebp - 4], bl
cmp dword [ebp - 0x5c], 0x10
mov esi, eax
jb 0xb659fa
mov edx, dword [ebp - 0x70]
push edx
call fcn.00ba25e4
add esp, 4
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.00ba30b5
mov edx, eax
mov eax, dword [esi + 0x10]
add esp, 4
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0xcc], edx
jb 0xb65a25
mov ecx, dword [esi]
jmp 0xb65a27
mov ecx, esi
push eax
push ecx
push edx
call fcn.00ba68b0
mov esi, dword [esi + 0x10]
mov eax, dword [ebp - 0xcc]
mov byte [esi + eax], bl
add esp, 0xc
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
mov byte [ebp - 4], 8
push 4
push str.salt
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
call fcn.00b22a60
lea ecx, [ebp - 0xa8]
push ecx
push ecx
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00b40330
add esp, 4
push eax
call fcn.00b64e00
mov esi, 0x10
add esp, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x78], esi
jb 0xb65ab8
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00ba25e4
add esp, 4
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xb0], ebx
cmp dword [ebp - 0x94], esi
jae 0xb65ad8
lea eax, [ebp - 0xa8]
mov ecx, dword [ebp - 0x98]
push ecx
mov ecx, dword [ebp - 0xcc]
push eax
lea edx, [ebp - 0xb0]
push edx
lea eax, [ebp - 0xc8]
push eax
push ecx
call fcn.00b223f0
mov esi, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xd0]
add esp, 0x14
push esi
push edx
call fcn.00b22a60
push 3
push 0xc30c58
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
call fcn.00b22a60
mov byte [ebp - 4], 0xa
push 6
push str.chksum
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
call fcn.00b22a60
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xb
call fcn.00b40330
cmp dword [eax + 0x14], 0x10
jb 0xb65b6d
mov eax, dword [eax]
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
call fcn.00b40330
mov edx, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x10]
push edx
mov dword [ebp - 0xd4], ecx
call fcn.00ba5018
mov ecx, dword [ebp - 0xd4]
add ecx, esi
add esp, 4
cmp eax, ecx
mov esi, 0x10
setne byte [ebp - 0xa9]
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x5c], esi
jb 0xb65bc4
mov edx, dword [ebp - 0x70]
push edx
call fcn.00ba25e4
add esp, 4
mov byte [ebp - 4], 8
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
cmp dword [ebp - 0x78], esi
jb 0xb65be5
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00ba25e4
add esp, 4
cmp byte [ebp - 0xa9], bl
je 0xb65c43
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.00ba3498
mov edx, dword [ebp - 0xc8]
add esp, 4
push edx
call fcn.00ba3498
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x94], esi
jb 0xb65c25
mov eax, dword [ebp - 0xa8]
push eax
call fcn.00ba25e4
add esp, 4
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
mov dword [ebp - 4], 0xc
jmp 0xb65e6f
mov edx, dword [ebp - 0xd0]
mov ecx, dword [edx + 0x10]
or eax, 0xffffffff
cmp dword [edx + 0x14], esi
jb 0xb65c56
mov edx, dword [edx]
cmp ecx, ebx
je 0xb65c7b
lea ebx, [ebx]
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0xc2caa8]
dec ecx
inc edx
cmp ecx, ebx
jne 0xb65c60
push 0x3f
lea edx, [ebp - 0x53]
not eax
push ebx
push edx
mov esi, eax
mov byte [ebp - 0x54], bl
call fcn.00ba6830
add esp, 0xc
push esi
push 0xc2df34
lea eax, [ebp - 0x54]
push 0x40
push eax
call fcn.00ba2e93
add esp, 0x10
push 6
push str.chksum
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
call fcn.00b22a60
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x54]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xb65cd6
sub eax, edx
push eax
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00b22a60
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xe
call fcn.00b40330
push eax
lea edx, [ebp - 0x70]
push edx
call fcn.00b418d0
mov esi, 0x10
add esp, 8
mov byte [ebp - 4], 0xd
mov byte [ebp - 0xa9], al
cmp dword [ebp - 0x5c], esi
jb 0xb65d2e
mov eax, dword [ebp - 0x70]
push eax
call fcn.00ba25e4
add esp, 4
mov byte [ebp - 4], 8
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x70], bl
cmp dword [ebp - 0x78], esi
jb 0xb65d4f
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00ba25e4
add esp, 4
cmp byte [ebp - 0xa9], bl
je 0xb65de3
mov edx, dword [ebp - 0xcc]
push edx
call fcn.00ba3498
mov eax, dword [ebp - 0xc8]
add esp, 4
push eax
call fcn.00ba3498
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x94], esi
jb 0xb65d93
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.00ba25e4
add esp, 4
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0xc4]
lea esi, [ebp - 0xc0]
call fcn.00b40e80
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00ba25e4
add esp, 4
mov eax, 0xd
jmp 0xb6580d
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00ba3498
mov ecx, dword [ebp - 0xcc]
add esp, 4
push ecx
call fcn.00ba3498
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x94], esi
jb 0xb65e1b
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00ba25e4
add esp, 4
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
mov byte [ebp - 0xa8], bl
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0xc4]
lea esi, [ebp - 0xc0]
call fcn.00b40e80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00ba25e4
add esp, 4
xor eax, eax
jmp 0xb6580d
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0xc4]
lea esi, [ebp - 0xc0]
call fcn.00b40e80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.00ba25e4
add esp, 4
mov eax, 0x139f
jmp 0xb6580d
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xc4], ebx
call fcn.00ba2759
push 0xc381a8
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 0xe0], vtable.std::bad_alloc.0
call fcn.00baabcf
int3