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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x170
mov ebx, edx
movzx eax, byte [edx + 0xd5]
test eax, eax
mov dword [esp + 0x28], ecx
je 0x41d2b3
cmp eax, 3
jne 0x41ddbf
cmp byte [ebx + 0xac], 0
jne 0x41ddd3
mov eax, dword [ebx + 0x9c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xa8]
mov dword [esp + 0x24], eax
jmp 0x41d4dc
mov byte [ebx + 0xd4], 0
mov eax, dword [ebx + 0x58]
mov dword [esp + 0xc], eax
mov edi, dword [ebx + 0x5c]
lea esi, [ebx + 0x60]
movups xmm0, xmmword [ebx + 0xb0]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [ebx + 0xc0]
movups xmmword [ebx + 0x70], xmm0
mov eax, dword [ebx + 0xd0]
mov dword [ebx + 0x80], eax
mov ecx, 0x80
xor edx, edx
call fcn.00478b38
lea ecx, [esp + 0x80]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0
lea edx, [esp + 0xf8]
mov dword [edx], ecx
mov ecx, esi
call fcn.004239ae
test eax, eax
je 0x41d34f
mov dword [esp + 0xfc], eax
mov dword [esp + 0xf8], 0x80000000
cmp dword [esp + 0x80], 0
je 0x41d36f
push dword [esp + 0x84]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41d36f
mov eax, dword [esp + 0x88]
mov dword [esp + 0x100], eax
movsd xmm0, qword [esp + 0x80]
movsd qword [esp + 0xf8], xmm0
cmp dword [esp + 0xf8], 0x80000000
mov dword [esp + 8], edi
jne 0x41d3a6
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], 1
mov dword [ebx + 0x8c], eax
lea ecx, [esp + 0xf8]
call fcn.004227ce
jmp 0x41d3c3
lea eax, [ebx + 0x84]
mov ecx, dword [esp + 0x100]
mov dword [eax + 8], ecx
movsd xmm0, qword [esp + 0xf8]
movsd qword [eax], xmm0
xor eax, eax
lea edi, [esp + 0x30]
mov dword [edi], eax
mov dword [edi + 4], 1
mov dword [edi + 8], eax
lea edx, [esp + 0x80]
mov dword [edx], 0x80000000
mov dword [edx + 0xc], eax
mov dword [edx + 0x14], eax
mov byte [edx + 0x20], 0
mov dword [edx + 0x1c], eax
lea esi, [esp + 0xf8]
mov ecx, esi
call fcn.0040f699
mov ecx, ebx
mov edx, esi
push edi
call fcn.004162ff
add esp, 4
mov byte [ebx + 0xd4], 1
lea esi, [esp + 0x80]
mov ecx, esi
mov edx, ebx
push dword [ebx + 0x8c]
push dword [ebx + 0x88]
call fcn.00413a40
add esp, 8
cmp byte [esi], 4
je 0x41d444
mov eax, dword [esp + 0x80]
cmp al, 4
jne 0x41d66e
mov byte [ebx + 0xd4], 0
lea edx, [esp + 0x80]
mov ecx, 0x16
mov edi, edx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0xf8]
mov ecx, esi
call fcn.004163a4
mov eax, dword [esi]
cmp eax, 0x80000000
jne 0x41d48d
movsd xmm0, qword [esp + 0xfc]
lea ecx, [esp + 0x80]
movsd qword [ecx], xmm0
jmp 0x41d67d
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0x100]
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x98], edx
mov dword [ebx + 0x94], ecx
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x9c], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0xa0], eax
mov dword [esp + 0x18], ecx
mov dword [ebx + 0xa4], ecx
mov dword [esp + 0x24], edx
mov dword [ebx + 0xa8], edx
mov byte [ebx + 0xac], 0
mov dword [esp + 0x1c], ebx
lea eax, [0x49f443]
lea edi, [esp + 0x80]
mov dword [edi], eax
mov ecx, dword [edi]
mov dword [edi], 0x491a829
mov edx, dword [edi]
call fcn.00426cf0
xorps xmm0, xmm0
movups xmmword [edi + 0x5c], xmm0
movaps xmmword [edi + 0x50], xmm0
movaps xmmword [edi + 0x40], xmm0
movaps xmmword [edi + 0x30], xmm0
movaps xmmword [edi + 0x20], xmm0
movaps xmmword [edi + 0x10], xmm0
movaps xmmword [edi], xmm0
mov ecx, 0xfffffffc
mov edx, dword [ecx + 0x4a72d4]
xor edx, dword [eax + ecx + 4]
mov dword [esp + ecx + 0x84], edx
add ecx, 4
cmp ecx, 0x68
jb 0x41d521
movzx ecx, byte [eax + 0x6e]
movzx eax, word [eax + 0x6c]
xor eax, 0x4a9d
lea esi, [esp + 0x80]
mov word [esi + 0x6c], ax
xor cl, 0x1e
mov byte [esi + 0x6e], cl
lea ebx, [esp + 0xf8]
push 0x6f
push edi
push ebx
call fcn.0047eb10
add esp, 0xc
lea eax, [esp + 0x167]
mov dword [esi], 1
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov word [esi + 0xc], 0
lea ecx, [esp + 0x48]
mov edx, esi
call fcn.00478fe0
mov eax, dword [0x4c0a74]
test eax, eax
je 0x41d5d5
mov ecx, dword [esp + 0x4c]
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
call eax
test eax, eax
je 0x41d5d5
mov esi, eax
mov edi, dword [esp + 8]
cmp edi, 8
jae 0x41d5fa
cmp edi, 7
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
je 0x41d619
mov dword [esp + 0x14], 0
jmp 0x41d6db
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x80]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov esi, eax
mov edi, edx
mov ebx, dword [esp + 0x1c]
jmp 0x41dbe0
mov eax, 0x70747468
mov edx, dword [esp + 0xc]
xor eax, dword [edx]
mov ecx, 0x2f2f3a73
xor ecx, dword [edx + 4]
or ecx, eax
mov ebx, dword [esp + 0x1c]
je 0x41d6b1
mov eax, dword [edx]
bswap eax
mov edx, 0x68747470
cmp eax, 0x68747470
jne 0x41d640
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 3]
bswap eax
mov edx, 0x703a2f2f
xor ecx, ecx
cmp eax, 0x703a2f2f
je 0x41d649
xor ecx, ecx
cmp edx, eax
sbb ecx, ecx
or ecx, 1
mov edx, dword [esp + 0xc]
lea eax, [edx + 7]
test ecx, ecx
cmovne eax, edx
lea ecx, [edi - 7]
cmovne ecx, edi
cmp edi, 8
jae 0x41d6a9
mov dword [esp + 0x14], 0
mov edi, ecx
mov edx, eax
jmp 0x41d6db
lea ecx, [esp + 0x80]
mov edx, dword [ecx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00434bb2
mov dword [esp + 0xc], eax
mov esi, 0x4a67c8
mov edi, 0x80000000
cmp byte [ebx + 0xd4], 0
je 0x41dc5c
mov ecx, ebx
call fcn.00413f04
jmp 0x41dc5c
mov dword [esp + 0x10], esi
mov edi, ecx
jmp 0x41d6bb
mov dword [esp + 0x10], esi
lea eax, [edx + 8]
add edi, 0xfffffff8
mov ecx, 0x70747468
xor ecx, dword [edx]
mov esi, edx
mov edx, 0x2f2f3a73
xor edx, dword [esi + 4]
or edx, ecx
sete cl
mov dword [esp + 0x14], ecx
mov edx, eax
mov esi, dword [esp + 0x10]
add edi, edx
mov eax, edx
lea edx, [esp + 0x80]
mov dword [edx], 1
mov dword [edx + 4], eax
mov dword [edx + 8], edi
mov word [edx + 0xc], 0
lea ecx, [esp + 0x54]
call fcn.00478fe0
mov eax, dword [0x4c0a78]
test eax, eax
je 0x41daa2
cmp byte [esp + 0x14], 0
mov ecx, 0x1bb
mov edx, 0x50
cmovne edx, ecx
push 0
push edx
push dword [esp + 0x60]
push esi
call eax
test eax, eax
je 0x41daa2
mov dword [esp + 0x10], esi
xor esi, esi
inc esi
mov dword [esp + 0x14], eax
lea edi, [esp + 0x80]
mov dword [edi], esi
mov eax, 0x4a7347
mov dword [edi + 4], eax
lea eax, [0x4a734b]
mov dword [edi + 8], eax
xor eax, eax
mov word [edi + 0xc], ax
lea ecx, [esp + 0x60]
mov edx, edi
call fcn.00478fe0
mov dword [edi], esi
xor esi, esi
mov eax, 0x4a734b
mov dword [edi + 4], eax
lea eax, [0x4a7353]
mov dword [edi + 8], eax
mov word [edi + 0xc], si
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x80]
call fcn.00478fe0
mov eax, dword [0x4c0a7c]
test eax, eax
je 0x41dacf
push esi
push esi
push esi
push dword [esp + 0x7c]
push esi
push dword [esp + 0x78]
push edi
call eax
mov dword [esp + 8], eax
test eax, eax
je 0x41dacf
lea edx, [esp + 0x80]
mov dword [edx], 1
mov eax, 0x4a7353
mov dword [edx + 4], eax
lea eax, [0x4a7371]
mov dword [edx + 8], eax
mov word [edx + 0xc], 0
lea ecx, [esp + 0x30]
call fcn.00478fe0
mov eax, dword [0x4c0a80]
test eax, eax
je 0x41d815
push 0
mov ecx, dword [esp + 0x28]
push ecx
push ecx
push dword [esp + 0x24]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x20]
call eax
test eax, eax
je 0x41db35
mov eax, dword [0x4c0a84]
test eax, eax
je 0x41d82e
push 0
push dword [esp + 0xc]
call eax
test eax, eax
je 0x41db0b
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 4
mov eax, dword [0x4c0a88]
test eax, eax
je 0x41d868
xor ecx, ecx
lea edx, [esp + 0x7c]
lea esi, [esp + 0x78]
push ecx
push edx
push esi
push ecx
push 0x20000013
push dword [esp + 0x1c]
call eax
test eax, eax
je 0x41db0b
xor esi, esi
mov dword [esp + 0xf8], esi
mov dword [esp + 0xfc], 1
mov dword [esp + 0x100], esi
mov dword [esp + 0x20], esi
mov eax, dword [0x4c0a8c]
test eax, eax
mov edx, 1
je 0x41d956
lea esi, [esp + 0x20]
push esi
push dword [esp + 0xc]
call eax
test eax, eax
je 0x41dcea
mov edi, dword [esp + 0x20]
test edi, edi
je 0x41d948
mov ecx, edi
xor edx, edx
inc edx
call fcn.00478b38
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 0
mov eax, dword [0x4c0a90]
test eax, eax
je 0x41d905
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0x24]
mov dword [esp + 0x20], edx
push edx
push dword [esp + 0x14]
call eax
test eax, eax
je 0x41dd35
mov ecx, dword [esp + 0x2c]
cmp edi, ecx
jb 0x41dde7
mov edx, dword [esp + 0x18]
jmp 0x41d907
xor ecx, ecx
mov eax, edx
add eax, ecx
lea ecx, [esp + 0xf8]
mov edi, edx
push eax
call fcn.0040f47c
add esp, 4
cmp dword [esp + 0xc], 0
je 0x41d933
push edi
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
mov eax, dword [0x4c0a8c]
test eax, eax
jne 0x41d89d
mov edx, dword [esp + 0xfc]
mov esi, dword [esp + 0x100]
lea edi, [esp + 0x80]
mov ecx, edi
push esi
call fcn.00401570
add esp, 4
mov ebx, dword [edi + 4]
mov esi, dword [edi + 8]
mov ecx, esi
xor edx, edx
call fcn.00478b38
mov edi, eax
push esi
push ebx
mov dword [esp + 0x14], edx
push edx
call fcn.0047eb10
add esp, 0xc
lea eax, [esp + 0x80]
mov eax, dword [eax]
cmp eax, 0x80000000
je 0x41d9b1
test eax, eax
je 0x41d9b1
push dword [esp + 0x84]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x4c0a94]
test eax, eax
mov ebx, dword [esp + 0x1c]
je 0x41d9e2
push dword [esp + 8]
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41d9e2
push dword [esp + 0x14]
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41d9e2
push dword [esp + 0x10]
call eax
cmp dword [esp + 0xf8], 0
je 0x41da01
push dword [esp + 0xfc]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x30], 0
je 0x41da1a
push dword [esp + 0x34]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x6c], 0
je 0x41da33
push dword [esp + 0x70]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x60], 0
je 0x41da4c
push dword [esp + 0x64]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x54], 0
je 0x41da65
push dword [esp + 0x58]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x48], 0
je 0x41da7e
push dword [esp + 0x4c]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebx + 0xac], 1
cmp edi, 0x80000001
jne 0x41dca8
mov eax, dword [esp + 0x28]
mov dword [eax], 0x80000001
mov al, 3
jmp 0x41dc9a
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41daae
push esi
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x80]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov esi, eax
mov edi, edx
jmp 0x41dbc7
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41daea
push edi
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41daea
push dword [esp + 0x10]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x80]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov esi, eax
mov edi, edx
jmp 0x41db95
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41db60
push dword [esp + 8]
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41db60
push edi
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41db60
push dword [esp + 0x10]
jmp 0x41db5e
mov eax, dword [0x4c0a94]
test eax, eax
mov esi, dword [esp + 0x10]
je 0x41db60
push dword [esp + 8]
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41db60
push edi
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41db60
push esi
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x80]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov esi, eax
mov edi, edx
cmp dword [esp + 0x30], 0
je 0x41db95
push dword [esp + 0x34]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x6c], 0
je 0x41dbae
push dword [esp + 0x70]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x60], 0
je 0x41dbc7
push dword [esp + 0x64]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x54], 0
je 0x41dbe0
push dword [esp + 0x58]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x48], 0
je 0x41dbf9
push dword [esp + 0x4c]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebx + 0xac], 1
mov dword [esp + 0x3c], 0x80000000
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x3c]
call fcn.0041d1dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x80]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov dword [esp + 0xc], eax
cmp dword [ebx + 0x90], 0
je 0x41dc52
push dword [ebx + 0x94]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, 0x4a67c8
mov edi, 0x80000000
mov byte [ebx + 0xd4], 0
cmp dword [ebx + 0x84], 0
je 0x41dc80
push dword [ebx + 0x88]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebx + 0x60]
call fcn.0041d194
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov al, 1
mov byte [ebx + 0xd5], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
cmp edi, 0x80000000
je 0x41dc10
cmp dword [ebx + 0x90], 0
je 0x41d690
push dword [ebx + 0x94]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41d690
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41dd17
push dword [esp + 8]
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41dd17
push dword [esp + 0x14]
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41dd17
push dword [esp + 0x10]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x80]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov esi, eax
mov edi, edx
jmp 0x41dd97
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41dd62
push dword [esp + 8]
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41dd62
push dword [esp + 0x14]
call eax
mov eax, dword [0x4c0a94]
test eax, eax
je 0x41dd62
push dword [esp + 0x10]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x80]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov esi, eax
mov edi, edx
cmp dword [esp + 0xc], 0
je 0x41dd97
push dword [esp + 0x18]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0xf8], 0
je 0x41db7c
push dword [esp + 0xfc]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41db7c
mov ecx, str._async_fn__resumed_after_completionx
mov edx, 0x23
push 0x4a73b4
call fcn.0048d410
mov ecx, str._async_fn__resumed_after_completionx
mov edx, 0x23
push 0x4a7384
call fcn.0048d410
mov edx, edi
push 0x4a7374
call fcn.0048d3b0