joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412750
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
test eax, eax
jne 0x41276b
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x412785
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
cmp edi, ebx
je 0x41285a
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x4127da
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
call fcn.00412700
add esp, 4
test eax, eax
je 0x412840
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x412820
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
je 0x412827
push esi
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412870
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x104], 0
call fcn.0048f0a0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x4128d4
test byte [ebp - 0xf2], 0x80
jne 0x4128d4
push esi
push 1
push esi
push 0x12
call ebx
mov esi, 1
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, eax
test esi, esi
je 0x4128eb
push 0
push 3
push 0
push 0x12
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret

Function at 0x412900
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
call fcn.00412750
test eax, eax
jne 0x412914
mov ecx, esi
pop esi
jmp fcn.00412870
pop esi
ret
Function at 0x412a50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00491130
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x412b1f
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.0048f0a0
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x412b1f
cmp eax, 0x1fff
ja 0x412b1f
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412b0e
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x4bd884
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412b0e
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
Function at 0x412c20
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2348
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push eax
mov esi, str.UserExperience
mov dword [esp + 0x14], 1
lea ebx, [esp + 0x14]
call fcn.00403c50
push ecx
mov dword [esp + 0x40], 0
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov esi, str.SOFTWARE360TotalSecurityExperience
call fcn.00403c50
lea edx, [esp + 0x24]
push edx
xor ecx, ecx
mov dword [esp + 0x44], 0xffffffff
call fcn.004062d0
push eax
mov esi, ebx
call fcn.00406430
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ce2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
cmp dword [esp + 0xc], ebx
je 0x412d03
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [edi + 0x4c]
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x18], bl
mov dword [esp + 0x38], ebx
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3954
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 8]
mov byte [esp + 0x38], 2
test edx, edx
jne 0x412d40
xor eax, eax
jmp 0x412d54
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412d45
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00403b30
lea ecx, [esp + 0xc]
push ecx
lea eax, [edi + 0x2c]
call fcn.00413f40
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
cmp dword [edi + 4], 0
mov dword [edi + 0x10], 0
jne 0x412dd3
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 4], 0
jne 0x412dd0
push 0
push 0
push edi
push 0x4143a0
push 0
push 0
call fcn.0048d484
add esp, 0x18
mov dword [edi + 4], eax
push esi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 0x10], 0
cmp byte [edi + 8], 0
je 0x412df4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x412df0
push eax
call esi
mov byte [edi + 8], 0
mov dword [edi + 0x10], 0
cmp byte [edi + 8], 0
je 0x412e0f
mov eax, dword [edi + 0xc]
test eax, eax
je 0x412e0b
push eax
call esi
mov byte [edi + 8], 0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414f80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11c
lea eax, [ebp - 0x530]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x534], esi
call fcn.0048f0a0
push 0x11c
push 0
push ebx
mov dword [ebp - 0x530], 0x11c
call fcn.0048f0a0
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
jne 0x415000
call fcn.00414e80
test eax, eax
je 0x415000
mov dword [esi + 4], 0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415024
lea ecx, [ebp - 0x530]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
push edi
lea edi, [eax + edx*2]
mov eax, dword [ebp - 0x52c]
mov edx, dword [ebp - 0x528]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x415058
mov ecx, 0x47
lea esi, [ebp - 0x530]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0048f0a0
add esp, 0xc
lea esi, [ebp - 0x414]
call fcn.00414ed0
test eax, eax
jl 0x4150df
lea edx, [ebp - 0x568]
push edx
mov eax, esi
call fcn.00415110
test eax, eax
je 0x4150df
mov ecx, dword [ebp - 0x558]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x4150d0
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x554]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x534]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x4150ec
mov edx, dword [ebp - 0x534]
mov dword [edx + 4], 0
jmp 0x4150ec
mov eax, dword [ebp - 0x534]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
Function at 0x415110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x415194
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41518d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41518d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x415186
mov ecx, dword [ebp - 4]
push ecx
call fcn.0048c93d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x415186
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.00491f60
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x4151d2
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4bd884
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4151c9
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.0048c860
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4157c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x4e4908], 0
jne 0x415800
lea eax, [ebp - 4]
push eax
push 0x4e4908
lea ecx, [ebp - 8]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x207
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [0x4e4b10], 0
jne 0x415826
push 0x4e4908
push 0x4c0418
push 0x104
push 0x4e4b10
call fcn.00414a30
add esp, 0x10
cmp word [0x4e4d18], 0
jne 0x415877
mov edx, 0x104
mov eax, 0x4e4d18
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x41586b
movzx ecx, word [eax - 0x410]
test cx, cx
je 0x41586b
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x415840
sub eax, 2
mov word [eax], dx
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x415872
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esp, ebp
pop ebp
ret
Function at 0x418230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b42d3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.004093f0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], vtable.WTL::CMessageFilter.0
lea edi, [esi + 0x54]
push edi
mov dword [esi + 0x1a0], ebx
mov byte [esi + 0x1a4], bl
mov byte [esi + 0x1a5], 1
call fcn.00433e60
mov dword [esi + method.IFontIconCBSimpleImpl_class_CMsgBox_.virtual_0], vtable.IFontIconCBSimpleImpl_class_CMsgBox_.0
mov dword [esi], vtable.CMsgBox.0
mov dword [esi + 0x2c], vtable.CMsgBox.1.0
mov dword [esi + 0x50], vtable.CMsgBox.2.0
mov dword [edi], vtable.CMsgBox.3.0
mov dword [esi + method.IFontIconCBSimpleImpl_class_CMsgBox_.virtual_0], vtable.CMsgBox.4.0
mov dword [esi + 0x1ac], ebx
mov eax, 2
mov byte [ebp - 4], al
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1c0], eax
mov byte [esi + 0x1c4], bl
mov byte [esi + 0x1c5], bl
mov byte [esi + 0x1c6], bl
mov byte [esi + 0x1c7], bl
mov dword [esi + 0x1c8], 1
mov dword [esi + 0x1ec], ebx
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], ebx
lea ecx, [esi + 0x208]
mov dword [esi + 0x1fc], ebx
mov dword [esi + 0x200], ebx
push ecx
mov dword [esi + 0x204], ebx
call fcn.004688d0
mov dword [esi + 0x220], ebx
mov byte [esi + 0x224], bl
mov byte [esi + 0x225], bl
mov byte [esi + 0x226], 1
mov dword [esi + 0x228], ebx
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3954
call eax
add eax, 0x10
mov dword [esi + 0x22c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b36d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x418c4f
cmp dword [esi + 0x18], 0
mov ebx, 8
je 0x418b8f
cmp dword [esi + 0x1c], ebx
jb 0x418b7b
mov edx, dword [esi + 8]
jmp 0x418b7e
lea edx, [esi + 8]
movzx eax, byte [esi]
push 1
push 0
push eax
push 0
mov ecx, edi
call fcn.00419ff0
cmp dword [esi + 0x34], 0
je 0x418ba9
cmp dword [esi + 0x38], ebx
jb 0x418b9f
mov ecx, dword [esi + 0x24]
jmp 0x418ba2
lea ecx, [esi + 0x24]
mov eax, edi
call fcn.0041a350
cmp dword [esi + 0x54], 0
je 0x418bcb
cmp dword [esi + 0x58], ebx
jb 0x418bb9
mov eax, dword [esi + 0x44]
jmp 0x418bbc
lea eax, [esi + 0x44]
movzx ecx, byte [esi + 0x3c]
push ecx
push eax
push 1
mov ecx, edi
call fcn.0041a4a0
cmp dword [esi + 0x90], 0
je 0x418bf9
cmp dword [esi + 0x94], ebx
jb 0x418be4
mov eax, dword [esi + 0x80]
jmp 0x418bea
lea eax, [esi + 0x80]
movzx edx, byte [esi + 0x78]
push edx
push eax
push 2
mov ecx, edi
call fcn.0041a4a0
mov eax, dword [esi + 0xb4]
mov ebx, dword [edi + 0x1bc]
cmp eax, 0xffffffff
je 0x418c0c
mov ebx, eax
mov eax, dword [esi + 0xb8]
cmp eax, 0xffffffff
je 0x418c1e
mov ecx, edi
call fcn.0041a580
mov eax, dword [edi + 0x1b8]
push eax
push ebx
push edi
xor cl, cl
xor edx, edx
call fcn.00418e10
push 0x4181d0
push 3
push 0x3c
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0048c7d7
push esi
call fcn.00480ff0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419ed0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x419f4e
mov eax, dword [0x4e51c0]
cmp dword [eax - 0xc], 0
je 0x419f09
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x419f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x419f3d
mov edx, dword [ebp + 0xc]
push 0
push edx
mov edx, dword [ebp + 8]
mov cl, 1
push esi
mov byte [0x4e4794], cl
call fcn.00418e10
lea eax, [esi + 0x1a0]
push eax
call fcn.0046c0d0
mov eax, dword [esi + 0x1c0]
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x30], 0
mov eax, 2
pop ebp
ret 8
Function at 0x42e880
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b56e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ecx
push edx
mov dword [ebp - 0x20], 0x60
call fcn.0042e4d0
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x42e8db
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0042e660
mov ecx, dword [edi + 4]
mov ebx, eax
add esp, 8
lea eax, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x42e905
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
lea edx, [ebp - 0x1c]
push edx
push eax
mov dword [ebp - 0x1c], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x42e920
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
imul ecx, esi
mov edx, dword [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
call fcn.00408930
lea esi, [ebp - 0x2c]
call fcn.0042e270
test al, al
je 0x42e970
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
push ecx
push edx
mov eax, ebx
call fcn.0047ede0
mov esi, eax
add esp, 8
test esi, esi
je 0x42e970
test ebx, ebx
je 0x42e96b
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov dword [ebp - 0x14], esi
mov ebx, esi
mov ecx, ebx
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
call fcn.0047f2e0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx - 0xc], 0
je 0x42e9f3
lea esi, [ebp - 0x18]
call fcn.00409c10
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x42e9dc
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
mov edi, str.disable_resize
call fcn.00409230
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x28], esp
push ecx
mov edi, ebx
call fcn.00409230
mov byte [ebp - 4], 3
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00409b10
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
test esi, esi
je 0x42e9f3
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x42ea0c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ea2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4476a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3990
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
call fcn.004474d0
push 0x15
push str.deepscanqutmload.dll
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00405520
call fcn.00447580
test eax, eax
je 0x447718
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x447718
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00406650
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x447756
lea edi, [ebp - 0x14]
call fcn.00401060
push eax
push esi
mov edi, str.deepscanqutmload.dll
mov byte [ebp - 4], 1
call fcn.00406590
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44777c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4483a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af6d8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
call fcn.004484e0
test eax, eax
je 0x4483fd
mov esi, dword [ebp + 8]
call fcn.00449860
mov esi, dword [ebp + 8]
call fcn.004484e0
test eax, eax
je 0x4483fd
mov ecx, dword [ebp + 8]
push ecx
call fcn.00449800
mov esi, dword [ebp + 8]
call fcn.004484e0
mov esi, eax
neg esi
sbb esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
inc esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x448432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x448450
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af6d8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, dword [ebp + 8]
call fcn.004484e0
test eax, eax
je 0x448498
mov esi, dword [ebp + 8]
call fcn.004497b0
mov esi, dword [ebp + 8]
call fcn.004484e0
mov esi, eax
neg esi
sbb esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
inc esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4484cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [0x4e7008]
test eax, eax
jne 0x4484f3
call fcn.00449cf0
mov dword [0x4e7008], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x448516
mov eax, dword [0x4e7008]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x448516
mov eax, dword [eax + 0x88]
jmp 0x448518
xor eax, eax
push esi
test eax, eax
je 0x448521
call eax
jmp 0x448527
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44853d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
ret
mov eax, 1
ret