Function at 0x14004bd30
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Extract resource via kernel32 functions
Get file attributes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x7e0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x7e0], rbx
mov r12, r8
mov rdi, rdx
mov r13, rcx
mov byte [r9], 0
mov rax, qword [rbp + 0x800]
mov byte [rax], 0
lea rax, vtable.TextStream.0
mov qword [rbp + 0x20], rax
xor r14d, r14d
mov qword [rbp + 0x28], r14
mov dword [rbp + 0x30], r14d
mov dword [rbp + 0x34], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x50], xmm0
mov ecx, dword [0x14012be18]
cmp ecx, 0xffffffff
je 0x14004bdb9
mov dword [rbp + 0x34], ecx
lea rdx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
movzx ecx, byte [rbp + 0x3e]
test eax, eax
cmove ecx, r14d
mov byte [rbp + 0x3e], cl
lea rax, vtable.TextMem.0
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x60], r14
mov dword [rbp + 0x68], r14d
mov byte [rbp + 0x6c], r14b
mov qword [rbp + 0x70], r14
mov qword [rbp], r14
mov dword [rbp + 8], r14d
mov byte [rbp + 0xc], 0
mov rax, r14
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x80], rax
cmp qword [0x140128a20], 0
jne 0x14004be00
mov rcx, r13
call fcn.14004b810
test r12, r12
jne 0x14004be1b
mov r12, 0xffffffffffffffff
nop dword [rax]
inc r12
cmp word [rdi + r12*2], 0
jne 0x14004be10
cmp r12, 0xfd
ja 0x14004c007
mov rdx, rdi
mov qword [rbp + 0x18], rdx
mov r15, r12
mov dword [rbp + 0x7f0], r14d
nop dword [rax]
lea rsi, [0x140128a20]
nop word [rax + rax]
mov rcx, qword [rsi]
cmp word [rcx], 0
je 0x14004bf6f
mov rax, qword [rsi + 8]
lea rbx, [rcx + rax*2]
lea rdi, [r15 + r15]
mov r8, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str..ahk]
movsd qword [rbx + rdi], xmm0
movzx eax, word [0x140109290]
mov word [rbx + rdi + 8], ax
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004bf64
test al, 0x10
jne 0x14004bf64
mov rax, qword [rbp + 0x800]
mov byte [rax], 1
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
lea rbx, [rax + rcx*2]
xor edi, edi
mov word [rbx - 2], di
mov rcx, qword [rsi]
call fcn.140074a70
mov eax, 0x5c
mov word [rbx - 2], ax
mov rcx, qword [r13 + 0xbe8]
test rcx, rcx
je 0x14004bf00
cmp byte [rbp + 0x808], dil
je 0x14004bf00
mov r9, qword [rsi]
mov qword [rsp + 0x20], r9
mov r8, qword [rsi + 8]
lea rdx, str.Include___0.s_nIncludeAgain__s_n
call fcn.140035e90
mov rax, qword [0x140124200]
mov rbx, qword [rax + 0xd8]
mov qword [rax + 0xd8], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, r13
call fcn.140039ed0
test eax, eax
mov rax, qword [0x140124200]
mov qword [rax + 0xd8], rbx
je 0x14004bffa
xor r9d, r9d
mov r8, r12
mov rdi, qword [rbp + 0x7e8]
mov rdx, rdi
mov rcx, r13
call fcn.14004c9e0
mov rbx, rax
test rax, rax
je 0x14004bf6b
xor r14d, r14d
jmp 0x14004c00a
mov rdi, qword [rbp + 0x7e8]
mov rdx, qword [rbp + 0x18]
inc r14d
add rsi, 0x10
cmp r14d, 4
jl 0x14004be50
mov edx, 0x5f
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r15, rax
test rax, rax
je 0x14004c0bc
sub r15, rdi
sar r15, 1
cmp r15, 0xfe
jae 0x14004c0bc
lea rax, [rbp + 0x90]
mov qword [rbp + 0x18], rax
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memcpy
xor r14d, r14d
mov word [rbp + rbx + 0x90], r14w
mov eax, dword [rbp + 0x7f0]
inc eax
mov dword [rbp + 0x7f0], eax
cmp eax, 2
jge 0x14004c0bc
mov rdx, qword [rbp + 0x18]
jmp 0x14004be40
mov rax, qword [rbp + 0x7f8]
mov byte [rax], 1
xor r14d, r14d
mov rbx, r14
mov rdi, qword [rbp + 0x10]
test rdi, rdi
je 0x14004c03c
mov r8, qword [rbp + 0x88]
test r8, r8
je 0x14004c029
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004c03c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rax, vtable.TextMem.0
mov qword [rbp + 0x20], rax
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14004c074
cmp byte [rbp + 0x6c], 0
je 0x14004c070
mov r8d, dword [rbp + 0x68]
test r8, r8
je 0x14004c066
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp + 0x60], r14
lea rax, vtable.TextStream.0
mov qword [rbp + 0x20], rax
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14004c09f
xor edx, edx
mov r8d, 0x2000
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rbx, qword [rbp + 0x7e0]
lea rsp, [rbp + 0x7a0]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r14, [r12 + r12]
mov r8, r14
mov rdx, rdi
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str..ahk]
movsd qword [rbp + r14 + 0x90], xmm0
movzx eax, word [0x140109290]
mov word [rbp + r14 + 0x98], ax
mov r15d, 1
mov esi, r15d
lea r8, [0x14010bd78]
lea rdx, [rbp + 0x90]
mov rcx, qword [0x140127b08]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14004c1eb
xor esi, esi
lea r8, [0x14010bd78]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14004c1eb
lea edx, [rsi + 0x5f]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x14004c525
sub rax, rdi
sar rax, 1
cmp rax, 0xfe
jae 0x14004c525
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memcpy
movabs rax, 0x6b00680061002e
mov qword [rbp + rbx + 0x90], rax
xor eax, eax
mov word [rbp + rbx + 0x98], ax
lea r8, [0x14010bd78]
lea rdx, [rbp + 0x90]
mov rcx, qword [0x140127b08]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14004c1e8
lea r8, [0x14010bd78]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14004c525
jmp 0x14004c1eb
mov esi, r15d
xor r15d, r15d
mov edi, r15d
test esi, esi
cmovne rdi, qword [0x140127b08]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 8], eax
test eax, eax
je 0x14004c51e
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004c51e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp], rax
test rax, rax
je 0x14004c51e
mov esi, r15d
movabs rdi, 0xffffffffffffff0
cmp dword [rax], 0x4034b50
jne 0x14004c33f
xor r9d, r9d
mov r8d, dword [rbp + 8]
lea rdx, [rbp + 0x7f0]
mov rcx, rax
call fcn.1400d23f0
mov esi, eax
test eax, eax
je 0x14004c33f
lea r14d, [rsi + 2]
mov ebx, r14d
lea rcx, [r14 + 0x10]
mov edx, r15d
cmp rcx, rbx
cmova rdx, rcx
test rdx, rdx
je 0x14004c2e7
cmp rdx, 0x400
ja 0x14004c2c8
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14004c2a5
mov rax, rdi
and rax, 0xfffffffffffffff0
call fcn.1400ecec0
sub rsp, rax
lea r15, [rsp + 0x40]
mov qword [rbp + 0x10], r15
test r15, r15
je 0x14004c2eb
mov dword [r15], 0xcccc
jmp 0x14004c2e3
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rbp + 0x10], rax
test rax, rax
je 0x14004c2eb
mov dword [rax], 0xdddd
add r15, 0x10
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x80], r15
mov r8, rsi
mov rdi, qword [rbp + 0x7f0]
mov rdx, rdi
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov word [rsi + r15], 0
mov r8, rsi
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rbp + 8], r14d
mov qword [rbp], r15
movabs rdi, 0xffffffffffffff0
jmp 0x14004c343
mov r14d, dword [rbp + 8]
mov rax, qword [rbp + 0x800]
mov byte [rax], 1
mov ecx, r14d
add rcx, rcx
lea rax, [rcx + 0x10]
xor r14d, r14d
mov edx, r14d
cmp rax, rcx
cmova rdx, rax
test rdx, rdx
je 0x14004c3bd
cmp rdx, 0x400
ja 0x14004c3a0
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14004c37e
mov rax, rdi
and rax, 0xfffffffffffffff0
call fcn.1400ecec0
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14004c3c0
mov dword [rbx], 0xcccc
add rbx, 0x10
jmp 0x14004c3c0
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14004c3c0
mov dword [rax], 0xdddd
add rbx, 0x10
jmp 0x14004c3c0
mov rbx, r14
mov r9d, 0xfde9
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, [rbp]
lea rcx, [rbp + 0x20]
call fcn.1400cb1e0
xor r9d, r9d
mov r8d, dword [rbp + 8]
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.1400cb3e0
mov rcx, qword [r13 + 0xbe8]
test rcx, rcx
je 0x14004c42c
cmp byte [rbp + 0x808], r14b
je 0x14004c42c
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], r14w
jne 0x14004c410
mov r8, rax
mov r9, rbx
lea rdx, str._s_n
call fcn.140035e90
mov rax, qword [0x140124200]
mov rdi, qword [rax + 0xd8]
mov qword [rax + 0xd8], r14
lea r8, [rbp + 0x90]
mov rdx, rbx
mov rcx, r13
call fcn.140039d90
test eax, eax
jne 0x14004c4b7
test esi, esi
je 0x14004c469
mov r8d, esi
xor edx, edx
mov rcx, qword [rbp]
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rbp + 8]
add r8, 2
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x140124200]
mov qword [rax + 0xd8], rdi
mov rax, qword [rbp + 0x7f8]
mov byte [rax], 1
test rbx, rbx
je 0x14004c007
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004c007
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004c007
test esi, esi
je 0x14004c4c9
mov r8d, esi
xor edx, edx
mov rcx, qword [rbp]
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rbp + 8]
add r8, r8
je 0x14004c4dc
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
je 0x14004c4f3
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004c4f3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140124200]
mov qword [rax + 0xd8], rdi
xor r9d, r9d
mov r8, r12
mov rdx, qword [rbp + 0x7e8]
mov rcx, r13
call fcn.14004c9e0
mov rbx, rax
jmp 0x14004c00a
mov rdi, qword [rbp + 0x7e8]
mov dword [rbp + 0x3a0], 0x440023
mov dword [rbp + 0x3a4], 0x6c006c
mov dword [rbp + 0x3a8], 0x6d0049
mov dword [rbp + 0x3ac], 0x6f0070
mov dword [rbp + 0x3b0], 0x740072
mov esi, 0x2c
mov word [rbp + 0x3b4], si
xor edx, edx
mov r8d, 0x3ea
lea rcx, [rbp + 0x3b6]
call sub.VCRUNTIME140.dll_memset
mov r8, r14
mov rdx, rdi
lea rcx, [rbp + 0x3b6]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbp + r14 + 0x3b6], si
lea r15, [rbp + 0x3b8]
add r15, r14
xor ebx, ebx
mov word [r15], bx
mov byte [rbp + 0x290], 0x5c
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x291]
call sub.VCRUNTIME140.dll_memset
lea eax, [r12 + 1]
mov dword [rbp + 0x800], eax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x291]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov word [rbp + r12 + 0x291], si
lea rcx, [rbp + 0x290]
call qword [sym.imp.USER32.dll_CharLowerA]
lea rdx, [rbp + 0x290]
mov rcx, qword [0x140128a10]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14004bf5c
mov word [rbp + 0x3b4], si
mov rcx, qword [0x140128a18]
sub rcx, qword [0x140128a10]
add rax, rcx
mov qword [rbp + 0x7f8], rax
lea rdx, [0x1400ef864]
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rbx, [rax + 1]
lea rdx, [0x1401071cc]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rsi, rax
mov eax, 1
sub rax, rbx
add rsi, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
mov r9d, esi
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rbx, [r15 + rsi*2]
lea eax, [r12*2 + 2]
mov r8, qword [rbp + 0x7f8]
inc r8
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rbp + 0x800]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x2c
cmp word [r14 + rdi - 2], 0x5f
jne 0x14004c6e8
lea rax, [rsi + r12]
lea rbx, [r15 + rax*2]
mov word [rbx - 2], cx
xor r14d, r14d
movzx ecx, r14w
jmp 0x14004c6f2
add r14, 2
add rbx, r14
xor r14d, r14d
lea rax, [rsi + r12]
mov word [r15 + rax*2], cx
lea rdx, [0x14010bd8c]
mov rcx, qword [rbp + 0x7f8]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rdx, [rax + 1]
movzx ecx, byte [rdx]
cmp cl, 0x5c
je 0x14004c94f
mov esi, 0x55
mov r15d, 0xffdf
movabs r9, 0x54004e0049
movabs r10, 0x5200540050
movabs r11, 0x5200540053
nop dword [rax + rax]
lea eax, [rcx - 0x55]
test al, 0xdf
je 0x14004c939
lea eax, [rcx - 0x5a]
test al, 0xdf
je 0x14004c8e2
lea eax, [rcx - 0x53]
test al, 0xdf
je 0x14004c8d9
lea eax, [rcx - 0x54]
test al, 0xdf
je 0x14004c8d0
lea eax, [rcx - 0x41]
test al, 0xdf
je 0x14004c8b3
lea eax, [rcx - 0x57]
test al, 0xdf
je 0x14004c896
lea eax, [rcx - 0x58]
test al, 0xdf
je 0x14004c8e2
lea eax, [rcx - 0x49]
test al, 0xdf
jne 0x14004c7cb
cmp byte [rdx + 1], 0x36
jne 0x14004c7cb
movsd xmm0, qword [str.INT64]
movsd qword [rbx], xmm0
mov eax, dword [reloc.WSOCK32.dll_gethostbyname]
mov dword [rbx + 8], eax
add rbx, 0xa
inc rdx
jmp 0x14004c906
lea eax, [rcx - 0x49]
test al, 0xdf
je 0x14004c874
lea eax, [rcx - 0x48]
test al, 0xdf
je 0x14004c856
lea eax, [rcx - 0x43]
test al, 0xdf
je 0x14004c836
lea eax, [rcx - 0x46]
test al, 0xdf
je 0x14004c818
sub cl, 0x44
test cl, 0xdf
jne 0x14004c906
movsd xmm0, qword [str.DOUBLE]
movsd qword [rbx], xmm0
mov eax, dword [0x14010be08]
mov dword [rbx + 8], eax
movzx eax, word [0x14010be0c]
jmp 0x14004c8fe
movsd xmm0, qword [str.FLOAT]
movsd qword [rbx], xmm0
mov eax, dword [0x14010bdf8]
mov dword [rbx + 8], eax
add rbx, 0xa
jmp 0x14004c906
movsd xmm0, qword [str.CHAR]
movsd qword [rbx], xmm0
movzx eax, word [0x14010bde8]
mov word [rbx + 8], ax
add rbx, 8
jmp 0x14004c906
movsd xmm0, qword [str.SHORT]
movsd qword [rbx], xmm0
mov eax, dword [0x14010bdd8]
mov dword [rbx + 8], eax
add rbx, 0xa
jmp 0x14004c906
cmp byte [rdx + 1], 0x5c
jne 0x14004c88d
movzx eax, word [rbx - 2]
sub ax, si
test r15w, ax
je 0x14004c88d
add rbx, 0xfffffffffffffffe
jmp 0x14004c906
mov qword [rbx], r9
add rbx, 6
jmp 0x14004c906
movsd xmm0, qword [str.WSTR]
movsd qword [rbx], xmm0
movzx eax, word [0x14010bdb8]
mov word [rbx + 8], ax
add rbx, 8
jmp 0x14004c906
movsd xmm0, qword [str.ASTR]
movsd qword [rbx], xmm0
movzx eax, word [0x14010bda8]
mov word [rbx + 8], ax
add rbx, 8
jmp 0x14004c906
mov qword [rbx], r10
add rbx, 6
jmp 0x14004c906
mov qword [rbx], r11
add rbx, 6
jmp 0x14004c906
movsd xmm0, qword [0x14010bd90]
movsd qword [rbx], xmm0
mov eax, dword [0x14010bd98]
mov dword [rbx + 8], eax
movzx eax, word [0x14010bd9c]
mov word [rbx + 0xc], ax
add rbx, 0xc
movzx eax, byte [rdx + 1]
cmp al, 0x2a
je 0x14004c916
cmp al, 0x70
je 0x14004c916
cmp al, 0x50
jne 0x14004c920
mov dword [rbx], 0x2a
add rbx, 2
mov eax, dword [0x14010be10]
mov dword [rbx], eax
movzx eax, word [0x14010be14]
mov word [rbx + 4], ax
add rbx, 4
jmp 0x14004c940
mov word [rbx], si
add rbx, 2
inc rdx
movzx ecx, byte [rdx]
cmp cl, 0x5c
jne 0x14004c750
mov dword [rbx - 4], 0
mov rcx, qword [r13 + 0xbe8]
test rcx, rcx
je 0x14004c9a1
cmp byte [rbp + 0x808], 0
je 0x14004c9a1
lea r8, [rbp + 0x3a0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x14004c980
mov r8, rax
lea r9, [rbp + 0x3a0]
lea rdx, str._s_n
call fcn.140035e90
mov edx, 0x2c
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
lea rcx, [rax + 2]
lea rdx, [rbp + 0x3a0]
call fcn.1400d1140
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.14004c9e0
mov rbx, rax
jmp 0x14004c00a