joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106a4
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [0x11190]
push ebx
mov ebx, dword [sym.imp.HAL.dll_ExAcquireFastMutex]
push esi
push edi
call ebx
inc dword [0x1118c]
cmp dword [0x1118c], 1
jne 0x106d4
push fcn.00014006
call dword [sym.imp.ntoskrnl.exe_MmResetDriverPaging]
mov ecx, dword [0x11190]
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov esi, dword [ebp + 0xc]
mov dl, al
mov byte [ebp + 0xb], dl
lea eax, [esi + 0x38]
mov ecx, 0x1045e
xchg dword [eax], ecx
cmp byte [esi + 0x24], 0
je 0x10756
xor ecx, ecx
xchg dword [eax], ecx
test ecx, ecx
je 0x10756
and dword [esi + 0x1c], 0
mov ecx, edi
mov dword [esi + 0x18], 0xc0000120
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
xor dl, dl
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, dword [0x11190]
call ebx
dec dword [0x1118c]
jne 0x10743
push fcn.00014006
call dword [sym.imp.ntoskrnl.exe_MmPageEntireDriver]
mov ecx, dword [0x11190]
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov eax, 0xc0000120
jmp 0x10782
mov eax, dword [esi + 0x60]
mov ebx, 0x103
mov dword [esi + 0x18], ebx
or byte [eax + 3], 1
lea eax, [edi + 0x18]
push eax
lea edx, [esi + 0x58]
lea ecx, [edi + 0x10]
call dword [sym.imp.ntoskrnl.exe_ExfInterlockedInsertTailList]
mov dl, byte [ebp + 0xb]
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1078e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.HAL.dll_ExAcquireFastMutex]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [esi + 0x114]
mov ecx, edi
call ebx
cmp byte [esi + 0x110], 1
mov ecx, edi
jne 0x107d1
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov ecx, dword [ebp + 8]
and dword [ecx + 0x1c], 0
mov eax, 0xc00002d3
mov dword [ecx + 0x18], eax
jmp 0x108ec
mov edi, dword [sym.imp.HAL.dll_ExReleaseFastMutex]
call edi
lea ecx, [esi + 0x38]
mov dword [ebp - 4], ecx
call ebx
inc dword [esi + 0x58]
jne 0x108b8
mov dword [esi + 0x58], 1
mov ecx, dword [0x11190]
call ebx
inc dword [0x1118c]
cmp dword [0x1118c], 1
jne 0x10813
push fcn.00014006
call dword [sym.imp.ntoskrnl.exe_MmResetDriverPaging]
mov ecx, dword [0x11190]
call edi
xor eax, eax
push esi
push 0x130ae
push eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x18], 0x200
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp + 0xc], eax
jl 0x10887
push ecx
lea eax, [esi + 0x5c]
push eax
push ecx
push ecx
push 0x100000
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp - 8]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 0xc], 0
jge 0x108b8
mov eax, dword [ebp - 0xc]
and dword [eax], 0
or dword [esi + 0x58], 0xffffffff
mov ecx, dword [0x11190]
call ebx
dec dword [0x1118c]
jne 0x108a6
push fcn.00014006
call dword [sym.imp.ntoskrnl.exe_MmPageEntireDriver]
mov ecx, dword [0x11190]
call edi
mov ecx, dword [ebp - 4]
call edi
mov eax, dword [ebp + 0xc]
jmp 0x108ec
mov ecx, dword [ebp - 4]
call edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x60]
or byte [eax + 3], 1
lea eax, [esi + 0x34]
lea edx, [ecx + 0x58]
push eax
lea ecx, [esi + 0x60]
call dword [sym.imp.ntoskrnl.exe_ExfInterlockedInsertTailList]
push 0
push 1
push 0
add esi, 0x20
push esi
call dword [sym.imp.ntoskrnl.exe_KeReleaseSemaphore]
mov eax, 0x103
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x108f8
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call ebx
lea edx, [esi + 0x18]
lea ecx, [esi + 0x10]
mov byte [ebp + 0xb], al
call dword [sym.imp.ntoskrnl.exe_ExfInterlockedRemoveHeadList]
test eax, eax
je 0x109e2
push edi
lea edi, [eax - 0x58]
xor eax, eax
lea ecx, [edi + 0x38]
xchg dword [ecx], eax
test eax, eax
je 0x1093b
mov eax, dword [edi + 0x60]
mov dword [ebp - 4], eax
jmp 0x10941
and dword [edi + 0x58], 0
xor edi, edi
mov dl, byte [ebp + 0xb]
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test edi, edi
je 0x109c6
cmp byte [esi + 0xd], 0
je 0x1095f
mov dword [edi + 0x18], 0xc0000056
jmp 0x1098d
mov eax, dword [ebp - 4]
mov al, byte [eax]
cmp al, 3
jb 0x10986
cmp al, 4
jbe 0x1097b
cmp al, 0xe
jne 0x10986
push edi
push dword [esi + 0x1c]
call fcn.00013730
jmp 0x1099b
push edi
push dword [esi + 0x1c]
call fcn.00013f24
jmp 0x1099b
mov dword [edi + 0x18], 0xc0000001
and dword [edi + 0x1c], 0
mov ecx, edi
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, dword [0x11190]
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
dec dword [0x1118c]
jne 0x109ba
push fcn.00014006
call dword [sym.imp.ntoskrnl.exe_MmPageEntireDriver]
mov ecx, dword [0x11190]
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov ecx, esi
call ebx
lea edx, [esi + 0x18]
lea ecx, [esi + 0x10]
mov byte [ebp + 0xb], al
call dword [sym.imp.ntoskrnl.exe_ExfInterlockedRemoveHeadList]
test eax, eax
jne 0x10925
pop edi
mov dl, byte [ebp + 0xb]
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop esi
pop ebx
leave
ret 4

Function at 0x11dec
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x18], ebx
je 0x11e48
cmp byte [esi + 0x68], bl
je 0x11e48
inc byte [esi + 0x69]
cmp byte [esi + 0x69], 2
jae 0x11e48
push esi
call fcn.00011d9e
test eax, eax
jl 0x11e48
or dword [esi + 0x9c], 0xffffffff
lea ebx, [esi + 0x38]
mov ecx, ebx
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
inc dword [esi + 0x58]
mov ecx, ebx
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
lea eax, [esi + 0x34]
push eax
lea edx, [edi + 0x58]
lea ecx, [esi + 0x60]
call dword [sym.imp.ntoskrnl.exe_ExfInterlockedInsertHeadList]
jmp 0x11e97
mov byte [esi + 0x69], bl
mov eax, dword [edi + 0x18]
cmp eax, ebx
jge 0x11e8d
cmp eax, 0xc00000a3
je 0x11e83
cmp eax, 0xc00000b5
je 0x11e83
cmp eax, 0xc00000a2
je 0x11e83
cmp eax, 0xc0000013
je 0x11e83
cmp eax, 0x80000016
je 0x11e83
cmp eax, 0xc0000014
je 0x11e83
cmp eax, 0xc0000012
jne 0x11e8d
push dword [esi + 0x1c]
push edi
call dword [sym.imp.ntoskrnl.exe_IoSetHardErrorOrVerifyDevice]
mov dl, 1
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x13f24
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x28]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 0x60]
lea ecx, [esi + 0x134]
mov dword [ebp + 8], ecx
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
cmp byte [esi + 0xe], 0
je 0x13f64
push edi
push esi
call fcn.000106a4
mov ecx, dword [ebp + 8]
mov esi, eax
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
jmp 0x13ff2
cmp byte [esi + 0xd], 0
jne 0x13fc7
cmp byte [esi + 0xc], 0
je 0x13fc7
xor ecx, ecx
cmp dword [esi + 0x9c], ecx
jle 0x13f9c
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0xc]
add edx, eax
cmp edx, dword [esi + 0x98]
ja 0x13f95
mov edx, dword [esi + 0x94]
dec edx
test eax, edx
je 0x13f9c
mov esi, 0xc000000d
jmp 0x13fb4
cmp dword [ebx + 4], ecx
je 0x13fac
push esi
push edi
call fcn.0001078e
mov esi, eax
jmp 0x13fb4
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], ecx
xor esi, esi
mov ecx, dword [ebp + 8]
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
cmp esi, 0x103
je 0x13ff2
jmp 0x13fe5
mov ecx, dword [ebp + 8]
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov al, byte [esi + 0xd]
neg al
sbb eax, eax
and eax, 0x55
add eax, 0xc0000001
and dword [edi + 0x1c], 0
mov esi, eax
mov ecx, edi
xor dl, dl
mov dword [edi + 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40611c
pop dword [ebp - 0x14]
mov eax, 0x4b91949f
add eax, 0xb4aecc7d
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x5eac2ec5
sub dword [ebp - 0x24], 0x1059e97a
mov dword [ebp - 0x20], 0x576a7072
sub dword [ebp - 0x20], 0x2537242d
mov dword [ebp - 0x1c], 0xc711180c
sub dword [ebp - 0x1c], 0x7ac4d3de
mov dword [ebp - 0x18], 0x94f1316f
add dword [ebp - 0x18], 0x6b0ece91
lea eax, [ebp - 0x24]
push eax
mov eax, 0xfd98fbcc
add eax, 0x2a77494
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x86fcd88f
add dword [ebp - 0x24], 0xed7590c7
mov dword [ebp - 0x20], 0x2c3234fe
sub dword [ebp - 0x20], 0xeac5d389
mov dword [ebp - 0x1c], 0xd37a6048
sub dword [ebp - 0x1c], 0x700af3dc
mov dword [ebp - 0x18], 0x92e8015f
sub dword [ebp - 0x18], 0x92e8015f
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x389cb
push 0
call eax
mov ecx, 0x6fef35cc
add ecx, 0x90111a38
xor edi, edi
add edi, eax
mov esi, 0x6b7ffe2d
sub esi, 0x6b3efe2d
add esi, dword [ebp - 0x14]
mov ebx, 0xb09f32a3
add ebx, 0x8c0aa1bc
sub dword [ebp - 0x10], ecx
mov edx, dword [esi]
xor dword [ebp - 8], 0xc9a480c6
add edx, ebx
xor dword [ebp - 4], 0x46ab026d
mov dword [edi], edx
xor dword [ebp - 4], eax
add edi, 4
add esi, 4
loop 0x40623b
add eax, 0x132e3
xor ebx, ebx
add ebx, eax
add eax, 0x966f5316
add eax, 0x6990acef
mov ecx, 0x65bc2740
add ecx, 0x9a83d8c0
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401434
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.00406924
test eax, eax
jne 0x40153d
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x4014a9
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401519
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014e4
test edi, edi
jne 0x401519
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.00401434
test eax, eax
jne 0x4014ee
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014bc
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040720a
test eax, eax
jne 0x40152a
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40153d
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40153d
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x40379c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x4037c5
mov eax, dword [0x4735b8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40c010]
mov dword [0x42014c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040361d
test eax, eax
js 0x4038a4
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40c010]
call fcn.0040726c
test eax, eax
jne 0x4037f1
push 0xfffffffffffffffd
pop eax
jmp 0x4038a4
add dword [0x42014c], 4
push esi
push dword [ebp + 8]
call fcn.0040361d
mov esi, eax
test esi, esi
jns 0x40380c
jmp 0x4038a3
push ebx
cmp dword [ebp + 0x10], edi
jne 0x40386f
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4038a0
mov ebx, 0x4000
mov edi, 0x4281f0
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40c010]
mov dword [ebp - 4], eax
call fcn.0040726c
test eax, eax
je 0x403892
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00407333
test eax, eax
je 0x40386b
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x42014c], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403827
jmp 0x4038a0
push 0xfffffffffffffffe
jmp 0x403894
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40c010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403897
push 0xfffffffffffffffd
pop eax
jmp 0x4038a2
mov esi, dword [ebp - 4]
add dword [0x42014c], esi
mov eax, esi
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4038c9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x4038f1
mov eax, dword [0x420160]
test eax, eax
je 0x4038e8
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420160], 0
jmp 0x40396d
cmp dword [0x420160], 0
je 0x403903
push 0
call fcn.00406857
jmp 0x40396d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x4735c0]
jbe 0x40396d
cmp dword [0x46b558], 0
je 0x403948
test byte [0x473654], 1
je 0x40396d
call fcn.004038ab
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.0040637b
jmp 0x40396d
push 0
push 0x403c2c
push 0
push 0x6f
push dword [0x46b554]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420160], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x40645f
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406479
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x40647f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x40a724
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x40a714
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4064ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4064f7
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x4064f1
xor eax, eax
jmp 0x4064f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 4
Function at 0x4067e6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, esi
pop esi
cmova eax, ecx
test eax, eax
je 0x40681f
cmp word [ebp + eax*2 - 0x23e], 0x5c
mov ecx, 0x409aac
jne 0x406824
mov ecx, 0x409aae
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
lea eax, [ecx + eax*2]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x406887
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4068aa
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406952
pop ecx
pop ecx
inc dword [0x473630]
ret 8

Function at 0x406952
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebx, 0x400
mov dword [0x460e78], 0x55004e
mov ebp, 0x460e78
mov dword [0x460e7c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x4069a9
push 1
push 0
push esi
call fcn.0040723f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406a8d
cmp eax, ebx
jg 0x406a8d
push ebx
mov esi, 0x460678
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x406a8d
cmp eax, ebx
jg 0x406a8d
push esi
push ebp
push str._ls_ls_r_n
push 0x460278
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x47356c]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.004064fd
push 4
push 0xc0000000
push esi
call fcn.0040723f
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x406a8d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406a86
push esi
push edi
push ebx
call fcn.0040726c
test eax, eax
je 0x406a86
push str._Rename__r_n
push edi
call fcn.00407464
test eax, eax
jne 0x406a93
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x460278
lea eax, [ecx + edi]
push eax
call fcn.00406f7a
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00407333
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x40a960
add eax, 0xa
push eax
call fcn.00407464
mov ecx, eax
test ecx, ecx
je 0x406a57
lea edx, [edi + esi]
lea eax, [edx + ebp]
cmp edx, ecx
jbe 0x406ac7
sub eax, edx
mov dword [esp + 0x1c], eax
mov ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
dec edx
cmp edx, ecx
ja 0x406ab9
mov ebx, dword [esp + 0x10]
sub ecx, edi
inc ecx
jmp 0x406a59
Function at 0x406d87
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004074b7
mov edi, eax
cmp edi, 0xffffffff
je 0x406dca
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406db2
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406dba
xor eax, eax
inc eax
jmp 0x406dcc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406da9
test byte [ebp + 0xc], 4
jne 0x406dca
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x45c278
push ebx
call fcn.00407448
push ebx
call fcn.004074df
mov esi, eax
test esi, esi
jne 0x406e51
xor eax, eax
jmp 0x406ea9
push esi
call fcn.0040760e
test byte [0x473568], 0x80
je 0x406e6d
movzx eax, word [esi]
test ax, ax
je 0x406e4d
cmp eax, 0x5c
je 0x406e4d
sub esi, ebx
sar esi, 1
jmp 0x406e87
call fcn.00406dd1
test eax, eax
je 0x406e81
test byte [eax], 0x10
je 0x406e4d
push ebx
call fcn.004075e1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406e73
call fcn.00406d58
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x406f9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x458230], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x458230
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406fdb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x406fe1
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406e30
mov dword [esp + 0x14], eax
test bl, 8
je 0x407023
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x473628], eax
jmp 0x4071fe
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x407040
test eax, eax
je 0x407189
test bl, 2
je 0x407185
push esi
push 0x458278
call fcn.00407448
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x407063
push str..
push 0x458278
call ebp
jmp 0x407069
push esi
call fcn.004075e1
xor eax, eax
cmp word [esi], ax
jne 0x40707a
cmp word [0x458278], 0x5c
jne 0x407082
push 0x409aac
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x458278
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40716c
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4070d0
cmp word [esp + 0x4a], 0
je 0x40714e
cmp word [esp + 0x4a], ax
jne 0x4070d0
cmp word [esp + 0x4c], 0
je 0x40714e
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00407448
test byte [esp + 0x1c], 0x10
je 0x4070f7
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40714e
push ebx
push esi
call fcn.00406fe1
jmp 0x40714e
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406eae
pop ecx
pop ecx
push edi
push esi
call fcn.00406d87
push esi
test eax, eax
jne 0x407147
test edi, edi
je 0x407133
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406eae
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.0040637b
xor eax, eax
push eax
push esi
call fcn.00406887
jmp 0x40714e
push str.Delete:_DeleteFile_failed___s__
call fcn.00406eae
inc dword [0x473628]
pop ecx
pop ecx
jmp 0x40714e
push 0xfffffffffffffff2
call fcn.0040637b
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4070ae
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4071fd
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x407191
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x4071e7
push esi
call fcn.00406dd1
test eax, eax
je 0x4071fd
push esi
call fcn.00406d58
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406eae
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406d87
push esi
test eax, eax
jne 0x4071f6
test edi, edi
je 0x4071e2
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406eae
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.0040637b
xor eax, eax
push eax
push esi
call fcn.00406887
jmp 0x4071fd
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406eae
inc dword [0x473628]
pop ecx
pop ecx
jmp 0x4071fd
push 0xffffffffffffffe5
call fcn.0040637b
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8