Function at 0x10028920
Capabilities:
Encode data using base64 via winapi
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [esp + 4]
push esi
push edi
push eax
push 0
push 0x40000001
mov esi, edx
mov dword [esp + 0x18], 0
mov edi, ecx
push esi
push edi
call ebx
test eax, eax
jne 0x10028a0f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
jne 0x10028998
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100289e4
push esi
push str.Base64Encode
push 1
mov edx, 0x75e
mov byte [esi + 0xffff], 0
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
add eax, 0xa
push eax
call fcn.1005218a
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x10028add
push 0x1000a
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
jne 0x10028a61
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi + 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x10028ab0
push esi
push str.Base64Encode
push 1
mov edx, 0x762
mov byte [esi + 0xffff], 0
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
push ecx
push eax
push 0x40000001
push esi
push edi
call ebx
test eax, eax
jne 0x10028b66
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.1005218a
mov esi, eax
add esp, 4
test esi, esi
je 0x10028976
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x100289e4
push esi
push str.Base64Encode
push 1
mov edx, 0x765
mov byte [esi + 0xffff], 0
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
push esi
call fcn.10052152
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret