Function at 0x4c9b70
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using aes
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa00
lea eax, [esp + 0x24c]
push 0x30
push 0x52102c
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x3b0]
mov word [esp + 0x4c], 0x6e6f
mov dword [esp + 0x48], 0x6974617a
mov dword [esp + 0x44], 0x696c616e
mov dword [esp + 0x40], 0x6f737265
mov dword [esp + 0x3c], 0x504d4342
mov dword [esp + 0x38], 0x20444120
mov dword [esp + 0x34], 0x54414b20
mov dword [esp + 0x30], 0x47425244
mov dword [esp + 0x2c], 0x204d4342
push 0x40
push 0x52107e
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x21c]
push 0x30
push str.BCM_Known_Answer_Test_DBRG_Reseed_Entropy
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x370]
push 0x40
push 0x5210ee
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x508]
mov dword [esp + 0xa8], 0xcf5a78b
mov dword [esp + 0xa4], 0x155436a8
mov dword [esp + 0xa0], 0x3f7f0287
mov dword [esp + 0x9c], 0x98ebadde
mov dword [esp + 0x98], 0x74b17b87
mov dword [esp + 0x94], 0xe7a06170
mov dword [esp + 0x90], 0x2c5e2770
mov dword [esp + 0x8c], 0xfcc58067
mov dword [esp + 0x88], 0xd87f41c2
mov dword [esp + 0x84], 0x3feae581
mov dword [esp + 0x80], 0xccf01ac4
mov dword [esp + 0x7c], 0xef8f7dda
mov dword [esp + 0x78], 0x7786d94d
mov dword [esp + 0x74], 0xbaa62577
mov dword [esp + 0x70], 0x8d4be791
mov dword [esp + 0x6c], 0x23e093a5
push 0x258
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
movaps xmm1, xmmword [str.iroBrCgnotpyyeK_BoringCryptoModule_FIPS_KAT_Encryption_and_Decryption_Plaintext_]
xorps xmm0, xmm0
mov ecx, 0x426f7269
mov eax, 0xffffffd8
mov dword [esp + 0x36c], 0xa
movaps xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x27c], xmm1
nop word cs:[eax + eax]
mov edx, dword [esp + eax*4 + 0x328]
movzx edi, dh
mov esi, edx
movzx edi, byte [edi*4 + 0x51dea2]
shr esi, 0xe
and esi, 0x3fc
movzx esi, byte [esi + 0x51daa3]
shl edi, 0x10
xor edi, ecx
movzx ecx, dl
movzx ebx, byte [ecx*4 + str.cc]
mov ecx, edx
shl esi, 0x18
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x51e6a0]
shl ebx, 8
xor ebx, edi
xor ecx, ebx
xor ecx, esi
xor ecx, dword [eax + 0x51eac8]
mov dword [esp + eax*4 + 0x32c], ecx
mov esi, dword [esp + eax*4 + 0x320]
xor esi, ecx
mov dword [esp + eax*4 + 0x330], esi
xor esi, dword [esp + eax*4 + 0x324]
mov dword [esp + eax*4 + 0x334], esi
xor esi, edx
mov dword [esp + eax*4 + 0x338], esi
add eax, 4
jne 0x4c9d10
movaps xmm0, xmmword [0x51d6b0]
lea edi, [esp + 0x27c]
lea esi, [esp + 0xd0]
movups xmmword [esp + 0xd0], xmm0
push edi
push esi
push esi
call fcn.0049aa10
add esp, 0xc
movups xmm0, xmmword [esp + 0xd0]
lea eax, [esp + 0xe0]
xorps xmm0, xmmword [0x51d6c0]
movups xmmword [esp + 0xe0], xmm0
push edi
push eax
push eax
call fcn.0049aa10
add esp, 0xc
movups xmm0, xmmword [esp + 0xe0]
lea eax, [esp + 0xf0]
xorps xmm0, xmmword [0x51d6d0]
movups xmmword [esp + 0xf0], xmm0
push edi
push eax
push eax
call fcn.0049aa10
add esp, 0xc
movups xmm0, xmmword [esp + 0xf0]
lea eax, [esp + 0x100]
xorps xmm0, xmmword [0x51d6e0]
movups xmmword [esp + 0x100], xmm0
push edi
push eax
push eax
call fcn.0049aa10
add esp, 0xc
movsd xmm0, qword [esp + 0x100]
movsd xmm1, qword [esp + 0x108]
mov ecx, 0x520dd0
mov edx, esi
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm0
push str.AES_CBC_Encryption_KAT
push 0x40
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4c9fef
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
push edi
push pe_nt_image_headers32
push str.BoringCrypto_KeyBoringCryptoModule_FIPS_KAT_Encryption_and_Decryption_Plaintext_
call fcn.0049a7a0
add esp, 0xc
test eax, eax
je 0x4c9ead
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.AES_set_decrypt_key_failed._n
jmp 0x4c9fe6
lea eax, [esp + 0x50]
push 0
push eax
push edi
push 0x40
push esi
push 0x520dd0
call sym.fastboot.exe_AES_cbc_encrypt
add esp, 0x18
mov ecx, 0x520d90
mov edx, esi
push str.AES_CBC_Decryption_KAT
push 0x40
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4c9fef
xorps xmm0, xmm0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0
movaps xmmword [esp + 0xb0], xmm0
push 0x4b1f10
push 0x537cac
call sym.fastboot.exe_CRYPTO_once
add esp, 8
mov ecx, dword [0x537cb8]
test ecx, ecx
je 0x4c9fab
cmp byte [0x537cb0], 0x10
jne 0x4c9fb6
mov dword [esp + 0x508], 0x537cb0
push 0
push 0x10
push str.BoringCrypto_KeyBoringCryptoModule_FIPS_KAT_Encryption_and_Decryption_Plaintext_
lea eax, [esp + 0x514]
push eax
call ecx
add esp, 0x10
test eax, eax
je 0x4c9fcb
push 0x4b1f10
push 0x537cac
call sym.fastboot.exe_CRYPTO_once
add esp, 8
movzx eax, byte [0x537cb1]
cmp esi, 0x520dd0
jae 0x4ca049
lea ecx, [esp + 0x1d0]
cmp ecx, 0x520d90
jbe 0x4ca049
push 0x82
push str.external_boringssl_src_crypto_fipsmodule_cipher_aead.c
push 0x73
push 0
push 0x1e
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
jmp 0x4ca58c
push 0x3e
push str.external_boringssl_src_crypto_fipsmodule_cipher_aead.c
push 0x7c
jmp 0x4c9fbf
push 0x4b
push str.external_boringssl_src_crypto_fipsmodule_cipher_aead.c
push 0x78
push 0
push 0x1e
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
mov dword [esp + 0x508], 0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.EVP_AEAD_CTX_init_for_AES_128_GCM_failed._n
push eax
call fcn.004ca710
add esp, 8
xor edi, edi
mov dword [esp + 0xc], 0
xor esi, esi
xor ebx, ebx
mov eax, dword [esp + 0x508]
test eax, eax
je 0x4ca021
lea ecx, [esp + 0x508]
push ecx
call dword [eax + 0x10]
add esp, 4
mov dword [esp + 0x508], 0
push edi
call sym.fastboot.exe_RSA_free
add esp, 4
push dword [esp + 0xc]
call sym.fastboot.exe_EC_KEY_free
add esp, 4
push esi
call sym.fastboot.exe_ECDSA_SIG_free
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x508]
lea edi, [esp + 0xb0]
lea edx, [esp + 0x110]
lea ebx, [esp + 0x28]
push 0
push 0
push 0
push 0
push 0x40
push 0x520d90
push eax
push edi
push 0xc0
push ebx
push edx
push esi
lea eax, [esp + 0x538]
push eax
call dword [ecx + 0x18]
add esp, 0x34
test eax, eax
je 0x4ca58c
mov eax, dword [esp + 0x28]
lea esi, [esp + 0xd0]
mov ecx, 0x520e10
mov edx, esi
add eax, 0x40
mov dword [esp + 0x24], eax
push str.AES_GCM_Encryption_KAT
push 0x50
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4ca617
push 0x4b1f10
push 0x537cac
call sym.fastboot.exe_CRYPTO_once
add esp, 8
movzx eax, byte [0x537cb1]
lea ecx, [esp + 0x24]
push 0
push 0
push 0x50
push 0x520e10
push eax
push edi
push 0x100
push ecx
push esi
lea eax, [esp + 0x52c]
push eax
call sym.fastboot.exe_EVP_AEAD_CTX_open
add esp, 0x28
test eax, eax
je 0x4ca62c
lea edx, [esp + 0xd0]
mov ecx, 0x520d90
push str.AES_GCM_Decryption_KAT
push 0x40
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4ca62c
lea ebx, [esp + 0x860]
push ebx
push 0x520e60
call sym.fastboot.exe_DES_set_key
add esp, 8
lea edi, [esp + 0x7e0]
push edi
push 0x520e68
call sym.fastboot.exe_DES_set_key
add esp, 8
lea esi, [esp + 0x760]
push esi
push 0x520e70
call sym.fastboot.exe_DES_set_key
add esp, 8
mov dword [esp + 0x1c], 0x56495345
mov dword [esp + 0x18], 0x444d4342
lea eax, [esp + 0x18]
push 1
push eax
push esi
lea esi, [esp + 0xdc]
push edi
push ebx
push 0x40
push esi
push 0x520d90
call sym.fastboot.exe_DES_ede3_cbc_encrypt
add esp, 0x20
mov ecx, 0x520e78
mov edx, esi
push str.3DES_Encryption_KAT
push 0x40
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4c9fef
mov eax, 0x56495345
mov ecx, 0x444d4342
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x768]
push eax
lea eax, [esp + 0x7ec]
push eax
lea eax, [esp + 0x870]
push eax
push 0x40
push esi
push 0x520e78
call sym.fastboot.exe_DES_ede3_cbc_encrypt
add esp, 0x20
mov ecx, 0x520d90
mov edx, esi
push str.3DES_Decryption_KAT
push 0x40
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4c9fef
push esi
push 0x40
push 0x520d90
call sym.fastboot.exe_SHA1
add esp, 0xc
mov ecx, 0x520eb8
mov edx, esi
push str.SHA_1_KAT
push 0x14
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4c9fef
push esi
push 0x40
push 0x520d90
call sym.fastboot.exe_SHA256
add esp, 0xc
mov ecx, 0x520ecc
mov edx, esi
push str.SHA_256_KAT
push 0x20
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4c9fef
push esi
push 0x40
push 0x520d90
call sym.fastboot.exe_SHA512
add esp, 0xc
mov ecx, 0x520eec
mov edx, esi
push str.SHA_512_KAT
push 0x40
call fcn.004ca730
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4ca641
call fcn.004ca900
test eax, eax
je 0x4ca680
or byte [eax + 0x2c], 8
lea ecx, [esp + 0xac]
mov dword [esp + 0x10], eax
push eax
push ecx
push esi
push 0x20
push 0x520ecc
push 0x2a0
call sym.fastboot.exe_RSA_sign
add esp, 0x18
test eax, eax
je 0x4ca652
lea edi, [esp + 0xd0]
mov ecx, 0x520f2c
mov edx, edi
push str.RSA_Sign_KAT
push 0x100
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4ca652
push dword [esp + 0x10]
push 0x100
push 0x520f2c
push 0x20
push 0x520ecc
push 0x2a0
call sym.fastboot.exe_RSA_verify
add esp, 0x18
test eax, eax
je 0x4ca695
call fcn.004caa10
test eax, eax
mov dword [esp + 0xc], eax
je 0x4ca6c2
call sym.fastboot.exe_BN_new
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
mov dword [ecx + 0xc], esi
je 0x4ca6a7
push 1
push esi
call fcn.0049d890
add esp, 8
test eax, eax
je 0x4ca6a7
mov dword [esi + 0xc], 0
mov eax, dword [esi]
mov dword [eax], 0x2a
mov dword [esi + 4], 1
push dword [esp + 0xc]
push 0x20
push 0x520ecc
call sym.fastboot.exe_ECDSA_do_sign
add esp, 0xc
mov esi, eax
test eax, eax
je 0x4ca6d4
mov eax, dword [esi]
mov dword [esp + 0x14], eax
push eax
call sym.fastboot.exe_BN_num_bits
add esp, 4
add eax, 7
and eax, 0xfffffff8
cmp eax, 0x100
jne 0x4ca6d4
lea eax, [esp + 0x1fc]
push eax
push dword [esp + 0x18]
call sym.fastboot.exe_BN_bn2bin
add esp, 8
test eax, eax
je 0x4ca6d4
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
push eax
call sym.fastboot.exe_BN_num_bits
add esp, 4
add eax, 7
and eax, 0xfffffff8
cmp eax, 0x100
jne 0x4ca6d4
lea eax, [esp + 0x1dc]
push eax
push dword [esp + 0x18]
call sym.fastboot.exe_BN_bn2bin
add esp, 8
test eax, eax
je 0x4ca6d4
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x1fc]
push str.ECDSA_R
push 0x20
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4ca6d4
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x1dc]
push str.ECDSA_S
push 0x20
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4ca6d4
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3f0]
push 0x12
push eax
lea eax, [esp + 0x254]
push eax
push ecx
call sym.fastboot.exe_CTR_DRBG_init
add esp, 0x10
test eax, eax
je 0x4ca6ef
lea eax, [esp + 0x2c]
push 0x10
push eax
push 0x40
push edi
lea eax, [esp + 0x400]
push eax
call sym.fastboot.exe_CTR_DRBG_generate
add esp, 0x14
test eax, eax
je 0x4ca6ef
lea edi, [esp + 0xd0]
lea ecx, [esp + 0x3b0]
mov edx, edi
push str.DBRG_Generate_KAT
push 0x40
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4ca6ef
push 0x10
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x3fc]
push eax
call sym.fastboot.exe_CTR_DRBG_reseed
add esp, 0x10
test eax, eax
je 0x4ca6ef
push 0x10
lea eax, [esp + 0x30]
push eax
push 0x40
push edi
lea eax, [esp + 0x400]
push eax
call sym.fastboot.exe_CTR_DRBG_generate
add esp, 0x14
test eax, eax
je 0x4ca6ef
lea ecx, [esp + 0x370]
lea edx, [esp + 0xd0]
push str.DRBG_Reseed_KAT
push 0x40
call fcn.004ca730
add esp, 8
test eax, eax
je 0x4ca6ef
push 0x118
lea edi, [esp + 0x3f4]
push edi
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
lea ebx, [esp + 0x8e0]
push 0x118
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov ecx, ebx
mov edx, edi
push str.DRBG_Clear_KAT
push 0x118
call fcn.004ca730
add esp, 8
xor ebx, ebx
test eax, eax
setne bl
jmp 0x4ca677
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movaps xmmword [esp + 0x1c0], xmm0
movaps xmmword [esp + 0x1b0], xmm0
movaps xmmword [esp + 0x1a0], xmm0
movaps xmmword [esp + 0x190], xmm0
movaps xmmword [esp + 0x180], xmm0
movaps xmmword [esp + 0x170], xmm0
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x150], xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.EVP_AEAD_CTX_seal_for_AES_128_GCM_failed._n
jmp 0x4c9fe6
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.EVP_AEAD_CTX_open_for_AES_128_GCM_failed._n
jmp 0x4c9fe6
xor edi, edi
mov dword [esp + 0xc], 0
xor esi, esi
jmp 0x4c9ffd
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.RSA_signing_test_failed._n
push eax
call fcn.004ca710
add esp, 8
mov dword [esp + 0xc], 0
xor esi, esi
xor ebx, ebx
mov edi, dword [esp + 0x10]
jmp 0x4c9ffd
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.RSA_KeyGen_failed_n
jmp 0x4c9fe6
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.RSA_Verify_KAT_failed._n
jmp 0x4ca662
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.Out_of_memory_n
push eax
call fcn.004ca710
add esp, 8
jmp 0x4ca673
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.ECDSA_KeyGen_failed_n
jmp 0x4ca662
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.ECDSA_KAT_failed._n
push eax
call fcn.004ca710
add esp, 8
jmp 0x4ca677
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.CTR_DRBG_failed._n
jmp 0x4ca6e4