joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4010a7
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x401099
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401095
cmp edi, eax
jae 0x401099
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401087
cmp edi, eax
jb 0x40109d
xor eax, eax
jmp 0x4010a6
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x403d3a
Capabilities:
Enumerate gui resources

Disassembly:
push 0x38
mov eax, 0x44fe53
call fcn.0044831c
and dword [ebp - 0x18], 0
mov eax, dword [0x46f990]
mov esi, 0x46f990
push 0x800
mov ecx, esi
call dword [eax]
call fcn.0041a807
mov byte [ebp - 0x11], al
push str.PartnerSignature
lea eax, [ebp - 0x1c]
push eax
call fcn.00401415
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
mov ebx, eax
call fcn.00413c05
mov byte [ebp - 4], 1
mov eax, dword [eax]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
setne byte [ebp - 0x12]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401452
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401452
mov eax, esi
lea edi, [ebp - 0x44]
call fcn.00418fcb
mov dword [ebp - 4], 2
push dword [ebp + 8]
mov eax, edi
push eax
call fcn.00419020
test al, al
jne 0x403de7
cmp byte [ebp - 0x11], bl
jne 0x403de7
cmp byte [ebp - 0x12], bl
je 0x403de7
mov byte [ebp - 0x11], bl
jmp 0x403f18
push str.PartnerHWND.Kind
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x11], 1
call fcn.00401415
mov byte [ebp - 4], 3
push str.ByClass
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 1
call fcn.00401415
push 4
pop edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
mov dword [ebp - 0x18], 3
call dword [eax]
mov ebx, eax
call fcn.00413c05
mov dword [ebp - 4], 5
push 7
pop ebx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ebx
call fcn.0040fb84
test eax, eax
je 0x403e5d
cmp byte [ebp - 0x12], 0
mov byte [ebp - 0x12], 0
jne 0x403e61
mov byte [ebp - 0x12], 1
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ebx
and dword [ebp - 0x18], 0xfffffffb
lea ecx, [ebp - 0x24]
call fcn.00401452
mov dword [ebp - 4], 3
push 2
pop ebx
test byte [ebp - 0x18], bl
je 0x403e8e
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp - 0x1c]
call fcn.00401452
mov dword [ebp - 4], ebx
test byte [ebp - 0x18], 1
je 0x403ea3
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x20]
call fcn.00401452
cmp byte [ebp - 0x12], 0
je 0x403ed2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 0x4194ae
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x28]
test eax, eax
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
mov dword [0x46fbe0], eax
je 0x403f18
push str.hwnd_TAG
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xb], 0
call fcn.00401415
mov byte [ebp - 4], 6
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
lea ecx, [ebp + 0xb]
mov edx, eax
call fcn.00413dc8
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401452
cmp byte [ebp + 0xb], 0
je 0x403f18
mov dword [0x46fbe0], esi
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x44]
call fcn.00419000
mov al, byte [ebp - 0x11]
call fcn.004483f4
ret 4
Function at 0x406310
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x44dfdb
call fcn.0044831c
mov edi, ecx
push str.InstallerUI.Kind
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0xd], 0
call fcn.00401415
and dword [ebp - 4], 0
push str.CenterParent
lea eax, [ebp - 0x14]
push eax
call fcn.00401415
mov byte [ebp - 4], 1
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ebx, eax
call fcn.00413c05
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.0040fb84
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401452
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401452
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401452
movzx eax, bl
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
push 0x12c
mov dword [edi + 0x34], eax
lea eax, [edi + 0x6c]
call fcn.0040aba9
push 0x12e
lea eax, [edi + 0x74]
call fcn.0040aba9
call fcn.00406034
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [edi + 0x80], eax
cmp eax, esi
je 0x406414
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0x4067bb
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push dword [edi + 0x80]
mov dword [edi + 0x7c], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [edi + 0x80]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 0x80], esi
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
call fcn.004483f4
ret 4

Function at 0x4071f8
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
push esi
mov esi, eax
push edi
lea eax, [ebp - 8]
push eax
call ebx
lea eax, [ebp - 8]
push eax
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 4]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push dword [ebp - 8]
lea eax, [esi + 0x98]
push eax
call edi
test eax, eax
je 0x407245
cmp byte [esi + 0xfa], 0
je 0x4072a1
call fcn.004068a3
jmp 0x4072ba
cmp byte [esi + 0xfa], 0
je 0x4072a1
cmp byte [esi + 0x92], 0
je 0x407273
push dword [ebp - 4]
lea eax, [esi + 0xb8]
push dword [ebp - 8]
push eax
call edi
test eax, eax
je 0x407273
mov eax, esi
call fcn.00406967
jmp 0x4072ba
cmp byte [esi + 0xfa], 0
je 0x4072a1
cmp byte [esi + 0x92], 0
jne 0x4072a1
push dword [ebp - 4]
lea eax, [esi + 0xa8]
push dword [ebp - 8]
push eax
call edi
test eax, eax
je 0x4072a1
mov eax, esi
call fcn.0040693f
jmp 0x4072ba
push dword [esi + 0x68]
call dword [sym.imp.USER32.dll_SetCapture]
mov byte [esi + 0x90], 1
add esi, 0x88
push esi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40920e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x940
mov eax, 0x44b695
call fcn.00448385
mov ebx, ecx
push ebx
lea eax, [ebp - 0x948]
mov esi, edx
push eax
mov dword [ebp - 0x944], esi
call fcn.00401415
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x948]
cmp dword [eax - 0xc], 4
jne 0x4093b8
test esi, 0xffff0000
jne 0x4093b8
push 0x64
pop eax
cmp ax, si
ja 0x4093b8
add eax, 0x64
cmp si, ax
jae 0x4093b8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
cmp esi, edi
setne byte [ebp - 0x93d]
cmp byte [ebp - 0x93d], 0
je 0x40939b
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
cmp ebx, edi
setne byte [ebp - 0x93d]
cmp byte [ebp - 0x93d], 0
je 0x40939b
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x4093b8
cmp esi, 0x12
jbe 0x4093b8
lea edi, [ebp - 0x528]
mov byte [ebp - 0x93d], 1
call fcn.00408653
lea edi, [ebp - 0x93c]
mov byte [ebp - 4], 1
call fcn.00408653
lea eax, [ebp - 0x948]
mov edi, 0x46fbec
mov byte [ebp - 4], 2
call fcn.0040488e
mov ax, word [ebp - 0x944]
mov word [0x46f938], ax
add ebx, 2
lea eax, [ebx + 0x10]
lea edi, [esi - 0x12]
mov dword [ebp - 0x94c], eax
lea eax, [edi + 1]
push eax
mov esi, 0x46fbe8
call fcn.00404818
push 0x10
push ebx
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x944], eax
call fcn.0041b77f
push dword [ebp - 0x944]
mov ecx, dword [ebp - 0x94c]
mov edx, edi
lea eax, [ebp - 0x114]
call fcn.0041b7df
mov eax, edi
call fcn.0040a178
mov byte [ebp - 4], 1
mov edi, vtable.appenv::CByteBuffer.0
lea esi, [ebp - 0x938]
mov dword [ebp - 0x93c], edi
call fcn.0040a26e
mov byte [ebp - 4], 0
lea esi, [ebp - 0x524]
mov dword [ebp - 0x528], edi
call fcn.0040a26e
cmp byte [ebp - 0x93d], 0
sete bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x948]
add eax, 0xfffffff0
call fcn.0040114e
mov al, bl
call fcn.00448408
ret
mov byte [ebp - 0x93d], 0
jmp 0x409394
Function at 0x40aba9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
lea esi, [eax + 4]
push edi
mov byte [ebp - 1], bl
cmp dword [esi], ebx
je 0x40abcc
mov eax, dword [esi]
cmp eax, ebx
je 0x40abcc
mov dword [esi], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
movzx eax, word [ebp + 8]
push 0x454de4
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40ac7e
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x40ac7e
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
call fcn.00436580
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
lea eax, [ebp - 8]
push eax
push 1
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40ac6a
push esi
push 0x451640
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
js 0x40ac6a
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40ac7e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b87e
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x44dde7
call fcn.0044831c
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x453f00
mov dword [ebp - 0x20], ebx
push dword [ebp + 0xc]
call fcn.00401415
xor esi, esi
push str.appb
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x20], esi
call fcn.00401415
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0042a22c
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040114e
push 0x455810
lea eax, [ebp - 0x10]
push eax
call fcn.00401415
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
mov esi, dword [ebp + 8]
push eax
call fcn.0040ad9f
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040114e
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x40ba18
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ebx
je 0x40ba18
push eax
lea eax, [ebp + 8]
push eax
call fcn.00401415
mov byte [ebp - 4], 8
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.00401415
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040cbb2
mov byte [ebp - 4], 0xb
push 0x455860
push dword [ebp - 0x10]
call fcn.0043698f
pop ecx
pop ecx
cmp eax, ebx
je 0x40b972
sub eax, dword [ebp - 0x10]
sar eax, 1
js 0x40b972
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.0040488e
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x40b9eb
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
call edi
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
lea esi, [ebp + 8]
call fcn.0040151c
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
or eax, 0xffffffff
call fcn.0040cb79
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
cmp eax, ebx
jne 0x40b9b1
push 4
pop eax
jmp 0x40b9b8
push eax
call fcn.004355a2
pop ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 0xc]
add eax, ecx
push eax
lea esi, [ebp + 8]
call fcn.0040151c
push dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
or eax, 0xffffffff
call fcn.0040cb79
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
call fcn.0040145c
push dword [esi]
call edi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040114e
mov eax, dword [ebp + 0xc]
call fcn.004483f4
ret 0xc
Function at 0x40c700
Capabilities:
Enumerate processes

Disassembly:
push 0x24c
mov eax, 0x44b577
call fcn.00448385
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x258], eax
mov esi, edx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 0x3e8
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
jne 0x40c75e
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x1c]
jmp 0x40c8ac
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x250], eax
and dword [ebp - 4], 0
mov ebx, 0x22c
push ebx
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00435b70
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x40c88e
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
je 0x40c88e
mov eax, dword [ebp - 0x24c]
cmp dword [ebp - 0x234], eax
je 0x40c7b0
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00435ad6
pop ecx
pop ecx
test eax, eax
jne 0x40c7fb
lea eax, [ebp - 0x218]
jmp 0x40c7fe
add eax, 2
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00401415
mov eax, dword [ebp - 0x258]
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push 1
push dword [ebp - 0x248]
call fcn.0042f632
mov byte [ebp - 0x23d], al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x248]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040114e
cmp byte [ebp - 0x23d], 0
je 0x40c7b0
mov edi, dword [esi + 4]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x254], eax
cmp edi, dword [esi + 8]
jb 0x40c86b
lea eax, [edi + 1]
call fcn.0040ccc3
test al, al
je 0x40c884
mov eax, dword [esi]
lea edi, [eax + edi*4]
test edi, edi
je 0x40c87c
mov eax, dword [ebp - 0x254]
mov dword [edi], eax
inc dword [esi + 4]
jmp 0x40c7b0
push 0x8007000e
call fcn.00401000
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x250]
add eax, 0xfffffff0
call fcn.0040114e
call fcn.00448408
ret 4
Function at 0x40e9c3
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x18
mov eax, 0x44c6b4
call fcn.0044831c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
mov edi, section..data
mov ecx, edi
call fcn.00401577
mov dword [ebp - 4], ebx
movzx eax, word [ebp + 0xc]
push 0x455e94
push eax
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40eb55
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x40eb55
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x40eb55
mov eax, dword [section..data]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, 0x104
push edi
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0040151c
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
or eax, 0xffffffff
call fcn.0040cb79
push dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
call fcn.00401415
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [ebp + 0xc]
call fcn.0040fc8d
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eaa5
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push 2
push 2
push 0x40000000
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
lea esi, [ebp - 0x24]
call fcn.0040cde0
cmp eax, ebx
jl 0x40eb23
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
call fcn.0040ce2e
cmp eax, ebx
jl 0x40eb12
cmp dword [ebp + 0x10], esi
jne 0x40eb12
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040167a
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 6
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
call fcn.0040488e
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.0040114e
cmp dword [ebp - 0x24], ebx
je 0x40eb23
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], ebx
je 0x40eb38
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040114e
mov eax, dword [ebp + 8]
call fcn.004483f4
ret 0xc
Function at 0x40eb60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
xor ebx, ebx
call fcn.00435b70
xor eax, eax
mov dword [ebp - 0x58], edi
push 0x10
mov word [ebp - 0x28], ax
xor edi, edi
lea eax, [ebp - 0x10]
push esi
inc edi
push eax
mov dword [ebp - 0x2c], edi
call fcn.00435b70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0x18
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x40ebe2
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x40ebe2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ebx, edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x10], esi
je 0x40ebf2
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0xc], esi
je 0x40ebfc
push dword [ebp - 0xc]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x40ff77
Capabilities:
Terminate thread

Disassembly:
push 4
mov eax, 0x449703
call fcn.0044831c
mov esi, dword [ebp + 8]
mov dword [esi], vtable.appenv::UIManager.0
mov dword [ebp - 4], 8
mov eax, dword [esi + 0x38]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x40ffb2
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi + 0x38]
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x6c]
cmp eax, ebx
je 0x40ffbf
push eax
call edi
mov dword [esi + 0x6c], ebx
mov eax, dword [esi + 0x70]
cmp eax, ebx
je 0x40ffcc
push eax
call edi
mov dword [esi + 0x70], ebx
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x40ffdf
push eax
call edi
and dword [esi + 0xa8], ebx
mov byte [ebp - 4], 7
lea eax, [esi + 0xac]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 7
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040114e
mov byte [ebp - 4], 6
lea eax, [esi + 0x74]
push eax
call fcn.0041230f
mov byte [ebp - 4], 5
lea ecx, [esi + 0x64]
call fcn.00401452
mov byte [ebp - 4], 4
lea ecx, [esi + 0x4c]
call fcn.00401452
mov byte [ebp - 4], 3
lea ecx, [esi + 0x48]
call fcn.00401452
mov byte [ebp - 4], 2
lea ecx, [esi + 0x44]
call fcn.00401452
mov byte [ebp - 4], 1
lea ecx, [esi + 0x40]
call fcn.00401452
mov byte [ebp - 4], 0
lea ecx, [esi + 4]
call fcn.0042684b
or dword [ebp - 4], 0xffffffff
mov dword [esi], vtable.appenv::HTMLWindowObserver.0
call fcn.004483f4
ret 4
Function at 0x4109a5
Capabilities:
Create thread

Disassembly:
push 0x4c
mov eax, 0x44d71c
call fcn.0044831c
mov ebx, ecx
xor edi, edi
lea esi, [ebx + 0x64]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call fcn.004014da
cmp dword [ebx + 0x38], edi
je 0x410a09
push str.threading_error
lea eax, [ebp - 0x14]
push eax
call fcn.00401415
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
call dword [eax + 0x1c]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401452
mov eax, esi
mov esi, dword [ebp + 8]
call fcn.00401403
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ebx
jmp 0x410ac1
mov ecx, dword [ebx + 0xb4]
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x5c], edi
mov dword [ebx + 0x34], 1
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov edi, eax
lea eax, [ebx + 0x4c]
mov esi, esp
mov dword [ebp + 0xc], esp
call fcn.00401403
mov dword [ebp - 4], 2
mov ecx, dword [ebx + 0xb4]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [eax + 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0
call fcn.004151d0
mov dword [ebp - 4], 3
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x14]
and dword [ebp - 4], 0
lea edi, [ebp - 0x58]
call fcn.004143e3
lea eax, [ebx + 0x3c]
push eax
xor edi, edi
push edi
push ebx
push 0x41100c
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebx + 0xa8]
mov dword [ebx + 0x38], eax
call esi
push dword [ebx + 0xa4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0xffffffffffffffff
push dword [ebx + 0x6c]
call esi
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00401403
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 1
mov eax, esi
call fcn.004483f4
ret 8