joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5076f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edi, [esi + 0xf2c]
test edi, edi
je 0x507718
lea eax, [esi + 0xf30]
jmp 0x50771a
xor eax, eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5077d4
mov edx, dword [esi + 0x2848]
mov eax, dword [edx + 0x24]
test eax, eax
je 0x5077a8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
test edi, edi
je 0x50774c
lea edx, [esi + 0xf30]
jmp 0x50774e
xor edx, edx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push 1
sub ebx, ecx
mov edx, dword [edx + 4]
push ebx
mov ebx, dword [esi + 0x2be8]
push eax
push ecx
mov ecx, dword [esp + 0x24]
sub ecx, ebx
sub ecx, eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
test edi, edi
pop ebx
je 0x507794
lea eax, [esi + 0xf30]
push 5
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push 5
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
test edi, edi
je 0x5077c7
mov ecx, dword [esi + 0xf34]
lea eax, [esi + 0xf30]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push eax
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret

Function at 0x5077e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push edi
mov edi, ecx
push eax
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0x2b9c]
xor eax, eax
test ecx, ecx
je 0x50780a
call fcn.00451870
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x14]
lea esi, [edi + 0x3c]
sub edx, eax
test esi, esi
mov dword [esp + 0xc], edx
je 0x507820
lea eax, [edi + 0x40]
jmp 0x507822
xor eax, eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5078c6
mov eax, dword [edi + 0x2848]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x5078a0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
test esi, esi
je 0x507851
lea edx, [edi + 0x40]
jmp 0x507853
xor edx, edx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push 1
sub ebx, ecx
push ebx
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [edx + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
test esi, esi
pop ebx
je 0x50788c
mov edx, dword [edi + 0x44]
lea eax, [edi + 0x40]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push 5
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
test esi, esi
je 0x5078b9
lea eax, [edi + 0x40]
push 0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
Function at 0x50ce20
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0050d100
test eax, eax
jne 0x50cf58
mov ecx, ebx
call fcn.0050c3c0
mov ecx, dword [ebx + 4]
push eax
call fcn.00509260
test eax, eax
jne 0x50cf58
mov ecx, dword [ebx + 4]
call fcn.00507940
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x10
push 0x10
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
sub esp, 0x10
mov dword [esp + 0x20], eax
mov ecx, esp
xor eax, eax
push esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, 0x10
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.0050c490
mov eax, dword [ebx + 0x64]
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], edx
test eax, eax
mov dword [esp + 0x20], edx
je 0x50cece
lea eax, [ebx + 0x48]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x50ceda
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.0050c1f0
mov ecx, dword [esp + 0x18]
mov eax, dword [0x5e6720]
add ecx, eax
mov eax, dword [esp + 0x20]
sub eax, ecx
push 0xcc0020
sub eax, 0x10
push 0
cdq
sub eax, edx
mov edx, dword [0x5e6718]
sar eax, 1
add ecx, eax
push 0
push esi
push 0x10
lea eax, [ecx + 0x10]
push 0x10
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
add eax, edx
push ecx
push eax
push edi
lea edx, [eax + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebx + 4]
push edi
call fcn.00507940
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x50d680
Capabilities:
Create thread

Disassembly:
push ecx
push edi
push 0x1048
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x50d6dd
push 0x823
xor ecx, ecx
mov eax, 0x824
push edi
call fcn.0050d5a0
add esp, 8
test eax, eax
je 0x50d6dd
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push edi
push 0x50d3e0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x50d6dd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop ecx
ret
Function at 0x50d940
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc8
push esi
mov esi, ecx
push edi
push esi
push 0
push str.IeBC
push str.func
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
cmp edx, 9
jae 0x50d965
inc edx
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x52ea44
lea eax, [esp + 0x10]
push 0x63
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 8]
push esi
push ecx
push str.IeBC
push str.func
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
add esp, 0xc8
ret

Function at 0x50d9f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc8
push esi
mov esi, ecx
push edi
push esi
push 0
push str.innerpage
push str.func
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
cmp edx, 5
jae 0x50da15
inc edx
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x52ea44
lea eax, [esp + 0x10]
push 0x63
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 8]
push esi
push ecx
push str.innerpage
push str.func
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
add esp, 0xc8
ret

Function at 0x50db60
Capabilities:
Create thread

Disassembly:
sub esp, 0xd0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push str.NotJoinPrivate
mov ebp, ecx
push str.option
mov dword [esp + 0x1c], 0
call fcn.0040ca90
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x50dc7b
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x50dbb1
mov ecx, ebp
call fcn.0050def0
test eax, eax
jne 0x50dc7b
push 0x1048
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x50dc7b
mov edx, dword [esp + 0xe8]
mov ecx, 0x209
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0xe4]
push 0x823
push ebx
push ecx
push edx
push eax
mov ecx, ebp
call fcn.0050dd00
test eax, eax
je 0x50dc7b
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
xor edx, edx
add esp, 4
cmp esi, edx
je 0x50dc7b
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push 0x63
push ecx
mov dword [esi], edx
mov dword [esi + 4], edx
push edx
mov ecx, ebp
mov dword [esi], ebx
stosw word es:[edi], ax
call fcn.0050dc90
lea edx, [esp + 0x18]
push edx
call fcn.00454f30
mov ecx, eax
call fcn.00457f30
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x50d820
push 0
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x50dc7b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 0x10
Function at 0x50dd00
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
sub esp, 0x20
xor eax, eax
push esi
mov esi, ecx
cmp dword [esp + 0x34], eax
je 0x50dedb
cmp dword [esp + 0x38], eax
je 0x50dedb
push ebx
push ebp
push edi
xor ebx, ebx
xor ebp, ebp
xor edi, edi
cmp esi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
je 0x50de42
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50de40
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.IeBC
push str.func
call edi
push esi
push ebp
push 0x55fe34
push str.func
mov ebx, eax
call edi
push esi
push ebp
push str.iknow
push str.inner
call edi
push esi
push 0
push str.innerpage
push str.func
mov ebp, eax
call edi
push esi
push 0
push str.notip
push str.inner
mov dword [esp + 0x38], eax
call edi
push esi
push 0
push str.openietipcloseie8dlg
push str.openie
mov dword [esp + 0x3c], eax
call edi
push esi
push 0
push str.OpenIeUseIE8
push str.openie
mov dword [esp + 0x34], eax
call edi
push esi
push 0
push str.OpenIeUseIE6
push str.openie
mov dword [esp + 0x2c], eax
call edi
push esi
push 0
push 0x55fefc
push str.updateie
mov dword [esp + 0x30], eax
call edi
push esi
push 0
push str.UpdateNow
push str.updateie
mov dword [esp + 0x28], eax
call edi
push esi
push 0
push str.NoTip
push str.updateie
mov dword [esp + 0x24], eax
call edi
push esi
push 0
push str.Close
push str.updateie
mov dword [esp + 0x20], eax
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
cmp edx, eax
jne 0x50de59
cmp esi, eax
jne 0x50de59
mov ecx, 1
jmp 0x50de68
xor ecx, ecx
cmp edx, eax
je 0x50de68
cmp esi, eax
jne 0x50de68
mov eax, 1
mov esi, dword [esp + 0x3c]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push edi
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push ebp
push eax
push ecx
push 0
push ebx
call fcn.0050e440
push eax
call fcn.004995b0
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push str.4.0.5.2
dec edx
push str.http:__seapp.stat.360safe.com_q.html_namezdie8sever_sappver0mid_sc_d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d_0_0_0
push edx
push eax
call fcn.0042ce30
add esp, 0x58
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret 0x14
xor eax, eax
pop esi
add esp, 0x20
ret 0x14
Function at 0x50df80
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x2dc
mov eax, 0x5e6968
push ebx
push ebp
push esi
xor esi, esi
test eax, eax
push edi
je 0x50e120
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50e120
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x7e]
mov word [esp + 0x7c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xe2]
mov word [esp + 0xe0], si
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2f0]
mov dword [esp + 0x14], esi
cmp eax, esi
jle 0x50e120
mov ebp, dword [sym.imp.MSVCRT.dll_time]
mov esi, dword [sym.imp.MSVCRT.dll_gmtime]
xor ebx, ebx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
call ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
sub eax, ebx
push edx
mov dword [esp + 0x18], eax
call esi
add esp, 8
test eax, eax
je 0x50e069
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
push str._d_02d_02d
lea ecx, [esp + 0x8c]
push 0x31
push ecx
call fcn.0042ce30
add esp, 0x18
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
add eax, 0x15180
push edx
mov dword [esp + 0x14], eax
call esi
add esp, 4
test eax, eax
je 0x50e0aa
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
push str._d_02d_02d
lea ecx, [esp + 0x28]
push 0x31
push ecx
call fcn.0042ce30
add esp, 0x18
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push eax
push 0x5e6968
push str._sHistory.IE5MSHist01_s_s
lea ecx, [esp + 0xf0]
push 0x104
push ecx
call fcn.0047f320
add esp, 0x18
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50e110
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2f0]
inc eax
add ebx, 0x15180
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x50e009
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2dc
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2dc
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x50f590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x54df18
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp + 8], edi
je 0x50f6ce
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
add esp, 0x1c
test esi, esi
je 0x50f6c4
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x50f6c4
lea ecx, [esi + 1]
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 eax, dword [ebp + 8]
push eax
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x50f6b8
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10c]
push 0x104
push ecx
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.0050f450
test eax, eax
je 0x50f6b8
lea edx, [ebp - 0x10c]
test edx, edx
jne 0x50f668
xor edi, edi
jmp 0x50f6a1
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00512b50
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x10c]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
dec edx
push 0x52e450
push edx
push eax
call fcn.0047f320
add esp, 0x10
push ebx
call fcn.00512b1a
mov edi, dword [ebp + 8]
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea esp, [ebp - 0x118]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50f6f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x54df18
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x50f836
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov esi, eax
call edi
add esp, 0x1c
cmp esi, 0x1a8
jle 0x50f82c
lea edi, [esi + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp + 8], esi
je 0x50f82c
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push 1
push 0x1a8
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x50f823
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0x1a8
push esi
call fcn.0050f450
test eax, eax
je 0x50f823
lea ecx, [ebp - 0x10c]
test ecx, ecx
jne 0x50f7d0
xor edi, edi
jmp 0x50f80c
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00512b50
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
dec ecx
push 0x52e450
push ecx
push edx
call fcn.0047f320
add esp, 0x10
push esi
call fcn.00512b1a
add esp, 4
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea esp, [ebp - 0x118]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50f850
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x218
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
push str.ie8ver.dll
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x1c]
push eax
push 0x52fe38
push 0x104
push ecx
mov dword [esp + 0x24], esi
call fcn.0042ce30
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50f997
lea eax, [esp + 0x18]
push eax
call fcn.004aa540
add esp, 4
test eax, eax
je 0x50f997
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0xc], edi
je 0x50f997
push ebp
push 0x560848
push str.IE8VER.INI
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, esi
je 0x50f97f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push ebp
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov ebp, eax
je 0x50f97f
test ebp, ebp
je 0x50f97f
lea esi, [ebp + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx], edi
je 0x50f97b
mov ecx, esi
xor eax, eax
mov edx, ecx
mov esi, dword [esp + 0x18]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1f21bc
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov edi, dword [ebx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call fcn.0041c770
mov edx, dword [ebx]
lea esi, [ebx + 4]
push edx
push esi
call fcn.00493aa0
mov eax, dword [esi]
add esp, 0x14
test eax, eax
je 0x50f97b
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
Function at 0x50f9b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x624
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 4]
push edi
test ecx, ecx
je 0x50fb42
mov ebp, dword [esp + 0x63c]
mov ecx, 0x82
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x638]
push ebp
push eax
push 0x52fe38
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0042ce30
add esp, 0x14
lea edx, [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x50fb40
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x50fb40
cmp edi, 0xffffffff
je 0x50fb40
mov eax, dword [ebx + 4]
push 0
push 0x52daf0
push ebp
push eax
call fcn.004949f0
add esp, 0x10
cmp edi, eax
jne 0x50fb40
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], 0
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], ax
push 0x104
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x644]
test eax, eax
je 0x50fadc
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x220]
push ecx
push str.head
push ebp
push edx
call fcn.00494800
add esp, 0x14
lea eax, [esp + 0x428]
lea ecx, [esp + 0x10]
push 0x104
push eax
push ecx
mov ecx, ebx
call fcn.0050f6f0
jmp 0x50fb0f
mov eax, dword [ebx + 4]
lea edx, [esp + 0x220]
push edx
push 0x560868
push ebp
push eax
call fcn.00494800
add esp, 0x14
lea ecx, [esp + 0x428]
lea edx, [esp + 0x10]
push 0x104
push ecx
push edx
mov ecx, ebx
call fcn.0050f590
lea eax, [esp + 0x21c]
push 0x104
lea ecx, [esp + 0x42c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x50fb40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x624
ret 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x624
ret 0xc
Function at 0x511b98
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fe08
push 0x512bbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x511c1e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x511bf6
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x511c24
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x511bee
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x511bee
mov al, 1
jmp 0x511bf0
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x511c83
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x5f2ca4]
test esi, esi
je 0x511ca7
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x511c8b
pop esi
pop ecx
ret

Function at 0x511caa
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5f2cb0], eax
je 0x511cc0
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x5f2cc0]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x511d0d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x511cfe
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x511cfe
push eax
call fcn.00511d74
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.00512b1a
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x511ccf
mov dword [0x5f2cc0], ebx
call fcn.00511d4d
mov esi, dword [0x5f2cbc]
cmp esi, ebx
je 0x511d3a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.00512b1a
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x511d22
pop edi
mov dword [0x5f2cbc], ebx
mov dword [0x5f2cb0], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret