joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a108b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4ef0ca
call fcn.004ebd20
sub esp, 0x424
mov eax, dword [0x517ad4]
push ebx
xor eax, ebp
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x41c], eax
call dword [0x51b490]
xor edi, edi
mov dword [ebp - 0x428], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, edi
mov dword [ebp - 0x420], eax
jne 0x4a1102
call fcn.0042140f
mov edi, eax
jmp 0x4a11d3
push dword [ebp - 0x41c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4a11a0
push esi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x4a11a0
push esi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + ebx + 2]
push eax
lea esi, [ebp - 0x418]
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 4], 2
call fcn.004ae6a4
jmp 0x4a116a
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], edi
jne 0x4a1180
mov edi, 0x8007000e
jmp 0x4a11c7
call dword [0x51b490]
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4a11a7
call fcn.0042140f
jmp 0x4a11c5
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x10]
mov word [eax + ebx*2], di
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x430]
call fcn.004a1b35
mov edi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4a11ec
lea eax, [ebp - 0x418]
call fcn.004ae6c4
lea esi, [ebp - 0x428]
call fcn.00437efd
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret 0xc
Function at 0x4a2d6b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x517ad4]
push esi
push edi
xor eax, ebp
push 0x44
mov dword [ebp + 0x94], eax
mov esi, ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x80], 0x114
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 5
ja 0x4a2db8
mov ecx, ebx
mov eax, esi
call fcn.004ae580
test eax, eax
jne 0x4a2dbc
xor eax, eax
jmp 0x4a2dcd
xor eax, eax
add esi, 0xb4
inc eax
call fcn.00455f5a
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.004ebd70
add ebp, 0x98
leave
ret

Function at 0x4a3360
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
cmp esi, eax
mov ebx, ecx
je 0x4a3432
cmp dword [esi], 0x18
jne 0x4a3432
push edi
push dword [esi + 8]
lea edi, [ebp - 4]
call fcn.00403098
mov eax, dword [esi + 4]
mov edi, dword [ebp - 4]
xor ecx, ecx
cmp eax, ecx
jne 0x4a33a0
push 0x10000000
push ecx
push ecx
push 1
jmp 0x4a3413
cmp eax, 1
je 0x4a340b
cmp dword [edi - 8], ecx
je 0x4a340b
push dword [esi + 0x10]
lea eax, [ebx + 0x20]
call fcn.0040315f
push dword [esi + 0x14]
lea eax, [ebx + 0x24]
call fcn.0040315f
push dword [esi + 0xc]
mov eax, dword [0x51b438]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.00405b51
mov esi, dword [ebp - 4]
add esp, 0x10
push 0x10000000
push str._local_
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x4a341e
push eax
call fcn.004013b2
jmp 0x4a341e
push 0x10000000
push ecx
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
pop edi
je 0x4a3445
push eax
call fcn.004013b2
jmp 0x4a3445
push 0x10000000
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4a344f
xor eax, eax
jmp 0x4a3465
push 0x4a3b4a
push ebx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
leave
ret 4
Function at 0x4a3853
Capabilities:
Get http content length

Disassembly:
push ebp
mov eax, 0x1020
lea ebp, [esp - 0xfa0]
call fcn.004ebd80
mov eax, dword [0x517ad4]
and dword [ebp - 0x7c], 0
push esi
push edi
xor eax, ebp
push 0
mov dword [ebp + 0xf9c], eax
mov eax, dword [ebp + 0xfa8]
mov edi, ecx
lea ecx, [ebp - 0x74]
push ecx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xfac]
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xfb0]
push 0x20000005
mov esi, SysReAllocString
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4a38be
mov dword [ebp - 0x70], esi
mov eax, dword [0x51b438]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
cmp eax, esi
je 0x4a38d0
inc eax
jmp 0x4a38d5
mov eax, 0x2000
push ebx
lea ecx, [ebp - 0x6c]
call fcn.0040338c
or eax, 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004033b8
mov ebx, dword [ebp - 0x6c]
mov eax, 0x1000
cmp dword [ebp - 0x74], eax
jae 0x4a38f9
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
push 0xea60
push eax
lea ecx, [ebp - 0x68]
call fcn.004a3ada
test eax, eax
jbe 0x4a392b
mov byte [ebp + eax - 0x68], 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00420eda
mov ebx, dword [ebp - 0x6c]
mov eax, dword [ebx - 8]
cmp eax, dword [ebp - 0x70]
jl 0x4a38ec
mov eax, dword [ebp - 0x70]
cmp dword [ebx - 8], eax
jl 0x4a3938
lea eax, [ebp - 0x6c]
jmp 0x4a394c
push 0x4fcb00
lea edi, [ebp - 0x78]
call fcn.00407710
mov dword [ebp - 0x7c], 1
mov esi, dword [ebp - 0x80]
mov ecx, eax
call fcn.0040333f
test byte [ebp - 0x7c], 1
je 0x4a3970
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4a3970
push eax
call fcn.004013b2
lea eax, [ebx - 0xc]
cmp eax, dword [0x51b43c]
pop ebx
je 0x4a3982
push eax
call fcn.004013b2
mov ecx, dword [ebp + 0xf9c]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004ebd70
add ebp, 0xfa0
leave
ret 0xc
Function at 0x4a399d
Capabilities:
Delete file
Get http content length
Write file on windows

Disassembly:
push ebp
mov eax, 0x102c
lea ebp, [esp - 0xfac]
call fcn.004ebd80
mov eax, dword [0x517ad4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xfb4]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
xor eax, ebp
push 1
mov dword [ebp + 0xfa8], eax
mov eax, dword [ebp + 0xfb8]
push 0x40000000
push eax
mov esi, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
mov dword [ebp - 0x70], eax
je 0x4a3ab4
push dword [ebp - 0x74]
mov ecx, 0x84000200
push 0xffffffffffffffff
push ebx
push edi
mov edi, esi
call fcn.004a3489
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x4a3aa6
push ebx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push 0x20000005
mov edi, SysReAllocString
push eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4a3a4c
mov dword [ebp - 0x60], edi
mov eax, 0x1000
cmp dword [ebp - 0x64], eax
jae 0x4a3a59
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x74]
push 0xea60
push eax
lea ecx, [ebp - 0x5c]
call fcn.004a3ada
cmp eax, ebx
jbe 0x4a3a96
push ebx
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a3a9d
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
jb 0x4a3a4c
mov dword [ebp - 0x68], 1
push dword [ebp - 0x7c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x68], ebx
jne 0x4a3abd
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0xfa8]
mov eax, dword [ebp - 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0xfac
leave
ret 8

Function at 0x4a3ada
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4a3b3c
and dword [esi + 0x48], 0
mov dword [esi + 0x40], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [esi + 0x44], ecx
push 1
lea ecx, [esi + 0x2c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4a3b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4a3b3c
push dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 8]
push eax
xor eax, eax
test edi, edi
setne al
mov dword [ebp - 4], edi
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4a3b3c
cmp dword [esi + 0x44], eax
jne 0x4a3b40
xor eax, eax
jmp 0x4a3b46
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
leave
ret 8
Function at 0x4acf82
Capabilities:
Delete file

Disassembly:
mov eax, 0x4f00b2
call fcn.004ebd20
sub esp, 0x484
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x484], eax
mov eax, dword [ebp + 0xc]
push eax
lea edi, [ebp - 0x47c]
call fcn.00403098
push 0x4fbaf0
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x488]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004032df
mov word [ebp - 0x1c], 0x5c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x224], di
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x488]
lea ebx, [ebp - 0x474]
call fcn.0040e026
cmp eax, edi
je 0x4ad142
push esi
jmp 0x4ad008
xor edi, edi
lea esi, [ebp - 0x474]
call fcn.0042acae
test eax, eax
jne 0x4ad12e
lea eax, [ebp - 0x478]
push eax
mov eax, esi
call fcn.0040df92
cmp dword [ebp + 0x10], edi
mov byte [ebp - 4], 3
jne 0x4ad107
mov edi, dword [ebp - 0x484]
xor ebx, ebx
cmp dword [edi + 0x28], ebx
jle 0x4ad107
add edi, 0x24
push 0x2f
mov eax, ebx
mov ecx, edi
call fcn.004bca1d
mov esi, eax
add esi, 0xc
call fcn.004031cc
mov dword [ebp - 0x490], eax
mov eax, ebx
mov ecx, edi
call fcn.004bca1d
add eax, 0xc
mov eax, dword [eax]
mov esi, dword [eax - 8]
sub esi, dword [ebp - 0x490]
lea eax, [ebp - 0x480]
push eax
mov eax, ebx
mov ecx, edi
dec esi
call fcn.004bca1d
mov edx, eax
add edx, 0xc
mov eax, esi
call fcn.00451000
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040328f
push dword [ebp - 0x478]
mov esi, dword [ebp - 0x48c]
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
lea eax, [esi - 0xc]
je 0x4ad195
cmp eax, dword [0x51b43c]
je 0x4ad0e0
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4ad0f7
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x484]
inc ebx
cmp ebx, dword [eax + 0x28]
jl 0x4ad04a
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4ad12e
push eax
call fcn.004013b2
lea eax, [ebp - 0x474]
call fcn.0040e0dc
test eax, eax
jne 0x4ad006
pop esi
lea eax, [ebp - 0x474]
call fcn.0040e105
mov eax, dword [ebp - 0x488]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
pop edi
pop ebx
je 0x4ad166
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4ad17d
push eax
call fcn.004013b2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ebd70
leave
ret 0xc
cmp eax, dword [0x51b43c]
je 0x4ad1a3
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4ad113
push eax
call fcn.004013b2
jmp 0x4ad113
Function at 0x4ad2df
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 8], ebp
jne 0x4ad30d
xor eax, eax
jmp 0x4ad36b
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ad35f
cmp esi, 0x40
jbe 0x4ad35f
push edi
push esi
push edi
push 2
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, edi
je 0x4ad35f
push edi
push edi
push edi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4ad35c
cmp word [edi], 0x5a4d
je 0x4ad36f
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
xor esi, esi
push dword [esp + 0x10]
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
add esi, 0xffffffc0
push esi
lea edx, [edi + 0x40]
call fcn.00446f2a
mov esi, eax
movzx eax, word [edi + 0x26]
pop ecx
movzx ecx, word [edi + 0x24]
shl eax, 0x10
or eax, ecx
sub esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
jmp 0x4ad361
Function at 0x4adc2d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov esi, eax
push ebx
push esi
xor edx, edx
call fcn.004a26eb
call fcn.0042f9f3
lea eax, [esi + 0x4c]
push eax
lea edi, [ebp - 4]
call fcn.00403098
push str.ttpres.dll
mov eax, edi
push eax
call fcn.00403184
push dword [ebp - 4]
call fcn.004ad2df
test eax, eax
pop ecx
je 0x4adcfd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x4adcfd
push eax
push 0x52164c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x3c]
mov ecx, dword [0x51b438]
push 0x80
push eax
mov dword [0x522618], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ecx
call fcn.0040386d
xor eax, eax
not word [eax + 0x51cd30]
not word [eax + 0x51cd24]
inc eax
inc eax
cmp eax, 8
jl 0x4adcb2
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x51cd30
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4add18
push 0x51cd24
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4add18
push 0x51cd10
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4add18
push 0x10
push 0x4fdd3c
push str.Load_resource__ttpres.dll__failed__please_resetup_this_program_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ebx, [esi + 0x44]
lea edi, [ebp + 8]
mov eax, ebx
call fcn.0040311c
push 0x8299
lea eax, [ebp - 8]
call fcn.00401692
push dword [eax]
add esi, 0x48
push dword [ebx]
push 0x500b50
push esi
call fcn.00405b51
mov eax, dword [ebp - 8]
add esp, 0x14
pop edi
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
pop esi
pop ebx
je 0x4add5e
push eax
call fcn.004013b2
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4add72
push eax
call fcn.004013b2
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4add86
push eax
call fcn.004013b2
xor eax, eax
leave
ret 4
Function at 0x4ae104
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [0x522dac]
test esi, esi
je 0x4ae1dc
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ae1dc
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0xc]
push ebx
push edi
push dword [eax]
lea edi, [ebp - 4]
call fcn.00403098
mov ebx, edi
call fcn.004ad8b3
mov edi, dword [ebp - 4]
cmp dword [edi - 8], 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
je 0x4ae1a5
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x500bbc
call fcn.004a2a16
test eax, eax
je 0x4ae170
mov dword [ebp - 4], 1
jmp 0x4ae188
mov eax, dword [ebp + 8]
push 0x500bb8
call fcn.004a2a16
test eax, eax
je 0x4ae188
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edi - 8]
lea eax, [eax + eax + 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x4a
push esi
mov dword [ebp - 8], edi
call ebx
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xf120
push 0x112
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add edi, 0xfffffff4
cmp edi, dword [0x51b43c]
je 0x4ae1d5
push edi
call fcn.004013b2
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x4ae1de
xor eax, eax
pop esi
leave
ret
Function at 0x4aea8f
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
mov eax, dword [ebp + 0x1c8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1cc]
push ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1d0]
xor ebx, ebx
cmp dword [0x523a1c], ebx
push esi
push edi
mov dword [ebp - 0x6c], eax
jne 0x4aec18
xor eax, eax
mov word [ebp - 0x4c], bx
mov ecx, 0x81
lea edi, [ebp - 0x4a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x4c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x74], edi
je 0x4aeb6e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4aec51
cmp eax, 0x40
jbe 0x4aec51
push ebx
push eax
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x58], eax
je 0x4aec51
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x4aeb75
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
jmp 0x4aec39
mov eax, dword [esi + 0x3c]
and dword [ebp - 0x54], 0
lea ebx, [eax + esi + 4]
xor eax, eax
lea edi, [ebp - 0x66]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
mov word [ebp - 0x68], 0x7b2
mov word [ebp - 0x66], 1
mov word [ebp - 0x62], 1
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x50]
mov edx, 0x989680
mul edx
add ecx, eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x80]
adc edi, edx
push eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], edi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x68]
mov dword [0x523a1c], eax
movzx eax, word [ebp - 0x66]
mov dword [0x523a18], eax
movzx eax, word [ebp - 0x62]
push esi
mov dword [0x523a14], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x74]
call esi
mov eax, dword [0x523a1c]
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
mov eax, dword [0x523a18]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [0x523a14]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x1c0
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4aeb6e
Function at 0x4af611
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x517ad4]
and dword [ebp - 0x80], 0
xor eax, ebp
push esi
mov dword [ebp + 0x18c], eax
mov eax, dword [0x51b438]
push 0
mov dword [ebp - 0x80], eax
push 0x26
lea eax, [ebp - 0x7c]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4af67f
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x7c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x4af67f
push str.Program_Files
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
call fcn.0040315f
lea ecx, [ebp - 0x80]
call fcn.0040306f
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4af6a7
push eax
call fcn.004013b2
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004ebd70
add ebp, 0x190
leave
ret

Function at 0x4af722
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword [0x51b438]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4af762
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 4]
call fcn.00403201
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, esi
lea ecx, [ebp - 4]
call fcn.0040322d
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0040306f
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
pop esi
je 0x4af782
push eax
call fcn.004013b2
mov eax, dword [ebp + 8]
leave
ret

Function at 0x4af99d
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
push ebp
push ebp
push 0x1037
push edi
call esi
mov ebx, 0x100
or eax, ebx
push eax
push ebp
push 0x1036
push edi
call esi
mov esi, dword [sym.imp.COMCTL32.dll_FlatSB_SetScrollProp]
push ebp
push 0xd
push 8
push edi
call esi
push ebp
push 0xd
push 1
push edi
call esi
push ebp
push 0xd
push 2
push edi
call esi
push ebp
push 0xd
push 4
push edi
call esi
inc ebp
push ebp
push ebp
push 0x200
push edi
call esi
push ebp
push ebp
push ebx
push edi
call esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4b000c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x1014
lea ebp, [esp - 0xf94]
call fcn.004ebd80
mov eax, dword [0x517ad4]
push ebx
push esi
xor eax, ebp
mov dword [ebp + 0xf90], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor ebx, ebx
push ebx
xor esi, esi
push str.SOFTWAREMicrosoftInternet_Explorer
inc esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b00e7
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.Version
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b00de
lea eax, [ebp - 0x70]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
cmp eax, ebx
pop ecx
pop ecx
je 0x4b00db
mov word [eax], bx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
cmp eax, 5
pop ecx
jl 0x4b00d7
mov eax, dword [ebp + 0xf9c]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push edi
push 4
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push 0x49
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 0x78]
push eax
push 0x4a
push ebx
call esi
and edi, eax
pop edi
je 0x4b00d7
mov esi, dword [ebp + 0xf9c]
jmp 0x4b00de
push 2
jmp 0x4b00dd
push 4
pop esi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xf90]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0xf94
leave
ret