joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ef1c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x516ad4]
or dword [ebp - 0x2b4], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 4], eax
push edi
mov ebx, ecx
mov eax, ebx
or eax, 0x4008
push eax
mov edi, 0x2b4
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp + 8]
call esi
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2bc], eax
je 0x49ef95
or dword [ebp - 0x2b4], 0xffffffff
or ebx, 0x400a
push ebx
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2bc]
pop edi
pop esi
pop ebx
call fcn.004eae3c
leave
ret 8

Function at 0x4a07af
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x4a07cd
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4a07d5
mov eax, dword [esp + 0xc]
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x4a0b0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4ee1bd
call fcn.004eadec
sub esp, 0x420
mov eax, dword [0x516ad4]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call dword [0x51a490]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x4a0b7b
call fcn.00421704
mov edi, eax
jmp 0x4a0c37
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4a0c04
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x4a0c04
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + ebx + 2]
push eax
lea esi, [ebp - 0x418]
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
call fcn.004adf48
jmp 0x4a0bce
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], edi
jne 0x4a0be4
mov edi, 0x8007000e
jmp 0x4a0c2b
call dword [0x51a490]
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 0x4a0c0b
call fcn.00421704
jmp 0x4a0c29
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x18]
mov word [eax + ebx*2], di
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.004a155e
mov edi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4a0c50
lea eax, [ebp - 0x418]
call fcn.004adf68
lea esi, [ebp - 0x41c]
call fcn.00437fe6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, edi
call fcn.004eae3c
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4a272e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x516ad4]
push esi
push edi
push 0x44
mov dword [ebp - 4], eax
mov esi, ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x118], 0x114
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
ja 0x4a277e
mov ecx, dword [ebp + 8]
mov eax, esi
call fcn.004ade24
test eax, eax
jne 0x4a2782
xor eax, eax
jmp 0x4a2793
xor eax, eax
add esi, 0xb4
inc eax
call fcn.0045bf0d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.004eae3c
leave
ret 4

Function at 0x4a2cca
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 0x4a2d9c
cmp dword [esi], 0x18
jne 0x4a2d9c
push edi
push dword [esi + 8]
lea edi, [ebp - 4]
call fcn.004031b3
mov eax, dword [esi + 4]
mov edi, dword [ebp - 4]
xor ecx, ecx
cmp eax, ecx
jne 0x4a2d0a
push 0x10000000
push ecx
push ecx
push 1
jmp 0x4a2d7d
cmp eax, 1
je 0x4a2d75
cmp dword [edi - 8], ecx
je 0x4a2d75
push dword [esi + 0x10]
lea eax, [ebx + 0x20]
call fcn.00403266
push dword [esi + 0x14]
lea eax, [ebx + 0x24]
call fcn.00403266
push dword [esi + 0xc]
mov eax, dword [0x51a438]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.004060d6
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 [0x51a43c]
je 0x4a2d88
push eax
call fcn.004013aa
jmp 0x4a2d88
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 [0x51a43c]
pop edi
je 0x4a2daf
push eax
call fcn.004013aa
jmp 0x4a2daf
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 0x4a2db9
xor eax, eax
jmp 0x4a2dcf
push 0x4a34c6
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 0x4a31bb
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004eae50
mov eax, dword [0x516ad4]
and dword [ebp - 0x1014], 0
push esi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x20000005
push dword [ebp + 0x10]
mov esi, SysReAllocString
mov dword [ebp - 0x100c], esi
mov dword [ebp - 0x1010], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4a3215
mov dword [ebp - 0x100c], esi
mov eax, dword [0x51a438]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x100c]
cmp eax, esi
je 0x4a322a
inc eax
jmp 0x4a322f
mov eax, 0x2000
push ebx
lea ecx, [ebp + 0x10]
call fcn.004034a7
or eax, 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004034d3
mov ebx, dword [ebp + 0x10]
push edi
mov eax, 0x1000
cmp dword [ebp - 0x1010], eax
jae 0x4a325a
mov eax, dword [ebp - 0x1010]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push 0xea60
push eax
lea ecx, [ebp - 0x1008]
call fcn.004a3456
test eax, eax
jbe 0x4a329b
mov byte [ebp + eax - 0x1008], 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004212cd
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx - 8]
cmp eax, dword [ebp - 0x100c]
jl 0x4a3247
mov eax, dword [ebp - 0x100c]
cmp dword [ebx - 8], eax
jl 0x4a32ab
lea eax, [ebp + 0x10]
jmp 0x4a32c2
push 0x4fbb00
lea edi, [ebp + 0x14]
call fcn.00407bfb
mov dword [ebp - 0x1014], 1
mov esi, dword [ebp + 0xc]
mov ecx, eax
call fcn.00403446
test byte [ebp - 0x1014], 1
pop edi
je 0x4a32ea
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4a32ea
push eax
call fcn.004013aa
lea eax, [ebx - 0xc]
cmp eax, dword [0x51a43c]
pop ebx
je 0x4a32fc
push eax
call fcn.004013aa
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.004eae3c
leave
ret 0x10
Function at 0x4a330b
Capabilities:
Delete file
Get http content length
Write file on windows

Disassembly:
push ebp
mov eax, 0x1020
lea ebp, [esp - 0xfa0]
call fcn.004eae50
mov eax, dword [0x516ad4]
push ebx
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xfb0]
mov dword [ebp + 0xf9c], eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x4a3431
push edi
push dword [ebp + 0xfb4]
mov edi, dword [ebp + 0xfa8]
push 0xffffffffffffffff
push ebx
push dword [ebp + 0xfac]
mov ecx, 0x84000200
call fcn.004a2df3
cmp eax, ebx
mov dword [ebp - 0x80], eax
je 0x4a3422
push esi
push ebx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0x20000005
mov esi, SysReAllocString
push eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4a33b5
mov dword [ebp - 0x6c], esi
mov eax, 0x1000
cmp dword [ebp - 0x70], eax
jae 0x4a33c2
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp + 0xfb4]
mov esi, dword [ebp + 0xfa8]
push 0xea60
push eax
lea ecx, [ebp - 0x68]
call fcn.004a3456
cmp eax, ebx
jbe 0x4a3411
push ebx
lea ecx, [ebp + 0xfac]
push ecx
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x7c]
mov dword [ebp + 0xfac], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a3418
mov eax, dword [ebp - 0x78]
add eax, dword [ebp + 0xfac]
cmp eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
jb 0x4a33b5
mov dword [ebp - 0x74], 1
push dword [ebp - 0x80]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x74], ebx
pop edi
jne 0x4a343d
push dword [ebp + 0xfb0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0xf9c]
mov eax, dword [ebp - 0x74]
pop ebx
call fcn.004eae3c
add ebp, 0xfa0
leave
ret 0x10

Function at 0x4a3456
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 0x4a34b8
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 0x4a34bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4a34b8
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 0x4a34b8
cmp dword [esi + 0x44], eax
jne 0x4a34bc
xor eax, eax
jmp 0x4a34c2
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
leave
ret 8
Function at 0x4ac901
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ef167
call fcn.004eadec
sub esp, 0x47c
mov eax, dword [0x516ad4]
push ebx
push edi
push dword [ebp + 0xc]
lea edi, [ebp - 0x478]
mov dword [ebp - 0x10], eax
call fcn.004031b3
push 0x4faaf0
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x480]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004033e6
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 - 0x480]
lea ebx, [ebp - 0x474]
call fcn.0040e51d
cmp eax, edi
je 0x4acaa6
push esi
jmp 0x4ac97b
xor edi, edi
lea esi, [ebp - 0x474]
call fcn.0042ae58
test eax, eax
jne 0x4aca92
lea eax, [ebp - 0x47c]
push eax
mov eax, esi
call fcn.0040e489
cmp dword [ebp + 0x10], edi
mov byte [ebp - 4], 3
jne 0x4aca6b
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x28], ebx
jle 0x4aca6b
add edi, 0x24
push 0x2f
mov eax, ebx
mov ecx, edi
call fcn.004ae1dd
mov esi, eax
add esi, 0xc
call fcn.004032d3
mov dword [ebp - 0x488], eax
mov eax, ebx
mov ecx, edi
call fcn.004ae1dd
add eax, 0xc
mov eax, dword [eax]
mov esi, dword [eax - 8]
sub esi, dword [ebp - 0x488]
lea eax, [ebp + 0xc]
push eax
mov eax, ebx
mov ecx, edi
dec esi
call fcn.004ae1dd
mov edx, eax
add edx, 0xc
mov eax, esi
call fcn.004514c1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x478]
call fcn.00403396
push dword [ebp - 0x47c]
mov esi, dword [ebp - 0x484]
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
lea eax, [esi - 0xc]
je 0x4acaf7
cmp eax, dword [0x51a43c]
je 0x4aca4a
push eax
call fcn.004013aa
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4aca5e
push eax
call fcn.004013aa
mov eax, dword [ebp + 8]
inc ebx
cmp ebx, dword [eax + 0x28]
jl 0x4ac9ba
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4aca92
push eax
call fcn.004013aa
lea eax, [ebp - 0x474]
call fcn.0040e5d3
test eax, eax
jne 0x4ac979
pop esi
lea eax, [ebp - 0x474]
call fcn.0040e5fc
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
pop edi
pop ebx
je 0x4acaca
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4acae1
push eax
call fcn.004013aa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004eae3c
leave
ret 0xc
cmp eax, dword [0x51a43c]
je 0x4acb05
push eax
call fcn.004013aa
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4aca77
push eax
call fcn.004013aa
jmp 0x4aca77
Function at 0x4ad4e7
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.004a20ae
call fcn.0042fb00
lea eax, [esi + 0x4c]
push eax
lea edi, [ebp - 4]
call fcn.004031b3
push str.ttpres.dll
mov eax, edi
push eax
call fcn.0040328b
push dword [ebp - 4]
call fcn.004472c9
test eax, eax
pop ecx
je 0x4ad5b7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x4ad5b7
push eax
push 0x52064c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x3c]
mov ecx, dword [0x51a438]
push 0x80
push eax
mov dword [0x521618], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ecx
call fcn.00403988
xor eax, eax
not word [eax + 0x51bd30]
not word [eax + 0x51bd24]
inc eax
inc eax
cmp eax, 8
jl 0x4ad56c
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x51bd30
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad5d2
push 0x51bd24
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad5d2
push str.TTPlayer
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad5d2
push 0x10
push 0x4fcd44
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.00403223
push 0x8299
lea eax, [ebp - 8]
call fcn.004017db
push dword [eax]
add esi, 0x48
push dword [ebx]
push 0x4ffb30
push esi
call fcn.004060d6
mov eax, dword [ebp - 8]
add esp, 0x14
pop edi
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
pop esi
pop ebx
je 0x4ad618
push eax
call fcn.004013aa
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4ad62c
push eax
call fcn.004013aa
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4ad640
push eax
call fcn.004013aa
xor eax, eax
leave
ret 4
Function at 0x4ad9bd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [0x521dac]
test esi, esi
je 0x4ada95
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ada95
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0xc]
push ebx
push edi
push dword [eax]
lea edi, [ebp - 4]
call fcn.004031b3
mov ebx, edi
call fcn.004ad177
mov edi, dword [ebp - 4]
cmp dword [edi - 8], 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
je 0x4ada5e
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x4ffb9c
call fcn.004a23d9
test eax, eax
je 0x4ada29
mov dword [ebp - 4], 1
jmp 0x4ada41
mov eax, dword [ebp + 8]
push 0x4ffb98
call fcn.004a23d9
test eax, eax
je 0x4ada41
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 [0x51a43c]
je 0x4ada8e
push edi
call fcn.004013aa
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x4ada97
xor eax, eax
pop esi
leave
ret
Function at 0x4ae4bd
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x516ad4]
push ebx
xor ebx, ebx
cmp dword [0x522a1c], ebx
push esi
mov dword [ebp + 0x1b0], eax
push edi
jne 0x4ae62e
xor eax, eax
mov word [ebp - 0x58], bx
mov ecx, 0x81
lea edi, [ebp - 0x56]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x1c8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x78], edi
je 0x4ae584
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4ae66f
cmp eax, 0x40
jbe 0x4ae66f
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 - 0x64], eax
je 0x4ae66f
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x4ae58b
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
jmp 0x4ae659
mov eax, dword [esi + 0x3c]
and dword [ebp - 0x60], 0
lea ebx, [eax + esi + 4]
xor eax, eax
lea edi, [ebp - 0x72]
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 - 0x5c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x74]
push eax
mov word [ebp - 0x74], 0x7b2
mov word [ebp - 0x72], 1
mov word [ebp - 0x6e], 1
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x5c]
mov edx, 0x989680
mul edx
add ecx, eax
lea eax, [ebp - 0x60]
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 - 0x74]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x74]
mov dword [0x522a1c], eax
movzx eax, word [ebp - 0x72]
mov dword [0x522a18], eax
movzx eax, word [ebp - 0x6e]
push esi
mov dword [0x522a14], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x78]
call esi
mov eax, dword [ebp + 0x1bc]
mov ecx, dword [0x522a1c]
mov dword [eax], ecx
mov eax, dword [0x522a18]
mov ecx, dword [ebp + 0x1c0]
mov dword [ecx], eax
mov eax, dword [0x522a14]
mov ecx, dword [ebp + 0x1c4]
mov dword [ecx], eax
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1b0]
pop edi
pop esi
pop ebx
call fcn.004eae3c
add ebp, 0x1b4
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ae584
Function at 0x4af02f
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x516ad4]
push esi
xor esi, esi
mov dword [ebp + 0x18c], eax
mov dword [ebp - 0x80], esi
mov eax, dword [0x51a438]
push esi
mov dword [ebp - 0x80], eax
push 0x26
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4af098
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]
cmp eax, esi
pop ecx
pop ecx
je 0x4af098
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.00403266
mov esi, dword [ebp + 0x198]
lea ecx, [ebp - 0x80]
call fcn.0040318a
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
pop esi
je 0x4af0c7
push eax
call fcn.004013aa
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp + 0x198]
call fcn.004eae3c
add ebp, 0x190
leave
ret

Function at 0x4af143
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword [0x51a438]
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 0x4af183
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 4]
call fcn.00403308
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, esi
lea ecx, [ebp - 4]
call fcn.00403334
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0040318a
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
pop esi
je 0x4af1a3
push eax
call fcn.004013aa
mov eax, dword [ebp + 8]
leave
ret

Function at 0x4af3be
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 0x4afa2d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x1014
lea ebp, [esp - 0xf94]
call fcn.004eae50
mov eax, dword [0x516ad4]
push ebx
push esi
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 0x4afb06
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 0x4afafd
lea eax, [ebp - 0x70]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
cmp eax, ebx
pop ecx
pop ecx
je 0x4afafa
mov word [eax], bx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
cmp eax, 5
pop ecx
jl 0x4afaf6
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 0x4afaf6
mov esi, dword [ebp + 0xf9c]
jmp 0x4afafd
push 2
jmp 0x4afafc
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
pop ebx
call fcn.004eae3c
add ebp, 0xf94
leave
ret