Function at 0x48c760
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56016d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x60b3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], edx
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x2c], edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], eax
test esi, esi
jne 0x48c819
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.Authenticator.cpp
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x14], 0xab
call fcn.00418540
mov edx, str.Buffer_not_provided_to_authenticate
lea ecx, [ebp - 0x19c]
call fcn.004185a0
lea ecx, [ebp - 0x144]
call fcn.00459e90
lea eax, [ebp - 0x144]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
mov dword [edi], esi
mov eax, edi
jmp 0x48caea
push 0x5b3f86
push 0x20
call fcn.0050fdd3
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 2
test edi, edi
jne 0x48c8a8
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.Authenticator.cpp
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x14], 0xbb
call fcn.00418540
mov edx, str.Failed_to_allocate_buffer_to_be_used_for_authentication
lea ecx, [ebp - 0x19c]
call fcn.004185a0
lea ecx, [ebp - 0x144]
call fcn.00459e90
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
mov eax, dword [ebp - 0x4c]
mov dword [eax], edi
jmp 0x48caea
mov eax, dword [esi]
push 0x5b3f86
push 0xc
mov dword [edi], eax
call fcn.0050fdd3
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 6
test esi, esi
jne 0x48c941
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], str.Authenticator.cpp
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x24], 0x36
call fcn.00418540
mov edx, str.Failed_to_allocate_random_data_buffer
lea ecx, [ebp - 0x19c]
call fcn.004185a0
lea ecx, [ebp - 0x144]
call fcn.00459e90
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
mov dword [ebp - 0x30], esi
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x48ca3a
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0x5f379c
mov dword [ebp - 0x14], 0
push 0
push 0
push 0x5f32f4
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x48c987
push eax
push 0xc
push esi
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
je 0x48ca1d
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], str.Authenticator.cpp
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x24], 0x3d
call fcn.00418540
mov edx, str.Failed_to_generate_random_data_buffer
lea ecx, [ebp - 0xfc]
call fcn.004185a0
lea ecx, [ebp - 0xa4]
call fcn.00459e90
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0xa4], vtable.std::ios_base.0
call fcn.004f7d4c
mov eax, dword [ebp - 0x14]
xor esi, esi
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], 0x5f379c
test eax, eax
je 0x48ca0b
push esi
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push dword [ebp - 0x1c]
call fcn.00510360
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x48ca3a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], 0x5f379c
test eax, eax
je 0x48ca37
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x48ca60
lea ecx, [edi + 4]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x48cb08
call fcn.0052a78a
mov dword [eax], 0x16
call fcn.0052864a
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.Authenticator.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x14], 0xca
call fcn.00418540
mov edx, str.Failed_to_copy_salt_into_authentication_buffer
lea ecx, [ebp - 0x23c]
call fcn.004185a0
lea ecx, [ebp - 0x1e4]
call fcn.00459e90
lea eax, [ebp - 0x1e4]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
mov eax, dword [ebp - 0x4c]
add esp, 4
mov dword [eax], 0
test esi, esi
je 0x48cae1
push dword [ebp - 0x1c]
call fcn.00510360
add esp, 4
push edi
call fcn.00510360
mov eax, dword [ebp - 0x4c]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050fd4b
mov esp, ebp
pop ebp
ret
movq xmm0, qword [eax]
mov edx, dword [ebp - 0x50]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
call fcn.0048c550
mov byte [ebp - 4], 0xc
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x48cb4f
mov eax, dword [ebp - 0x2c]
add eax, 0xc
jne 0x48cbc9
call fcn.0052a78a
mov dword [eax], 0x16
call fcn.0052864a
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.Authenticator.cpp
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x14], 0xd3
call fcn.00418540
lea ecx, [ebp - 0xfc]
call fcn.0048d480
lea ecx, [ebp - 0xa4]
call fcn.00459e90
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - 0xa4], vtable.std::ios_base.0
call fcn.004f7d4c
mov eax, dword [ebp - 0x4c]
add esp, 4
mov dword [eax], 0
test edi, edi
je 0x48cc9f
jmp 0x48cc96
movups xmm0, xmmword [edi]
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x50]
movups xmmword [eax], xmm0
push 0x20
call fcn.0048bed0
add esp, 8
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x38], 0
jne 0x48ccb4
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.Authenticator.cpp
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x14], 0xdb
call fcn.00418540
mov edx, str.HMAC_generation_failed
lea ecx, [ebp - 0xfc]
call fcn.004185a0
lea ecx, [ebp - 0xa4]
call fcn.00459e90
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp - 0xa4], vtable.std::ios_base.0
call fcn.004f7d4c
mov eax, dword [ebp - 0x4c]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [eax], 0
cmp ecx, 0x10
jb 0x48cc96
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x48cc8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cffc
push ecx
push edx
call fcn.0050fd95
add esp, 8
push edi
call fcn.00510360
add esp, 4
test esi, esi
je 0x48ccac
push esi
call fcn.00510360
add esp, 4
push dword [ebp - 0x20]
jmp 0x48cae2
push 0x5b3f86
push 0x30
call fcn.0050fdd3
mov ecx, eax
add esp, 8
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0x10
test ecx, ecx
jne 0x48cd9c
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.Authenticator.cpp
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x14], 0xe5
call fcn.00418540
mov edx, str.Failed_to_allocate_authenticated_buffer
lea ecx, [ebp - 0xfc]
call fcn.004185a0
lea ecx, [ebp - 0xa4]
call fcn.00459e90
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0x11
push eax
mov dword [ebp - 0xa4], vtable.std::ios_base.0
call fcn.004f7d4c
mov eax, dword [ebp - 0x4c]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [eax], 0
cmp ecx, 0x10
jb 0x48cd7a
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x48cd70
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cffc
push ecx
push edx
call fcn.0050fd95
add esp, 8
push edi
call fcn.00510360
add esp, 4
test esi, esi
je 0x48ccac
push esi
call fcn.00510360
add esp, 4
push dword [ebp - 0x20]
jmp 0x48cae2
mov eax, dword [ebp - 0x58]
lea edx, [ecx + 4]
mov dword [ebp - 0x50], edx
mov eax, dword [eax]
mov dword [ecx], eax
test edx, edx
je 0x48cdd1
test esi, esi
je 0x48cdc3
movq xmm0, qword [esi]
movq qword [edx], xmm0
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
xor eax, eax
jmp 0x48cde9
xorps xmm0, xmm0
movq qword [edx], xmm0
mov dword [edx + 8], 0
call fcn.0052a78a
mov dword [eax], 0x16
call fcn.0052864a
mov edx, dword [ebp - 0x50]
mov eax, 0x16
test eax, eax
je 0x48cec2
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.Authenticator.cpp
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x14], 0xf3
call fcn.00418540
mov edx, str.Failed_to_copy_salt_into_authenticated_buffer
lea ecx, [ebp - 0xfc]
call fcn.004185a0
lea ecx, [ebp - 0xa4]
call fcn.00459e90
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0x13
push eax
mov dword [ebp - 0xa4], vtable.std::ios_base.0
call fcn.004f7d4c
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
push edx
mov dword [eax], 0
call fcn.00510360
mov ecx, dword [ebp - 0x34]
add esp, 8
cmp ecx, 0x10
jb 0x48cea0
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x48ce96
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cffc
push ecx
push edx
call fcn.0050fd95
add esp, 8
push edi
call fcn.00510360
add esp, 4
test esi, esi
je 0x48ccac
push esi
call fcn.00510360
add esp, 4
push dword [ebp - 0x20]
jmp 0x48cae2
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
cmovae eax, ecx
add edx, 0xc
je 0x48cef4
test eax, eax
je 0x48ceea
movups xmm0, xmmword [eax]
movups xmmword [edx], xmm0
movups xmm0, xmmword [eax + 0x10]
xor eax, eax
movups xmmword [edx + 0x10], xmm0
jmp 0x48cf0c
xorps xmm0, xmm0
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
call fcn.0052a78a
mov dword [eax], 0x16
call fcn.0052864a
mov ecx, dword [ebp - 0x48]
mov eax, 0x16
test eax, eax
je 0x48cfc2
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.Authenticator.cpp
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x14], 0xfa
call fcn.00418540
mov edx, str.Failed_to_copy_HMAC_into_authenticated_buffer
lea ecx, [ebp - 0xfc]
call fcn.004185a0
lea ecx, [ebp - 0xa4]
call fcn.00459e90
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0x14
push eax
mov dword [ebp - 0xa4], vtable.std::ios_base.0
call fcn.004f7d4c
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
push edx
mov dword [eax], 0
call fcn.00510360
mov eax, dword [ebp - 0x34]
add esp, 8
cmp eax, 0x10
jb 0x48cc96
mov ecx, dword [ebp - 0x48]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x48cfbb
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cffc
push edx
push ecx
jmp 0x48cc8e
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x1c]
mov dword [eax], 0x30
mov eax, dword [ebp - 0x4c]
mov dword [eax], edx
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x48cc96
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x48cfbb
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48cfbb
call fcn.0052865a
int3