Function at 0x438220
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 0x4d3983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x784
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x84]
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x20], ebx
mov byte [eax], 0
call fcn.00404dd0
mov dword [ebp - 0x84], vtable.TextMem.0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x44], 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 - 0x38], eax
mov byte [ebp - 4], 1
cmp dword [0x5085bc], eax
jne 0x4382b5
push ecx
mov ecx, ebx
call fcn.00437ed0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test ecx, ecx
jne 0x4382d6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4382c4
sub ecx, esi
sar ecx, 1
mov dword [ebp + 0xc], ecx
cmp ecx, 0xfd
ja 0x438464
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov dword [ebp - 0x1c], 0
nop
mov edi, 0x5085bc
nop word [eax + eax]
mov ecx, dword [edi]
cmp word [ecx], 0
je 0x4383ee
mov eax, dword [edi + 4]
lea esi, [ebx + ebx]
push esi
push edx
lea eax, [ecx + eax*2]
push eax
call fcn.004b9800
movq xmm0, qword [str..ahk]
add esp, 0xc
movq qword [esi + eax], xmm0
lea ecx, [esi + eax]
mov ax, word [0x4f3400]
mov word [ecx + 8], ax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4383eb
test al, 0x10
jne 0x4383eb
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.00459460
mov ecx, dword [ebp - 0x20]
mov eax, 0x5c
mov word [esi - 2], ax
mov ecx, dword [ecx + 0xafc]
test ecx, ecx
je 0x43839f
cmp byte [ebp + 0x18], 0
je 0x43839f
mov eax, dword [edi]
push eax
push eax
push dword [edi + 4]
push str.Include___0.s_nIncludeAgain__s_n
push ecx
call fcn.0042a7d0
add esp, 0x14
mov eax, dword [0x50499c]
mov ecx, dword [ebp - 0x20]
push 0
push 0
mov esi, dword [eax + 0xb4]
mov dword [eax + 0xb4], 0
push dword [edi]
call fcn.0042cff0
test eax, eax
mov eax, dword [0x50499c]
mov dword [eax + 0xb4], esi
je 0x43845e
mov ecx, dword [ebp - 0x20]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00438d90
mov esi, eax
test esi, esi
jne 0x438466
mov edx, dword [ebp - 0x14]
add edi, 8
cmp edi, 0x5085dc
jl 0x438300
mov edi, dword [ebp + 8]
push 0x5f
push edi
call fcn.004b7267
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43851b
sub ebx, edi
sar ebx, 1
cmp ebx, 0xfe
jae 0x43851b
lea esi, [ebx + ebx]
push esi
lea eax, [ebp - 0x284]
push edi
push eax
mov dword [ebp - 0x14], eax
call fcn.004b9800
xor eax, eax
add esp, 0xc
mov word [ebp + esi - 0x284], ax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 2
jge 0x43851b
mov edx, dword [ebp - 0x14]
jmp 0x4382f0
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
xor esi, esi
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x43849b
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x438486
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 0x43849b
push eax
call fcn.004bb7ab
add esp, 4
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x84], vtable.TextMem.0
test edi, edi
je 0x4384db
cmp byte [ebp - 0x48], 0
je 0x4384d4
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4384c9
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 - 0x50]
call fcn.004bb7ab
add esp, 4
mov dword [ebp - 0x50], 0
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x84], vtable.TextStream.0
test edi, edi
je 0x438500
xor eax, eax
mov ecx, 0x800
rep stosd dword es:[edi], eax
push dword [ebp - 0x54]
call fcn.004bb7ab
add esp, 4
mov eax, esi
lea esp, [ebp - 0x79c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x284]
lea esi, [ebx + ebx]
push esi
push edi
push eax
mov dword [ebp - 0x30], esi
call fcn.004b9800
movq xmm0, qword [str..ahk]
add esp, 0xc
mov ax, word [0x4f3400]
movq qword [ebp + esi - 0x284], xmm0
mov word [ebp + esi - 0x27c], ax
lea eax, [ebp - 0x284]
push 0x4f5c14
push eax
push dword [0x507b10]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4387b6
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x284]
push 0x4f5c14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4387b6
push 0x5f
push edi
call fcn.004b7267
add esp, 8
test eax, eax
je 0x438625
sub eax, edi
sar eax, 1
cmp eax, 0xfe
jae 0x438625
lea esi, [eax + eax]
push esi
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.004b9800
movq xmm0, qword [str..ahk]
add esp, 0xc
xor eax, eax
movq qword [ebp + esi - 0x284], xmm0
mov word [ebp + esi - 0x27c], ax
lea eax, [ebp - 0x284]
push 0x4f5c14
push eax
push dword [0x507b10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4387af
push 0x4f5c14
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4387b6
mov eax, 0x2c
mov dword [ebp - 0x78c], 0x440023
push 0x3ea
mov word [ebp - 0x778], ax
lea eax, [ebp - 0x776]
push 0
push eax
mov dword [ebp - 0x788], 0x6c006c
mov dword [ebp - 0x784], 0x6d0049
mov dword [ebp - 0x780], 0x6f0070
mov dword [ebp - 0x77c], 0x740072
call fcn.004b7c10
add esp, 0xc
lea esi, [ebx + ebx]
lea eax, [ebp - 0x776]
push esi
push edi
push eax
call fcn.004b9800
mov eax, 0x2c
mov byte [ebp - 0x38c], 0x5c
mov word [ebp + esi - 0x776], ax
add esp, 0xc
lea eax, [ebp - 0x774]
xor ecx, ecx
add eax, esi
mov dword [ebp + 0x14], eax
push 0x103
push ecx
mov word [eax], cx
lea eax, [ebp - 0x38b]
push eax
call fcn.004b7c10
add esp, 0xc
lea eax, [ebx + 1]
mov dword [ebp - 0x1c], eax
push 0
push 0
push eax
lea eax, [ebp - 0x38b]
push eax
push ebx
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x38c]
mov word [ebp + ebx - 0x38b], 0x2c
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [ebp - 0x38c]
push eax
push dword [0x5085b4]
call fcn.004b7460
add esp, 8
test eax, eax
je 0x438d88
mov ecx, 0x2c
mov word [ebp - 0x778], cx
mov ecx, dword [0x5085b8]
sub ecx, dword [0x5085b4]
add eax, ecx
push 0x4da440
push eax
mov dword [ebp + 0x10], eax
call fcn.004b7460
push 0x4f165c
lea esi, [eax + 1]
push esi
call fcn.004b7460
mov ebx, dword [ebp + 0x14]
add esp, 0x10
mov edi, 1
sub edi, esi
add edi, eax
push edi
push ebx
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call esi
lea ecx, [ebx + edi*2]
mov ebx, dword [ebp - 0x30]
mov dword [ebp + 0x14], ecx
lea eax, [ebx + 2]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push dword [ebp - 0x1c]
inc eax
push eax
push 0
push 0xfde9
call esi
mov edi, dword [ebp + 8]
cmp word [ebx + edi - 2], 0x5f
jne 0x438a7a
mov esi, dword [ebp + 0x14]
add esi, ebx
mov dword [esi - 2], 0x2c
jmp 0x438a8b
mov dword [ebp - 0x14], 1
xor eax, eax
cmp dword [ebp - 0x14], eax
push esi
cmovne eax, dword [0x507b10]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x438625
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x438625
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x438625
xor edi, edi
cmp dword [eax], 0x4034b50
jne 0x4388c2
push edi
push dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.0049f130
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4388c2
lea esi, [edi + 2]
lea ecx, [esi + 8]
cmp esi, ecx
sbb eax, eax
and eax, ecx
je 0x438871
cmp eax, 0x400
ja 0x438856
call fcn.004d2260
mov eax, esp
mov dword [ebp - 0x18], eax
test eax, eax
je 0x438876
mov dword [eax], 0xcccc
add eax, 8
jmp 0x438873
push eax
call fcn.004bb7a0
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x438876
mov dword [eax], 0xdddd
add eax, 8
jmp 0x438873
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1c]
push edi
push ebx
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
call fcn.004b9800
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add esp, 0xc
mov word [eax + edi], cx
test edi, edi
je 0x4388ae
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 fcn.004bb7ab
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
jmp 0x4388c5
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 0x438910
cmp eax, 0x400
ja 0x4388f6
call fcn.004d2260
mov esi, esp
test esi, esi
je 0x438912
mov dword [esi], 0xcccc
add esi, 8
jmp 0x438912
push eax
call fcn.004bb7a0
mov esi, eax
add esp, 4
test esi, esi
je 0x438912
mov dword [esi], 0xdddd
add esi, 8
jmp 0x438912
xor esi, esi
push 0xfde9
push 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x84]
call fcn.004996f0
push 0
push dword [ebp - 0x28]
lea ecx, [ebp - 0x84]
push esi
call fcn.00499880
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebx + 0xafc]
test edx, edx
je 0x438974
cmp byte [ebp + 0x18], 0
je 0x438974
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp + 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438954
sub ecx, dword [ebp + 0x18]
push esi
sar ecx, 1
push ecx
push str._s_n
push edx
call fcn.0042a7d0
add esp, 0x10
mov eax, dword [0x50499c]
mov ecx, dword [eax + 0xb4]
mov dword [eax + 0xb4], 0
lea eax, [ebp - 0x284]
push eax
mov dword [ebp + 0x18], ecx
mov ecx, ebx
push esi
call fcn.0042cf50
test eax, eax
jne 0x438a09
test edi, edi
je 0x4389b6
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 0x4389d0
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 [0x50499c]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0xb4], ecx
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
test esi, esi
je 0x438464
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x438464
push esi
call fcn.004bb7ab
add esp, 4
jmp 0x438464
test edi, edi
je 0x438a22
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 0x438a3e
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 0x438a56
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x438a56
push esi
call fcn.004bb7ab
add esp, 4
mov eax, dword [0x50499c]
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.00438d90
mov esi, eax
jmp 0x438466
mov eax, dword [ebp + 0x14]
lea esi, [ebx + 2]
mov ecx, 0x2c
add esi, eax
mov word [eax + ebx], cx
push 0x4f5c28
push dword [ebp + 0x10]
call fcn.004b7460
mov cl, byte [eax + 1]
add esp, 8
lea edx, [eax + 1]
cmp cl, 0x5c
je 0x438d06
mov ebx, 0x55
nop
cmp cl, bl
je 0x438cf3
cmp cl, 0x75
je 0x438cf3
cmp cl, 0x7a
je 0x438ca4
cmp cl, 0x5a
je 0x438ca4
cmp cl, 0x73
je 0x438c90
cmp cl, 0x53
je 0x438c90
cmp cl, 0x74
je 0x438c7c
cmp cl, 0x54
je 0x438c7c
cmp cl, 0x61
je 0x438c61
cmp cl, 0x41
je 0x438c61
cmp cl, 0x77
je 0x438c46
cmp cl, 0x57
je 0x438c46
cmp cl, 0x78
je 0x438ca4
cmp cl, 0x58
je 0x438ca4
cmp cl, 0x69
je 0x438b37
cmp cl, 0x49
jne 0x438b5a
cmp byte [edx + 1], 0x36
jne 0x438b5a
movq xmm0, qword [str.INT64]
movq qword [esi], xmm0
mov eax, dword [0x4f5c6c]
mov dword [esi + 8], eax
add esi, 0xa
inc edx
jmp 0x438cc5
cmp cl, 0x69
je 0x438c11
cmp cl, 0x49
je 0x438c11
cmp cl, 0x68
je 0x438bf5
cmp cl, 0x48
je 0x438bf5
cmp cl, 0x63
je 0x438bd7
cmp cl, 0x43
je 0x438bd7
cmp cl, 0x66
je 0x438bbb
cmp cl, 0x46
je 0x438bbb
cmp cl, 0x64
je 0x438b9c
cmp cl, 0x44
jne 0x438cc5
movq xmm0, qword [str.DOUBLE]
movq qword [esi], xmm0
mov eax, dword [0x4f5ca4]
mov dword [esi + 8], eax
mov ax, word [0x4f5ca8]
jmp 0x438cbe
movq xmm0, qword [str.FLOAT]
movq qword [esi], xmm0
mov eax, dword [0x4f5c98]
mov dword [esi + 8], eax
add esi, 0xa
jmp 0x438cc5
movq xmm0, qword [str.CHAR]
movq qword [esi], xmm0
mov ax, word [0x4f5c8c]
mov word [esi + 8], ax
add esi, 8
jmp 0x438cc5
movq xmm0, qword [str.SHORT]
movq qword [esi], xmm0
mov eax, dword [0x4f5c80]
mov dword [esi + 8], eax
add esi, 0xa
jmp 0x438cc5
cmp byte [edx + 1], 0x5c
jne 0x438c2f
movzx eax, word [esi - 2]
lea ecx, [esi - 2]
cmp eax, 0x75
je 0x438c2f
cmp eax, 0x55
je 0x438c2f
mov esi, ecx
jmp 0x438cc5
mov eax, dword [0x4f5c70]
mov dword [esi], eax
mov eax, dword [0x4f5c74]
mov dword [esi + 4], eax
add esi, 6
jmp 0x438cc5
movq xmm0, qword [str.WSTR]
movq qword [esi], xmm0
mov ax, word [0x4f5c60]
mov word [esi + 8], ax
add esi, 8
jmp 0x438cc5
movq xmm0, qword [str.ASTR]
movq qword [esi], xmm0
mov ax, word [0x4f5c54]
mov word [esi + 8], ax
add esi, 8
jmp 0x438cc5
mov eax, dword [0x4f5c44]
mov dword [esi], eax
mov eax, dword [0x4f5c48]
mov dword [esi + 4], eax
add esi, 6
jmp 0x438cc5
mov eax, dword [0x4f5c3c]
mov dword [esi], eax
mov eax, dword [0x4f5c40]
mov dword [esi + 4], eax
add esi, 6
jmp 0x438cc5
movq xmm0, qword [0x4f5c2c]
movq qword [esi], xmm0
mov eax, dword [0x4f5c34]
mov dword [esi + 8], eax
mov ax, word [0x4f5c38]
mov word [esi + 0xc], ax
add esi, 0xc
mov al, byte [edx + 1]
cmp al, 0x2a
je 0x438cd4
cmp al, 0x70
je 0x438cd4
cmp al, 0x50
jne 0x438cdd
mov dword [esi], 0x2a
add esi, 2
mov eax, dword [0x4f5cac]
mov dword [esi], eax
mov ax, word [0x4f5cb0]
mov word [esi + 4], ax
add esi, 4
jmp 0x438cf9
mov word [esi], bx
add esi, 2
mov cl, byte [edx + 1]
inc edx
cmp cl, 0x5c
jne 0x438ab0
mov ebx, dword [ebp - 0x20]
mov dword [esi - 4], 0
mov edx, dword [ebx + 0xafc]
test edx, edx
je 0x438d55
cmp byte [ebp + 0x18], 0
je 0x438d55
lea ecx, [ebp - 0x78c]
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438d30
sub ecx, esi
lea eax, [ebp - 0x78c]
push eax
sar ecx, 1
push ecx
push str._s_n
push edx
call fcn.0042a7d0
add esp, 0x10
lea eax, [ebp - 0x78c]
push 0x2c
push eax
call fcn.004b7267
add esp, 8
lea edx, [ebp - 0x78c]
lea ecx, [eax + 2]
call fcn.0049e370
push 0
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.00438d90
mov esi, eax
jmp 0x438466
xor esi, esi
jmp 0x43849b