Function at 0x1003d130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062fb5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003d473
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1003d473
mov edx, dword [eax + 0x50]
mov dword [ebp - 0x30], edx
cmp edx, 8
jl 0x1003d1f6
call fcn.10011060
mov edi, dword [ebp + 0x10]
or esi, 0xffffffff
mov dword [ebx], 7
mov dword [ebx + 4], eax
test edi, edi
je 0x1003d1c0
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003d1c0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1003d1c0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1003d4cf
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003d4cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1003d4cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1003d4cf
lea edi, [ecx + 0x38]
mov dword [ebp - 0x2c], edi
lea esi, [eax + 0x38]
cmp edx, 1
jne 0x1003d27f
mov ecx, esi
call fcn.10010a20
test al, al
jne 0x1003d27c
call fcn.10011060
mov edi, dword [ebp + 0x10]
or esi, 0xffffffff
mov dword [ebx], 5
mov dword [ebx + 4], eax
test edi, edi
je 0x1003d246
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003d246
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1003d246
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1003d4cf
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003d4cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1003d4cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1003d4cf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov al, byte [eax + 0x55]
push 0
push dword [esi + 0x10]
mov cl, byte [ecx + 5]
mov byte [ebp - 0x26], cl
test cl, cl
mov byte [ebp - 0x25], al
mov ecx, edi
jne 0x1003d310
call fcn.1001d440
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [ebp - 0x18], 0
jb 0x1003d2af
mov eax, dword [edi]
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x1003d2be
add ecx, dword [esi]
mov esi, dword [esi]
jmp 0x1003d2c0
add ecx, esi
xor edx, edx
mov edi, ecx
cmp esi, ecx
je 0x1003d2da
mov cl, byte [ebp + edx - 0x18]
inc edx
xor cl, byte [esi]
and edx, 3
mov byte [eax], cl
inc esi
inc eax
cmp esi, edi
jne 0x1003d2c8
mov edi, dword [ebp - 0x2c]
mov edx, dword [edi + 0x10]
xor al, al
xor ah, ah
movzx ecx, al
cmp byte [ebp - 0x25], ah
mov esi, 0x80
mov al, byte [ebp - 0x30]
cmovne ecx, esi
and al, 0xf
or cl, al
mov byte [ebp - 0x18], cl
movzx ecx, ah
mov ah, byte [ebp - 0x26]
test ah, ah
cmove ecx, esi
cmp edx, 0x7d
ja 0x1003d34c
mov al, dl
jmp 0x1003d357
call fcn.1001d440
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x1003d31f
mov ecx, dword [edi]
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x1003d33b
add eax, dword [esi]
mov esi, dword [esi]
sub eax, esi
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x1003d2dd
add eax, esi
sub eax, esi
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x1003d2dd
cmp edx, 0xffff
seta al
add al, 0x7e
or cl, al
mov byte [ebp - 0x17], cl
lea ecx, [ebp - 0x24]
push 0
test ah, ah
jne 0x1003d3cc
push 0
push edx
call fcn.100082d0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.100083e0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x14]
add ecx, 8
cmp ecx, edx
je 0x1003d3a0
cmp dword [edx + 0x14], 0x10
jb 0x1003d397
mov eax, dword [edx]
push dword [edx + 0x10]
push eax
call fcn.10021390
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x1003d406
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d3fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003d3fc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
call fcn.100082a0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.100083e0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x14]
add ecx, 8
cmp ecx, edx
je 0x1003d3a0
cmp dword [edx + 0x14], 0x10
jb 0x1003d397
jmp 0x1003d395
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov eax, dword [ebp + 0x14]
or esi, 0xffffffff
mov ecx, dword [ebp - 0x30]
mov byte [eax + 0x54], 1
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x50], ecx
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0
mov dword [ebx + 4], 0x1007d018
test edi, edi
je 0x1003d44c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003d44c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1003d44c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1003d4cf
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003d4cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1003d4cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1003d4cf
call fcn.10011060
mov edi, dword [ebp + 0x10]
or esi, 0xffffffff
mov dword [ebx], 6
mov dword [ebx + 4], eax
test edi, edi
je 0x1003d4aa
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003d4aa
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1003d4aa
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1003d4cf
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003d4cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1003d4cf
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 0x14