Function at 0x10021540
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008aaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x100a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov dword [0x100ae1e0], eax
test esi, esi
je 0x10022055
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1002159a
cmp eax, 4
je 0x1002159a
cmp eax, 0x100
jne 0x10022055
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call fcn.1006a010
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0xf
add esp, 0xc
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 4], 0
mov eax, 0x100aaef0
cmp dword [0x100aaf04], 0xf
mov dword [ebp - 0x11c], 0
cmova eax, dword [0x100aaef0]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x12c], 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0x148], 0x6f
mov al, 0x20
xor al, byte [ebp - 0x148]
mov cl, 0x1f
xor cl, byte [ebp - 0x148]
mov dh, 1
mov byte [ebp - 0x147], al
mov ah, 6
mov byte [ebp - 0x146], cl
mov dl, 0x1b
mov cl, byte [ebp - 0x148]
xor ch, ch
mov byte [ebp - 0x152], 0x41
xor dl, cl
mov al, byte [ebp - 0x152]
xor ch, cl
xor al, cl
mov byte [ebp - 0x151], 0x26
mov byte [ebp - 0x141], al
mov al, byte [ebp - 0x151]
xor al, cl
mov byte [ebp - 0x135], dh
mov byte [ebp - 0x140], al
xor dh, cl
mov al, byte [ebp - 0x135]
xor al, cl
mov byte [ebp - 0x136], ah
mov byte [ebp - 0x13f], al
xor ah, cl
mov al, byte [ebp - 0x136]
xor al, cl
mov byte [ebp - 0x144], ah
mov byte [ebp - 0x13e], al
lea eax, [ebp - 0x147]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x145], dl
push eax
mov byte [ebp - 0x143], ch
mov byte [ebp - 0x142], dh
mov byte [ebp - 0x13d], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [edi]
test eax, eax
je 0x10021836
cmp esi, eax
jne 0x10021836
xor edx, edx
lea ecx, [ebp - 0x16c]
cmp dword [0x100ae3d0], 1
setne dl
mov dword [0x100ae3d0], edx
mov byte [0x100ae122], dl
call fcn.10014030
mov esi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x10021701
mov esi, dword [esi]
mov byte [ebp - 0x148], 0x13
mov al, 0x40
xor al, byte [ebp - 0x148]
mov cl, 0x78
xor cl, byte [ebp - 0x148]
mov ah, 0x7f
mov byte [ebp - 0x147], al
mov ch, ah
mov byte [ebp - 0x146], cl
mov dl, 0x7a
mov cl, byte [ebp - 0x148]
mov dh, 0x52
mov byte [ebp - 0x136], 0x61
xor ch, cl
mov al, byte [ebp - 0x136]
xor dl, cl
xor al, cl
mov byte [ebp - 0x135], 0x76
mov byte [ebp - 0x141], al
xor ah, cl
mov al, byte [ebp - 0x135]
xor dh, cl
xor al, cl
mov byte [ebp - 0x151], 0x72
mov byte [ebp - 0x140], al
mov al, byte [ebp - 0x151]
xor al, cl
mov byte [ebp - 0x143], ch
mov ch, 0x1b
mov byte [ebp - 0x13e], 0
mov byte [ebp - 0x145], dl
mov cl, 0x72
mov byte [ebp - 0x144], ah
mov dl, 0x68
mov byte [ebp - 0x13f], al
mov ah, 0x78
mov byte [ebp - 0x142], dh
mov al, 0x56
mov byte [ebp - 0x13e], 0
mov byte [ebp - 0x134], ch
xor al, ch
mov byte [ebp - 0x12f], 0
xor cl, ch
mov byte [ebp - 0x133], al
xor dl, ch
mov byte [ebp - 0x132], cl
xor ah, ch
mov byte [ebp - 0x131], dl
mov byte [ebp - 0x130], ah
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 0x12f], 0
lea eax, [ebp - 0x147]
push esi
push eax
lea eax, [ebp - 0x133]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x158]
cmp ecx, 0xf
jbe 0x1002201b
mov edx, dword [ebp - 0x16c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022011
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022074
jmp 0x10022011
mov eax, dword [edi + 4]
test eax, eax
je 0x10021921
cmp esi, eax
jne 0x10021921
mov esi, dword [0x100ae058]
xor eax, eax
cmp dword [0x100ae3d4], 1
setne al
mov dword [0x100ae3d4], eax
test esi, esi
je 0x100218aa
mov esi, dword [esi + 0xc]
test esi, esi
je 0x100218aa
test eax, eax
mov eax, dword [esi]
je 0x1002188e
test eax, eax
je 0x100218aa
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100218aa
mov ecx, dword [esi]
push 1
call dword [0x1009f688]
jmp 0x100218aa
test eax, eax
je 0x100218aa
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100218aa
mov ecx, dword [esi]
push eax
push eax
push eax
call dword [0x1009f68c]
mov edx, dword [0x100ae3d4]
lea ecx, [ebp - 0x16c]
call fcn.10014030
mov esi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x100218c5
mov esi, dword [esi]
mov cl, 0x64
mov dword [ebp - 0x148], 0xa012364
mov dword [ebp - 0x144], 0xd32010d
xor eax, eax
mov dword [ebp - 0x140], 0x8060d17
mov word [ebp - 0x13c], 1
xor byte [ebp + eax - 0x147], cl
inc eax
cmp eax, 0xc
jae 0x10021905
mov cl, byte [ebp - 0x148]
jmp 0x100218f0
mov ch, 0x78
mov byte [ebp - 0x13b], 0
mov byte [ebp - 0x134], ch
mov al, 0x35
mov cl, 0x11
mov dl, 0xb
mov ah, 0x1b
jmp 0x100217af
mov eax, dword [edi + 8]
test eax, eax
je 0x10021a22
cmp esi, eax
jne 0x10021a22
xor edx, edx
lea ecx, [ebp - 0x16c]
cmp dword [0x100ae3dc], 1
setne dl
mov dword [0x100ae3dc], edx
call fcn.10014030
mov esi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x1002195b
mov esi, dword [esi]
mov cl, 0x7f
mov byte [ebp - 0x148], 0x1a
mov ch, cl
mov byte [ebp - 0x136], 0x59
xor cl, byte [ebp - 0x148]
mov al, 0x48
xor al, byte [ebp - 0x148]
mov dl, 0x74
mov byte [ebp - 0x147], al
mov ah, 0x7e
mov al, byte [ebp - 0x136]
mov dh, 0x68
mov byte [ebp - 0x146], cl
mov cl, byte [ebp - 0x148]
xor al, cl
mov byte [ebp - 0x135], 0x7b
mov byte [ebp - 0x141], al
xor dl, cl
mov al, byte [ebp - 0x135]
xor ah, cl
xor al, cl
mov byte [ebp - 0x151], 0x6a
mov byte [ebp - 0x140], al
xor dh, cl
mov al, byte [ebp - 0x151]
xor al, cl
mov byte [ebp - 0x152], ch
xor ch, cl
mov byte [ebp - 0x13f], al
mov al, byte [ebp - 0x152]
xor al, cl
mov byte [ebp - 0x143], ch
mov ch, 0x7a
mov byte [ebp - 0x13d], 0
mov byte [ebp - 0x145], dl
mov cl, 0x13
mov byte [ebp - 0x144], ah
mov dl, 9
mov byte [ebp - 0x13e], al
mov ah, 0x19
mov byte [ebp - 0x142], dh
mov al, 0x37
mov byte [ebp - 0x13d], 0
mov byte [ebp - 0x134], ch
jmp 0x100217af
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10021afd
cmp esi, eax
jne 0x10021afd
xor edx, edx
lea ecx, [ebp - 0x16c]
cmp dword [0x100ae3e0], 1
setne dl
mov dword [0x100ae3e0], edx
call fcn.10014030
mov esi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x10021a5c
mov esi, dword [esi]
mov cl, 0xb
mov dword [ebp - 0x14c], 0x656a590b
mov dword [ebp - 0x148], 0x6c656260
xor eax, eax
mov dword [ebp - 0x144], 0x6e6d6d4e
mov word [ebp - 0x140], 0x7f68
mov byte [ebp - 0x13e], 0
nop
xor byte [ebp + eax - 0x14b], cl
inc eax
cmp eax, 0xd
jae 0x10021aa5
mov cl, byte [ebp - 0x14c]
jmp 0x10021a90
mov ch, 0x5a
mov byte [ebp - 0x12f], 0
mov al, 0x17
mov byte [ebp - 0x13e], 0
xor al, ch
mov byte [ebp - 0x134], ch
mov cl, 0x33
mov byte [ebp - 0x133], al
mov dl, 0x29
mov byte [ebp - 0x12f], 0
mov ah, 0x39
xor cl, ch
xor dl, ch
mov byte [ebp - 0x132], cl
xor ah, ch
mov byte [ebp - 0x131], dl
mov byte [ebp - 0x130], ah
lea eax, [ebp - 0x114]
push eax
push esi
lea eax, [ebp - 0x14b]
jmp 0x100217eb
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021e74
cmp esi, eax
jne 0x10021e74
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push eax
call esi
test eax, eax
jne 0x10021b71
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 0x10c]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021b71
push 4
push eax
call esi
test eax, eax
jne 0x10021b71
mov eax, dword [ebp - 0x134]
add eax, 0x11c
push 4
push eax
mov dword [ebp - 0x134], eax
call esi
test eax, eax
jne 0x10021b71
mov esi, dword [ebp - 0x134]
mov esi, dword [esi]
cmp esi, 0x17
ja 0x1002201b
jmp 0x10021b73
xor esi, esi
cmp esi, dword [0x100ae3d8]
je 0x1002201b
mov dword [0x100ae3d8], esi
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021bac
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10021bac
mov ecx, dword [ebp - 0x134]
push esi
call dword [0x1009f650]
xor ecx, ecx
push esi
cmp esi, 0xa
jge 0x10021dff
movaps xmm0, xmmword [0x100a0de0]
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0x3d376961
mov word [ebp - 0x13c], 0x3d
nop dword [eax]
mov al, byte [ebp - 0x150]
xor byte [ebp + ecx - 0x14f], al
inc ecx
cmp ecx, 0x14
jb 0x10021be0
sub esp, 0x18
mov byte [ebp - 0x13b], 0
mov edx, esp
lea ecx, [ebp - 0x14f]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x134], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021c22
sub ecx, dword [ebp - 0x134]
push ecx
lea eax, [ebp - 0x14f]
mov ecx, edx
push eax
call fcn.100048a0
lea eax, [ebp - 0x16c]
push eax
call fcn.10004440
add esp, 0x20
lea ecx, [ebp - 0x12c]
push eax
call fcn.10009c00
mov ecx, dword [ebp - 0x158]
cmp ecx, 0xf
jbe 0x10021c93
mov edx, dword [ebp - 0x16c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021c89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022074
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov eax, dword [edi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021cc2
push 4
push eax
call edi
test eax, eax
jne 0x10021cc2
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x12c]
push eax
call dword [0x1009f658]
mov ecx, 0x10b8130
call fcn.10015d00
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021d0c
push 4
push eax
call edi
test eax, eax
jne 0x10021d0c
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021d0c
push 4
push eax
call edi
test eax, eax
jne 0x10021d0c
mov ecx, dword [ebp - 0x134]
push eax
push esi
push eax
push eax
push eax
call dword [0x1009f6a8]
mov edx, dword [0x100ae3d8]
lea ecx, [ebp - 0x16c]
call fcn.10014030
mov esi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x10021d27
mov esi, dword [esi]
mov byte [ebp - 0x144], 0x39
mov al, 0x7e
xor al, byte [ebp - 0x144]
mov cl, 0x58
xor cl, byte [ebp - 0x144]
mov dl, 0x54
mov byte [ebp - 0x143], al
mov ah, 0x5c
mov byte [ebp - 0x136], dl
mov ch, 0x6d
mov al, byte [ebp - 0x136]
mov dh, 0x50
mov byte [ebp - 0x142], cl
mov cl, byte [ebp - 0x144]
xor al, cl
mov byte [ebp - 0x135], ah
mov byte [ebp - 0x13d], al
xor dl, cl
mov al, byte [ebp - 0x135]
xor ah, cl
xor al, cl
mov byte [ebp - 0x140], ah
xor ch, cl
mov byte [ebp - 0x13c], al
xor dh, cl
mov byte [ebp - 0x141], dl
mov byte [ebp - 0x13f], ch
mov al, 0x68
mov ch, 0x25
mov byte [ebp - 0x13b], 0
xor al, ch
mov byte [ebp - 0x12f], 0
mov cl, 0x4c
mov byte [ebp - 0x133], al
mov dl, 0x56
mov byte [ebp - 0x13e], dh
mov ah, 0x46
mov byte [ebp - 0x13b], 0
xor cl, ch
mov byte [ebp - 0x134], ch
xor dl, ch
mov byte [ebp - 0x132], cl
xor ah, ch
mov byte [ebp - 0x131], dl
mov byte [ebp - 0x130], ah
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 0x12f], 0
lea eax, [ebp - 0x143]
push esi
jmp 0x100217eb
movaps xmm0, xmmword [0x100a1240]
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0xf0f055b
mov byte [ebp - 0x13c], 0
nop
mov al, byte [ebp - 0x150]
xor byte [ebp + ecx - 0x14f], al
inc ecx
cmp ecx, 0x13
jb 0x10021e20
sub esp, 0x18
mov byte [ebp - 0x13c], 0
mov edx, esp
lea ecx, [ebp - 0x14f]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x134], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021e62
sub ecx, dword [ebp - 0x134]
jmp 0x10021c2f
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x1002201b
cmp esi, eax
jne 0x1002201b
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push eax
call esi
test eax, eax
jne 0x10021ee8
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 0x10c]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021ee8
push 4
push eax
call esi
test eax, eax
jne 0x10021ee8
mov eax, dword [ebp - 0x134]
add eax, 0x11c
push 4
push eax
mov dword [ebp - 0x134], eax
call esi
test eax, eax
jne 0x10021ee8
mov esi, dword [ebp - 0x134]
mov esi, dword [esi]
cmp esi, 0x14
ja 0x1002201b
jmp 0x10021eea
xor esi, esi
cmp esi, dword [0x100ae3e4]
je 0x1002201b
mov dword [0x100ae3e4], esi
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021f23
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10021f23
mov ecx, dword [ebp - 0x134]
push esi
call dword [0x1009f650]
mov eax, dword [edi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10021f4c
push 4
push eax
call edi
test eax, eax
jne 0x10021f4c
mov ecx, dword [ebp - 0x134]
push esi
call dword [0x1009f65c]
movd xmm0, dword [0x100ae3e4]
mov ecx, 0x10b8150
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x100a073c]
movss dword [ebp - 0x134], xmm0
movss dword [0x100a9b5c], xmm0
call fcn.10015d00
test eax, eax
je 0x10021f98
lea esi, [eax + 0x1ac]
push 4
push esi
call edi
test eax, eax
jne 0x10021f98
movss xmm0, dword [ebp - 0x134]
movss dword [esi], xmm0
mov edx, dword [0x100ae3e4]
lea ecx, [ebp - 0x16c]
call fcn.10014030
mov esi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x10021fb3
mov esi, dword [esi]
mov cl, 0x4d
mov dword [ebp - 0x148], 0x202c0e4d
mov dword [ebp - 0x144], 0x1f2c3f28
xor eax, eax
mov dword [ebp - 0x140], 0x282a232c
mov byte [ebp - 0x13c], 0
nop dword [eax]
xor byte [ebp + eax - 0x147], cl
inc eax
cmp eax, 0xb
jae 0x10021ff5
mov cl, byte [ebp - 0x148]
jmp 0x10021fe0
mov ch, 7
mov byte [ebp - 0x13c], 0
mov byte [ebp - 0x134], ch
mov al, 0x4a
mov cl, 0x6e
mov dl, 0x74
mov ah, 0x64
jmp 0x100217af
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x10022051
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022047
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022074
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov al, 1
jmp 0x10022057
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067e95
mov esp, ebp
pop ebp
ret 8
call fcn.1006d1c4
int3