joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a350
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3f8
test eax, eax
jne 0x42a4db
mov eax, dword [esp + 0x3fc]
mov dword [esp], 1
test eax, eax
jne 0x42a4db
push ebx
push ebp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4d6c1c
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a3c9
push 0x4d6c1c
call fcn.0040f890
add esp, 4
test eax, eax
je 0x42a3c9
push 0x4d6c1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42a3c9
push str._SbieApi_QueryProcess_20
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov dx, word [0x4d6e34]
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
mov word [esp + 0x5c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x2f
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x11c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x2f
xor eax, eax
lea edi, [esp + 0x11e]
push 0
rep stosd dword es:[edi], eax
push 2
mov dword [esp + 0x1c], 0
stosw word es:[edi], ax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42a4c4
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x1e0]
mov dword [esp + 0x1dc], 0x22c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1dc]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42a4bd
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42a4bd
lea ecx, [esp + 0x200]
push 0x4634e0
push ecx
call edi
test eax, eax
je 0x42a4ab
test ebp, ebp
je 0x42a4ab
lea edx, [esp + 0x14]
lea eax, [esp + 0x11c]
push edx
lea ecx, [esp + 0x60]
push eax
mov eax, dword [esp + 0x1ec]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call ebp
test eax, eax
jne 0x42a4ab
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x1dc]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42a463
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
test ebx, ebx
je 0x42a4d1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
pop ebp
test eax, eax
pop ebx
je 0x42a4e3
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
add esp, 0x3f8
ret
Function at 0x42b6a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x82c
mov ax, word [0x4d6e34]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x1c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
stosw word es:[edi], ax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push str.Path
mov ebx, 1
mov edi, 0x103
push str.SOFTWAREClassesCLSID98E6BD24_2D93_41A5_BC6D_CB7C1507318B
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x42b8e9
xor ebp, ebp
cmp word [esp + 0x1c], bp
je 0x42b8e9
call fcn.0042aee0
mov dword [esp + 0x14], edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push str.ImagePath
push str.SYSTEMCurrentControlSetServicesSbieSvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
call esi
test eax, eax
jne 0x42b8e9
cmp word [esp + 0x1c], bp
je 0x42b8e9
mov cx, word [0x4d6e34]
lea edi, [esp + 0x42e]
mov word [esp + 0x42c], cx
mov ecx, 0x81
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x42c]
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [esp + 0x42c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebp
je 0x42b7af
mov word [eax], bp
lea edx, [esp + 0x42c]
push 0x4d6604
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x42b8e9
mov ax, word [0x4d6e34]
mov ecx, 0x81
mov word [esp + 0x224], ax
xor eax, eax
lea edi, [esp + 0x226]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
push str.Start.exe
push 0x4d6604
push 0x465844
lea ecx, [esp + 0x230]
push 0x103
push ecx
stosw word es:[edi], ax
call esi
lea edx, [esp + 0x238]
push ebp
push edx
call fcn.0040ef80
add esp, 0x1c
test eax, eax
je 0x42b8e9
mov ax, word [0x4d6e34]
mov ecx, 0x81
mov word [esp + 0x634], ax
xor eax, eax
lea edi, [esp + 0x636]
push 0x4d6604
rep stosd dword es:[edi], eax
push str._sInstall360sandbox.exe
lea ecx, [esp + 0x63c]
push 0x103
push ecx
stosw word es:[edi], ax
call esi
lea edx, [esp + 0x20]
lea eax, [esp + 0x234]
push edx
push eax
xor edi, edi
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x28], ebp
call fcn.0040f150
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
je 0x42b890
mov edi, dword [eax + 8]
mov ebp, dword [eax + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x634]
push ecx
push edx
call fcn.0040f150
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x42b8b3
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, esi
mov ecx, edi
shr eax, 0x10
shr ecx, 0x10
cmp ecx, eax
jb 0x42b8e9
cmp di, si
jb 0x42b8e9
mov edx, ebx
mov eax, ebp
shr edx, 0x10
shr eax, 0x10
cmp eax, edx
jb 0x42b8e9
cmp bp, bx
jb 0x42b8e9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x82c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x82c
ret
Function at 0x42c820
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x824
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
lea ecx, [esp + 0x10]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], eax
push edi
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
xor ebx, ebx
mov dword [esp + 0x1c], eax
push ecx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
call edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x50]
mov ebp, dword [esp + 0x14]
push 0xcc0020
sub ecx, edx
mov edx, dword [esp + 0x20]
push ebx
push ebx
push eax
sub edx, ebp
mov ebp, dword [esp + 0x848]
push ecx
push edx
push ebx
push ebx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
fld dword [esi + 0x5c]
fmul dword [0x4562f4]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], bl
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x13], bl
sub ecx, edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esi + 0x48]
push eax
push ecx
push ebx
push ebx
push edx
push eax
push ecx
push ebx
push ebx
push ebp
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push ecx
call edi
mov edx, dword [esi + 0x60]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], bx
push edx
rep stosd dword es:[edi], eax
push ebp
stosw word es:[edi], ax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x34]
push 0x400
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x42c9aa
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 4]
push ebx
push ebx
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
mov edi, 1
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 3
je 0x42c94d
jmp 0x42c960
test ah, 1
je 0x42c956
xor edi, edi
jmp 0x42c960
test ah, 2
je 0x42c960
mov edi, 2
mov ecx, dword [esi + 0x40]
and ecx, 4
cmp cl, 4
jne 0x42c97a
push 1
lea edx, [esp + 0x28]
push 1
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x64]
mov edx, dword [esp + 0x28]
sub edx, eax
or edi, 0x24
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], edx
push edi
push ecx
lea edx, [esp + 0x3c]
push 0xffffffffffffffff
push edx
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x10]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x824
ret 4
Function at 0x42c9c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x814
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x60]
mov ebx, dword [esp + 0x824]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], 0
rep stosd dword es:[edi], eax
push edx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x20]
push 0x400
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x42cab8
push ebp
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 4]
push 0
push 0
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
mov edi, 1
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 3
je 0x42ca5e
jmp 0x42ca71
test ah, 1
je 0x42ca67
xor edi, edi
jmp 0x42ca71
test ah, 2
je 0x42ca71
mov edi, 2
mov ecx, dword [esi + 0x40]
and ecx, 4
cmp cl, 4
jne 0x42ca8b
push 1
lea edx, [esp + 0x18]
push 1
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x64]
mov esi, dword [esp + 0x18]
or edi, 0x24
lea ecx, [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x2c]
push 0xffffffffffffffff
sub esi, eax
push edx
push ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x10]
push eax
push ebx
call ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x814
ret 4
Function at 0x42e500
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp + 8]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x80]
cmp eax, 0xffffffff
jne 0x42e538
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esi + 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 4]
mov dword [ebp - 4], eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x42e5c4
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
add eax, 3
and al, 0xfc
call fcn.004473e0
mov eax, esp
push ebx
mov dword [ebp + 8], eax
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x42e5c4
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor ecx, ecx
test al, 1
je 0x42e59a
mov ecx, 1
jmp 0x42e5a3
test al, 2
je 0x42e5a3
mov ecx, 2
test al, 0xb
je 0x42e5ac
mov ecx, 0x24
mov eax, dword [ebp + 8]
or ecx, 0x210
lea edx, [ebp - 0x14]
push ecx
push edx
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 4]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42e9a0
Capabilities:
Read .ini file

Disassembly:
add ecx, 8
push ecx
push 0
push 0x468870
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret

Function at 0x42e9c0
Capabilities:
Read .ini file

Disassembly:
add ecx, 8
push ecx
push 0
push 0x468878
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret

Function at 0x42eb90
Capabilities:
Check os version

Disassembly:
sub esp, 0x31c
lea eax, [esp]
push esi
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 2
mov dword [0x4dc320], ecx
mov dword [0x4dc32c], ecx
mov dword [0x4dc324], ecx
mov dword [0x4dc328], ecx
mov esi, 1
jne 0x42ec10
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x42ebf7
mov eax, dword [esp + 0xc]
cmp eax, ecx
jne 0x42ebeb
mov dword [0x4dc32c], esi
jmp 0x42ec1a
cmp eax, esi
jne 0x42ec1a
mov dword [0x4dc324], esi
jmp 0x42ec1a
cmp eax, 6
jne 0x42ec1a
mov eax, dword [esp + 0xc]
cmp eax, ecx
je 0x42ec08
cmp eax, esi
jne 0x42ec1a
mov dword [0x4dc328], esi
jmp 0x42ec1a
cmp eax, esi
jne 0x42ec1a
mov dword [0x4dc320], esi
mov cx, word [0x4d6e34]
push edi
mov word [esp + 0x11c], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11e]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x11c]
push 0x103
push edx
stosw word es:[edi], ax
call fcn.0042f240
mov ax, word [esp + 0x124]
add esp, 8
cmp ax, 0x37
pop edi
jne 0x42ec6e
mov dword [0x4dc330], esi
pop esi
add esp, 0x31c
ret
cmp ax, 0x36
jne 0x42ec82
mov dword [0x4dc334], esi
pop esi
add esp, 0x31c
ret
cmp ax, 0x38
jne 0x42ec8e
mov dword [0x4dc338], esi
pop esi
add esp, 0x31c
ret
Function at 0x42eca0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x10]
mov eax, 2
cmp ecx, eax
jne 0x42ecdf
cmp dword [esp + 4], 5
jne 0x42ecdf
cmp dword [esp + 8], eax
jne 0x42ecdf
mov eax, 1
add esp, 0x114
ret
xor eax, eax
add esp, 0x114
ret

Function at 0x42ecf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x42ed2b
cmp dword [esp + 4], 6
jne 0x42ed2b
mov eax, dword [esp + 8]
test eax, eax
jne 0x42ed2b
mov eax, 1
add esp, 0x114
ret
xor eax, eax
add esp, 0x114
ret

Function at 0x42ed40
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
test eax, eax
jne 0x42ed74
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x42ed5d
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x42ed74
cmp eax, 0x20
je 0x42ed74
mov eax, 1
pop esi
ret
mov eax, dword [0x4dc320]
test eax, eax
je 0x42ed91
push 0
push esi
call fcn.0042edb0
add esp, 8
neg eax
sbb eax, eax
pop esi
neg eax
inc eax
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, 2
pop esi
ret

Function at 0x42efb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push 0x207
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x42f039
cmp eax, 0x207
ja 0x42f039
lea ecx, [esp]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp word [esp + eax*2 - 2], 0x5c
je 0x42effa
lea edx, [esp]
push 0x463600
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x214]
lea eax, [esp + 8]
push str.wininit.ini
push eax
push 0x4634d4
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov word [edi + esi*2 - 2], 0
mov eax, 1
pop edi
pop esi
add esp, 0x208
ret
xor eax, eax
add esp, 0x208
ret
Function at 0x42f050
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x870
mov ax, word [0x4d6e34]
push ebx
push ebp
mov ebp, dword [esp + 0x87c]
push edi
mov word [esp + 0x264], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
push 0x468960
push ebp
push 0x4634d4
lea ecx, [esp + 0x270]
push 0x103
push ecx
mov dword [esp + 0x20], 1
stosw word es:[edi], ax
call ebx
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x42f0d3
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x870
ret
push esi
mov esi, dword [esp + 0x888]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x44]
push 0x464fd4
push ecx
call edi
add esp, 8
test eax, eax
je 0x42f1bc
lea edx, [esp + 0x44]
push 0x4638d4
push edx
call edi
add esp, 8
test eax, eax
je 0x42f1bc
test byte [esp + 0x18], 0x10
je 0x42f163
mov ax, word [0x4d6e34]
mov ecx, 0x81
mov word [esp + 0x678], ax
xor eax, eax
lea edi, [esp + 0x67a]
lea edx, [esp + 0x678]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
push ecx
push ebp
push str._s_s_
push 0x103
push edx
stosw word es:[edi], ax
call ebx
lea eax, [esp + 0x68c]
push esi
push eax
call fcn.0042f050
add esp, 0x1c
jmp 0x42f1b8
mov cx, word [0x4d6e34]
xor eax, eax
mov word [esp + 0x470], cx
mov ecx, 0x81
lea edi, [esp + 0x472]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
push edx
push ebp
stosw word es:[edi], ax
push 0x4634d4
lea eax, [esp + 0x47c]
push 0x103
push eax
call ebx
add esp, 0x14
test esi, esi
je 0x42f1aa
cmp esi, 1
jne 0x42f1bc
lea ecx, [esp + 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42f0db
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x42f1e8
cmp esi, 2
jne 0x42f1fa
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x870
ret
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x870
ret

Function at 0x42f210
Capabilities:
Get common file path
Get program files directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0x26
push esi
push 0
mov word [esi], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
pop esi
ret
Function at 0x42f440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push edi
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
and esi, 0xffff
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call sub.gdiplus.dll_GdiplusStartup
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x42f542
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x42f542
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x42f542
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x42f542
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
push ecx
push ebx
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x42f542
mov edx, dword [esp + 0x34]
push ebx
push edx
call fcn.0042f570
mov esi, eax
mov eax, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
je 0x42f542
mov eax, dword [esi + 8]
mov dword [esi + 8], ebx
cmp eax, ebx
jne 0x42f53a
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, ebx
je 0x42f53a
mov dword [esi + 8], eax
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x18]
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x42f55f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 4]
add esp, 0x1c
ret
Function at 0x430850
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10000
call fcn.004473e0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push 0x4dc968
call esi
test eax, eax
jne 0x430886
push str.OnlineFav.log
push 0x468a8c
push 0x104
push 0x4dc968
call fcn.0044931e
push 0x4dc968
call esi
test eax, eax
jne 0x43089a
pop edi
pop esi
add esp, 0x10000
ret
mov al, byte [0x4d6e30]
mov ecx, 0x3fff
mov byte [esp + 8], al
xor eax, eax
lea edi, [esp + 9]
mov edx, dword [esp + 0x1000c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10010]
stosw word es:[edi], ax
push ecx
push edx
lea eax, [esp + 0x10]
push 0xffff
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov edi, dword [sym.imp.MSVCRT.dll__wfopen]
push 0x468a88
push 0x4dc968
call edi
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4308f6
pop edi
pop esi
add esp, 0x10000
ret
mov ecx, dword [esi + 0x10]
push ebx
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
push esi
mov ebx, eax
call ebp
add esp, 8
cmp ebx, 0x300000
jle 0x430931
push 0x4675a0
push 0x4dc968
call edi
add esp, 8
test eax, eax
je 0x430931
push eax
call ebp
add esp, 4
push 0x465010
push 0x4dc968
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x430969
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call ebp
add esp, 0x14
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x10000
ret

Function at 0x431130
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x431265
mov eax, dword [esp + 0x18]
test eax, eax
je 0x431265
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x431265
cmp word [eax], 0
je 0x431265
push 0x465008
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x431265
mov eax, dword [0x4dc754]
mov ebp, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x402
push eax
mov dword [0x4dc75c], 0
call ebp
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__filelength]
mov edi, eax
add esp, 4
test edi, edi
je 0x43125b
cmp edi, 0x19000
jg 0x43125b
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov ebx, eax
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x18
push 0
push 0x4310c0
push 0x468bb0
call fcn.00449464
mov esi, eax
test esi, esi
jne 0x431204
push ebx
call fcn.0044737a
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x18]
push edx
push 0x468bac
push esi
call fcn.004494d1
push edi
push ebx
push str.confdata
push esi
call fcn.004494e9
push ebx
call fcn.0044737a
mov eax, dword [0x4dc754]
add esp, 4
mov dword [0x4dc75c], 1
push 0
push 1
push 0x402
push eax
call ebp
push esi
call fcn.00449505
push esi
call fcn.00449519
mov eax, dword [0x4dc75c]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret