Function at 0x40a140
Capabilities:
Encode data using base64
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43395f
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x442d14]
xor eax, esp
push eax
lea eax, [esp + 0x420]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x434]
mov esi, 0xff
xor eax, eax
mov dword [esp + 0x428], eax
mov dword [esp + 0x1c], eax
mov ebx, 0x3d
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], 0x3e
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], 0x3f
mov dword [esp + 0xe0], 0x34
mov dword [esp + 0xe4], 0x35
mov dword [esp + 0xe8], 0x36
mov dword [esp + 0xec], 0x37
mov dword [esp + 0xf0], 0x38
mov dword [esp + 0xf4], 0x39
mov dword [esp + 0xf8], 0x3a
mov dword [esp + 0xfc], 0x3b
mov dword [esp + 0x100], 0x3c
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], esi
mov dword [esp + 0x110], esi
mov dword [esp + 0x114], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x11c], esi
mov dword [esp + 0x120], esi
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], 1
mov dword [esp + 0x12c], 2
mov dword [esp + 0x130], 3
mov dword [esp + 0x134], 4
mov dword [esp + 0x138], 5
mov dword [esp + 0x13c], 6
mov dword [esp + 0x140], 7
mov dword [esp + 0x144], 8
mov dword [esp + 0x148], 9
mov dword [esp + 0x14c], 0xa
mov dword [esp + 0x150], 0xb
mov dword [esp + 0x154], 0xc
mov dword [esp + 0x158], 0xd
mov dword [esp + 0x15c], 0xe
mov dword [esp + 0x160], 0xf
mov dword [esp + 0x164], 0x10
mov dword [esp + 0x168], 0x11
mov dword [esp + 0x16c], 0x12
mov dword [esp + 0x170], 0x13
mov dword [esp + 0x174], 0x14
mov dword [esp + 0x178], 0x15
mov dword [esp + 0x17c], 0x16
mov dword [esp + 0x180], 0x17
mov dword [esp + 0x184], 0x18
mov dword [esp + 0x188], 0x19
mov dword [esp + 0x18c], esi
mov dword [esp + 0x190], esi
mov dword [esp + 0x194], esi
mov dword [esp + 0x198], esi
mov dword [esp + 0x19c], esi
mov dword [esp + 0x1a0], esi
mov dword [esp + 0x1a4], 0x1a
mov dword [esp + 0x1a8], 0x1b
mov dword [esp + 0x1ac], 0x1c
mov dword [esp + 0x1b0], 0x1d
mov dword [esp + 0x1b4], 0x1e
mov dword [esp + 0x1b8], 0x1f
mov dword [esp + 0x1bc], 0x20
mov dword [esp + 0x1c0], 0x21
mov dword [esp + 0x1c4], 0x22
mov dword [esp + 0x1c8], 0x23
mov dword [esp + 0x1cc], 0x24
mov dword [esp + 0x1d0], 0x25
mov dword [esp + 0x1d4], 0x26
mov dword [esp + 0x1d8], 0x27
mov dword [esp + 0x1dc], 0x28
mov dword [esp + 0x1e0], 0x29
mov dword [esp + 0x1e4], 0x2a
mov dword [esp + 0x1e8], 0x2b
mov dword [esp + 0x1ec], 0x2c
mov dword [esp + 0x1f0], 0x2d
mov dword [esp + 0x1f4], 0x2e
mov dword [esp + 0x1f8], 0x2f
mov dword [esp + 0x1fc], 0x30
mov dword [esp + 0x200], 0x31
mov dword [esp + 0x204], 0x32
mov dword [esp + 0x208], 0x33
mov dword [esp + 0x20c], esi
mov dword [esp + 0x210], esi
mov dword [esp + 0x214], esi
mov dword [esp + 0x218], esi
mov dword [esp + 0x21c], esi
mov dword [esp + 0x220], esi
mov dword [esp + 0x224], esi
mov dword [esp + 0x228], esi
mov dword [esp + 0x22c], esi
mov dword [esp + 0x230], esi
mov dword [esp + 0x234], esi
mov dword [esp + 0x238], esi
mov dword [esp + 0x23c], esi
mov dword [esp + 0x240], esi
mov dword [esp + 0x244], esi
mov dword [esp + 0x248], esi
mov dword [esp + 0x24c], esi
mov dword [esp + 0x250], esi
mov dword [esp + 0x254], esi
mov dword [esp + 0x258], esi
mov dword [esp + 0x25c], esi
mov dword [esp + 0x260], esi
mov dword [esp + 0x264], esi
mov dword [esp + 0x268], esi
mov dword [esp + 0x26c], esi
mov dword [esp + 0x270], esi
mov dword [esp + 0x274], esi
mov dword [esp + 0x278], esi
mov dword [esp + 0x27c], esi
mov dword [esp + 0x280], esi
mov dword [esp + 0x284], esi
mov dword [esp + 0x288], esi
mov dword [esp + 0x28c], esi
mov dword [esp + 0x290], esi
mov dword [esp + 0x294], esi
mov dword [esp + 0x298], esi
mov dword [esp + 0x29c], esi
mov dword [esp + 0x2a0], esi
mov dword [esp + 0x2a4], esi
mov dword [esp + 0x2a8], esi
mov dword [esp + 0x2ac], esi
mov dword [esp + 0x2b0], esi
mov dword [esp + 0x2b4], esi
mov dword [esp + 0x2b8], esi
mov dword [esp + 0x2bc], esi
mov dword [esp + 0x2c0], esi
mov dword [esp + 0x2c4], esi
mov dword [esp + 0x2c8], esi
mov dword [esp + 0x2cc], esi
mov dword [esp + 0x2d0], esi
mov dword [esp + 0x2d4], esi
mov dword [esp + 0x2d8], esi
mov dword [esp + 0x2dc], esi
mov dword [esp + 0x2e0], esi
mov dword [esp + 0x2e4], esi
mov dword [esp + 0x2e8], esi
mov dword [esp + 0x2ec], esi
mov dword [esp + 0x2f0], esi
mov dword [esp + 0x2f4], esi
mov dword [esp + 0x2f8], esi
mov dword [esp + 0x2fc], esi
mov dword [esp + 0x300], esi
mov dword [esp + 0x304], esi
mov dword [esp + 0x308], esi
mov dword [esp + 0x30c], esi
mov dword [esp + 0x310], esi
mov dword [esp + 0x314], esi
mov dword [esp + 0x318], esi
mov dword [esp + 0x31c], esi
mov dword [esp + 0x320], esi
mov dword [esp + 0x324], esi
mov dword [esp + 0x328], esi
mov dword [esp + 0x32c], esi
mov dword [esp + 0x330], esi
mov dword [esp + 0x334], esi
mov dword [esp + 0x338], esi
mov dword [esp + 0x33c], esi
mov dword [esp + 0x340], esi
mov dword [esp + 0x344], esi
mov dword [esp + 0x348], esi
mov dword [esp + 0x34c], esi
mov dword [esp + 0x350], esi
mov dword [esp + 0x354], esi
mov dword [esp + 0x358], esi
mov dword [esp + 0x35c], esi
mov dword [esp + 0x360], esi
mov dword [esp + 0x364], esi
mov dword [esp + 0x368], esi
mov dword [esp + 0x36c], esi
mov dword [esp + 0x370], esi
mov dword [esp + 0x374], esi
mov dword [esp + 0x378], esi
mov dword [esp + 0x37c], esi
mov dword [esp + 0x380], esi
mov dword [esp + 0x384], esi
mov dword [esp + 0x388], esi
mov dword [esp + 0x38c], esi
mov dword [esp + 0x390], esi
mov dword [esp + 0x394], esi
mov dword [esp + 0x398], esi
mov dword [esp + 0x39c], esi
mov dword [esp + 0x3a0], esi
mov dword [esp + 0x3a4], esi
mov dword [esp + 0x3a8], esi
mov dword [esp + 0x3ac], esi
mov dword [esp + 0x3b0], esi
mov dword [esp + 0x3b4], esi
mov dword [esp + 0x3b8], esi
mov dword [esp + 0x3bc], esi
mov dword [esp + 0x3c0], esi
mov dword [esp + 0x3c4], esi
mov dword [esp + 0x3c8], esi
mov dword [esp + 0x3cc], esi
mov dword [esp + 0x3d0], esi
mov dword [esp + 0x3d4], esi
mov eax, ebp
mov dword [esp + 0x3d8], esi
mov dword [esp + 0x3dc], esi
mov dword [esp + 0x3e0], esi
mov dword [esp + 0x3e4], esi
mov dword [esp + 0x3e8], esi
mov dword [esp + 0x3ec], esi
mov dword [esp + 0x3f0], esi
mov dword [esp + 0x3f4], esi
mov dword [esp + 0x3f8], esi
mov dword [esp + 0x3fc], esi
mov dword [esp + 0x400], esi
mov dword [esp + 0x404], esi
mov dword [esp + 0x408], esi
mov dword [esp + 0x40c], esi
mov dword [esp + 0x410], esi
mov dword [esp + 0x414], esi
mov dword [esp + 0x418], esi
mov dword [esp + 0x41c], esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40a940
sub eax, ecx
mov ecx, eax
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp byte [ecx + ebp - 1], bl
lea eax, [eax + eax*2]
mov dword [esp + 0x18], eax
jne 0x40a96a
sub eax, 1
mov dword [esp + 0x18], eax
cmp byte [ecx + ebp - 2], bl
jne 0x40a977
sub eax, 1
mov dword [esp + 0x18], eax
lea ebx, [eax + 3]
push ebx
call fcn.0040c05e
push ebx
mov edi, eax
push 0
push edi
call fcn.0041fef0
mov ecx, ebp
mov ebp, dword [esp + 0x28]
mov eax, 0x55555556
imul ebp
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
add esp, 0x10
test ebx, ebx
jle 0x40a9f0
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
xor ebp, ebp
movsx edx, byte [ecx]
mov edx, dword [esp + edx*4 + 0x20]
add ecx, 1
cmp edx, esi
jne 0x40a9c3
sub ebp, 1
jmp 0x40a9c8
shl eax, 6
or eax, edx
add ebp, 1
cmp ebp, 4
jl 0x40a9b0
mov byte [edi + 2], al
shr eax, 8
mov byte [edi + 1], al
shr eax, 8
mov byte [edi], al
add edi, 3
xor eax, eax
sub dword [esp + 0x14], 1
jne 0x40a9ae
mov ebp, dword [esp + 0x18]
jmp 0x40a9f4
mov eax, dword [esp + 0x14]
lea edx, [ebx + ebx*2]
mov ebx, edx
mov edx, ebp
sub edx, ebx
sub edx, 1
je 0x40aa4d
sub edx, 1
jne 0x40aa78
movsx edx, byte [ecx]
mov edx, dword [esp + edx*4 + 0x20]
add ecx, 1
cmp edx, esi
je 0x40aa1a
shl eax, 6
or eax, edx
movsx edx, byte [ecx]
mov edx, dword [esp + edx*4 + 0x20]
add ecx, 1
cmp edx, esi
je 0x40aa2d
shl eax, 6
or eax, edx
movsx ecx, byte [ecx]
mov ecx, dword [esp + ecx*4 + 0x20]
cmp ecx, esi
je 0x40aa3d
shl eax, 6
or eax, ecx
shr eax, 2
mov byte [edi + 1], al
shr eax, 8
mov byte [edi], al
add edi, 2
jmp 0x40aa78
movsx edx, byte [ecx]
mov edx, dword [esp + edx*4 + 0x20]
add ecx, 1
cmp edx, esi
je 0x40aa60
shl eax, 6
or eax, edx
movsx ecx, byte [ecx]
mov ecx, dword [esp + ecx*4 + 0x20]
cmp ecx, esi
je 0x40aa70
shl eax, 6
or eax, ecx
shr eax, 4
mov byte [edi], al
add edi, 1
mov esi, dword [esp + 0x430]
sub edi, ebp
push edi
mov ecx, esi
call fcn.00402150
mov dword [esp + 0x428], 0
push edi
mov dword [esp + 0x20], 1
call fcn.0040c063
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret