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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x77c
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x7c]
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x20], ebx
mov byte [eax], 0
call fcn.00404d60
mov dword [ebp - 0x7c], vtable.TextMem.0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
cmp dword [0x4e750c], eax
jne 0x4391af
push ecx
mov ecx, ebx
call fcn.00438dc0
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test ecx, ecx
jne 0x4391d2
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4391c0
sub ecx, edx
sar ecx, 1
mov dword [ebp + 0xc], ecx
cmp ecx, 0xfd
ja 0x439363
mov edx, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], edx
mov ebx, ecx
nop dword [eax]
mov edi, 0x4e750c
nop word [eax + eax]
mov ecx, dword [edi]
cmp word [ecx], 0
je 0x4392ee
mov eax, dword [edi + 4]
lea esi, [ebx + ebx]
push esi
push edx
lea eax, [ecx + eax*2]
push eax
call sub.VCRUNTIME140.dll_memcpy
movq xmm0, qword [str..ahk]
add esp, 0xc
movq qword [esi + eax], xmm0
lea ecx, [esi + eax]
mov ax, word [0x4d3d58]
mov word [ecx + 8], ax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4392eb
test al, 0x10
jne 0x4392eb
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi + 4]
mov byte [eax], 1
mov eax, dword [edi]
lea esi, [eax + ecx*2]
xor eax, eax
mov word [esi - 2], ax
mov ecx, dword [edi]
call fcn.0045a680
mov ecx, dword [ebp - 0x20]
mov eax, 0x5c
mov word [esi - 2], ax
mov ecx, dword [ecx + 0xb00]
test ecx, ecx
je 0x43929f
cmp byte [ebp + 0x18], 0
je 0x43929f
mov eax, dword [edi]
push eax
push eax
push dword [edi + 4]
push str.Include___0.s_nIncludeAgain__s_n
push ecx
call fcn.0042b4d0
add esp, 0x14
mov eax, dword [0x4e40f4]
mov ecx, dword [ebp - 0x20]
push 0
push 0
mov esi, dword [eax + 0xb4]
mov dword [eax + 0xb4], 0
push dword [edi]
call fcn.0042dd30
test eax, eax
mov eax, dword [0x4e40f4]
mov dword [eax + 0xb4], esi
je 0x43935d
mov ecx, dword [ebp - 0x20]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00439c90
mov esi, eax
test esi, esi
jne 0x439365
mov edx, dword [ebp - 0x14]
add edi, 8
cmp edi, 0x4e752c
jl 0x439200
mov esi, dword [ebp + 8]
push 0x5f
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4393ad
sub ebx, esi
sar ebx, 1
cmp ebx, 0xfe
jae 0x4393ad
lea esi, [ebx + ebx]
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp - 0x14], eax
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
add esp, 0xc
mov word [ebp + esi - 0x27c], ax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 2
jge 0x4393aa
mov edx, dword [ebp - 0x14]
jmp 0x4391f0
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
xor esi, esi
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x439c0b
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x439389
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebx - 8], 0xdddd
lea eax, [ebx - 8]
jne 0x439c0b
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call ebx
add esp, 4
jmp 0x439c11
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x27c]
lea edi, [ebx + ebx]
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
movq xmm0, qword [str..ahk]
add esp, 0xc
mov ax, word [0x4d3d58]
movq qword [ebp + edi - 0x27c], xmm0
mov word [ebp + edi - 0x274], ax
lea eax, [ebp - 0x27c]
push 0x4d6614
push eax
push dword [0x4e6a50]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x439640
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x27c]
push 0x4d6614
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x439640
push 0x5f
push dword [ebp + 8]
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x4394ba
mov ecx, dword [ebp + 8]
sub eax, ecx
sar eax, 1
cmp eax, 0xfe
jae 0x4394ba
lea esi, [eax + eax]
push esi
push ecx
lea eax, [ebp - 0x27c]
push eax
call sub.VCRUNTIME140.dll_memcpy
movq xmm0, qword [str..ahk]
add esp, 0xc
xor eax, eax
movq qword [ebp + esi - 0x27c], xmm0
mov word [ebp + esi - 0x274], ax
lea eax, [ebp - 0x27c]
push 0x4d6614
push eax
push dword [0x4e6a50]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x439639
push 0x4d6614
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x439640
push 0x3ea
lea eax, [ebp - 0x76e]
mov dword [ebp - 0x784], 0x440023
push 0
mov esi, 0x2c
mov dword [ebp - 0x780], 0x6c006c
push eax
mov dword [ebp - 0x77c], 0x6d0049
mov dword [ebp - 0x778], 0x6f0070
mov dword [ebp - 0x774], 0x740072
mov word [ebp - 0x770], si
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x76e]
push edi
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + edi - 0x76e], si
lea eax, [ebp - 0x76c]
mov byte [ebp - 0x384], 0x5c
add eax, edi
xor ecx, ecx
mov dword [ebp + 0x14], eax
push 0x103
push ecx
mov word [eax], cx
lea eax, [ebp - 0x383]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebx + 1]
push 0
push 0
push eax
lea eax, [ebp - 0x383]
push eax
push ebx
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x384]
mov word [ebp + ebx - 0x383], si
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
lea eax, [ebp - 0x384]
push eax
push dword [0x4e7504]
call edi
add esp, 8
test eax, eax
je 0x439c09
mov ecx, dword [0x4e7508]
sub ecx, dword [0x4e7504]
add eax, ecx
mov word [ebp - 0x770], si
push 0x4baca4
push eax
mov dword [ebp + 0x10], eax
call edi
push 0x4d1fb4
lea esi, [eax + 1]
push esi
call edi
add esp, 0x10
mov edi, 1
sub edi, esi
add edi, eax
push edi
push dword [ebp + 0x14]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call esi
mov eax, dword [ebp + 0x14]
lea ecx, [eax + edi*2]
lea eax, [ebx*2 + 2]
mov dword [ebp + 0x14], ecx
push eax
push ecx
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp + 0x10]
inc eax
push eax
push 0
push 0xfde9
call esi
mov edi, dword [ebp + 8]
mov ecx, 0x2c
mov eax, dword [ebp + 0x14]
cmp word [edi + ebx*2 - 2], 0x5f
jne 0x439908
lea esi, [eax + ebx*2]
mov dword [esi - 2], ecx
jmp 0x439912
mov dword [ebp - 0x14], 1
xor eax, eax
cmp dword [ebp - 0x14], eax
push esi
cmovne eax, dword [0x4e6a50]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4394ba
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4394ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4394ba
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edi, edi
cmp dword [eax], 0x4034b50
jne 0x439756
push edi
push dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.004a0d30
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x439756
lea esi, [edi + 2]
lea ecx, [esi + 8]
cmp esi, ecx
sbb eax, eax
and eax, ecx
je 0x4396fe
cmp eax, 0x400
ja 0x4396e6
call fcn.004b8430
mov eax, esp
mov dword [ebp - 0x18], eax
test eax, eax
je 0x439703
mov dword [eax], 0xcccc
add eax, 8
jmp 0x439700
push eax
call ebx
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x439703
mov dword [eax], 0xdddd
add eax, 8
jmp 0x439700
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1c]
push edi
push ebx
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add esp, 0xc
mov word [eax + edi], cx
test edi, edi
je 0x43973b
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x14]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x18]
add esp, 4
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
jmp 0x439759
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
lea eax, [esi + esi]
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x4397a1
cmp eax, 0x400
ja 0x43978a
call fcn.004b8430
mov esi, esp
test esi, esi
je 0x4397a3
mov dword [esi], 0xcccc
add esi, 8
jmp 0x4397a3
push eax
call ebx
mov esi, eax
add esp, 4
test esi, esi
je 0x4397a3
mov dword [esi], 0xdddd
add esi, 8
jmp 0x4397a3
xor esi, esi
push 0xfde9
push 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0049b0d0
push 0
push dword [ebp - 0x28]
lea ecx, [ebp - 0x7c]
push esi
call fcn.0049b260
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebx + 0xb00]
test edx, edx
je 0x439800
cmp byte [ebp + 0x18], 0
je 0x439800
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp + 0x18], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4397e0
sub ecx, dword [ebp + 0x18]
push esi
sar ecx, 1
push ecx
push 0x4d661c
push edx
call fcn.0042b4d0
add esp, 0x10
mov eax, dword [0x4e40f4]
mov ecx, dword [eax + 0xb4]
mov dword [eax + 0xb4], 0
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp + 0x18], ecx
mov ecx, ebx
push esi
call fcn.0042dc90
test eax, eax
jne 0x439896
test edi, edi
je 0x439842
mov ecx, edi
mov edi, dword [ebp - 0x2c]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x28]
add ecx, 2
je 0x43985c
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x4e40f4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0xb4], ecx
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
test esi, esi
je 0x439363
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x439363
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x439363
test edi, edi
je 0x4398af
mov ecx, edi
xor eax, eax
mov edi, dword [ebp - 0x2c]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x28]
lea ecx, [eax + eax]
test ecx, ecx
je 0x4398cb
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test esi, esi
je 0x4398e4
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x4398e4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [0x4e40f4]
mov ecx, dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
mov dword [eax + 0xb4], ecx
mov ecx, ebx
push dword [ebp + 8]
call fcn.00439c90
mov esi, eax
jmp 0x439365
lea esi, [ebx + 1]
mov word [eax + ebx*2], cx
lea esi, [eax + esi*2]
push 0x4d6628
push dword [ebp + 0x10]
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov cl, byte [eax + 1]
add esp, 8
lea edx, [eax + 1]
cmp cl, 0x5c
je 0x439b8d
mov ebx, 0x55
cmp cl, bl
je 0x439b7a
cmp cl, 0x75
je 0x439b7a
cmp cl, 0x7a
je 0x439b2b
cmp cl, 0x5a
je 0x439b2b
cmp cl, 0x73
je 0x439b17
cmp cl, 0x53
je 0x439b17
cmp cl, 0x74
je 0x439b03
cmp cl, 0x54
je 0x439b03
cmp cl, 0x61
je 0x439ae8
cmp cl, 0x41
je 0x439ae8
cmp cl, 0x77
je 0x439acd
cmp cl, 0x57
je 0x439acd
cmp cl, 0x78
je 0x439b2b
cmp cl, 0x58
je 0x439b2b
cmp cl, 0x69
je 0x4399be
cmp cl, 0x49
jne 0x4399e1
cmp byte [edx + 1], 0x36
jne 0x4399e1
movq xmm0, qword [str.INT64]
movq qword [esi], xmm0
mov eax, dword [0x4d666c]
mov dword [esi + 8], eax
add esi, 0xa
inc edx
jmp 0x439b4c
cmp cl, 0x69
je 0x439a98
cmp cl, 0x49
je 0x439a98
cmp cl, 0x68
je 0x439a7c
cmp cl, 0x48
je 0x439a7c
cmp cl, 0x63
je 0x439a5e
cmp cl, 0x43
je 0x439a5e
cmp cl, 0x66
je 0x439a42
cmp cl, 0x46
je 0x439a42
cmp cl, 0x64
je 0x439a23
cmp cl, 0x44
jne 0x439b4c
movq xmm0, qword [str.DOUBLE]
movq qword [esi], xmm0
mov eax, dword [0x4d66a4]
mov dword [esi + 8], eax
mov ax, word [0x4d66a8]
jmp 0x439b45
movq xmm0, qword [str.FLOAT]
movq qword [esi], xmm0
mov eax, dword [0x4d6698]
mov dword [esi + 8], eax
add esi, 0xa
jmp 0x439b4c
movq xmm0, qword [str.CHAR]
movq qword [esi], xmm0
mov ax, word [0x4d668c]
mov word [esi + 8], ax
add esi, 8
jmp 0x439b4c
movq xmm0, qword [str.SHORT]
movq qword [esi], xmm0
mov eax, dword [0x4d6680]
mov dword [esi + 8], eax
add esi, 0xa
jmp 0x439b4c
cmp byte [edx + 1], 0x5c
jne 0x439ab6
movzx eax, word [esi - 2]
lea ecx, [esi - 2]
cmp eax, 0x75
je 0x439ab6
cmp eax, 0x55
je 0x439ab6
mov esi, ecx
jmp 0x439b4c
mov eax, dword [0x4d6670]
mov dword [esi], eax
mov eax, dword [0x4d6674]
mov dword [esi + 4], eax
add esi, 6
jmp 0x439b4c
movq xmm0, qword [str.WSTR]
movq qword [esi], xmm0
mov ax, word [0x4d6660]
mov word [esi + 8], ax
add esi, 8
jmp 0x439b4c
movq xmm0, qword [str.ASTR]
movq qword [esi], xmm0
mov ax, word [0x4d6654]
mov word [esi + 8], ax
add esi, 8
jmp 0x439b4c
mov eax, dword [0x4d6644]
mov dword [esi], eax
mov eax, dword [0x4d6648]
mov dword [esi + 4], eax
add esi, 6
jmp 0x439b4c
mov eax, dword [0x4d663c]
mov dword [esi], eax
mov eax, dword [0x4d6640]
mov dword [esi + 4], eax
add esi, 6
jmp 0x439b4c
movq xmm0, qword [0x4d662c]
movq qword [esi], xmm0
mov eax, dword [0x4d6634]
mov dword [esi + 8], eax
mov ax, word [0x4d6638]
mov word [esi + 0xc], ax
add esi, 0xc
mov al, byte [edx + 1]
cmp al, 0x2a
je 0x439b5b
cmp al, 0x70
je 0x439b5b
cmp al, 0x50
jne 0x439b64
mov dword [esi], 0x2a
add esi, 2
mov eax, dword [0x4d66ac]
mov dword [esi], eax
mov ax, word [0x4d66b0]
mov word [esi + 4], ax
add esi, 4
jmp 0x439b80
mov word [esi], bx
add esi, 2
mov cl, byte [edx + 1]
inc edx
cmp cl, 0x5c
jne 0x439937
mov ebx, dword [ebp - 0x20]
mov dword [esi - 4], 0
mov edx, dword [ebx + 0xb00]
test edx, edx
je 0x439bd5
cmp byte [ebp + 0x18], 0
je 0x439bd5
lea ecx, [ebp - 0x784]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439bb0
sub ecx, esi
lea eax, [ebp - 0x784]
push eax
sar ecx, 1
push ecx
push 0x4d661c
push edx
call fcn.0042b4d0
add esp, 0x10
lea eax, [ebp - 0x784]
push 0x2c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
lea edx, [ebp - 0x784]
lea ecx, [eax + 2]
call fcn.0049fed0
push 0
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.00439c90
mov esi, eax
jmp 0x439365
xor esi, esi
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x7c], vtable.TextMem.0
test edi, edi
je 0x439c4b
cmp byte [ebp - 0x40], 0
je 0x439c44
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x439c3c
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0x48]
call ebx
add esp, 4
mov dword [ebp - 0x48], 0
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x7c], vtable.TextStream.0
test edi, edi
je 0x439c6a
xor eax, eax
mov ecx, 0x800
rep stosd dword es:[edi], eax
push dword [ebp - 0x4c]
call ebx
add esp, 4
mov eax, esi
lea esp, [ebp - 0x794]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14