joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53c117
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053bf37
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x53c28f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x53c28f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x53c23e
jg 0x53c170
test eax, eax
je 0x53c234
push 1
push 0x1000
call fcn.005265ca
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x53c196
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x53c22b
push 0x8000
push ebx
call fcn.005218dd
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x53c1c2
jg 0x53c1bd
cmp ecx, 0x1000
jb 0x53c1c2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0052dcbe
add esp, 0x10
cmp eax, 0xffffffff
je 0x53c207
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x53c1bd
jl 0x53c1ee
test ecx, ecx
jne 0x53c1af
push dword [ebp - 0xc]
push ebx
call fcn.005218dd
push esi
call fcn.00523ed8
add esp, 0xc
xor edi, edi
jmp 0x53c2a0
cmp byte [edi + 0x24], 0
je 0x53c21e
cmp dword [edi + 0x20], 5
jne 0x53c21e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x53c229
mov edi, dword [edi + 0x18]
jmp 0x53c22b
xor edi, edi
push esi
call fcn.00523ed8
pop ecx
jmp 0x53c2a0
test ecx, ecx
jg 0x53c200
jl 0x53c23e
test eax, eax
jae 0x53c200
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00527eb4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x53c261
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x53c200
jmp 0x53c298
push ebx
call fcn.00531aab
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x53c200
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x53c2a0
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x53c29d
mov edi, dword [edi + 0x18]
jmp 0x53c2a0
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00527eb4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53ec50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x53ec7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53ec7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x53ffef
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
ret 0x10
Function at 0x541d52
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x20]
call fcn.00408382
push dword [edi + 0x1dc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x1d8]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x541d95
push 0xffffffffffffffff
push eax
call ebx
push dword [edi + 0x1d8]
call esi
and dword [edi + 0x1d8], 0
mov eax, dword [edi + 0x1dc]
test eax, eax
je 0x541da2
push eax
call esi
push dword [edi + 0x1e4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x1e0]
test eax, eax
je 0x541dcf
push 0xffffffffffffffff
push eax
call ebx
push dword [edi + 0x1e0]
call esi
xor ebx, ebx
mov dword [edi + 0x1e0], ebx
jmp 0x541dd1
xor ebx, ebx
mov eax, dword [edi + 0x1e4]
test eax, eax
je 0x541dde
push eax
call esi
mov eax, dword [edi + 0x1f4]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x541dfa
push eax
push dword [edi + 4]
call esi
mov dword [edi + 0x1f4], ebx
mov eax, dword [edi + 0x1e8]
test eax, eax
je 0x541e10
push eax
push dword [edi + 4]
call esi
mov dword [edi + 0x1e8], ebx
mov eax, dword [edi + 0x1c4]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [eax - 8], ebx
je 0x541e24
push eax
call esi
mov eax, dword [edi + 0x1d0]
cmp dword [eax - 8], ebx
je 0x541e32
push eax
call esi
mov ecx, edi
call fcn.00543236
mov eax, dword [edi + 0x20c]
test eax, eax
je 0x541e4a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [edi + 0xbc]
call fcn.004084fc
mov ebx, 0x6349bc
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0xa0]
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0xa4]
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0xa8]
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0xac]
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0xb0]
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0xb4]
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
mov ecx, 0x673278
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
mov ecx, 0x673298
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
mov ecx, 0x67325c
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0xb8]
call fcn.0040f513
xor ecx, ecx
xor eax, eax
cmp dword [edi + 0x1cc], ecx
mov dword [0x6727d4], ecx
sete al
push eax
push ecx
push 0x806
push dword [0x674760]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x542c3d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push dword [esi + 0x1dc]
mov dword [esi + 0x1d4], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ecx, ecx
lea eax, [ebp + 0x10]
push eax
push ecx
push esi
push 0x40b8ce
push ecx
push ecx
mov dword [ebp + 0x10], ecx
call fcn.00504891
add esp, 0x18
mov dword [esi + 0x1d8], eax
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x542c7f
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.xfy_debug_apk_install_window_begin_check.
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi + 0xbc]
call fcn.004084fc
mov ebx, 0x6349bc
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0x1c4]
call fcn.0040f513
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [edi + 0x1d0]
call fcn.0040f513
mov eax, dword [ebp + 0x10]
push dword [edi + 0x1e4]
mov dword [0x6727d0], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push edi
push 0x40b5c5
push ecx
push ecx
mov dword [ebp - 4], ecx
call fcn.00504891
add esp, 0x18
mov dword [edi + 0x1e0], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x54303c
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push 0x4c
mov eax, 0x606914
call fcn.004db4be
mov ebx, ecx
mov dword [ebp - 0x54], ebx
and dword [ebx + 0x1cc], 0
mov dword [0x6727d4], 1
call fcn.005433c5
push dword [ebx + 0x9c]
lea eax, [ebx + 4]
push dword [eax]
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_LoadBitmapW]
push 0x1ab
push dword [0x6714c8]
call esi
push 0x1ac
mov dword [ebx + 0x3c], eax
push dword [0x6714c8]
call esi
push 0xfffffffffffffff2
mov edx, 0x258
mov dword [ebx + 0x40], eax
pop ecx
call fcn.00543cc0
mov dword [ebx + 0x20c], eax
and dword [ebp - 4], 0
push 0x1ad
push dword [0x6714c8]
call esi
mov edi, eax
lea ecx, [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], edi
push eax
call fcn.0040d3bb
mov eax, dword [ebp - 0x4c]
lea esi, [ebx + 0x4c]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push ecx
push ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov eax, esp
push ecx
push 0x50018000
push ecx
push ecx
mov dword [eax], 0x1c75
lea ecx, [ebp - 0x20]
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
push dword [ebx + 4]
call fcn.0040cb4c
push 0xffffff
push ecx
push 0x1ad
mov ecx, esi
call fcn.0040f15b
push ecx
mov ecx, esi
call fcn.0040ca5d
push 5
push dword [ebx + 0x50]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x44]
push dword [eax]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x28]
mov edx, ebx
mov esi, dword [ebp - 0x20]
mov eax, ecx
sub eax, dword [ebp - 0x30]
add esi, 0xfffffff4
sub ecx, dword [ebp - 0x18]
add esi, ecx
mov dword [edx + 0x48], eax
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x20], esi
sub eax, dword [ebp - 0x48]
lea ecx, [ebx + 0x50]
cdq
sub eax, edx
mov edx, dword [ebp - 0x2c]
sar eax, 1
add edx, eax
mov eax, dword [ebp - 0x4c]
add eax, esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x48]
add eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push 0x45
push eax
push 0
call fcn.00403895
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, dword [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.00403b0a
lea eax, [ebp - 0x40]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
sub dword [ebp - 0x3c], 0x96
lea eax, [ebp - 0x40]
push 0x11
push eax
push 0
mov ecx, ebx
call fcn.00403895
push 0x635308
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x668294]
push 0xea7f
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], eax
call fcn.0041129f
mov esi, dword [ebp - 0x44]
push 0x65
push esi
push 0x2071
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x543205
call fcn.00407965
push 0xa
push 0
push 0x2072
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageW]
push str.xfy_debug_apk_install_window_do_check.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x54322c
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
call fcn.004db46d
ret 0x10
Function at 0x54586a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x6355bc
push 0x178e
push dword [0x6714c8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x545923
push edi
push dword [0x6714c8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x545923
push edi
push dword [0x6714c8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x54591c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x545915
mov eax, dword [ebp - 4]
test eax, eax
je 0x545915
push ebx
push ecx
push eax
call fcn.004dd610
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 8]
push ebx
push edi
call fcn.00545513
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x545925
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x54592c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x5c], edi
je 0x545969
call fcn.00544b03
test eax, eax
je 0x54596f
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x5450be
push edi
push edi
call fcn.00504891
add esp, 0x18
mov dword [esi + 0x78], eax
test eax, eax
je 0x545969
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
leave
ret
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x545969
mov eax, dword [ecx]
lea edx, [ebp - 8]
push edx
push ecx
call dword [eax + 0x18]
mov eax, dword [esi + 0x80]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x80]
neg eax
push edi
push eax
push dword [ebp - 8]
mov edx, dword [ecx]
push dword [ebp - 4]
push edi
push dword [esi + 0x38]
push dword [esi + 0x34]
push edi
push edi
push dword [esi + 0x60]
push ecx
call dword [edx + 0x20]
test eax, eax
jne 0x545969
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x54596b
Function at 0x5479e6
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x668294]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x2e0], eax
push esi
push 0x26
lea eax, [ebp - 0x2dc]
mov ebx, ecx
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x547a49
push 0x104
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x547a49
lea eax, [ebp - 0x2dc]
push 0x636188
push eax
call fcn.00504cbe
pop ecx
pop ecx
lea eax, [ebp - 0x2dc]
push 0x5c
push eax
call fcn.004e115a
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x2dc]
push eax
call fcn.00505bb3
add esp, 0xc
lea ecx, [ebp - 0x2dc]
push ecx
push eax
lea ecx, [ebp - 0x2e0]
call fcn.0040f513
mov edi, 0xc8
lea eax, [ebp - 0xd4]
push edi
push esi
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0xd4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edx, [ebp - 0xd0]
movzx ecx, word [edx - 4]
mov word [ebp - 0xc], cx
mov eax, ecx
mov dword [ebp - 0x2e4], eax
movzx eax, word [edx - 2]
mov word [ebp - 0xa], ax
test cx, cx
jne 0x547acb
test ax, ax
je 0x547aea
cmp esi, 1
je 0x547adb
add edx, 8
inc esi
cmp esi, 2
jl 0x547aa9
jmp 0x547aea
mov ax, word [edx]
mov word [ebp - 8], ax
mov ax, word [edx + 2]
mov word [ebp - 6], ax
mov esi, dword [ebp - 0x2e0]
add ebx, 0x704
cmp word [ebp - 0x2e4], 0
je 0x547b51
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x547b51
push str.TTPmusic_
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.0040d2ee
mov edx, eax
lea ecx, [ebp - 0x2e4]
call fcn.0040ce1d
push eax
mov ecx, ebx
call fcn.0040d242
mov ecx, dword [ebp - 0x2e4]
mov edi, 0x668010
add ecx, 0xfffffff4
cmp ecx, edi
je 0x547b8c
call fcn.00407965
jmp 0x547b8c
mov eax, dword [0x668294]
mov edi, str.TTPmusic_
push edi
mov dword [ebp - 0x2e0], eax
call fcn.00505bb3
pop ecx
push edi
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x2e0]
call fcn.0040f4c7
lea eax, [ebp - 0x2e0]
mov ecx, ebx
push eax
call fcn.0040d242
mov edi, 0x668010
mov ecx, dword [ebp - 0x2e0]
add ecx, 0xfffffff4
cmp ecx, edi
je 0x547b9e
call fcn.00407965
lea ecx, [esi - 0xc]
cmp ecx, edi
pop edi
pop esi
pop ebx
je 0x547bad
call fcn.00407965
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da623
leave
ret
Function at 0x547bd8
Capabilities:
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x547c82
xor eax, eax
cmp word [esi], ax
je 0x547c82
push ebx
push edi
push 0x5c
pop ebx
push ebx
push esi
call fcn.004e115a
pop ecx
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x547c43
movzx eax, word [esi + 2]
cmp eax, 0x3a
jne 0x547c19
cmp word [esi + 4], bx
je 0x547c35
cmp word [esi], bx
jne 0x547c43
cmp ax, bx
jne 0x547c43
lea eax, [edi + 4]
push ebx
push eax
call fcn.004e115a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x547c4c
lea eax, [edi + 2]
push ebx
push eax
call fcn.004e115a
pop ecx
pop ecx
mov edi, eax
test edi, edi
je 0x547c4c
xor eax, eax
mov word [edi], ax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x547c69
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test edi, edi
je 0x547c74
mov word [edi], bx
test eax, eax
jne 0x547c35
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop ebx
and eax, 0x10
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x547c86
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ecx, ecx
je 0x547ca3
cmp word [ecx], 0
je 0x547ca3
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x547ca3
shr eax, 4
and eax, 1
ret
xor eax, eax
ret
Function at 0x548993
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
push 5
push dword [edi + 0x1d0]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x1e0]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea ecx, [edi + 0x143c]
call fcn.004164d3
push 0
lea ecx, [edi + 0x1498]
call fcn.004164d3
push 1
lea ecx, [edi + 0x13e0]
call fcn.0041650a
and dword [edi + 0x1a8], 0
xor eax, eax
pop edi
ret 0x10

Function at 0x549417
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
push 0
push dword [edi + 0x1d0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.00418414
push 5
push dword [edi + 0x1d0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
push 0x901
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ecx
pop ebp
ret 8

Function at 0x5498a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x668294]
push edi
mov edi, dword [0x6714c8]
push 0x17
push str.BROWSER_DEF.HTM
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x5498ef
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.0040d36e
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
jmp 0x54999a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5498d3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5498d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x5498d3
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov eax, dword [0x668294]
mov dword [ebp - 8], eax
lea eax, [esi + 1]
push eax
call fcn.0040cccd
mov ebx, 0x668010
test eax, eax
je 0x549975
push esi
push edi
push eax
call fcn.004dd610
add esp, 0xc
lea ecx, [ebp - 8]
push esi
call fcn.0040cc99
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push 0xffffffffffffffff
mov edx, esi
call fcn.00413747
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.0040d242
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x549978
call fcn.00407965
jmp 0x549978
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.0040d36e
lea ecx, [esi - 0xc]
cmp ecx, ebx
je 0x549992
call fcn.00407965
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5499a1
call fcn.00407965
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x54a01c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 8], ecx
lea eax, [esi + edi]
mov dword [ebp - 0x14], eax
cmp esi, eax
jge 0x54a0a7
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add edx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
cmp ecx, edx
jge 0x54a09c
cmp ebx, edi
mov ecx, edi
mov edi, dword [ebp + 0x10]
cmovl ecx, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x24], edi
mov eax, edi
push 0xcc0020
push dword [ebp + 0x1c]
cmovl eax, dword [ebp + 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push ecx
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
add ebx, dword [ebp + 0x24]
sub edi, dword [ebp + 0x24]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ebx, edx
jl 0x54a05c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add esi, ebx
sub edi, ebx
mov dword [ebp + 0xc], edi
cmp esi, eax
jl 0x54a045
pop edi
pop esi
pop ebx
leave
ret
Function at 0x54c850
Capabilities:
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x54c8fa
xor eax, eax
cmp word [esi], ax
je 0x54c8fa
push ebx
push edi
push 0x5c
pop ebx
push ebx
push esi
call fcn.004e115a
pop ecx
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x54c8bb
movzx eax, word [esi + 2]
cmp eax, 0x3a
jne 0x54c891
cmp word [esi + 4], bx
je 0x54c8ad
cmp word [esi], bx
jne 0x54c8bb
cmp ax, bx
jne 0x54c8bb
lea eax, [edi + 4]
push ebx
push eax
call fcn.004e115a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x54c8c4
lea eax, [edi + 2]
push ebx
push eax
call fcn.004e115a
pop ecx
pop ecx
mov edi, eax
test edi, edi
je 0x54c8c4
xor eax, eax
mov word [edi], ax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x54c8e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test edi, edi
je 0x54c8ec
mov word [edi], bx
test eax, eax
jne 0x54c8ad
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop ebx
and eax, 0x10
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x54d6a0
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x54d6cf
xor eax, eax
jmp 0x54d7cc
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x54d7c2
cmp eax, 0x40
jbe 0x54d7c2
push edi
push eax
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x54d7c2
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x54d72a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x54d7c9
mov eax, 0x5a4d
mov dword [ebp - 0x10], edi
cmp word [edi], ax
je 0x54d740
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x54d719
and dword [ebp - 4], 0
lea eax, [edi + 0x3c]
add edi, dword [eax]
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push edi
push eax
call fcn.004dd610
add esp, 0xc
cmp dword [ebp - 4], 0x4550
jne 0x54d737
movzx eax, word [edi + 6]
mov edx, dword [ebp - 8]
sub edx, dword [edi + 0x9c]
imul eax, eax, 0x28
sub edx, eax
lea esi, [eax + 0xf8]
mov eax, dword [ebp - 0xc]
add esi, edi
mov ecx, esi
sub edx, dword [eax]
sub edx, 0xf8
call fcn.0054d7d0
mov edi, eax
mov eax, dword [ebp - 0x10]
push esi
movzx ecx, word [eax + 0x22]
movzx eax, word [eax + 0x20]
shl ecx, 0x10
or ecx, eax
sub edi, ecx
neg edi
sbb edi, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea eax, [edi + 1]
jmp 0x54d7cb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret