Function at 0x6e9770
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x15c
push ebx
mov ebx, dword [esp + 0x168]
push ebp
push esi
test ebx, ebx
push edi
mov ebp, ecx
jne 0x6e97a5
push 0x12345678
push str.result__IdentifyKey_error___hUKey__NULL_
call fcn.006eacc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret 8
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x11], eax
push ecx
mov dword [esp + 0x19], eax
push ebx
mov dword [ebp + 0x10], 0xff
mov byte [esp + 0x18], 0
mov byte [esp + 0x21], al
call fcn.00741680
mov esi, eax
test esi, esi
je 0x6e9818
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x6d]
mov byte [esp + 0x6c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x70]
push str.result_et_GetSN_error__buff_s
push eax
call fcn.00743a50
add esp, 0xc
lea ecx, [esp + 0x6c]
push esi
push ecx
mov ecx, ebp
call fcn.006eacc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret 8
mov esi, dword [ebp + 0x28]
xor ecx, ecx
mov edx, esi
mov al, byte [esp + ecx + 0x10]
shr al, 4
cmp al, 0xa
movsx eax, al
jge 0x6e9832
add eax, 0x30
jmp 0x6e9835
add eax, 0x37
mov byte [edx], al
mov al, byte [esp + ecx + 0x10]
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x6e9849
add eax, 0x30
jmp 0x6e984c
add eax, 0x37
mov byte [edx + 1], al
inc ecx
add edx, 2
cmp ecx, 8
jl 0x6e981f
xor edx, edx
mov byte [esi + ecx*2], 0
mov dword [esp + 0x1d], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x21], edx
push eax
mov dword [esp + 0x29], edx
push ebx
mov dword [esp + 0x31], edx
mov ecx, ebp
mov word [esp + 0x35], dx
mov byte [esp + 0x24], 0
mov byte [esp + 0x37], dl
call fcn.006ea370
test eax, eax
mov dword [ebp + 4], eax
je 0x6e98ac
push eax
push str.result__IdentifyKey_error_
mov ecx, ebp
call fcn.006eacc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret 8
mov edi, dword [ebp + 0x30]
mov ecx, 5
lea esi, [esp + 0x1c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xe
lea edi, [esp + 0x32]
mov word [esp + 0x30], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push 0x3c
push 0
push ebx
mov ecx, ebp
stosw word es:[edi], ax
call fcn.006e99c0
test eax, eax
mov dword [ebp + 4], eax
je 0x6e9919
push 0x12345678
push str.result__ReadHeader_error_
mov ecx, ebp
call fcn.006eacc0
push 0x12345678
push str.result__IdentifyKey_error_____ReadHeader_
mov ecx, ebp
call fcn.006eacc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x34]
mov esi, 0x23
mov dword [edx], eax
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], ecx
mov al, byte [esp + 0x49]
mov ecx, 1
mov dl, al
cmp esi, ecx
jle 0x6e9956
mov bl, byte [esp + ecx + 0x49]
xor dl, bl
inc ecx
cmp ecx, esi
jl 0x6e994b
cmp dl, byte [esp + 0x48]
je 0x6e9965
mov dword [ebp + 0x10], 0xfe
jmp 0x6e9975
mov edx, dword [esp + 0x49]
and edx, 0xff
shr edx, 4
mov dword [ebp + 0x10], edx
mov ecx, dword [esp + 0x4a]
and al, 0xf
and ecx, 0xff
pop edi
mov edx, ecx
pop esi
and edx, 0xf
shr ecx, 4
neg al
sbb eax, eax
mov dword [ebp + 0x14], edx
neg eax
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x43]
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x20], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x15c
ret 8