Function at 0x46af30
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b7e36
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x170
push esi
mov esi, ecx
push edi
push dword [ebx + 0xc]
mov edi, dword [ebx + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x46b336
test edi, edi
mov dword [ebp - 0x14c], 0xffffffff
mov eax, 1
mov dword [ebp - 0x148], 0
cmovne eax, edi
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x140], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x138]
mov dword [ebp - method.CryptoPP::HMAC_class_CryptoPP::SHA256_.1.virtual_0], vtable.CryptoPP::HMAC_class_CryptoPP::SHA256_.1.0
mov dword [ebp - method.CryptoPP::HMAC_class_CryptoPP::SHA256_.virtual_0], vtable.CryptoPP::HMAC_class_CryptoPP::SHA256_.0
call fcn.0046b930
push 0x6ad134
push dword [ebx + 0x18]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 2
push dword [ebx + 0x14]
call fcn.004f11f0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x158]
mov eax, dword [ebp - 0x158]
mov eax, dword [eax + 0x3c]
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
mov esi, eax
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x60], esi
test esi, esi
jne 0x46b025
xor edi, edi
jmp 0x46b02e
mov ecx, esi
call fcn.004f5600
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x5c], edi
cmp dword [ebx + 0xc], 0
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], 0
mov word [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x58], 0x5e94d4
mov dword [ebp - 0x2c], 1
jbe 0x46b260
fld qword [ebx + 0x28]
mov eax, dword [ebp - 0x24]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0x140], 0
jne 0x46b0bd
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x158]
mov eax, dword [eax + 0x3c]
call eax
mov esi, eax
mov ecx, esi
mov edi, dword [esi]
mov edx, dword [edi + 0x24]
call edx
push eax
push dword [ebp - 0x144]
mov ecx, esi
call dword [edi + 0x10]
mov byte [ebp - 0x140], 1
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x158]
mov eax, dword [eax + 0x3c]
call eax
push dword [ebx + 0x20]
mov ecx, eax
push dword [ebx + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
mov dword [ebp - 0x18], eax
mov ecx, 0x18
sub ecx, eax
mov eax, dword [ebp - 0x2c]
shr eax, cl
cmp byte [ebp - 0x140], 0
mov byte [ebp - 0x11], al
jne 0x46b127
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x158]
mov eax, dword [eax + 0x3c]
call eax
mov esi, eax
mov ecx, esi
mov edi, dword [esi]
mov edx, dword [edi + 0x24]
call edx
push eax
push dword [ebp - 0x144]
mov ecx, esi
call dword [edi + 0x10]
mov byte [ebp - 0x140], 1
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x158]
mov eax, dword [eax + 0x3c]
call eax
push 1
lea ecx, [ebp - 0x11]
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x18], eax
cmp eax, 0x20
jb 0x46b0e0
mov esi, dword [ebp - 0x154]
lea ecx, [ebp - 0x154]
mov eax, dword [esi + 0x20]
call eax
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x154]
push eax
push edi
call dword [esi + 0x3c]
mov edx, dword [ebx + 0xc]
mov esi, edx
mov ecx, dword [ebp - 0x1c]
cmp ecx, edx
cmovb esi, ecx
mov dword [ebp - 0x28], esi
test esi, esi
je 0x46b1bf
mov eax, dword [ebx + 8]
test eax, eax
je 0x46b1a9
push esi
test edi, edi
je 0x46b19e
push edi
push eax
call fcn.005854c0
add esp, 0xc
jmp 0x46b1b9
push 0
push eax
call fcn.00585a40
add esp, 0xc
call fcn.0059a2fe
mov dword [eax], 0x16
call fcn.00591c88
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0xc]
fldz
fld qword [ebp - 0x38]
fucomi st(1)
lahf
test ah, 0x44
jnp 0x46b20b
lea eax, [edx - 1]
fstp st(1)
add eax, ecx
xor edx, edx
div ecx
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
test eax, eax
jns 0x46b1e7
fadd qword [0x5f4758]
fdivp st(1)
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
fstp qword [ebp - 0x38]
call eax
fldz
fld qword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov byte [ebp - 0x4b], 1
mov ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x46b217
fxch st(1)
cmp ecx, dword [ebp - 0x24]
jb 0x46b295
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jnp 0x46b247
test cl, 0x7f
jne 0x46b299
lea ecx, [ebp - 0x58]
call fcn.004f5920
fld qword [ebp - 0x38]
fcompi st(1)
fstp st(0)
ja 0x46b299
fldz
mov eax, dword [ebp - 0x18]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0xc]
add dword [ebx + 8], esi
sub eax, esi
inc dword [ebp - 0x2c]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x46b085
mov esi, dword [ebp - 0x1c]
mov edx, esi
mov ecx, edi
call fcn.0046bda0
push edi
call fcn.00591a4c
add esp, 4
lea ecx, [ebp - 0x158]
call fcn.0046b820
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x28
fstp st(1)
fstp st(0)
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x154]
push edi
call dword [eax + 0x10]
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x154]
push edi
call dword [eax + 0x18]
mov ecx, dword [ebx + 8]
mov edx, esi
mov eax, dword [ebp - 0x20]
mov esi, eax
test cl, 3
jne 0x46b30b
test al, 3
jne 0x46b30b
mov esi, dword [ebp - 0x28]
xor edi, edi
mov edx, esi
shr edx, 2
test edx, edx
je 0x46b2f4
mov esi, eax
mov edi, edx
sub esi, ecx
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x46b2e3
mov esi, dword [ebp - 0x28]
lea eax, [edi*4]
mov edx, esi
sub edx, eax
je 0x46b322
mov ecx, dword [ebx + 8]
mov esi, dword [ebp - 0x20]
add ecx, eax
add esi, eax
test edx, edx
je 0x46b31f
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x46b311
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
fld qword [ebp - 0x38]
inc ecx
fldz
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
jmp 0x46b215
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call edx
push dword [ebx + 0xc]
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], 0
push eax
call fcn.004f0ee0
push 0x615194
lea eax, [ebp - 0x180]
push eax
call fcn.0058544f
int3