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

Disassembly:
mov eax, 0x34
call fcn.005f62e0
push ebx
mov ebx, dword [esp + 0x4c]
mov eax, ebx
shl eax, 4
push ebp
add eax, 6
mov dword [esp + 0x2c], 0
mov dword [esp + 8], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ebx
push esi
push edi
cmp eax, 0x1555555
ja 0x581cc5
imul esi, ebx, 0x600
push 0x273
push str.cryptoececp_nistz256.c
lea eax, [esi + 0x220]
push eax
call fcn.004c0940
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
je 0x581cc7
mov eax, ebx
push 0x275
shl eax, 5
add eax, ebx
push str.cryptoececp_nistz256.c
push eax
call fcn.004c0940
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x581cc7
push 0x276
lea eax, [ebx*4]
push str.cryptoececp_nistz256.c
push eax
call fcn.004c0940
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x581cc7
mov eax, edi
mov dword [esp + 0x28], 0
and eax, 0xffffffc0
add eax, 0x40
mov dword [esp + 0x18], eax
lea edi, [esi + eax]
mov dword [esp + 0x14], edi
test ebx, ebx
je 0x581927
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], eax
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
sub eax, ebp
mov dword [esp + 0x40], eax
push dword [ebp]
call fcn.004deb80
add esp, 4
cmp eax, 0x100
jg 0x58167a
push dword [ebp]
call fcn.004dea30
add esp, 4
test eax, eax
jne 0x58167a
mov esi, dword [ebp]
jmp 0x5816a9
push ebx
call fcn.00540b90
mov esi, eax
add esp, 4
test esi, esi
je 0x581cbf
mov eax, dword [esp + 0x48]
push ebx
push dword [eax + 8]
push dword [ebp]
push esi
call fcn.00569a10
add esp, 0x10
test eax, eax
je 0x581c95
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
push esi
mov dword [ecx + eax*4], esi
call fcn.00467100
shl eax, 2
add esp, 4
test eax, eax
jle 0x581723
mov esi, dword [esp + 0x38]
add esi, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
push dword [edi + ebp]
call fcn.00467110
mov ecx, ebx
test ecx, ecx
jns 0x5816e3
add ecx, 3
sar ecx, 2
mov ecx, dword [eax + ecx*4]
lea esi, [esi + 4]
mov eax, ecx
mov byte [esi - 6], cl
shr eax, 8
add ebx, 4
mov byte [esi - 5], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi - 4], al
mov byte [esi - 3], cl
push dword [edi + ebp]
call fcn.00467100
shl eax, 2
add esp, 8
cmp ebx, eax
jl 0x5816d2
mov edi, dword [esp + 0x14]
cmp ebx, 0x21
jge 0x581740
mov ecx, dword [esp + 0x24]
mov eax, 0x21
sub eax, ebx
add ecx, ebx
add ecx, dword [esp + 0x10]
push eax
push 0
push ecx
call fcn.005f77b0
add esp, 0xc
mov ebx, dword [esp + 0x40]
push 8
mov eax, dword [ebx + ebp]
push dword [eax + 8]
push edi
call fcn.00569660
add esp, 0xc
test eax, eax
je 0x581c65
mov eax, dword [ebx + ebp]
lea ecx, [edi + 0x20]
push 8
push dword [eax + 0xc]
push ecx
call fcn.00569660
add esp, 0xc
test eax, eax
je 0x581c65
mov eax, dword [ebx + ebp]
push 8
push dword [eax + 0x10]
lea eax, [edi + 0x40]
push eax
call fcn.00569660
add esp, 0xc
test eax, eax
je 0x581c65
mov esi, dword [esp + 0x58]
push 1
push edi
push esi
call fcn.00448080
lea ebp, [edi + 0x60]
push edi
push ebp
call fcn.00448560
push 2
push ebp
push esi
call fcn.00448080
push edi
lea ebx, [edi + 0xc0]
push ebp
push ebx
call fcn.00448760
push 3
push ebx
push esi
call fcn.00448080
push ebp
push ebp
call fcn.00448560
add esp, 0x40
push 4
push ebp
push esi
call fcn.00448080
push ebx
push ebx
call fcn.00448560
push 6
push ebx
push esi
call fcn.00448080
push dword [esp + 0x34]
add edi, 0x120
push ebp
push edi
call fcn.00448760
push 5
push edi
push esi
call fcn.00448080
mov eax, dword [esp + 0x4c]
push eax
push ebx
lea esi, [eax + 0x180]
push esi
call fcn.00448760
add esp, 0x44
push 7
push esi
push dword [esp + 0x60]
call fcn.00448080
push ebp
push ebp
call fcn.00448560
push 8
push ebp
push dword [esp + 0x74]
call fcn.00448080
push ebx
push ebx
call fcn.00448560
push 0xc
push ebx
push dword [esp + 0x88]
call fcn.00448080
push edi
push edi
call fcn.00448560
push 0xa
push edi
push dword [esp + 0x9c]
call fcn.00448080
add esp, 0x48
push esi
push esi
call fcn.00448560
push 0xe
push esi
push dword [esp + 0x68]
call fcn.00448080
push dword [esp + 0x28]
push ebx
push ebx
call fcn.00448760
push 0xd
push ebx
push dword [esp + 0x80]
call fcn.00448080
push dword [esp + 0x40]
push edi
push edi
call fcn.00448760
push 0xb
push edi
push dword [esp + 0x98]
call fcn.00448080
mov edi, dword [esp + 0x58]
add esp, 0x44
push edi
push esi
push esi
call fcn.00448760
push 0xf
push esi
mov esi, dword [esp + 0x6c]
push esi
call fcn.00448080
push edi
push ebp
push ebx
call fcn.00448760
push 9
push ebx
push esi
call fcn.00448080
push ebp
push ebp
call fcn.00448560
push 0x10
push ebp
push esi
call fcn.00448080
mov eax, dword [esp + 0x6c]
add esi, 0x600
mov ebp, dword [esp + 0x74]
inc eax
add dword [esp + 0x68], 0x21
add ebp, 4
mov ebx, dword [esp + 0xa0]
add esp, 0x44
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x30], ebp
cmp eax, dword [esp + 0x1c]
jb 0x581654
mov eax, dword [esp + 0x10]
lea ebp, [edi + 0x20]
mov esi, 0xff
mov dword [esp + 0x24], esi
movzx ecx, byte [eax + 0x1f]
shr ecx, 6
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push eax
push dword [esp + 0x1c]
push edi
call fcn.004480d0
movups xmm0, xmmword [edi]
mov ebx, dword [esp + 0x58]
add esp, 0xc
movups xmmword [ebx], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ebx + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [ebx + 0x30], xmm0
movups xmm0, xmmword [edi + 0x40]
movups xmmword [ebx + 0x40], xmm0
movups xmm0, xmmword [edi + 0x50]
movups xmmword [ebx + 0x50], xmm0
nop word [eax + eax]
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp esi, 0xff
sete al
cmp eax, ecx
jae 0x581b02
lea edx, [esi - 1]
mov esi, edx
shr edx, 3
and esi, 7
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], esi
mov edx, eax
imul esi, eax, 0x600
shl edx, 5
add edx, eax
mov dword [esp + 0x30], edx
add esi, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x28], ecx
nop dword [eax]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
add eax, edx
movzx edx, byte [eax + ecx + 1]
movzx eax, byte [eax + ecx]
mov ecx, dword [esp + 0x3c]
shl edx, 8
or edx, eax
shr edx, cl
mov ecx, 0x3f
and edx, 0x3f
mov eax, edx
sub ecx, edx
shr eax, 5
dec eax
mov esi, eax
and eax, edx
not esi
and ecx, esi
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
and eax, 0x7fffffff
push eax
push dword [esp + 0x5c]
push edi
call fcn.004480d0
lea eax, [edi + 0x80]
push ebp
push eax
call fcn.004473a0
mov eax, dword [edi + 0x80]
and esi, 1
neg esi
and eax, esi
mov edx, esi
not edx
mov ecx, edx
and ecx, dword [ebp]
xor ecx, eax
mov dword [ebp], ecx
mov ecx, dword [edi + 0x84]
mov eax, dword [ebp + 4]
and ecx, esi
and eax, edx
xor ecx, eax
mov eax, esi
mov dword [ebp + 4], ecx
and eax, dword [edi + 0x88]
mov ecx, dword [ebp + 8]
and ecx, edx
xor ecx, eax
mov dword [ebp + 8], ecx
mov ecx, edx
and ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x8c]
and eax, esi
xor ecx, eax
mov dword [ebp + 0xc], ecx
mov ecx, edx
and ecx, dword [ebp + 0x10]
mov eax, dword [edi + 0x90]
and eax, esi
xor ecx, eax
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi + 0x94]
and ecx, edx
and eax, esi
xor ecx, eax
mov dword [ebp + 0x14], ecx
mov ecx, esi
mov eax, dword [ebp + 0x18]
and ecx, dword [edi + 0x98]
and eax, edx
xor ecx, eax
mov dword [ebp + 0x18], ecx
and edx, dword [ebp + 0x1c]
mov eax, dword [edi + 0x9c]
push edi
and eax, esi
xor edx, eax
push ebx
push ebx
mov dword [ebp + 0x1c], edx
call fcn.00448760
mov edx, dword [esp + 0x50]
add esp, 0x20
add dword [esp + 0x58], 0x600
add edx, 0x21
sub dword [esp + 0x28], 1
mov dword [esp + 0x30], edx
jne 0x5819e0
mov esi, dword [esp + 0x24]
push ebx
sub esi, 5
push ebx
mov dword [esp + 0x2c], esi
call fcn.00448560
push ebx
push ebx
call fcn.00448560
push ebx
push ebx
call fcn.00448560
push ebx
push ebx
call fcn.00448560
push ebx
push ebx
call fcn.00448560
add esp, 0x28
cmp esi, 5
jae 0x581990
cmp dword [esp + 0x1c], 0
jbe 0x581c57
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
nop dword [eax + eax]
movzx edx, byte [eax]
mov ecx, 0x3f
and edx, 0x1f
add edx, edx
mov eax, edx
sub ecx, edx
shr eax, 5
dec eax
mov esi, eax
and eax, edx
not esi
and ecx, esi
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
and eax, 0x7fffffff
push eax
push dword [esp + 0x1c]
push edi
call fcn.004480d0
lea eax, [edi + 0x80]
push ebp
push eax
call fcn.004473a0
and esi, 1
neg esi
mov edx, esi
mov eax, esi
and eax, dword [edi + 0x80]
not edx
mov ecx, edx
and ecx, dword [ebp]
xor ecx, eax
mov eax, esi
mov dword [ebp], ecx
mov ecx, edx
and ecx, dword [ebp + 4]
and eax, dword [edi + 0x84]
xor ecx, eax
mov eax, esi
mov dword [ebp + 4], ecx
mov ecx, edx
and ecx, dword [ebp + 8]
and eax, dword [edi + 0x88]
xor ecx, eax
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x8c]
and ecx, edx
and eax, esi
xor ecx, eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi + 0x90]
and ecx, edx
and eax, esi
xor ecx, eax
mov eax, esi
mov dword [ebp + 0x10], ecx
mov ecx, edx
and ecx, dword [ebp + 0x14]
and eax, dword [edi + 0x94]
xor ecx, eax
mov eax, esi
mov dword [ebp + 0x14], ecx
mov ecx, edx
and ecx, dword [ebp + 0x18]
and eax, dword [edi + 0x98]
xor ecx, eax
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [edi + 0x9c]
and ecx, edx
push edi
and eax, esi
xor ecx, eax
push ebx
mov dword [ebp + 0x1c], ecx
push ebx
call fcn.00448760
mov eax, dword [esp + 0x78]
add esp, 0x20
add dword [esp + 0x18], 0x600
add eax, 0x21
sub dword [esp + 0x1c], 1
mov dword [esp + 0x58], eax
jne 0x581b50
mov edi, dword [esp + 0x20]
mov dword [esp + 0x34], 1
jmp 0x581cc7
call fcn.004c22a0
push str.ecp_nistz256_windowed_mul
push 0x2a2
push str.cryptoececp_nistz256.c
call fcn.004c23a0
push 0
push 0x92
push 0x10
call fcn.004c24b0
mov edi, dword [esp + 0x38]
add esp, 0x18
jmp 0x581cc7
call fcn.004c22a0
push str.ecp_nistz256_windowed_mul
push 0x286
push str.cryptoececp_nistz256.c
call fcn.004c23a0
push 0
push 0x80003
push 0x10
call fcn.004c24b0
add esp, 0x18
mov edi, dword [esp + 0x20]
jmp 0x581cc7
xor edi, edi
push 0x304
push str.cryptoececp_nistz256.c
push edi
call fcn.004c09d0
push 0x305
push str.cryptoececp_nistz256.c
push dword [esp + 0x24]
call fcn.004c09d0
push 0x306
push str.cryptoececp_nistz256.c
push dword [esp + 0x4c]
call fcn.004c09d0
mov eax, dword [esp + 0x58]
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret