joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aca0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
xor ebx, ebx
push eax
inc ebx
mov dword [ebp - 0x54], 0x44
call sub.MSVCR90.dll_memset
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
cmp dword [ebp + 0xc], esi
je 0x40acdd
xor eax, eax
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], ax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40ad12
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x40b1b2
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov dword [esi + 0x458], eax
mov eax, 0xcd
lea edi, [esi + 0x454]
push eax
mov byte [esi + 0x8d0], 1
mov dword [edi], 0x3a8
mov dword [esi + 0x45c], eax
mov dword [esi + 0x460], 7
mov dword [esi + 0x464], 0x40d
push dword [0x497614]
call dword [sym.imp.USER32.dll_LoadIconW]
push dword [esi + 0x418]
mov dword [esi + 0x468], eax
lea eax, [esi + 0x46c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret

Function at 0x40ba7a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xcd
push ebx
mov ebx, ecx
je 0x40ba91
xor eax, eax
inc eax
jmp 0x40bb2f
mov eax, dword [ebp + 0x10]
sub eax, 0x202
je 0x40bb0c
dec eax
dec eax
jne 0x40bb2d
push esi
push edi
push 8
call fcn.0047bd5c
pop ecx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
xor edi, edi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
call fcn.0040ad1b
push 0x4807a8
push 0xcb
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_AppendMenuW]
push edi
push dword [ebx + 4]
lea ecx, [ebp + 0xc]
push dword [esi + 4]
push dword [esi]
push edi
call fcn.0040b3a5
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
call fcn.0040ad31
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
cmp dword [ebp + 0xc], edi
pop ecx
pop edi
pop esi
je 0x40bb2d
lea ecx, [ebp + 0xc]
call fcn.0040ad31
jmp 0x40bb2d
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x454]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [ebx + 0x8d0], 0
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x40d40f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x496ee4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x44c]
call fcn.0040d2dc
test eax, eax
je 0x40d44c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
jmp 0x40d4de
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
mov edi, dword [0x497614]
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0xcd
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
push 6
pop ecx
mov esi, str.BSDownloader
lea edi, [ebp - 0x804]
rep movsd dword es:[edi], dword [esi]
push 0x7e6
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x7ea]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0xcb
push dword [0x497614]
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
push dword [ebp - 0x808]
lea ecx, [ebx + 0x44]
push 1
push dword [ebx + 4]
call fcn.0040b31f
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0047bc8a
leave
ret 0x10

Function at 0x40d4ed
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1f90]
mov eax, 0x2010
call fcn.0047be30
mov eax, dword [0x496ee4]
xor eax, ebp
mov dword [ebp + 0x1f8c], eax
push ebx
mov ebx, dword [ebp + 0x1f98]
push esi
push edi
xor eax, eax
mov esi, 0xffe
push esi
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov edi, ecx
lea eax, [ebp - 0x72]
xor ecx, ecx
push eax
mov word [ebp - 0x74], cx
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp + 0xf8c], ax
lea eax, [ebp + 0xf8e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
push dword [edi + 0x8cc]
mov esi, 0x800
push esi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
xor eax, eax
xor ecx, ecx
cmp cx, word [ebp + eax*2 - 0x74]
jne 0x40d577
cmp cx, word [ebp + eax*2 - 0x72]
je 0x40d57c
inc eax
cmp eax, esi
jl 0x40d567
inc eax
cmp eax, 1
mov dword [ebp - 0x80], eax
jg 0x40d589
xor eax, eax
jmp 0x40d5da
xor edi, edi
test eax, eax
jle 0x40d5d7
movzx eax, word [ebp + edi*2 - 0x74]
mov ecx, dword [ebp - 0x78]
inc dword [ebp - 0x78]
mov word [ebp + ecx*2 + 0xf8c], ax
test ax, ax
jne 0x40d5d1
inc dword [ebp - 0x7c]
lea eax, [ebp + 0xf8c]
mov ecx, ebx
push eax
add ebx, 4
call fcn.0040cc62
push esi
lea eax, [ebp + 0xf8c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
and dword [ebp - 0x78], 0
inc edi
cmp edi, dword [ebp - 0x80]
jl 0x40d58f
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x1f8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047bc8a
add ebp, 0x1f90
leave
ret 4
Function at 0x40e512
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, dword [esi + 0x8d8]
cmp ecx, 0x2bf20
jae 0x40e566
cmp eax, edi
je 0x40e558
push 0x404
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x44c]
mov dword [esi + 0x8d8], edi
call fcn.0040e15e
jmp 0x40e587
add ecx, 0x1f4
mov dword [esi + 0x8d8], ecx
jmp 0x40e587
push edi
push str.No_Internet_connection_detected
push str.BrotherSoft_Downloader_needs_an_internet_connection_to_function_Please_connect_and_try_again.
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
push edi
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
Function at 0x40e816
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.0047be30
push 0xffffffffffffffff
push 0x47d901
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x496ee4]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x200c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x2010]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x2014]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x495024]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], eax
xor eax, eax
mov esi, 0xffe
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
mov word [ebp + 0x1000], ax
lea eax, [ebp + 0x1002]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
push dword [edi + 0x8cc]
mov edi, 0x800
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor eax, eax
xor ecx, ecx
cmp cx, word [ebp + eax*2]
jne 0x40e8de
cmp cx, word [ebp + eax*2 + 2]
je 0x40e8e3
inc eax
cmp eax, edi
jl 0x40e8ce
inc eax
cmp eax, 1
mov dword [ebp - 0x28], eax
jg 0x40e8fb
lea ecx, [ebp - 0x10]
call fcn.00401bab
xor eax, eax
jmp 0x40e9e3
xor edx, edx
cmp eax, ebx
mov dword [ebp - 0x1c], edx
jle 0x40e9d7
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov esi, 0x481188
movzx eax, word [ebp + edx*2]
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 0x18]
mov word [ebp + ecx*2 + 0x1000], ax
xor ecx, ecx
cmp cx, ax
jne 0x40e9c7
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040cc62
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.0040b67c
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dbb5
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
add ecx, eax
mov byte [ebp - 4], 1
call fcn.0040cc12
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00401bab
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.0040b67c
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040db92
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.0040cc12
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401bab
push edi
lea eax, [ebp + 0x1000]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
inc dword [ebp - 0x24]
add dword [ebp - 0x14], 4
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp - 0x1c]
inc edx
cmp edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
jl 0x40e91b
lea ecx, [ebp - 0x10]
call fcn.00401bab
mov eax, dword [ebp - 0x24]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.0047bc8a
add ebp, 0x2004
leave
ret 0xc
Function at 0x40f122
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x84
lea ebp, [esp - 4]
mov eax, dword [0x496ee4]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x40
mov eax, 0x47dae7
call fcn.0047bc99
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 2
call fcn.0040dc70
push dword [ebp - 0x10]
lea ecx, [ebp]
mov byte [ebp - 4], 3
call fcn.0040c060
push dword [ebp]
mov byte [ebp - 4], 4
call fcn.0041225c
pop ecx
test al, al
jne 0x40f1e6
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40f196
push dword [ebp]
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00401bab
lea ecx, [ebp + 0x90]
call fcn.00401bab
lea ecx, [ebp + 0x94]
call fcn.00401bab
lea ecx, [ebp + 0x98]
call fcn.00401bab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.0047bc8a
add ebp, 0x88
leave
ret 0x10
push 0x38
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 6
push esi
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0x48118c
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp dword [ebp + 0x9c], 1
jne 0x40f26a
mov eax, dword [ebp + 0x94]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x90]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x14], esi
je 0x40f184
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40f265
push dword [ebp]
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
xor esi, esi
inc esi
jmp 0x40f2b2
cmp dword [ebp + 0x9c], 2
jne 0x40f253
mov eax, dword [ebp + 0x94]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x90]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x98]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x30], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x14], esi
jne 0x40f253
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40f2b2
push dword [ebp]
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00401bab
lea ecx, [ebp + 0x90]
call fcn.00401bab
lea ecx, [ebp + 0x94]
call fcn.00401bab
lea ecx, [ebp + 0x98]
call fcn.00401bab
mov eax, esi
jmp 0x40f1c1
Function at 0x40fc81
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 0x44]
call fcn.00401592
push dword [esi + 0x8cc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0x8d0], 0
je 0x40fcb4
lea eax, [esi + 0x454]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x496f48
call fcn.0040cb7e
mov edi, eax
lea eax, [esi + 0x20]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 4]
call fcn.0040c29d
lea eax, [esi + 0x24]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.0040c29d
add esi, 0x44c
mov ecx, dword [esi]
pop edi
test ecx, ecx
je 0x40fd12
call fcn.0040d0cc
mov esi, dword [esi]
test esi, esi
je 0x40fd12
mov ecx, esi
call fcn.0040fa56
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4103e2
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x496ee4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
push ebx
push edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], ebx
call esi
cmp eax, 0xffffffff
je 0x4104bd
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], ebx
call edi
test eax, eax
je 0x4104bd
cmp dword [ebp - 0x4c], 0x40
jne 0x4104bd
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x4104bd
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x50]
call esi
cmp eax, 0xffffffff
je 0x4104bd
push ebx
lea eax, [ebp - 0x4c]
push eax
push 2
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
call edi
test eax, eax
je 0x4104bd
cmp dword [ebp - 0x4c], 2
jne 0x4104bd
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x50]
call esi
cmp eax, 0xffffffff
je 0x4104bd
cmp byte [ebp - 0x48], 0x4e
jne 0x410496
cmp byte [ebp - 0x47], 0x45
jne 0x4104a9
mov eax, 0x454e
jmp 0x4104bf
cmp byte [ebp - 0x48], 0x50
jne 0x4104a9
cmp byte [ebp - 0x47], 0x45
jne 0x4104a9
mov eax, 0x4550
jmp 0x4104bf
lea eax, [ebp - 0x48]
push eax
push str.Cant_handle__s_files._n
mov byte [ebp - 0x46], bl
call dword [sym.imp.MSVCR90.dll_printf]
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047bc8a
leave
ret
Function at 0x4104ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
xor esi, esi
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call ebx
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4104ff
or eax, eax
jmp 0x4105f0
push edi
push esi
lea eax, [ebp - 4]
push eax
mov edi, pe_nt_image_headers32
push edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4105ec
cmp dword [ebp - 4], edi
jne 0x4105ec
movzx edi, word [ebp - 0x106]
mov dword [ebp - 0x14], edi
imul edi, edi, 0x28
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x4105ec
movzx eax, word [ebp - 0xf8]
mov ecx, dword [ebp - 0xc]
push esi
push esi
lea eax, [eax + ecx + 0x18]
push eax
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x4105ec
push esi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4105ec
cmp edi, dword [ebp - 4]
je 0x41059f
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4105ec
mov eax, dword [ebp - 0x14]
cmp eax, esi
jle 0x4105d4
mov edi, dword [ebp - 8]
add edi, 0x14
mov dword [ebp - 0xc], eax
push esi
push esi
push dword [edi]
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x4105cc
mov eax, dword [edi - 4]
mov ecx, dword [edi]
add eax, ecx
cmp dword [ebp - 0x10], eax
jae 0x4105cc
mov dword [ebp - 0x10], eax
add edi, 0x28
dec dword [ebp - 0xc]
jne 0x4105af
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
cmp eax, esi
ja 0x4105ef
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4105f4
Capabilities:
Get file size

Disassembly:
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x41061f
mov eax, edi
jmp 0x410660
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push str.totoal_file_size:__lu_n
call dword [sym.imp.MSVCR90.dll_printf]
pop ecx
pop ecx
mov ecx, esi
call fcn.004103e2
cmp eax, 0x4550
jne 0x410650
push esi
call fcn.004104ce
pop ecx
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
test edi, edi
jl 0x41065f
mov eax, edi
pop ebx
pop edi
pop esi
ret
Function at 0x4113e9
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x5c], edi
je 0x411427
call fcn.00410d61
test eax, eax
je 0x41142d
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x411143
push edi
push edi
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x78], eax
cmp eax, edi
je 0x411427
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [esi + 0x80]
cmp eax, edi
je 0x411427
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x80]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x80]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x38]
push dword [esi + 0x34]
push edi
push edi
push dword [esi + 0x60]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x411427
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x411429

Function at 0x411f7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push dword [0x497614]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41202f
push esi
push dword [0x497614]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41202f
push esi
push dword [0x497614]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x412028
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x412021
cmp dword [ebp + 0xc], 0
je 0x412021
push edi
push eax
push dword [ebp + 0xc]
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
push edi
push esi
call fcn.00411c6c
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x412031
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x412038
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x496ee4]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x18
mov eax, 0x47de4f
call fcn.0047bc99
mov edi, dword [ebp + 0x228]
mov eax, dword [ebp + 0x22c]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push 0x4806ad
mov ecx, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor esi, esi
inc esi
push str.MIMEDatabaseContent_Type_
lea ecx, [ebp]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x1ff
lea eax, [ebp + 0x1d]
push ebx
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x18], esi
mov byte [ebp + 0x1c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push dword [ebp - 0x20]
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41211f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.Extension
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412113
lea eax, [ebp + 0x1c]
push eax
mov ecx, edi
call dword [0x47f374]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.0047bc8a
add ebp, 0x220
leave
ret
Function at 0x412f15
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x412f2e
push 0x80004005
call fcn.00401058
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x412f9d
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x412f98
cmp dword [ebp + 0x10], ebx
jbe 0x412f8e
cmp dword [ebp + 0x10], 2
jbe 0x412f80
cmp dword [ebp + 0x10], 7
jne 0x412f8e
test cl, 1
jne 0x412f8e
shr ecx, 1
cmp ecx, 1
jb 0x412f8e
cmp word [esi + ecx*2 - 2], bx
jne 0x412f8e
cmp ecx, 1
jbe 0x412f9d
cmp word [esi + ecx*2 - 4], bx
jmp 0x412f8c
test cl, 1
jne 0x412f8e
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x412f9d
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x412f9d
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc