Function at 0x7127c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x7127d2
mov eax, dword [ebp - 4]
add esp, 0xfffffb24
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0xdea
call fcn.006f8fad
push eax
call fcn.007153cd
pop ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006f3ff5
test al, al
je 0x71283f
mov edx, dword [ebp - 4]
cmp byte [edx + 0x660f], 0
jne 0x71283f
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
mov eax, 0xdec
call fcn.006f8fad
push eax
call fcn.007153cd
pop ecx
xor eax, eax
jmp 0x7131d8
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 4]
call fcn.006ed611
mov edx, 0x444074
mov eax, dword [ebp - 4]
call fcn.006f467d
test eax, eax
je 0x7128d0
lea eax, [ebp - 0xac]
xor edx, edx
call fcn.006f887d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + reloc.PSAPI.DLL_GetMappedFileNameW]
lea eax, [ebp - 0xac]
mov ecx, dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW]
call fcn.006f893d
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xac]
mov ecx, 8
call fcn.006f8a61
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xac]
call fcn.006f89c5
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xac]
call fcn.006f8a19
mov byte [ebp - 0x15], 1
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.006eceb1
jmp 0x712bc0
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW]
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
mov edx, 0x78
mov eax, dword [ebp - 4]
call fcn.006f4625
test eax, eax
je 0x712935
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ax, word [ecx + 0x661a]
cmp ax, word [edx + 0x5938]
jne 0x712935
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0x594a]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + reloc.PSAPI.DLL_GetMappedFileNameW]
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov byte [ebp - 0x15], 0
jmp 0x712bc0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW], 0
mov dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW], 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, 0x2000
mov eax, dword [ebp - 4]
call fcn.006edcc9
mov edi, eax
test edi, edi
je 0x712b73
xor esi, esi
jmp 0x712b58
lea ebx, reloc.PSAPI.DLL_GetMappedFileNameW
add ebx, esi
cmp byte [ebx + 2], 0x7a
jne 0x712aa4
push 8
push 0x444077
lea eax, [ebx + 0x22]
push eax
call fcn.007253a1
add esp, 0xc
test eax, eax
jne 0x712aa4
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + 1]
mov dl, byte [ebx]
shl ecx, 8
add dx, cx
mov ecx, 0x34
not dx
and dx, 0xffff
or eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov word [ebp - 0x2a], dx
lea edx, [ebx + 2]
call fcn.006f6801
and eax, 0xffff
movzx edx, word [ebp - 0x2a]
cmp eax, edx
jne 0x712b57
xor ecx, ecx
xor eax, eax
mov cl, byte [ebx + 0x2b]
mov al, byte [ebx + 0x2a]
shl ecx, 8
xor edx, edx
add eax, ecx
mov dl, byte [ebx + 0x2c]
xor ecx, ecx
mov cl, byte [ebx + 0x2d]
shl edx, 0x10
shl ecx, 0x18
add eax, edx
add eax, ecx
xor edx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dl, byte [ebx + 0x2f]
mov al, byte [ebx + 0x2e]
shl edx, 8
xor ecx, ecx
add eax, edx
mov cl, byte [ebx + 0x30]
xor edx, edx
mov dl, byte [ebx + 0x31]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 0x33]
mov al, byte [ebx + 0x32]
shl edx, 8
xor ecx, ecx
add eax, edx
mov cl, byte [ebx + 0x34]
xor edx, edx
mov dl, byte [ebx + 0x35]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x34]
xor eax, eax
add dword [ebp - 0x14], eax
adc dword [ebp - 0x10], edx
mov eax, esi
cdq
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
adc edx, dword [ebp - 0x24]
mov dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW], eax
mov dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW], edx
mov byte [ebp - 0x15], 1
jmp 0x712b63
cmp byte [ebx + 2], 0x78
jne 0x712b57
push 8
push 0x444080
lea eax, [ebx + 0x12]
push eax
call fcn.007253a1
add esp, 0xc
test eax, eax
jne 0x712b57
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + 1]
mov dl, byte [ebx]
shl ecx, 8
add edx, ecx
mov ecx, 0x18
not edx
and edx, 0xffff
or eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [ebp - 0x38], edx
lea edx, [ebx + 2]
call fcn.006f6801
and eax, 0xffff
cmp eax, dword [ebp - 0x38]
jne 0x712b57
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 0xd]
mov al, byte [ebx + 0xc]
shl edx, 8
xor ecx, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dl, byte [ebx + 0xf]
mov al, byte [ebx + 0xe]
shl edx, 8
mov cl, byte [ebx + 0x10]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x11]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, esi
mov ecx, dword [ebp - 4]
cdq
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW], eax
mov dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW], edx
mov byte [ebp - 0x15], 0
jmp 0x712b63
inc esi
lea eax, [edi - 0x32]
cmp esi, eax
jl 0x71298e
add dword [ebp - 0x28], reloc.PSAPI.DLL_GetMappedFileNameW
adc dword [ebp - 0x24], 0
jmp 0x71295a
mov edx, dword [ebp - 4]
cmp dword [edx + reloc.PSAPI.DLL_GetMappedFileNameW], 0
jne 0x712bc0
cmp dword [edx + reloc.PSAPI.DLL_GetMappedFileNameW], 0
jne 0x712bc0
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
mov eax, 0xdec
call fcn.006f8fad
push eax
call fcn.007153cd
pop ecx
xor eax, eax
push eax
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.006ed635
pop eax
jmp 0x7131d8
mov eax, 0xdee
call fcn.006f8fad
push eax
call fcn.007153cd
pop ecx
push 0
push 0
push 0
push 0
or edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov eax, dword [ebp - 4]
call fcn.00713749
mov edx, dword [ebp - 4]
mov ecx, dword [edx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + reloc.PSAPI.DLL_GetMappedFileNameW]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + reloc.PSAPI.DLL_GetMappedFileNameW]
mov eax, 0x36
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x4c], ecx
cmp byte [ebp - 0x15], 0
jne 0x712c21
add eax, 0xffffffe4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 4]
cmp byte [edx + 0x6610], 0
je 0x712c3f
mov ecx, dword [ebp - 0x54]
not ecx
inc ecx
and ecx, 0xf
add ecx, 8
add dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
cdq
add eax, dword [ebp - 0x48]
adc edx, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
call fcn.00714559
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
call fcn.006eb79d
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea ecx, reloc.PSAPI.DLL_GetMappedFileNameW
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov eax, dword [ebp - 4]
call fcn.00713245
mov edx, dword [ebp - 0xc]
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
shl edx, 9
call fcn.006ee2dd
push dword [ebp - 0x22cc]
push 0
push dword [ebp - 0x22d0]
call fcn.00725129
add esp, 0xc
xor edx, edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.006ede35
xor edx, edx
mov dword [ebp - 0x60], edx
jmp 0x712d99
call fcn.006f63d5
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
push edx
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00713749
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
jge 0x712d50
mov eax, dword [ebp - 4]
call fcn.006edeed
mov ecx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
mov ebx, dword [ebp - 0x60]
cmp edx, dword [ecx + ebx*8 + 4]
jne 0x712d1c
cmp eax, dword [ecx + ebx*8]
jb 0x712d50
jmp 0x712d1e
jl 0x712d50
mov eax, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.006ede35
mov ecx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push ecx
push 1
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.007136d7
mov edx, dword [ebp - 0x4c]
shl edx, 9
add edx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
xor eax, eax
mov cl, byte [ebp + eax - 0x22ac]
xor byte [edx + eax], cl
inc eax
cmp eax, 0x200
jl 0x712d77
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0xc]
jb 0x712d99
xor edx, edx
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x3c], 0
jne 0x712dab
cmp dword [ebp - 0x40], 0
ja 0x712ccd
jmp 0x712db1
jg 0x712ccd
push 0
push 0x64
push 0
push 0x64
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00713749
push 0
push 2
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00727dc9
add eax, dword [ebp - 0x5c]
adc edx, dword [ebp - 0x58]
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
xor ebx, ebx
jmp 0x712e1e
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.006edcc9
mov edx, ebx
shl edx, 9
add edx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
xor eax, eax
mov cl, byte [ebp + eax - 0x22ac]
xor byte [edx + eax], cl
inc eax
cmp eax, 0x200
jl 0x712e0b
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x712deb
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
mov ecx, dword [ebp - 0x5c]
xor edx, edx
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x64], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], ecx
xor eax, eax
mov dword [ebp - 0x74], reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [ebp - 0x4c], eax
xor edx, edx
mov dword [ebp - 0x60], edx
jmp 0x713132
call fcn.006f63d5
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
jge 0x712ecb
mov eax, dword [ebp - 4]
call fcn.006edeed
mov ecx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
mov ebx, dword [ebp - 0x60]
cmp edx, dword [ecx + ebx*8 + 4]
jne 0x712e97
cmp eax, dword [ecx + ebx*8]
jb 0x712ecb
jmp 0x712e99
jl 0x712ecb
mov eax, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.006ede35
mov ecx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push ecx
push 1
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.007136d7
mov dword [ebp - 0x78], eax
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.006edb0d
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, 0x200
or eax, reloc.PSAPI.DLL_GetMappedFileNameW
call fcn.006f6801
mov edi, eax
and edi, 0xffff
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov edx, dword [ebp - 4]
call fcn.006ed611
push dword [ebp - 0x64]
push dword [ebp - 0x68]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
mov eax, dword [ebp - 4]
call fcn.006edf89
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 4]
call fcn.006edf89
xor edx, edx
mov dl, al
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
shl edx, 8
add ebx, edx
mov edx, 2
mov dword [ebp - 0x7c], ebx
add dword [ebp - 0x68], 2
adc dword [ebp - 0x64], 0
call fcn.006ed635
cmp edi, dword [ebp - 0x7c]
jne 0x712f83
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.007131df
jmp 0x71311f
push 0x200
lea ecx, reloc.PSAPI.DLL_GetMappedFileNameW
push ecx
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
push eax
call fcn.007250b9
add esp, 0xc
mov ebx, dword [ebp - 0x4c]
shl ebx, 9
add ebx, dword [ebp - reloc.PSAPI.DLL_GetMappedFileNameW]
mov byte [ebp - 0x7d], 0
xor eax, eax
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
cmp eax, 0x200
jl 0x712fb0
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, 0x200
or eax, reloc.PSAPI.DLL_GetMappedFileNameW
call fcn.006f6801
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x712feb
mov byte [ebp - 0x7d], 1
jmp 0x7130b2
mov esi, 1
push 0x200
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
push eax
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
push edx
call fcn.007250b9
add esp, 0xc
xor eax, eax
jmp 0x71301a
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
mov ecx, esi
shl ecx, 6
cmp eax, ecx
jl 0x71300f
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, 0x200
or eax, reloc.PSAPI.DLL_GetMappedFileNameW
call fcn.006f6801
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x713049
mov byte [ebp - 0x7d], 1
jmp 0x7130b2
push 0x200
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
push eax
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
push edx
call fcn.007250b9
add esp, 0xc
mov eax, esi
shl eax, 6
cmp eax, 0x200
jge 0x713082
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
cmp eax, 0x200
jl 0x713070
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, 0x200
or eax, reloc.PSAPI.DLL_GetMappedFileNameW
call fcn.006f6801
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x7130a8
mov byte [ebp - 0x7d], 1
jmp 0x7130b2
inc esi
cmp esi, 4
jl 0x712ff0
cmp byte [ebp - 0x7d], 0
je 0x713110
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.007131df
push 0
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
inc edx
call fcn.007131df
mov eax, dword [ebp - 8]
call fcn.006edeed
push edx
push eax
mov eax, dword [ebp - 0x78]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.006ede35
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.006edb0d
jmp 0x71311f
inc dword [ebp - 0x70]
cmp dword [ebp - 0x74], 0xffffffff
jne 0x71311f
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
inc dword [ebp - 0x6c]
inc dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0xc]
jb 0x713132
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x3c], 0
jne 0x713144
cmp dword [ebp - 0x40], 0
ja 0x712e69
jmp 0x71314a
jg 0x712e69
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.007131df
push dword [ebp - 0x44]
push dword [ebp - 0x48]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
push closesocket
push 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.006ee229
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006ede35
cmp dword [ebp - 0x70], 0
mov eax, 1
jne 0x713196
inc eax
push eax
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov edx, 2
call fcn.006eb849
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov edx, 2
call fcn.006eb7f1
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov edx, 2
call fcn.00714569
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.006ed635
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret