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

Disassembly:
mov qword [rsp + 0x20], r9
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 r13, r8
mov r12, rdx
mov r15, 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 edi, edi
mov qword [rbp + 0x28], rdi
mov dword [rbp + 0x30], edi
mov dword [rbp + 0x34], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x50], xmm0
mov ecx, dword [0x140136ec8]
cmp ecx, 0xffffffff
je 0x14004f00d
mov dword [rbp + 0x34], ecx
lea rdx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x14004f00d
mov byte [rbp + 0x3e], dil
lea rax, vtable.TextMem.0
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x60], rdi
mov dword [rbp + 0x68], edi
mov byte [rbp + 0x6c], dil
mov qword [rbp + 0x70], rdi
mov qword [rbp + 8], rdi
mov dword [rbp + 0x10], edi
mov byte [rbp + 0x14], 0
mov rax, rdi
mov qword [rbp], rax
mov qword [rbp + 0x80], rax
cmp qword [0x140133aa0], 0
jne 0x14004f052
mov rcx, r15
call fcn.14004ea60
test r13, r13
jne 0x14004f06b
mov r13, 0xffffffffffffffff
nop
inc r13
cmp word [r12 + r13*2], 0
jne 0x14004f060
cmp r13, 0xfd
ja 0x14004f23e
mov rdx, r12
mov qword [rbp + 0x18], rdx
mov r14, r13
mov dword [rbp + 0x7f0], edi
nop dword [rax + rax]
mov esi, edi
lea rdi, [0x140133aa0]
nop dword [rax]
mov rcx, qword [rdi]
cmp word [rcx], 0
je 0x14004f1ab
mov rax, qword [rdi + 8]
lea rcx, [rcx + rax*2]
lea rbx, [r14 + r14]
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rax]
movsd xmm0, qword [str..ahk]
movsd qword [rcx], xmm0
movzx eax, word [0x1401132e0]
mov word [rcx + 8], ax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004f1a7
test al, 0x10
jne 0x14004f1a7
mov rax, qword [rbp + 0x800]
mov byte [rax], 1
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
lea rbx, [rax + rcx*2]
xor eax, eax
mov word [rbx - 2], ax
mov rcx, qword [rdi]
call fcn.14007a550
mov word [rbx - 2], 0x5c
mov rcx, qword [r15 + 0xbe8]
test rcx, rcx
je 0x14004f14c
cmp byte [rbp + 0x808], 0
je 0x14004f14c
mov r9, qword [rdi]
mov qword [rsp + 0x20], r9
mov r8, qword [rdi + 8]
lea rdx, str.Include___0.s_nIncludeAgain__s_n
call fcn.140037de0
mov rax, qword [0x14012f240]
mov rbx, qword [rax + 0xd8]
xor ecx, ecx
mov qword [rax + 0xd8], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, r15
call fcn.14003bea0
test eax, eax
mov rax, qword [0x14012f240]
mov qword [rax + 0xd8], rbx
je 0x14004f232
xor r9d, r9d
mov r8, r13
mov rdx, r12
mov rcx, r15
call fcn.14004fc10
mov rbx, rax
test rax, rax
jne 0x14004f241
mov rdx, qword [rbp + 0x18]
inc esi
add rdi, 0x10
cmp esi, 4
jl 0x14004f0a0
mov edx, 0x5f
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r14, rax
test rax, rax
je 0x14004f2fa
sub r14, r12
sar r14, 1
cmp r14, 0xfe
jae 0x14004f2fa
lea rax, [rbp + 0x90]
mov qword [rbp + 0x18], rax
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov word [rbp + rbx + 0x90], di
mov eax, dword [rbp + 0x7f0]
inc eax
mov dword [rbp + 0x7f0], eax
cmp eax, 2
jge 0x14004f2fc
mov rdx, qword [rbp + 0x18]
jmp 0x14004f090
mov rax, qword [rbp + 0x7f8]
mov byte [rax], 1
xor edi, edi
mov rbx, rdi
mov rdi, qword [rbp]
test rdi, rdi
je 0x14004f278
mov r8, qword [rbp + 0x88]
test r8, r8
je 0x14004f260
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x14004f278
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004f278
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 0x14004f2b2
cmp byte [rbp + 0x6c], 0
je 0x14004f2ac
mov r8d, dword [rbp + 0x68]
test r8, r8
je 0x14004f2a2
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]
xor eax, eax
mov qword [rbp + 0x60], rax
lea rax, vtable.TextStream.0
mov qword [rbp + 0x20], rax
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14004f2dd
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
xor edi, edi
lea rbx, [r13*2]
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str..ahk]
movsd qword [rbp + rbx + 0x90], xmm0
movzx eax, word [0x1401132e0]
mov word [rbp + rbx + 0x98], ax
mov r14d, 1
mov esi, r14d
lea r8, [0x140115dc8]
lea rdx, [rbp + 0x90]
mov rcx, qword [0x140132b60]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14004f42d
mov esi, edi
lea r8, [0x140115dc8]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14004f42d
mov edx, 0x5f
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x14004f760
sub rax, r12
sar rax, 1
cmp rax, 0xfe
jae 0x14004f760
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memcpy
movabs rax, 0x6b00680061002e
mov qword [rbp + rbx + 0x90], rax
mov word [rbp + rbx + 0x98], di
lea r8, [0x140115dc8]
lea rdx, [rbp + 0x90]
mov rcx, qword [0x140132b60]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14004f42a
lea r8, [0x140115dc8]
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14004f760
jmp 0x14004f42d
mov esi, r14d
test esi, esi
cmovne rdi, qword [0x140132b60]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x14004f75e
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004f75e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 8], rax
xor edi, edi
test rax, rax
je 0x14004f760
mov esi, edi
movabs rbx, 0xffffffffffffff0
cmp dword [rax], 0x4034b50
jne 0x14004f590
xor r9d, r9d
mov r8d, dword [rbp + 0x10]
lea rdx, [rbp + 0x7f0]
mov rcx, rax
call fcn.1400db840
mov esi, eax
test eax, eax
je 0x14004f590
lea r14d, [rsi + 2]
mov ebx, r14d
lea rcx, [r14 + 0x10]
mov edx, edi
cmp rcx, rbx
cmova rdx, rcx
test rdx, rdx
je 0x14004f52c
cmp rdx, 0x400
ja 0x14004f50e
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14004f4e8
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400f7000
sub rsp, rax
lea rax, [rsp + 0x40]
mov qword [rbp], rax
test rax, rax
je 0x14004f533
mov dword [rax], 0xcccc
add rax, 0x10
jmp 0x14004f52f
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp], rax
test rax, rax
je 0x14004f533
mov dword [rax], 0xdddd
add rax, 0x10
jmp 0x14004f52f
mov rax, rdi
mov qword [rbp], rax
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x80], rax
mov r8, rsi
mov rdi, qword [rbp + 0x7f0]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp]
mov word [rax + rsi], 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 + 0x10], r14d
mov rax, qword [rbp]
mov qword [rbp + 8], rax
xor edi, edi
movabs rbx, 0xffffffffffffff0
jmp 0x14004f594
mov r14d, dword [rbp + 0x10]
mov rax, qword [rbp + 0x800]
mov byte [rax], 1
mov ecx, r14d
add rcx, rcx
lea rax, [rcx + 0x10]
mov rdx, rdi
cmp rax, rcx
cmova rdx, rax
test rdx, rdx
je 0x14004f60b
cmp rdx, 0x400
ja 0x14004f5ee
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14004f5cc
mov rax, rbx
and rax, 0xfffffffffffffff0
call fcn.1400f7000
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14004f60e
mov dword [rbx], 0xcccc
add rbx, 0x10
jmp 0x14004f60e
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14004f60e
mov dword [rax], 0xdddd
add rbx, 0x10
jmp 0x14004f60e
mov rbx, rdi
mov r9d, 0xfde9
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x20]
call fcn.1400d3360
xor r9d, r9d
mov r8d, dword [rbp + 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.1400d3550
mov rcx, qword [r15 + 0xbe8]
test rcx, rcx
je 0x14004f672
cmp byte [rbp + 0x808], 0
je 0x14004f672
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x14004f656
mov r8, rax
mov r9, rbx
lea rdx, str._s_n
call fcn.140037de0
mov rax, qword [0x14012f240]
mov rdi, qword [rax + 0xd8]
xor r14d, r14d
mov qword [rax + 0xd8], r14
lea r8, [rbp + 0x90]
mov rdx, rbx
mov rcx, r15
call fcn.14003bd60
test eax, eax
jne 0x14004f6fb
test esi, esi
je 0x14004f6b2
mov r8d, esi
xor edx, edx
mov rcx, qword [rbp + 8]
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rbp + 0x10]
add r8, 2
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x14012f240]
mov qword [rax + 0xd8], rdi
mov rax, qword [rbp + 0x7f8]
mov byte [rax], 1
test rbx, rbx
je 0x14004f6f3
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004f6f3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, r14
jmp 0x14004f241
test esi, esi
je 0x14004f70d
mov r8d, esi
xor edx, edx
mov rcx, qword [rbp + 8]
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rbp + 0x10]
add r8, r8
je 0x14004f720
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
je 0x14004f737
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14004f737
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x14012f240]
mov qword [rax + 0xd8], rdi
xor r9d, r9d
mov r8, r13
mov rdx, r12
mov rcx, r15
call fcn.14004fc10
mov rbx, rax
jmp 0x14004f241
xor edi, edi
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
lea rbx, [r13*2]
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0x3b6]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbp + rbx + 0x3b6], si
lea rax, [rbp + 0x3b8]
add rax, rbx
mov qword [rbp + 0x7f8], rax
mov word [rax], di
mov byte [rbp + 0x290], 0x5c
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x291]
call sub.VCRUNTIME140.dll_memset
lea eax, [r13 + 1]
mov dword [rbp + 0x800], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x291]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov word [rbp + r13 + 0x291], si
lea rcx, [rbp + 0x290]
call qword [sym.imp.USER32.dll_CharLowerA]
lea rdx, [rbp + 0x290]
mov rcx, qword [0x140133a88]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rsi, rax
test rax, rax
je 0x14004f23e
mov eax, 0x2c
mov word [rbp + 0x3b4], ax
mov rcx, qword [0x140133a90]
sub rcx, qword [0x140133a88]
add rsi, rcx
lea rdx, [0x1400f9864]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rdi, [rax + 1]
lea rdx, [0x14011121c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
sub r14, rdi
lea rbx, [r14 + rax]
mov dword [rsp + 0x28], ebx
mov r14, qword [rbp + 0x7f8]
mov qword [rsp + 0x20], r14
mov r9d, ebx
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rbx, [r14 + rbx*2]
lea eax, [r13*2 + 2]
lea r8, [rsi + 1]
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]
lea rax, [rbx + r13*2]
mov r14d, 0x2c
cmp word [r12 + r13*2 - 2], 0x5f
jne 0x14004f924
mov word [rax - 2], r14w
mov rbx, rax
xor ecx, ecx
jmp 0x14004f92b
lea rbx, [rax + 2]
mov ecx, r14d
mov word [rax], cx
lea rdx, [0x140115ddc]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rdx, [rax + 1]
movzx eax, byte [rdx]
cmp al, 0x5c
je 0x14004fb87
mov esi, 0xffdf
movabs r9, 0x54004e0049
movabs r10, 0x5200540050
movabs r11, 0x5200540053
cmp al, 0x55
je 0x14004fb70
movzx ecx, byte [rdx]
cmp cl, 0x75
je 0x14004fb70
lea eax, [rcx - 0x5a]
test al, 0xdf
je 0x14004fb19
lea eax, [rcx - 0x53]
test al, 0xdf
je 0x14004fb10
lea eax, [rcx - 0x54]
test al, 0xdf
je 0x14004fb07
lea eax, [rcx - 0x41]
test al, 0xdf
je 0x14004faea
cmp cl, 0x77
je 0x14004facd
cmp cl, 0x57
je 0x14004facd
lea eax, [rcx - 0x58]
test al, 0xdf
je 0x14004fb19
lea eax, [rcx - 0x49]
test al, 0xdf
jne 0x14004f9fb
cmp byte [rdx + 1], 0x36
jne 0x14004f9fb
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 0x14004fb3d
lea eax, [rcx - 0x49]
test al, 0xdf
je 0x14004faa8
sub cl, 0x48
test cl, 0xdf
je 0x14004fa8a
movzx ecx, byte [rdx]
lea eax, [rcx - 0x43]
test al, 0xdf
je 0x14004fa6a
lea eax, [rcx - 0x46]
test al, 0xdf
je 0x14004fa4c
sub cl, 0x44
test cl, 0xdf
jne 0x14004fb3d
movsd xmm0, qword [str.DOUBLE]
movsd qword [rbx], xmm0
mov eax, dword [0x140115e58]
mov dword [rbx + 8], eax
movzx eax, word [0x140115e5c]
jmp 0x14004fb35
movsd xmm0, qword [str.FLOAT]
movsd qword [rbx], xmm0
mov eax, dword [0x140115e48]
mov dword [rbx + 8], eax
add rbx, 0xa
jmp 0x14004fb3d
movsd xmm0, qword [str.CHAR]
movsd qword [rbx], xmm0
movzx eax, word [0x140115e38]
mov word [rbx + 8], ax
add rbx, 8
jmp 0x14004fb3d
movsd xmm0, qword [str.SHORT]
movsd qword [rbx], xmm0
mov eax, dword [0x140115e28]
mov dword [rbx + 8], eax
add rbx, 0xa
jmp 0x14004fb3d
cmp byte [rdx + 1], 0x5c
jne 0x14004fac4
movzx eax, word [rbx - 2]
sub ax, 0x55
test si, ax
je 0x14004fac4
add rbx, 0xfffffffffffffffe
jmp 0x14004fb3d
mov qword [rbx], r9
add rbx, 6
jmp 0x14004fb3d
movsd xmm0, qword [str.WSTR]
movsd qword [rbx], xmm0
movzx eax, word [0x140115e08]
mov word [rbx + 8], ax
add rbx, 8
jmp 0x14004fb3d
movsd xmm0, qword [str.ASTR]
movsd qword [rbx], xmm0
movzx eax, word [0x140115df8]
mov word [rbx + 8], ax
add rbx, 8
jmp 0x14004fb3d
mov qword [rbx], r10
add rbx, 6
jmp 0x14004fb3d
mov qword [rbx], r11
add rbx, 6
jmp 0x14004fb3d
movsd xmm0, qword [0x140115de0]
movsd qword [rbx], xmm0
mov eax, dword [0x140115de8]
mov dword [rbx + 8], eax
movzx eax, word [0x140115dec]
mov word [rbx + 0xc], ax
add rbx, 0xc
movzx eax, byte [rdx + 1]
cmp al, 0x2a
je 0x14004fb4d
cmp al, 0x70
je 0x14004fb4d
cmp al, 0x50
jne 0x14004fb57
mov dword [rbx], 0x2a
add rbx, 2
mov eax, dword [0x140115e60]
mov dword [rbx], eax
movzx eax, word [0x140115e64]
mov word [rbx + 4], ax
add rbx, 4
jmp 0x14004fb79
mov word [rbx], 0x55
add rbx, 2
inc rdx
movzx eax, byte [rdx]
cmp al, 0x5c
jne 0x14004f970
mov dword [rbx - 4], 0
mov rcx, qword [r15 + 0xbe8]
test rcx, rcx
je 0x14004fbd2
cmp byte [rbp + 0x808], 0
je 0x14004fbd2
lea r8, [rbp + 0x3a0]
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x14004fbb1
mov r8, rax
lea r9, [rbp + 0x3a0]
lea rdx, str._s_n
call fcn.140037de0
mov edx, r14d
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
lea rcx, [rax + 2]
lea rdx, [rbp + 0x3a0]
call fcn.1400d9320
xor r9d, r9d
mov r8, r13
mov rdx, r12
mov rcx, r15
call fcn.14004fc10
mov rbx, rax
jmp 0x14004f241