joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aceb1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], 0
call fcn.00486e00
mov dword [esp + 0x24], 1
push 0x4c5c2c
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403e5b
mov byte [esp + 0x30], 2
mov edx, dword [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00403e5b
mov byte [esp + 0x3c], 3
mov esi, dword [esp + 0x44]
push 0x4bfa5c
push eax
push esi
call fcn.00403e5b
add esp, 0x28
mov dword [esp + 8], 1
mov byte [esp + 0x20], 2
lea ecx, [esp + 0xc]
call fcn.0040392e
mov byte [esp + 0x20], 1
lea ecx, [esp + 0x10]
call fcn.0040392e
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
call fcn.0040392e
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x484410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aceb1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], 0
call fcn.00486e00
mov dword [esp + 0x24], 1
push 0x4c5c2c
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403e5b
mov byte [esp + 0x30], 2
mov edx, dword [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00403e5b
mov byte [esp + 0x3c], 3
mov esi, dword [esp + 0x44]
push str.rsp.dat
push eax
push esi
call fcn.00403e5b
add esp, 0x28
mov dword [esp + 8], 1
mov byte [esp + 0x20], 2
lea ecx, [esp + 0xc]
call fcn.0040392e
mov byte [esp + 0x20], 1
lea ecx, [esp + 0x10]
call fcn.0040392e
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
call fcn.0040392e
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x4846a0
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4acf60
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor ebp, ebp
mov esi, 0x400
push 0x800
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], 1
call fcn.00489dc2
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x4846fd
push 0x800
push ebp
push ebx
call fcn.0048ad80
add esp, 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x800
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], esi
mov byte [esp + 0x44], 1
call fcn.00489dc2
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x48473c
push 0x800
push ebp
push edi
call fcn.0048ad80
add esp, 0xc
mov dword [esp + 0x38], edi
mov byte [esp + 0x4c], 1
push 0x800
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
mov byte [esp + 0x38], 1
call fcn.00489dc2
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x484774
push 0x800
push ebp
push esi
call fcn.0048ad80
add esp, 0xc
mov dword [esp + 0x2c], esi
mov byte [esp + 0x4c], 2
mov ebp, dword [esp + 0x54]
push edi
push ebp
push ebx
call fcn.00483550
push esi
push ebp
call fcn.00483620
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSet_services
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4847dd
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.0041dcb6
mov byte [esp + 0x4c], 3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esp + 0x58], 0
je 0x48484b
lea ecx, [esp + 0x58]
push ebp
push ecx
call fcn.00484350
mov byte [esp + 0x54], 4
mov eax, dword [eax]
push eax
call fcn.00485fb0
add esp, 0xc
mov byte [esp + 0x4c], 3
lea ecx, [esp + 0x58]
call fcn.0040392e
lea edx, [esp + 0x58]
push ebp
push edx
call fcn.00484410
mov byte [esp + 0x54], 5
mov eax, dword [eax]
push eax
call fcn.00485fb0
add esp, 0xc
mov byte [esp + 0x4c], 3
lea ecx, [esp + 0x58]
call fcn.0040392e
mov byte [esp + 0x4c], 2
lea ecx, [esp + 0x18]
call fcn.0041dce5
mov byte [esp + 0x4c], 1
xor ebp, ebp
cmp esi, ebp
je 0x484871
push esi
call fcn.00489ca5
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov byte [esp + 0x4c], 0
cmp edi, ebp
je 0x48488b
push edi
call fcn.00489ca5
add esp, 4
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x4c], 0xffffffff
cmp ebx, ebp
je 0x4848a8
push ebx
call fcn.00489ca5
add esp, 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x4849d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4acfc8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push str.SYSTEMCurrentControlSet_services
lea ecx, [esp + 0x14]
call fcn.00403c8f
mov dword [esp + 0x1c], 0
push 0x4c5c2c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00403e5b
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00403e5b
mov byte [esp + 0x34], 2
mov eax, dword [eax]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00486070
add esp, 0x24
mov bl, al
mov byte [esp + 0x1c], 1
lea ecx, [esp + 8]
call fcn.0040392e
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0xc]
call fcn.0040392e
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040392e
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x18
ret
Function at 0x485e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad22b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor esi, esi
mov dword [ebp - 4], esi
lea edi, [ebx + 4]
push edi
push esi
push esi
push esi
push esi
push str.FopdMonPort
call sub.FLTLIB.DLL_FilterConnectCommunicationPort
test eax, eax
jne 0x485f57
push 4
push esi
push esi
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebx + 8], eax
cmp eax, esi
je 0x485f57
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], esi
mov edi, edi
cmp dword [ebp - 0x18], 2
jae 0x485f3b
push 0x2c
call fcn.004896b9
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x485eba
mov ecx, eax
call fcn.004852b0
mov esi, eax
jmp 0x485ebc
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 8]
mov dword [esi + 0x28], ecx
mov eax, dword [esi]
lea edx, [eax + 0x220]
push edx
push 0x220
push eax
mov eax, dword [edi]
push eax
call sub.FLTLIB.DLL_FilterGetMessage
cmp eax, 0x800703e5
jne 0x485f2a
mov ecx, dword [edi]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, esi
call fcn.00485700
push 0
push 0
push esi
push 0x485cf0
push 0
push 0
call fcn.00488fcc
add esp, 0x18
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0xc]
call fcn.004854b0
mov byte [ebp - 0x11], 1
inc dword [ebp - 0x18]
jmp 0x485e90
push 1
mov ecx, esi
call fcn.00485490
inc dword [ebp - 0x18]
jmp 0x485e90
cmp byte [ebp - 0x11], 0
je 0x485f57
mov al, 1
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
mov dword [ebp - 4], 0xffffffff
jmp 0x485f70
mov ecx, ebx
call fcn.004855d0
xor al, al
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 0x485fb0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
ret
Function at 0x486120
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ad290
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call fcn.0041dcb6
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
mov byte [esp + 0x24], 1
cmp esi, 0xffffffff
je 0x4861b6
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x4861b4
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4861b6
cmp dword [esp + 0xc], 0
je 0x4861b6
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
mov byte [esp + 0x24], 0
cmp esi, 0xffffffff
je 0x4861c7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041dce5
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4861f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ad2b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
cmp byte [0x4ee708], bl
je 0x486238
mov edi, 0x102
cmp byte [esp + 0x3c], bl
jne 0x48623d
mov edi, 2
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
cmp esi, ebx
je 0x486273
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x48625c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4862c7
mov edi, dword [esp + 0x34]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x486280
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
cmp esi, ebx
jne 0x486299
mov ecx, ebp
lea edx, [eax + eax]
mov eax, dword [esp + 0x30]
push edx
push edi
push 1
push eax
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x4862c7
mov eax, dword [esp + 0x18]
cmp esi, ebx
jne 0x4862bb
mov eax, ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0x17], 1
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4862de
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x486300
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ad2b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
cmp byte [0x4ee708], bl
je 0x486348
mov esi, 0x102
cmp byte [esp + 0x3c], bl
jne 0x48634d
mov esi, 2
mov edi, dword [esp + 0x38]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x48638b
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x48636a
push eax
call ebp
mov dword [esp + 0x18], ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
mov esi, dword [esp + 0x3c]
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4863bf
mov eax, dword [esp + 0x18]
jmp 0x486391
mov esi, dword [esp + 0x2c]
mov eax, esi
mov edx, dword [esp + 0x30]
push 4
lea ecx, [esp + 0x38]
push ecx
push 4
push edx
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x4863bf
cmp edi, ebx
je 0x4863b3
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0x17], 1
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4863d2
push eax
call ebp
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4864b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ad328
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, ebp
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4864e2
sub eax, edx
sar eax, 1
add eax, 4
lea edi, [eax + eax]
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 1
call fcn.00489dc2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x48651e
push edi
push ebx
push esi
call fcn.0048ad80
add esp, 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], ebx
mov edx, esi
mov eax, ebp
sub edx, ebp
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x486530
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edi
push esi
push 7
push eax
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [esp + 0x28], 0xffffffff
cmp esi, ebx
je 0x48656d
push esi
call fcn.00489ca5
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4865e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad3a1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
push 0x4c5c2c
lea eax, [esi + 0x250]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0
call fcn.00403e5b
mov dword [esp + 0x24], 1
add esi, 0x2c
push esi
mov esi, dword [esp + 0x30]
push eax
push esi
call fcn.00403e5b
add esp, 0x18
mov dword [esp + 8], 1
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
call fcn.0040392e
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4

Function at 0x486760
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4ad421
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.0040389d
mov dword [esp + 0x2c], ebx
push 0x800
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x400
mov byte [esp + 0x24], 1
call fcn.00489dc2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4867de
push 0x800
push ebx
push esi
call fcn.0048ad80
add esp, 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], 1
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
xor eax, eax
push esi
mov word [esi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov cl, byte [esp + 0x10]
movzx edx, byte [esp + 0x11]
movzx eax, cl
add eax, edx
movzx edx, byte [esp + 0x12]
add eax, edx
movzx edx, byte [esp + 0x13]
add eax, edx
movzx edx, byte [esp + 0x13]
push eax
mov byte [esp + 0x14], dl
movzx edx, byte [esp + 0x16]
mov byte [esp + 0x17], cl
mov cl, byte [esp + 0x15]
push 0x4c688c
push edi
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], cl
call fcn.00412d65
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
push eax
push 0x4c688c
push ecx
call fcn.00412d65
mov byte [esp + 0x44], bl
push esi
call fcn.00489ca5
add esp, 0x1c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x4868a0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ad481
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
cmp byte [esp + 0x34], 0
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4868f3
mov edi, dword [esi]
push 0x80
push edi
call ebp
push edi
call ebx
mov eax, dword [esi]
push eax
call fcn.004863f0
add esp, 4
push esi
test al, al
jne 0x486923
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00403c69
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 1
jmp 0x486a32
lea ecx, [esp + 0x18]
call fcn.00403c69
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x14]
push 0x2e
push eax
call fcn.004891e9
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x486954
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x486957
mov eax, dword [ecx - 0xc]
push 0x4c6610
push eax
lea ecx, [esp + 0x1c]
call fcn.0040feaf
lea ecx, [esp + 0x30]
call fcn.0040389d
mov byte [esp + 0x24], 2
xor edi, edi
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00412d65
add esp, 0xc
cmp byte [esp + 0x34], 0
je 0x4869a1
mov eax, dword [esp + 0x30]
push 0x80
push eax
mov esi, eax
call ebp
push esi
call ebx
mov eax, dword [esp + 0x30]
push eax
call fcn.004863f0
add esp, 4
test al, al
je 0x486a48
inc edi
cmp edi, 0x2710
jb 0x486976
mov edx, dword [0x4ee75c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ee75c
call eax
mov esi, dword [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x24], 2
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486a0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486a32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00403c69
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x30]
call fcn.0040392e
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.0040392e
jmp 0x486a32
Function at 0x486cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ad511
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4dc104]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x10], ebx
push ebx
xor eax, eax
push 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
call fcn.00411398
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x486d2c
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
push 1
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x486d4d
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
call fcn.00406962
jmp 0x486d92
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x486d5b
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x486d60
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x486d85
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00406962
jmp 0x486d92
sub eax, ecx
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00411bd0
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x486da0
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00403c8f
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], edi
jb 0x486dc7
mov edx, dword [esp + 0x1c]
push edx
call fcn.0048867e
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00488689
add esp, 0x34
ret

Function at 0x486e00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ad561
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 0x800
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x400
mov byte [esp + 0x20], 1
call fcn.00489dc2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x486e5f
push 0x800
push ebx
push esi
call fcn.0048ad80
add esp, 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 1
push ebx
push 0x25
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [esp + 0x30]
push esi
mov ecx, edi
call fcn.00403c8f
mov dword [esp + 0x10], 1
mov byte [esp + 0x28], bl
cmp esi, ebx
je 0x486e9f
push esi
call fcn.00489ca5
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, edi
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x487560
Capabilities:
Access peb ldr_data
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ad801
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
push 0x4c5c28
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
call fcn.00403c8f
mov ebx, 1
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x25c]
push eax
call fcn.0040521a
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.0040392e
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea esp, [esp]
cmp byte [esi + 8], 0
jne 0x487605
mov eax, dword [esi]
lea ecx, [esi + 0xc]
push ecx
push eax
mov byte [esi + 8], bl
call ebp
mov edi, eax
mov eax, dword [esi + 0x260]
cmp edi, eax
je 0x4875fa
cmp eax, 0xffffffff
je 0x4875fa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x260], edi
cmp edi, 0xffffffff
jmp 0x48761d
mov eax, dword [esi + 0x260]
cmp eax, 0xffffffff
je 0x48763e
lea edx, [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48763e
lea eax, [esi + 0x38]
push eax
call fcn.00485fd0
add esp, 4
test al, al
jne 0x4875d0
lea ecx, [esi + 4]
push ecx
lea ecx, [esi + 0x25c]
call fcn.0040521a
add esi, 0xc
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00487410
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], ebx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x488689
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4dc104]
jne 0x488693
repz ret
jmp fcn.0048ed08