joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e170
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b62c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
mov edx, dword [0x67e58c]
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
xor ebx, ebx
push eax
push ecx
push ebx
push ebx
push str.bShBTtFQCI
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45e30f
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x45e2ea
mov edi, dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, edi
jne 0x45e2ea
cmp byte [esi + 0x13ca], bl
jne 0x45e2ea
cmp byte [esi + 0x1ff], bl
je 0x45e209
push 0x16
push edi
call dword [sym.imp.USER32.dll_KillTimer]
mov byte [esi + 0x1ff], bl
mov edx, dword [esi + 0x4e4]
lea ecx, [ebp - 0x30]
push ecx
push 2
push 0x1207
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x30]
lea ecx, [esi + 0x4c8]
push eax
call fcn.005a0be2
mov edx, dword [esi + 0x4a4]
lea ecx, [ebp - 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x40]
lea ecx, [esi + 0x488]
push eax
call fcn.005a0be2
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, ecx
sub edx, eax
test edx, edx
jle 0x45e30f
cmp eax, dword [ebp - 0x40]
jl 0x45e30f
cmp ecx, dword [ebp - 0x38]
jg 0x45e30f
mov ecx, dword [0x67e58c]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push ebx
push str.bShBTtFQCI
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x45e30f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
add edx, 0xfffffffc
add eax, 0xfffffffc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov edx, dword [0x67ec28]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x67ec2c]
push ecx
mov ecx, dword [esi + 0x4a4]
push ebx
push edx
push eax
push ecx
call fcn.00475870
add esp, 0x14
mov dword [esi + 0x12cc], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x1ff], bl
jne 0x45e30f
mov edx, dword [esi + 0x1c]
push ebx
push 0x1f4
push 0x16
push edx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x45e30f
mov byte [esi + 0x1ff], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x12c8]
mov eax, 0x84f5
cmp ecx, 2
jne 0x45f9c1
mov eax, 0x84f6
jmp 0x45f9cb
cmp ecx, 3
jne 0x45f9cb
mov eax, 0x84f7
push 0
push eax
mov eax, dword [esi + 0x190]
push 0x84f7
push 0x84f5
push eax
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [0x67e58c]
mov ecx, dword [esi + 0x12c8]
lea edx, [ebp - 0x14]
push 4
push edx
push 4
push 0
push str.TrayIcon
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi + 0x12c8]
cmp eax, 3
je 0x45fa5f
cmp eax, 2
jne 0x45fa2d
call fcn.005a8034
call fcn.005a8034
mov eax, dword [eax + 0xc]
push 0x15a
jmp 0x45fa3f
call fcn.005a8034
call fcn.005a8034
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esi + 0x1c]
push 0x6530f0
push eax
push 0x2712
push 0
push ecx
call fcn.00476590
add esp, 0x14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460d10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x67df58
push 0
push str.SoftwareDownloadManagerScheduler
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x460e50
mov ecx, dword [esp + 0xc]
push ebx
lea edx, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
mov ebx, 4
push str.isLimitEnabled
push ecx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x460d80
mov dword [esi + 8], 0
jmp 0x460d87
mov edx, dword [esp + 0x10]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.m_MBytes
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x460db2
mov dword [esi + 0xc], 0xc8
jmp 0x460db9
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
call fcn.005843a0
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c], edx
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.m_hours
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x460dfc
mov dword [esi + 0x10], 5
jmp 0x460e03
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push str.showLimitExceededWarning
push ecx
mov dword [esp + 0x24], ebx
call edi
pop edi
pop ebx
test eax, eax
je 0x460e3e
mov eax, dword [esp + 0xc]
mov dword [esi + 0x14], 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov dword [esi + 0x14], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x10
ret
Function at 0x460e60
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
mov esi, ecx
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x67df58
push 0
push str.SoftwareDownloadManagerScheduler
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x460f4a
mov ecx, dword [esp + 4]
push ebx
push edi
mov edi, dword [esi + 8]
lea eax, [esp + 0x10]
push 4
xor edx, edx
push eax
test edi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0
push str.isLimitEnabled
setne dl
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [esp + 0xc]
lea ebx, [esi + 0xc]
push 4
push ebx
push 4
push 0
push str.m_MBytes
push edx
call edi
mov ecx, dword [ebx]
mov eax, 0x51eb851f
shl ecx, 0x14
imul ecx
sar edx, 5
mov eax, edx
lea ecx, [esi + 0x10]
shr eax, 0x1f
add edx, eax
push 4
push ecx
push 4
lea eax, [edx + edx*2]
push 0
shl eax, 4
add eax, edx
push str.m_hours
shl eax, 1
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x20]
push edx
call edi
mov ebx, dword [esi + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
xor eax, eax
push ecx
test ebx, ebx
push 4
push 0
setne al
push str.showLimitExceededWarning
push edx
mov dword [esp + 0x28], eax
call edi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x461e80
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push esi
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x67df58
push 0
push str.SoftwareDownloadManagerQueue
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x461ee5
mov esi, dword [esp + 4]
test esi, esi
je 0x461ee5
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
push str.Queue
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 4
Function at 0x4658e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push esi
push edi
mov esi, ecx
call fcn.00464f40
test eax, eax
je 0x465a44
mov eax, dword [esi + 0x10]
test eax, eax
je 0x465a44
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call edi
mov eax, dword [esi + 0x10]
push 0
push 0
push 0
push eax
push closesocket
push closesocket
push closesocket
push closesocket
push 0x50010000
push str.IDM_DwnlProgress_Window
push str.IDM_DownloadProgressComponent_class
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [esi + 8], eax
je 0x465a44
push ebx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esi + 8]
push 0
push 0
push 0x110
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push 0
call edi
mov edi, eax
mov eax, dword [0x67e570]
push 0x2040
push 0
test eax, eax
push 0
push 0
je 0x465992
push 0x167
jmp 0x465997
push 0x168
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
push edi
call ebx
push 0x2040
push 0
push 0
push 0
push 0x16a
push edi
mov dword [esi + 0x138], eax
call ebx
push 0x2040
push 0
push 0
push 0
push 0x169
push edi
mov dword [esi + 0x13c], eax
call ebx
push 0x2040
push 0
push 0
push 0
push 0x166
push edi
mov dword [esi + 0x140], eax
call ebx
mov ecx, dword [esi + 0x140]
mov dword [esi + 0x144], eax
lea eax, [esp + 0xc]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
push 8
mov dword [esi + 0x2c], ecx
push ecx
mov ecx, dword [esi + 0x1c]
sub edx, eax
push edx
mov edx, dword [esi + 8]
push ecx
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetParent]
mov edx, dword [esi + 8]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x465c80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
test eax, eax
mov dword [esi + 0x14c], eax
je 0x465cbd
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
call fcn.00465c00
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
mov dword [esi + 8], 0
call fcn.004658e0
pop edi
pop esi
ret 0xc
Function at 0x467650
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x67e58c]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.dPrDtVis
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46768c
mov eax, dword [esp + 4]
test eax, eax
setne al
add esp, 8
ret
mov al, 1
add esp, 8
ret
Function at 0x468490
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x67e6a4]
test ecx, ecx
je 0x4684c0
mov eax, dword [esi + 0xc]
push eax
call fcn.004fc6f0
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4684c0
mov edx, dword [esi + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x469810
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
push eax
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call edi
mov eax, dword [esi + 0xa8]
lea edx, [ebp - 0x34]
push edx
push eax
call edi
mov eax, dword [esi + 0x7e4]
push 0x20
test eax, eax
je 0x4698d7
mov ecx, dword [0x67e570]
mov eax, dword [ebp - 0x20]
neg ecx
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
sbb ecx, ecx
and ecx, 5
add ecx, 9
sub ecx, eax
add ecx, edi
push ecx
mov ecx, dword [ebp - 0x24]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x67f0b8]
push ecx
lea ecx, [esi + 0x8c]
call fcn.0059d52d
mov edx, dword [esi + 0xc]
push 0
push 0x519
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x7e4]
xor eax, eax
test ecx, ecx
sete al
mov dword [esi + 0x7e4], eax
jmp 0x469944
mov ecx, dword [esi + 0x7c4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x20]
sub edx, eax
push edx
mov edx, dword [esi + 0xc]
push ecx
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x67f0b4]
lea ecx, [esi + 0x8c]
push eax
call fcn.0059d52d
mov ecx, dword [esi + 0xc]
push 5
push 0x519
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x7e4]
mov eax, dword [esi]
xor edx, edx
test ecx, ecx
sete dl
mov dword [esi + 0x7e4], edx
mov ecx, dword [eax + 0x844]
test ecx, ecx
je 0x469944
mov edx, dword [ecx]
call dword [edx]
mov edx, dword [esi + 0x7e4]
mov ecx, esi
test edx, edx
setne al
push eax
call fcn.004676a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46a2f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b7060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov cl, byte [esp + 0x14]
mov edx, dword [0x67e58c]
xor eax, eax
push 4
test cl, cl
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.ShowDropTarget
setne al
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x46cd50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
mov edi, dword [esp + 0x38]
push 0
push 0
push 0
mov esi, ecx
push 0
push edi
push eax
push 1
lea ecx, [esi + 0x1b8]
call fcn.00598074
mov ebx, eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x46cdac
lea ecx, [esp + 0x38]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push edi
push eax
mov dword [esp + 0x50], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46cdac
cmp dword [esp + 0x3c], 2
je 0x46cdd4
mov ecx, dword [esi + 0x1d4]
lea eax, [esp + 0xc]
push eax
push ebx
push 0x102b
push ecx
mov dword [esp + 0x2c], 0xf000
mov dword [esp + 0x28], 0x2000
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8

Function at 0x46cde0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ebx, ecx
push edi
push 0
push 0
mov eax, dword [ebx + 0x198]
push 0xf0
push eax
call ebp
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
push 4
neg eax
push ecx
push 4
sbb eax, eax
push 0
add eax, 2
push str.PanelView
push esi
mov dword [esp + 0x28], eax
call edi
mov edx, dword [ebx + 0x15c]
push 0
push 0
push 0xf0
push edx
call ebp
neg eax
sbb eax, eax
push 4
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.DonlCaptWP
push esi
call edi
or esi, 0xffffffff
mov ecx, dword [ebx + 0x1d4]
push 0
push esi
push 0x100c
push ecx
call ebp
mov esi, eax
test esi, esi
jl 0x46cedc
mov edx, dword [ebx + 0x1d4]
push 0xf000
push esi
push 0x102c
push edx
call ebp
shr eax, 0xc
dec eax
push 0
neg eax
sbb eax, eax
push esi
add eax, 2
lea ecx, [ebx + 0x1b8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0059819a
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46ced1
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push edx
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x14]
call fcn.0059df40
jmp 0x46ce5c
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x46ec50
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b7720
push eax
mov eax, dword [0x67e570]
mov dword fs:[0], esp
push ebp
push esi
test eax, eax
push edi
je 0x46ed88
mov eax, dword [0x67e908]
test eax, eax
jne 0x46eca0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [0x67e8fc]
test eax, eax
jne 0x46ecbd
call fcn.0046e730
mov dword [0x67e8f8], eax
mov dword [0x67e8fc], 1
mov eax, dword [0x67e8f8]
test eax, eax
je 0x46ece8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.0046e7f0
mov edi, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x46ed46
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x46ed2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46ed46
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x46ed6a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push 0
push esi
push edi
call fcn.0046e380
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebp, eax
test ebp, ebp
jne 0x46ee51
mov eax, dword [0x656724]
test eax, eax
jne 0x46ee51
push edi
lea ecx, [esp + 0x20]
call fcn.0059e000
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0059e000
mov ecx, dword [esp + 0x1c]
push 0x3f
push ecx
call fcn.00581b50
add esp, 8
test eax, eax
jne 0x46ee32
mov edx, dword [esp + 0x20]
push 0x3f
push edx
call fcn.00581b50
add esp, 8
test eax, eax
jne 0x46ee32
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x14], 0
call fcn.0059df40
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0059df40
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.0059df40
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0059df40
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret
Function at 0x46f080
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b7758
push eax
mov eax, dword [0x67e570]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x46f19f
mov eax, dword [0x67e908]
test eax, eax
jne 0x46f0c9
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x67e8fc]
test eax, eax
jne 0x46f0e6
call fcn.0046e730
mov dword [0x67e8f8], eax
mov dword [0x67e8fc], 1
mov eax, dword [0x67e8f8]
test eax, eax
je 0x46f10b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0046e7f0
add esp, 4
test eax, eax
jne 0x46f162
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46f14c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46f162
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x46f185
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.0046e520
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x46f1f4
mov eax, dword [0x656724]
test eax, eax
jne 0x46f1f4
push edi
lea ecx, [esp + 0x1c]
call fcn.0059e000
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.00581b50
add esp, 8
test eax, eax
jne 0x46f1e3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0059df40
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x46f210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b7778
push eax
mov eax, dword [0x67e570]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x46f373
mov eax, dword [0x67e908]
test eax, eax
jne 0x46f263
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x67e8fc]
test eax, eax
jne 0x46f280
call fcn.0046e730
mov dword [0x67e8f8], eax
mov dword [0x67e8fc], 1
mov eax, dword [0x67e8f8]
test eax, eax
je 0x46f290
mov edx, dword [esp + 0x18]
push edx
jmp 0x46f242
mov esi, dword [esp + 0x18]
push esi
call fcn.0046e7f0
add esp, 4
test eax, eax
jne 0x46f2d2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46f2ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46f336
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x67e7e8]
test eax, eax
jne 0x46f2e0
mov eax, 0x67e7ec
push eax
push esi
call int.005840ec
add esp, 8
test eax, eax
jne 0x46f304
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x67e6d8]
test eax, eax
jne 0x46f312
mov eax, 0x67e6dc
push eax
push esi
call int.005840ec
add esp, 8
test eax, eax
jne 0x46f336
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x46f359
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.0046e5d0
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x46f3d8
mov eax, dword [0x656724]
test eax, eax
jne 0x46f3d8
push edi
lea ecx, [esp + 0x1c]
call fcn.0059e000
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.00581b50
add esp, 8
test eax, eax
jne 0x46f3c7
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0059df40
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret