Function at 0x6e8c9de0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
sub esp, 0x6c
test byte [0x6e926040], 8
mov ebx, dword [ebp + 8]
jne 0x6e8c9e20
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x6e8c9e10
cmp edx, 0x46
ja case.0x6e8c9e08.0
jmp dword [edx*4 + 0x6e92aca8]
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], eax
mov eax, 0x6e92ac89
mov dword [esp + 0xc], eax
mov eax, str.CertContext_SetProperty
mov dword [esp + 8], eax
mov eax, 0x6e926040
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
mov dword [ebp - 0x3c], edx
call fcn.6e8c5b50
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x6e8c9e03
movzx ecx, byte [0x6e926040]
xor ebx, ebx
jmp 0x6e8c9e90
movzx ecx, byte [0x6e926040]
xor ebx, ebx
test cl, 1
jne 0x6e8ca298
lea esi, [esi]
and cl, 8
je 0x6e8c9e12
mov eax, 0x6e92a74b
mov edx, str.CertContext_SetProperty
mov dword [esp + 0x10], ebx
mov ecx, 0x6e926040
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 3
call fcn.6e8c5b50
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x6e8ca2f8
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.6e910e10
movzx ecx, byte [0x6e926040]
mov ebx, eax
jmp 0x6e8c9e90
test ebx, ebx
je 0x6e8ca2d0
mov ecx, dword [ebx]
test ecx, ecx
je 0x6e8ca330
cmp word [ecx], 0
mov eax, ecx
je 0x6e8c9f29
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6e8c9f20
sub eax, ecx
add eax, 0x1e
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6e8c9f55
cmp word [ecx], 0
mov eax, ecx
je 0x6e8c9f49
add eax, 2
cmp word [eax], 0
jne 0x6e8c9f40
mov edi, dword [ebp - 0x4c]
sub eax, ecx
lea eax, [edi + eax + 2]
mov dword [ebp - 0x4c], eax
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x6e8c9f81
mov eax, dword [ebx + 0x14]
shl esi, 4
mov ecx, dword [ebp - 0x4c]
add esi, eax
mov esi, esi
lea edi, [edi]
mov edi, dword [eax + 8]
add eax, 0x10
cmp esi, eax
lea ecx, [ecx + edi + 0x10]
jne 0x6e8c9f70
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x4c]
mov esi, dword fs:[0x18]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
sub esp, 0xc
test eax, eax
je 0x6e8ca320
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0x54]
shl eax, 4
lea edi, [esi + eax + 0x1c]
mov eax, dword [ebx]
mov dword [ebp - 0x48], edi
test eax, eax
je 0x6e8ca230
mov dword [esi], edi
xor eax, eax
mov esi, dword [ebx]
nop
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [edi + eax], cx
add eax, 2
test ecx, ecx
jne 0x6e8c9fe0
mov ecx, dword [ebx]
cmp word [ecx], 0
je 0x6e8ca3d4
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6e8ca000
sub eax, ecx
add eax, 2
add dword [ebp - 0x48], eax
mov edi, dword [ebx + 4]
mov eax, dword [ebp - 0x54]
test edi, edi
je 0x6e8ca3c8
mov edi, dword [ebp - 0x48]
mov dword [eax + 4], edi
xor eax, eax
mov esi, dword [ebx + 4]
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [edi + eax], cx
add eax, 2
test ecx, ecx
jne 0x6e8ca030
mov eax, dword [ebx + 4]
cmp word [eax], 0
je 0x6e8ca05e
mov edx, eax
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6e8ca050
sub edx, eax
add edx, 2
add dword [ebp - 0x48], edx
mov eax, dword [ebx + 8]
xor ecx, ecx
mov edi, dword [ebp - 0x54]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
test eax, eax
je 0x6e8ca07f
lea ecx, [edi + 0x1c]
mov edi, dword [ebp - 0x54]
mov dword [edi + 0x14], ecx
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x6e8ca240
mov dword [ebp - 0x3c], 0
mov edx, dword [ebx + 0x14]
mov esi, edx
mov edx, edi
jmp 0x6e8ca0d1
mov ecx, dword [ebp - 0x40]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x14]
inc dword [ebp - 0x3c]
mov eax, dword [esi + eax + 8]
add dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebx + 0x10]
jae 0x6e8ca240
mov ecx, dword [edx + 0x14]
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
shl eax, 4
mov esi, dword [esi + eax]
mov dword [ecx + eax], esi
mov ecx, dword [ebx + 0x14]
mov esi, dword [ecx + eax + 0xc]
mov ecx, dword [edx + 0x14]
mov dword [ecx + eax + 0xc], esi
mov ecx, dword [ebx + 0x14]
mov esi, dword [ecx + eax + 8]
mov ecx, dword [edx + 0x14]
mov dword [ecx + eax + 8], esi
mov esi, 0
mov ecx, dword [ebx + 0x14]
mov ecx, dword [ecx + eax + 8]
test ecx, ecx
mov ecx, dword [edx + 0x14]
cmovne esi, edi
mov dword [ecx + eax + 4], esi
mov ecx, dword [ebx + 0x14]
add ecx, eax
mov esi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x40], ecx
mov ecx, edi
cmp dword [ebp - 0x40], 8
jb 0x6e8ca0b0
test cl, 1
jne 0x6e8ca3b0
test edi, 2
jne 0x6e8ca390
test edi, 4
je 0x6e8ca0b0
mov ecx, dword [esi]
add edi, 4
add esi, 4
mov dword [edi - 4], ecx
sub dword [ebp - 0x40], 4
jmp 0x6e8ca0b0
lea eax, [ebp - 0x34]
mov edx, 5
mov dword [esp], eax
lea ecx, [ebp - 0x30]
mov eax, esi
mov dword [ebp - 0x34], 0xc
call fcn.6e8c8830
lea ecx, [ebp - 0x30]
test eax, eax
je 0x6e8ca18e
and edi, 1
je 0x6e8ca210
mov dword [ebp - 0x30], 0xc
test ebx, ebx
je 0x6e8ca310
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov edx, 5
mov eax, esi
mov dword [esp], ecx
xor ecx, ecx
call fcn.6e8c9de0
movzx ecx, byte [0x6e926040]
mov ebx, eax
jmp 0x6e8c9e90
test ebx, ebx
je 0x6e8ca300
mov dword [esp + 8], ebx
mov ecx, 8
mov ebx, 0x1b
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
jmp 0x6e8c9ee9
test ebx, ebx
je 0x6e8ca340
cmp dword [ebx], 0xc
je 0x6e8ca350
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80070057
movzx ecx, byte [0x6e926040]
xor ebx, ebx
jmp 0x6e8c9e90
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.advapi32.dll_CryptReleaseContext
lea ecx, [ebp - 0x30]
sub esp, 8
jmp 0x6e8ca18e
mov eax, dword [ebp - 0x54]
mov dword [eax], 0
jmp 0x6e8ca011
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.6e910e10
xor edx, edx
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
movzx ecx, byte [0x6e926040]
sub esp, 0xc
jmp 0x6e8c9e90
mov eax, 0x6e926040
mov esi, 0x6e92ac9d
mov dword [esp + 0x10], edx
mov edi, str.CertContext_SetProperty
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.6e8c5b50
movzx ecx, byte [0x6e926040]
jmp 0x6e8c9e90
mov eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov ebx, 1
mov dword [esp], eax
call fcn.6e910f90
movzx ecx, byte [0x6e926040]
jmp 0x6e8c9e90
mov dword [esp + 4], edx
jmp 0x6e8ca2d9
mov edx, 0x1b
mov dword [esp + 4], edx
jmp 0x6e8ca2d9
mov dword [ebp - 0x28], 2
xor eax, eax
jmp 0x6e8ca19f
mov dword [esi + 0x34], 0xe
jmp 0x6e8c9e67
mov dword [ebp - 0x4c], 0x1c
jmp 0x6e8c9f31
mov eax, 5
mov dword [esp + 4], eax
jmp 0x6e8ca2d9
mov dword [ebp - 0x30], 0x18
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], 0
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov eax, 0x18
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov eax, 5
mov dword [ebp - 0x28], ebx
mov dword [esp + 4], eax
jmp 0x6e8c9ee9
movzx ecx, word [esi]
add edi, 2
add esi, 2
mov word [edi - 2], cx
sub dword [ebp - 0x40], 2
jmp 0x6e8ca142
movzx ecx, byte [esi]
inc esi
mov edi, dword [ebp - 0x48]
mov byte [ebp - 0x50], cl
mov byte [edi], cl
inc edi
dec dword [ebp - 0x40]
jmp 0x6e8ca136
mov dword [eax + 4], 0
jmp 0x6e8ca061
mov eax, edx
jmp 0x6e8ca00e