Function at 0x47d7d0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf4]
push ebx
mov ebx, dword [esp + 0xf0]
push ebp
mov ebp, dword [esp + 0x108]
push esi
mov esi, dword [esp + 0xf4]
push edi
mov edi, dword [esp + 0x10c]
push 0x40
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x54]
push 0
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.004b63b0
mov eax, dword [esi + 0xfc]
add esp, 0xc
test eax, eax
jne 0x47d858
mov dword [esp + 0x20], 0x10
jmp 0x47d86c
cmp eax, 1
mov ecx, 0xfffffffc
mov edx, 0x1c
cmove ecx, edx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x18], 0
mov byte [esp + 0x17], 1
je 0x47df71
cmp dword [esp + 0x108], 0
je 0x47dfa2
test edi, edi
je 0x47dfd3
test eax, eax
jne 0x47d8d5
push dword [esi + 8]
push dword [esi + 4]
push str._s:mongo:_s
call fcn.00449300
push eax
mov dword [esp + 0x40], eax
call fcn.0047bd30
mov edx, dword [esp + 0x40]
add esp, 0x10
mov ecx, edx
mov dword [esp + 0x1c], eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47d8c0
sub ecx, edi
push ecx
push edx
call fcn.00449c80
add esp, 8
jmp 0x47d917
cmp eax, 1
jne 0x47df40
mov edx, dword [esi + 8]
mov ecx, edx
mov al, byte [edx]
test al, al
je 0x47d902
nop dword [eax]
sub al, 0x20
cmp al, 0x5e
ja 0x47d997
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x47d8f0
push edx
call fcn.004492b0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x47ded9
mov edi, dword [esp + 0x100]
lea eax, [esi + 0xf0]
push eax
push dword [esi + 0xec]
push dword [esi + 0xe8]
push edi
push ebx
call fcn.0047ccf0
add esp, 0x14
test al, al
je 0x47dec7
mov ecx, dword [esi + 0xf0]
lea eax, [ecx + 1]
cmp eax, dword [esi + 0xec]
jae 0x47dec7
mov eax, dword [esi + 0xe8]
mov edx, ebx
mov byte [ecx + eax], 0x2c
lea eax, [edx + edi]
inc dword [esi + 0xf0]
cmp edx, eax
jae 0x47deaf
movzx ecx, byte [ebx]
mov eax, ecx
sub eax, 0x69
je 0x47d9bd
sub eax, 9
je 0x47d9b3
sub eax, 1
jne 0x47da5b
lea eax, [esp + 0x24]
lea esi, [esp + 0x48]
jmp 0x47d9c5
push str.SCRAM_Failure:_ICU_required_to_SASLPrep_password
push 0x1d
push 0xe
push ebp
call fcn.0044b5d0
mov dword [esp + 0x2c], 0
jmp 0x47ded6
lea eax, [esp + 0x10]
lea esi, [esp + 0x3c]
jmp 0x47d9c5
lea eax, [esp + 0x28]
lea esi, [esp + 0x4c]
cmp byte [ebx + 1], 0x3d
mov dword [esp + 0x2c], eax
jne 0x47dea8
add ebx, 2
sub edx, ebx
add edi, edx
push edi
push 0x2c
push ebx
call fcn.004b6510
mov ecx, eax
mov dword [esp + 0x50], eax
sub ecx, ebx
test eax, eax
cmovne edi, ecx
mov dword [esi], edi
lea eax, [edi + 1]
push eax
call fcn.00449bb0
mov esi, eax
mov eax, dword [esp + 0x3c]
push edi
push ebx
push esi
mov dword [eax], esi
call fcn.004b5e30
mov ebx, dword [esp + 0x60]
add esp, 0x1c
mov byte [esi + edi], 0
test ebx, ebx
je 0x47da31
mov edi, dword [esp + 0x100]
inc ebx
mov edx, dword [esp + 0x40]
lea eax, [edx + edi]
cmp ebx, eax
jb 0x47d975
mov esi, dword [esp + 0x10]
test esi, esi
je 0x47deb3
cmp dword [esp + 0x24], 0
jne 0x47da73
push str.SCRAM_Failure:_no_s_param_in_sasl_step_2
push 0x1d
push 0xe
push ebp
call fcn.0044b5d0
add esp, 0x10
jmp 0x47dedd
push ecx
push str.SCRAM_Failure:_unknown_key___c__in_sasl_step_2
push 0x1d
push 0xe
push ebp
call fcn.0044b5d0
add esp, 0x14
jmp 0x47ded9
cmp dword [esp + 0x28], 0
jne 0x47da91
push str.SCRAM_Failure:_no_i_param_in_sasl_step_2
push 0x1d
push 0xe
push ebp
call fcn.0044b5d0
add esp, 0x10
jmp 0x47dedd
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov esi, dword [ebx + 0xe4]
mov eax, esi
cdq
push edx
push eax
push 0
push edi
call fcn.0047e490
add esp, 0x10
test al, al
jne 0x47dace
push esi
mov esi, dword [esp + 0x14]
lea eax, [ebx + 0xb4]
push eax
push esi
call fcn.004a1d50
add esp, 0xc
test eax, eax
je 0x47dae4
jmp 0x47dad2
mov esi, dword [esp + 0x10]
push str.SCRAM_Failure:_client_nonce_not_repeated_in_sasl_step_2
push 0x1d
push 0xe
push ebp
call fcn.0044b5d0
add esp, 0x10
cmp dword [esp + 0x108], 9
mov ecx, dword [esp + 0x38]
mov dword [ecx], 0
jbe 0x47dea1
mov edx, dword [esp + 0x18]
movq xmm0, qword [str.cbiws_r]
push ecx
push dword [esp + 0x10c]
movq qword [edx], xmm0
mov al, byte [0x4f8b14]
push edx
push edi
mov byte [edx + 8], al
add dword [ecx], 9
push esi
call fcn.0047ccf0
add esp, 0x14
test al, al
je 0x47dea1
mov edi, dword [esp + 0x38]
mov edx, dword [ebx + 0xe8]
mov esi, dword [edi]
test esi, esi
jns 0x47db59
mov esi, dword [esp + 0x18]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x47db50
sub esi, ecx
mov ecx, dword [ebx + 0xf0]
lea eax, [ecx + esi]
cmp eax, dword [ebx + 0xec]
jae 0x47dec7
push esi
push dword [esp + 0x1c]
lea eax, [ecx + edx]
push eax
call fcn.004b5e30
add dword [ebx + 0xf0], esi
add esp, 0xc
mov ecx, dword [edi]
lea eax, [ecx + 3]
cmp eax, dword [esp + 0x108]
jae 0x47dea1
mov ax, word [0x4f8b18]
mov edx, dword [esp + 0x18]
push 0x40
mov word [ecx + edx], ax
mov al, byte [0x4f8b1a]
mov byte [ecx + edx + 2], al
lea eax, [esp + 0x54]
add dword [edi], 3
push eax
push dword [esp + 0x2c]
call fcn.0044c1e0
add esp, 0xc
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
jne 0x47dbd7
push str.SCRAM_Failure:_unable_to_decode_salt_in_sasl_step2
jmp 0x47decc
cmp dword [esp + 0x20], eax
je 0x47dbf5
push eax
push str.SCRAM_Failure:_invalid_salt_length_of__d_in_sasl_step2
push 0x1d
push 0xe
push ebp
call fcn.0044b5d0
add esp, 0x14
jmp 0x47ded9
push 0xa
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x30]
call fcn.00448ef0
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], esi
cmp byte [eax], 0
je 0x47dc21
push str.SCRAM_Failure:_unable_to_parse_iterations_in_sasl_step2
jmp 0x47decc
test esi, esi
jns 0x47dc2f
push str.SCRAM_Failure:_iterations_is_negative_in_sasl_step2
jmp 0x47decc
cmp esi, 0x1000
jge 0x47dc41
push str.SCRAM_Failure:_iterations_must_be_at_least_4096
jmp 0x47decc
push dword [esp + 0x1c]
call fcn.004492b0
movups xmm0, xmmword [esp + 0x54]
mov edi, dword [ebx + 0x100]
lea edx, [ebx + 0x10]
add esp, 4
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x50], esi
movups xmmword [edx], xmm0
movups xmm0, xmmword [esp + 0x60]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [esp + 0x70]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [edx + 0x30], xmm0
test edi, edi
je 0x47dd44
mov ecx, dword [edi]
test ecx, ecx
je 0x47dd44
test eax, eax
je 0x47dd44
nop dword [eax]
mov bl, byte [ecx]
cmp bl, byte [eax]
mov byte [esp + 0x16], bl
mov ebx, dword [esp + 0x34]
jne 0x47dcd6
cmp byte [esp + 0x16], 0
je 0x47dcd2
mov bl, byte [ecx + 1]
cmp bl, byte [eax + 1]
mov byte [esp + 0x16], bl
mov ebx, dword [esp + 0x34]
jne 0x47dcd6
add ecx, 2
add eax, 2
cmp byte [esp + 0x16], 0
jne 0x47dca0
xor eax, eax
jmp 0x47dcdb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47dd44
cmp dword [edi + 0x44], esi
jne 0x47dd44
lea ecx, [edi + 4]
lea esi, [eax + 0x3c]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x47dd40
add ecx, 4
add edx, 4
sub esi, 4
jae 0x47dcf0
movups xmm0, xmmword [edi + 0x48]
movups xmmword [ebx + 0x54], xmm0
movups xmm0, xmmword [edi + 0x58]
movups xmmword [ebx + 0x64], xmm0
movups xmm0, xmmword [edi + 0x68]
movups xmmword [ebx + 0x74], xmm0
movups xmm0, xmmword [edi + 0x78]
movups xmmword [ebx + 0x84], xmm0
movups xmm0, xmmword [edi + 0x88]
movups xmmword [ebx + 0x94], xmm0
movups xmm0, xmmword [edi + 0x98]
movups xmmword [ebx + 0xa4], xmm0
mov esi, dword [esp + 0x20]
cmp byte [ebx + 0x94], 0
lea ebp, [ebx + 0x94]
jne 0x47dd7e
mov edi, dword [esp + 0x1c]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47dd60
push esi
push dword [esp + 0x40]
lea eax, [esp + 0x58]
sub ecx, edx
push eax
push ecx
push edi
push ebx
call fcn.0047cff0
add esp, 0x18
cmp byte [ebx + 0x54], 0
lea esi, [ebx + 0x54]
mov edx, 0x20
jne 0x47ddc3
mov ecx, dword [ebx + 0xfc]
test ecx, ecx
jne 0x47dd9b
lea eax, [edx - 0xc]
jmp 0x47dda3
xor eax, eax
cmp ecx, 1
cmove eax, edx
push esi
push 0xa
push str.Client_Key
push eax
lea edi, [ebx + 0xf4]
push ebp
push edi
call fcn.004a1cc0
add esp, 0x18
mov edx, 0x20
jmp 0x47ddc9
lea edi, [ebx + 0xf4]
mov ecx, dword [ebx + 0xfc]
test ecx, ecx
jne 0x47ddd8
lea eax, [ecx + 0x14]
jmp 0x47dde0
xor eax, eax
cmp ecx, 1
cmove eax, edx
lea ecx, [esp + 0x90]
push ecx
push eax
push esi
push edi
call fcn.004a1cb0
mov ecx, dword [ebx + 0xfc]
add esp, 0x10
mov ebp, 0x20
test ecx, ecx
jne 0x47de07
lea eax, [ecx + 0x14]
jmp 0x47de0f
xor eax, eax
cmp ecx, 1
cmove eax, ebp
lea ecx, [esp + 0xb0]
push ecx
push dword [ebx + 0xf0]
push dword [ebx + 0xe8]
push eax
lea eax, [esp + 0xa0]
push eax
push edi
call fcn.004a1cc0
push ebx
call fcn.0047e460
add esp, 0x1c
xor edx, edx
test eax, eax
jle 0x47de57
mov cl, byte [esi + edx]
xor cl, byte [esp + edx + 0xb0]
mov byte [esp + edx + 0xd0], cl
inc edx
cmp edx, eax
jl 0x47de41
mov eax, dword [ebx + 0xfc]
test eax, eax
jne 0x47de66
lea ecx, [eax + 0x14]
jmp 0x47de6e
xor ecx, ecx
cmp eax, 1
cmove ecx, ebp
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x108]
mov eax, dword [edi]
sub edx, eax
add eax, dword [esp + 0x18]
push edx
push eax
push ecx
lea eax, [esp + 0xdc]
push eax
call fcn.0044c050
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp eax, 0xffffffff
je 0x47dee2
add dword [edi], eax
jmp 0x47dee2
push str.SCRAM_Failure:_could_not_buffer_sasl_step2
jmp 0x47decc
push str.SCRAM_Failure:_invalid_parse_state_in_sasl_step_2
jmp 0x47decc
mov esi, dword [esp + 0x10]
push str.SCRAM_Failure:_no_r_param_in_sasl_step_2
push 0x1d
push 0xe
push ebp
call fcn.0044b5d0
add esp, 0x10
jmp 0x47dedd
push str.SCRAM_Failure:_could_not_buffer_auth_message_in_sasl_step2
push 0x1d
push 0xe
push ebp
call fcn.0044b5d0
add esp, 0x10
mov esi, dword [esp + 0x10]
mov byte [esp + 0x17], 0
push esi
call fcn.00449ba0
push dword [esp + 0x28]
call fcn.00449ba0
push dword [esp + 0x30]
call fcn.00449ba0
mov ebx, dword [esp + 0x28]
add esp, 0xc
test ebx, ebx
je 0x47df23
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47df10
sub ecx, edx
push ecx
push ebx
call fcn.00449c80
add esp, 8
mov ecx, dword [esp + 0xf0]
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b3f14
add esp, 0xe4
ret
push str.false
push str._mongoc_scram_step2
push 0x238
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_scram.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.outbuf
push str._mongoc_scram_step2
push 0x223
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_scram.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.outbufmax
push str._mongoc_scram_step2
push 0x224
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_scram.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.outbuflen
push str._mongoc_scram_step2
push 0x225
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_scram.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3