Function at 0x41d810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503f25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41d846
lock inc dword [eax + 4]
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov ebx, dword [ebp + 0xc]
test eax, eax
jne 0x41d885
xor edi, edi
test ebx, ebx
je 0x41d87e
mov eax, ecx
lock xadd dword [ebx + 4], eax
jne 0x41d87e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [ebx + 8], eax
jne 0x41d87e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
jmp 0x41d9b8
xor esi, esi
cmp dword [eax + 0x10], esi
jbe 0x41d9b6
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x41d89a
mov ecx, dword [eax]
xor byte [ecx + esi], 0x36
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x41d8aa
mov edx, dword [eax]
cmp byte [edx + esi], 0
mov edx, eax
jne 0x41d8c2
cmp ecx, 0x10
jb 0x41d8b9
mov edx, dword [eax]
mov byte [edx + esi], 0x55
jmp 0x41d9a9
cmp ecx, 0x10
jb 0x41d8c9
mov edx, dword [eax]
cmp byte [edx + esi], 0x55
mov edx, eax
jne 0x41d8e1
cmp ecx, 0x10
jb 0x41d8d8
mov edx, dword [eax]
mov byte [edx + esi], 0xff
jmp 0x41d9a9
cmp ecx, 0x10
jb 0x41d8e8
mov edx, dword [eax]
cmp byte [edx + esi], 0xff
mov edx, eax
jne 0x41d900
cmp ecx, 0x10
jb 0x41d8f7
mov edx, dword [eax]
mov byte [edx + esi], 0xfd
jmp 0x41d9a9
cmp ecx, 0x10
jb 0x41d907
mov edx, dword [eax]
cmp byte [edx + esi], 0xfd
mov edx, eax
jne 0x41d91f
cmp ecx, 0x10
jb 0x41d916
mov edx, dword [eax]
mov byte [edx + esi], 0xde
jmp 0x41d9a9
cmp ecx, 0x10
jb 0x41d926
mov edx, dword [eax]
cmp byte [edx + esi], 0xde
mov edx, eax
jne 0x41d93b
cmp ecx, 0x10
jb 0x41d935
mov edx, dword [eax]
mov byte [edx + esi], 5
jmp 0x41d9a9
cmp ecx, 0x10
jb 0x41d942
mov edx, dword [eax]
cmp byte [edx + esi], 5
mov edx, eax
jne 0x41d957
cmp ecx, 0x10
jb 0x41d951
mov edx, dword [eax]
mov byte [edx + esi], 1
jmp 0x41d9a9
cmp ecx, 0x10
jb 0x41d95e
mov edx, dword [eax]
cmp byte [edx + esi], 1
mov edx, eax
jne 0x41d973
cmp ecx, 0x10
jb 0x41d96d
mov edx, dword [eax]
mov byte [edx + esi], 0xa
jmp 0x41d9a9
cmp ecx, 0x10
jb 0x41d97a
mov edx, dword [eax]
cmp byte [edx + esi], 0xa
mov edx, eax
jne 0x41d98f
cmp ecx, 0x10
jb 0x41d989
mov edx, dword [eax]
mov byte [edx + esi], 0x80
jmp 0x41d9a9
cmp ecx, 0x10
jb 0x41d996
mov edx, dword [eax]
cmp byte [edx + esi], 0x80
jne 0x41d9a9
mov edx, eax
cmp ecx, 0x10
jb 0x41d9a5
mov edx, dword [eax]
mov byte [edx + esi], 0
inc esi
cmp esi, dword [eax + 0x10]
jb 0x41d890
or ecx, 0xffffffff
mov edi, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edi
test esi, esi
je 0x41d9e5
mov eax, ecx
lock xadd dword [esi + 4], eax
jne 0x41d9e5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x41d9e5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.004695a0
push 0
push 0x1403f
mov byte [ebp - 4], 1
call fcn.00407d20
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x10]
add ecx, eax
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x41da25
mov eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x41da1c
mov eax, dword [esi]
mov dword [esi + 0x10], ecx
mov byte [eax + ecx], 0
jmp 0x41da31
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.00467e80
mov eax, esi
mov edi, eax
cmp dword [edi + 0x14], 0x10
lea ebx, [edi + 0x14]
jb 0x41da40
mov eax, dword [esi]
mov dword [eax], 0xabbadaad
cmp dword [ebx], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
jb 0x41da5c
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
push 0
push 0x14047
call fcn.00407d20
mov ecx, dword [ebp - 0x10]
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
mov dword [eax + ecx], edx
cmp dword [ebx], 0x10
jb 0x41da81
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
push 0
push 0x1403b
call fcn.00407d20
mov ecx, dword [ebp - 0x10]
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [eax + ecx], edx
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x41daa6
mov eax, dword [eax]
cmp dword [ebx], 0x10
jb 0x41daad
mov edi, dword [esi]
push dword [ecx + 0x10]
push eax
push 0
push 0x1403f
call fcn.00407d20
add esp, 8
add eax, edi
push eax
call fcn.004de150
add esp, 0xc
push 0
push 0x14043
call fcn.00407d20
mov edi, eax
add esp, 8
cmp edi, dword [esi + 0x10]
jae 0x41db6a
nop word [eax + eax]
mov dword [ebp - 0x10], 0
mov eax, esi
cmp dword [ebx], 0x10
jb 0x41db00
mov eax, dword [esi]
add eax, edi
mov dword [ebp - 0x31], 0x3b263532
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x10]
sub eax, edi
mov dword [ebp - 0x2d], 0xf040c
mov dword [ebp - 0x1c], eax
xor eax, eax
mov byte [ebp - 0x29], 1
lea ecx, [eax + 0x65]
xor byte [ebp + eax - 0x31], cl
inc eax
cmp eax, 7
jb 0x41db21
push 0x520bf0
mov byte [ebp - 0x29], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x31]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 1
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x20]
call eax
cmp eax, 0xffffffff
je 0x41dbcd
add edi, dword [ebp - 0x10]
cmp edi, dword [esi + 0x10]
jb 0x41daf0
mov bl, 1
mov esi, dword [ebp - 0x24]
or edi, 0xffffffff
test esi, esi
je 0x41db95
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41db95
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x41db95
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41dbba
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41dbba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41dbba
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x41db6c