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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x344
call fcn.1004e0f0
mov eax, dword [0x1006bde4]
xor eax, esp
mov dword [esp + 0x340], eax
cmp dword [ebp + 0x20], 0x100000
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esp + 0x5c], eax
mov ebx, 0x40
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0x48], eax
mov edi, 8
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x84], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0x28
mov dword [esp + 0x1c], edi
mov byte [esp + 0x17], 1
mov dword [esp + 0x60], 0
jae 0x10004ec7
push 0x1005069c
push esi
call sub.libcrypto_3.dll_EVP_MD_is_a
add esp, 8
test eax, eax
je 0x100045a2
lea eax, [esp + 0xa0]
push eax
call sub.libcrypto_3.dll_MD5_Init
add esp, 4
test eax, eax
jle 0x10004ec7
mov eax, 0x30
mov dword [esp + 0x34], 0x10004ee0
mov dword [esp + 0x18], 0x1004d69a
lea ecx, [ebx - 0x30]
mov dword [esp + 0x58], eax
mov byte [esp + 0x17], 0
jmp 0x100046f6
push str.SHA1
push esi
call sub.libcrypto_3.dll_EVP_MD_is_a
add esp, 8
test eax, eax
je 0x100045e6
lea eax, [esp + 0xa0]
push eax
call sub.libcrypto_3.dll_SHA1_Init
add esp, 4
test eax, eax
jle 0x10004ec7
mov dword [esp + 0x34], 0x10004f60
mov ecx, 0x14
mov dword [esp + 0x18], 0x1004d6a6
jmp 0x100046f1
push str.SHA2_224
push esi
call sub.libcrypto_3.dll_EVP_MD_is_a
add esp, 8
test eax, eax
je 0x1000462a
lea eax, [esp + 0xa0]
push eax
call sub.libcrypto_3.dll_SHA224_Init
add esp, 4
test eax, eax
jle 0x10004ec7
mov dword [esp + 0x34], 0x10005000
mov ecx, 0x1c
mov dword [esp + 0x18], 0x1004d6b8
jmp 0x100046f1
push str.SHA2_256
push esi
call sub.libcrypto_3.dll_EVP_MD_is_a
add esp, 8
test eax, eax
je 0x1000466e
lea eax, [esp + 0xa0]
push eax
call sub.libcrypto_3.dll_SHA256_Init
add esp, 4
test eax, eax
jle 0x10004ec7
mov dword [esp + 0x34], 0x10005000
mov ecx, 0x20
mov dword [esp + 0x18], 0x1004d6b8
jmp 0x100046f1
push str.SHA2_384
push esi
call sub.libcrypto_3.dll_EVP_MD_is_a
add esp, 8
test eax, eax
je 0x1000469f
lea eax, [esp + 0xa0]
push eax
call sub.libcrypto_3.dll_SHA384_Init
add esp, 4
test eax, eax
jle 0x10004ec7
mov ecx, 0x30
jmp 0x100046cf
push str.SHA2_512
push esi
call sub.libcrypto_3.dll_EVP_MD_is_a
add esp, 8
test eax, eax
je 0x10004eb9
lea eax, [esp + 0xa0]
push eax
call sub.libcrypto_3.dll_SHA512_Init
add esp, 4
test eax, eax
jle 0x10004ec7
mov ecx, ebx
mov edi, 0x10
mov dword [esp + 0x18], 0x1004d6ca
mov ebx, 0x80
mov dword [esp + 0x1c], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], 0x100050f0
mov eax, 0x28
cmp byte [ebp + 0x2c], 0
mov esi, 0xd
mov dword [esp + 0x24], ecx
mov dword [esp + 0x68], esi
je 0x1000471f
mov esi, dword [ebp + 0x28]
add esi, 0xb
mov dword [esp + 0x2c], 2
add esi, eax
mov dword [esp + 0x68], esi
jmp 0x10004730
lea eax, [ebx + 0xff]
xor edx, edx
add eax, ecx
div ebx
inc eax
mov dword [esp + 0x2c], eax
xor edx, edx
mov eax, esi
sub eax, ecx
mov ecx, dword [ebp + 0x20]
add eax, edi
dec ecx
add eax, ebx
xor edi, edi
add eax, ecx
mov dword [esp + 0x38], edi
div ebx
mov ecx, dword [ebp + 0x1c]
xor edx, edx
mov dword [esp + 0x3c], eax
add ecx, esi
mov eax, ecx
mov dword [esp + 0x28], ecx
div ebx
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
xor edx, edx
div ebx
xor edx, edx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
add eax, ecx
div ebx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
xor eax, eax
cmp byte [ebp + 0x2c], al
setne al
add eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x2c]
cmp dword [esp + 0x20], edx
jae 0x100047aa
mov edi, eax
imul edi, ebx
cmp dword [esp + 0x20], edx
mov dword [esp + 0x38], edi
sbb edx, edx
and edx, eax
mov eax, dword [esp + 0x28]
shl eax, 3
cmp byte [ebp + 0x2c], 0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], eax
jne 0x10004889
lea eax, [eax + ebx*8]
push ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1cc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x28]
add esp, 0xc
cmp eax, 0x80
ja 0x10004ec7
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x1d0]
push eax
call sub.VCRUNTIME140.dll_memcpy
movaps xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjjA]
add esp, 0xc
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x1c8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [esp + eax + 0x1c8], xmm0
movups xmm0, xmmword [esp + eax + 0x1d8]
pxor xmm0, xmm2
movups xmmword [esp + eax + 0x1d8], xmm0
movups xmm0, xmmword [esp + eax + 0x1e8]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
movups xmm0, xmmword [esp + eax + 0x1f8]
pxor xmm0, xmm2
movups xmmword [esp + eax + 0x1f8], xmm0
add eax, 0x40
cmp eax, ebx
jb 0x10004810
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 8
mov eax, dword [esp + 0x20]
mov edx, eax
shr edx, 0x18
mov dword [esp + 0x28], edx
mov edx, eax
shr edx, 0x10
shr eax, 8
cmp byte [esp + 0x17], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
je 0x100048ee
lea eax, [ecx - 4]
push eax
lea eax, [esp + 0x17c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov byte [esp + eax + 0x180], cl
mov ecx, dword [esp + 0x4c]
mov byte [esp + eax + 0x181], cl
mov ecx, dword [esp + 0x3c]
mov byte [esp + eax + 0x182], cl
mov ecx, dword [esp + 0x2c]
mov byte [esp + eax + 0x183], cl
jmp 0x1000492e
push ecx
lea eax, [esp + 0x17c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov byte [esp + eax + 0x17f], cl
mov ecx, dword [esp + 0x4c]
mov byte [esp + eax + 0x17e], cl
mov ecx, dword [esp + 0x3c]
mov byte [esp + eax + 0x17d], cl
mov ecx, dword [esp + 0x2c]
mov byte [esp + eax + 0x17c], cl
add esp, 0xc
test edi, edi
je 0x10004a5b
cmp byte [ebp + 0x2c], 0
je 0x100049db
cmp esi, ebx
jbe 0x10004ec7
push dword [esp + 0x44]
lea eax, [esp + 0xa4]
sub esi, ebx
push eax
mov dword [esp + 0x38], esi
call dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
add eax, ebx
push esi
push eax
lea eax, [esp + 0x258]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
sub eax, esi
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x264]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0xc4]
push eax
call dword [esp + 0x40]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x10004a5b
mov esi, dword [esp + 0x48]
lea edi, [eax - 1]
sub esi, dword [esp + 0x30]
add esi, ebx
lea eax, [esp + 0xa0]
push esi
push eax
call dword [esp + 0x20]
add esp, 8
add esi, ebx
sub edi, 1
jne 0x100049c2
jmp 0x10004a57
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x250], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x254], al
lea eax, [ebx - 0xd]
push eax
lea eax, [esp + 0x259]
movq qword [esp + 0x24c], xmm0
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0xb0]
push eax
call dword [esp + 0x2c]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x14
cmp eax, 1
jbe 0x10004a5b
add esi, 0xfffffff3
lea edi, [eax - 1]
add esi, ebx
lea eax, [esp + 0xa0]
push esi
push eax
call dword [esp + 0x20]
add esp, 8
add esi, ebx
sub edi, 1
jne 0x10004a40
mov edi, dword [esp + 0x38]
push 0x40
lea eax, [esp + 0x18c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
add eax, ecx
mov dword [esp + 0x80], eax
cmp ecx, eax
ja 0x10004d0d
mov esi, dword [esp + 0x4c]
mov eax, esi
shr eax, 0x1f
mov dword [esp + 0x70], eax
lea edx, [esi + 1]
neg esi
mov eax, edx
mov dword [esp + 0x78], edx
shr eax, 0x1f
mov edx, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
sub edx, eax
sub eax, ebx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x4c], esi
lea eax, [esp + eax + 0x178]
mov dword [esp + 0x20], eax
mov eax, ecx
xor esi, esi
xor eax, dword [esp + 0x74]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, ecx
xor eax, dword [esp + 0x6c]
neg dl
mov dword [esp + 0x40], edx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [esp + 0x38], ecx
not cl
or cl, dl
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x4c]
movd xmm0, eax
mov eax, dword [esp + 0x20]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
nop dword [eax]
mov edx, dword [esp + 0x68]
xor bl, bl
cmp edi, edx
jae 0x10004b40
mov eax, dword [esp + 0x44]
jmp 0x10004b4f
mov eax, dword [ebp + 0x20]
add eax, edx
cmp edi, eax
jae 0x10004b52
mov eax, dword [esp + 0x48]
sub eax, edx
mov bl, byte [eax + edi]
mov eax, dword [esp + 0x70]
mov edx, esi
shr ecx, 0x1f
inc edi
xor cl, al
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, dword [esp + 0x40]
xor cl, dl
movzx eax, al
dec cl
movzx ecx, cl
and ecx, eax
mov dword [esp + 0x54], ecx
not ecx
mov dword [esp + 0x1c], ecx
mov ecx, esi
sub ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x1c]
and al, bl
shr ecx, 0x1f
mov ebx, dword [esp + 0x54]
xor cl, byte [esp + 0x30]
and bl, 0x80
or bl, al
mov al, dl
xor al, byte [esp + 0x30]
or cl, al
xor cl, dl
dec cl
and cl, byte [esp + 0x40]
not cl
and cl, byte [esp + 0x17]
and bl, cl
cmp esi, dword [esp + 0x7c]
jb 0x10004bdc
mov eax, dword [esp + 0x38]
movzx eax, al
mov dword [esp + 0x54], eax
not eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
and cl, byte [eax]
mov eax, dword [esp + 0x1c]
and bl, al
or bl, cl
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x2c]
inc ecx
mov byte [esp + esi + 0x2c8], bl
inc esi
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
cmp esi, ebx
jb 0x10004b30
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0x20]
lea eax, [esp + 0x2d0]
push eax
lea eax, [esp + 0xac]
push eax
call dword [esp + 0x44]
mov edx, dword [esp + 0x34]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x10004cdb
movaps xmm2, xmmword [esp + 0x90]
mov ecx, edx
and ecx, 0xffffffc0
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [esp + eax + 0x188]
movups xmm1, xmmword [esp + eax + 0x2c8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x188], xmm1
movups xmm0, xmmword [esp + eax + 0x198]
movups xmm1, xmmword [esp + eax + 0x2d8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x198], xmm1
movups xmm0, xmmword [esp + eax + 0x1a8]
movups xmm1, xmmword [esp + eax + 0x2e8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x1a8], xmm1
movups xmm1, xmmword [esp + eax + 0x2f8]
movups xmm0, xmmword [esp + eax + 0x1b8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x1b8], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x10004c50
cmp eax, edx
jae 0x10004cf7
nop
mov cl, byte [esp + eax + 0x2c8]
and cl, byte [esp + 0x38]
or byte [esp + eax + 0x188], cl
inc eax
cmp eax, edx
jb 0x10004ce0
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x80]
jbe 0x10004ac4
call sub.libcrypto_3.dll_EVP_MD_CTX_new
mov esi, eax
test esi, esi
je 0x10004e97
push 0
push dword [esp + 0x88]
push esi
call sub.libcrypto_3.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
jle 0x10004e97
cmp byte [ebp + 0x2c], 0
je 0x10004dc5
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x1c8]
push edi
push 0x5c
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0x28]
push dword [esp + 0x6c]
push esi
call sub.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0x18
test eax, eax
jle 0x10004e97
push edi
lea eax, [esp + 0x1cc]
push eax
push esi
call sub.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
jle 0x10004e97
push dword [esp + 0x24]
lea eax, [esp + 0x18c]
push eax
push esi
call sub.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
jg 0x10004e62
push esi
call sub.libcrypto_3.dll_EVP_MD_CTX_free
mov eax, dword [esp + 0x64]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.1004e11b
mov esp, ebp
pop ebp
ret
movaps xmm2, xmmword [0x100506f0]
xor eax, eax
nop
movups xmm0, xmmword [esp + eax + 0x1c8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1c8], xmm1
movups xmm0, xmmword [esp + eax + 0x1d8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1d8], xmm1
movups xmm0, xmmword [esp + eax + 0x1e8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
movups xmm0, xmmword [esp + eax + 0x1f8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1f8], xmm1
add eax, 0x40
cmp eax, ebx
jb 0x10004dd0
push ebx
lea eax, [esp + 0x1cc]
push eax
push esi
call sub.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
jle 0x10004e97
push dword [esp + 0x24]
lea eax, [esp + 0x18c]
push eax
push esi
call sub.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
jle 0x10004e97
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x8c]
push esi
call sub.libcrypto_3.dll_EVP_DigestFinal
add esp, 0xc
test eax, eax
je 0x10004e8f
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x10004e8f
mov eax, dword [esp + 0x8c]
mov dword [ecx], eax
mov dword [esp + 0x60], 1
push esi
call sub.libcrypto_3.dll_EVP_MD_CTX_free
mov eax, dword [esp + 0x64]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.1004e11b
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10004ec7
mov dword [eax], 0
mov ecx, dword [esp + 0x34c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004e11b
mov esp, ebp
pop ebp
ret