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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd23d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd23d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd23d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd23d94
push eax
push esi
call fcn.00d2620b
add esp, 8
pop esi
ret 0x10

Function at 0xd23da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd23e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd23e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd3c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d25dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd23dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd23e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd23ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd23eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd3c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d25dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd23eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd23e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd24000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd24131
push esi
call fcn.00d27145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d16080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd24131
push 0
push ebp
call fcn.00d163a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d16260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd2408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d162f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd24121
push 0xd3c918
push edi
call fcn.00d253f0
push eax
push ebx
push esi
call fcn.00d23f60
push 0xd3c8f8
push edi
call fcn.00d253f0
push eax
push ebx
push esi
call fcn.00d23f60
push 0xd3c8d8
push edi
call fcn.00d253f0
push eax
push ebx
push esi
call fcn.00d23f60
push 0xd3c8c0
push edi
call fcn.00d253f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d23f60
push 0xd3c8a0
push edi
call fcn.00d253f0
push eax
push ebx
push esi
call fcn.00d23f60
push 0xd3c888
push edi
call fcn.00d253f0
push eax
push ebx
push esi
call fcn.00d23f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd251b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d25140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d25140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d25140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d25140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd25bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd25c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd3787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd25c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd25c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40141d
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, 1
push eax
and edi, 0x300
mov eax, edi
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.00406895
test eax, eax
jne 0x40152f
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401492
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 0x40150b
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebp
test eax, eax
jne 0x4014e0
test esi, esi
jne 0x40150b
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141d
test eax, eax
jne 0x4014e0
push 0x105
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014b1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00407164
test eax, eax
jne 0x40151c
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40152f
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40152f
push 0
push edi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403604
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x42c1e8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x40364c
mov eax, dword [0x46f598]
add eax, ecx
push eax
call fcn.004035ed
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40c010]
call fcn.004071c6
test eax, eax
je 0x403810
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x4037b2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x420160
mov dword [esp + 0x14], eax
call fcn.00408507
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x4037aa
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x4281e8
call fcn.004035d7
test eax, eax
je 0x403810
sub dword [esp + 0x10], ebp
mov dword [0x42017c], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x420178], 0x4281e8
mov ecx, 0x420160
mov dword [0x420180], ebp
mov dword [0x420184], ebx
call fcn.00407723
mov dword [esp + 0x28], eax
test eax, eax
js 0x4037ae
mov eax, dword [0x420180]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x46f634], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x403763
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x403727
test ecx, ecx
jne 0x403763
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.0040630c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4037a2
test edi, edi
jne 0x403787
push eax
push ebp
push dword [esp + 0xbc]
call fcn.00407289
test eax, eax
je 0x4037f5
mov eax, dword [esp + 0x18]
jmp 0x403793
mov ebp, dword [0x420180]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 1
jne 0x4036d4
jmp 0x4037aa
test ecx, ecx
jg 0x40369f
mov eax, esi
jmp 0x403813
push 0xfffffffffffffffc
jmp 0x403812
test edi, edi
jne 0x4037f9
test eax, eax
jle 0x4037aa
mov ebp, 0x4281e8
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.004035d7
test eax, eax
je 0x403810
push edi
push ebp
push dword [esp + 0xbc]
call fcn.00407289
test eax, eax
je 0x4037f5
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4037bf
jmp 0x4037aa
push 0xfffffffffffffffe
jmp 0x403812
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.004035d7
test eax, eax
jne 0x4037aa
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403820
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x40383f
mov eax, dword [0x420158]
test eax, eax
je 0x403837
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420158], 0
ret
cmp dword [0x420158], 0
je 0x403850
push 0
call fcn.004067cc
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x46f540]
jbe 0x403883
push 0
push 0x403ae6
push 0
push 0x6f
push dword [0x467534]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420158], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x403884
Capabilities:
Get file size

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
mov esi, 0x4dc000
add eax, 0x3e8
push esi
push ebx
mov dword [0x46f540], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00407199
mov ebp, eax
mov dword [0x40c010], ebp
cmp ebp, 0xffffffff
jne 0x4038dd
mov eax, 0x409cb0
jmp 0x403adc
push esi
mov esi, 0x4cc000
push esi
call fcn.00407398
push esi
call fcn.0040758d
push eax
push 0x4e0000
call fcn.00407398
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x420150], esi
test esi, esi
je 0x403a09
mov ebx, dword [esp + 0x38]
cmp dword [0x46f548], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovb edi, esi
push edi
push 0x4201e8
call fcn.004035d7
test eax, eax
je 0x403acf
cmp dword [0x46f548], 0
jne 0x4039cb
push 0x1c
push 0x4201e8
lea eax, [esp + 0x20]
push eax
call fcn.00406ed8
test dword [esp + 0x18], 0xfffffff0
jne 0x4039d8
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x4039d8
cmp dword [esp + 0x28], 0x74736e49
jne 0x4039d8
cmp dword [esp + 0x24], 0x74666f73
jne 0x4039d8
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x4039d8
mov eax, dword [0x420154]
or ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [0x46f548], eax
mov eax, ebx
and eax, 2
or dword [0x46f620], eax
cmp ecx, esi
ja 0x403ad7
mov eax, ebx
and al, 0xc
cmp al, 4
je 0x403a01
inc dword [esp + 0x10]
lea esi, [ecx - 4]
cmp edi, esi
jbe 0x4039d8
mov edi, esi
jmp 0x4039d8
test bl, 2
jne 0x4039d8
push 0
call fcn.00403820
pop ecx
cmp esi, dword [0x420150]
jae 0x4039f3
push edi
push 0x4201e8
push dword [esp + 0x1c]
call fcn.004076b7
mov dword [esp + 0x14], eax
add dword [0x420154], edi
sub esi, edi
jne 0x403917
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 1
call fcn.00403820
cmp dword [0x46f548], 0
pop ecx
je 0x403ad7
test ebx, ebx
je 0x403a51
push dword [0x420154]
call fcn.004035ed
push 4
lea eax, [esp + 0x3c]
push eax
push dword [0x40c010]
call fcn.004071c6
test eax, eax
je 0x403ad7
cmp edi, dword [esp + 0x38]
jne 0x403ad7
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x46f548]
mov esi, eax
add ecx, 0x1c
push ecx
call fcn.004035ed
push dword [esp + 0x2c]
xor ebx, ebx
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403604
cmp eax, dword [esp + 0x2c]
jne 0x403ad7
test byte [esp + 0x18], 1
mov dword [0x46f550], esi
mov eax, dword [esi]
mov dword [0x46f54c], eax
je 0x403a9d
inc dword [0x46f544]
push 8
pop ecx
lea eax, [esi + 0x44]
lea eax, [eax - 8]
add dword [eax], esi
sub ecx, 1
jne 0x403aa3
push 1
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x46f560
call fcn.00406ed8
xor eax, eax
jmp 0x403adc
push 1
call fcn.00403820
pop ecx
mov eax, 0x409cc8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4063f0
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 0x40640a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x406761
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
cmovbe ecx, eax
lea eax, [ebp - 0x23c]
lea eax, [eax + ecx*2]
test ecx, ecx
je 0x40679f
cmp word [eax - 2], 0x5c
mov ecx, 0x4098b4
jne 0x4067a4
mov ecx, 0x4098b6
push dword [ebp + 8]
push ecx
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]
leave
ret 4

Function at 0x4067fa
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 0x40681d
push dword [esp + 8]
push dword [esp + 8]
call fcn.004068c3
pop ecx
pop ecx
inc dword [0x46f610]
ret 8

Function at 0x4068c3
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x45ce70], 0x55004e
mov ebp, 0x45ce70
mov dword [0x45ce74], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406919
push 1
push 0
push esi
call fcn.00407199
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x4069f9
cmp eax, ebx
jg 0x4069f9
push ebx
mov esi, 0x45c670
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4069f9
cmp eax, ebx
jg 0x4069f9
push esi
push ebp
push str._ls_ls_r_n
push 0x45c270
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x46f550]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.0040646b
push 4
push 0xc0000000
push esi
call fcn.00407199
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4069f9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 0xa]
add ecx, ebp
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4069f2
push esi
push edi
push ebx
call fcn.004071c6
test eax, eax
je 0x4069f2
push str._Rename__r_n
push edi
call fcn.004073b4
test eax, eax
jne 0x4069fe
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 0x45c270
lea eax, [ecx + edi]
push eax
call fcn.00406ed8
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.00407289
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
ret
push 0x40a35c
add eax, 0xa
push eax
call fcn.004073b4
mov ecx, eax
test ecx, ecx
je 0x4069c3
lea edx, [edi + esi]
jmp 0x406a1d
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406a17
sub ecx, edi
inc ecx
jmp 0x4069c5
Function at 0x406cda
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0040741a
mov edi, eax
cmp edi, 0xffffffff
je 0x406d10
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406d17
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406d1f
test byte [ebp + 0xc], 4
jne 0x406d10
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406cfc
xor eax, eax
inc eax
jmp 0x406d12

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x458270
push ebx
call fcn.00407398
push ebx
call fcn.00407442
mov esi, eax
test esi, esi
je 0x406e04
push esi
call fcn.004075ba
test byte [0x46f54c], 0x80
je 0x406dc6
movzx eax, word [esi]
test ax, ax
je 0x406e04
cmp eax, 0x5c
je 0x406e04
sub esi, ebx
sar esi, 1
jmp 0x406de0
call fcn.00406d24
test eax, eax
je 0x406dda
test byte [eax], 0x10
je 0x406e04
push ebx
call fcn.0040758d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406dcc
call fcn.00406cab
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x406e06
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406efa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x454228], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x454228
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 0x406f39
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406f3d
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.00406d8d
mov dword [esp + 0x14], eax
test bl, 8
je 0x406f7f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x46f608], eax
jmp 0x407158
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406f9c
test eax, eax
je 0x4070e3
test bl, 2
je 0x4070eb
push esi
push 0x454270
call fcn.00407398
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406fbf
push 0x40a218
push 0x454270
call ebp
jmp 0x406fc5
push esi
call fcn.0040758d
xor eax, eax
cmp word [esi], ax
jne 0x406fd6
cmp word [0x454270], 0x5c
jne 0x406fde
push 0x4098b4
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 0x454270
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4070c8
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x40702c
cmp word [esp + 0x4a], 0
je 0x4070aa
cmp word [esp + 0x4a], ax
jne 0x40702c
cmp word [esp + 0x4c], 0
je 0x4070aa
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00407398
test byte [esp + 0x1c], 0x10
je 0x407053
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4070aa
push ebx
push esi
call fcn.00406f3d
jmp 0x4070aa
push esi
push 0x40a224
call fcn.00406e0b
pop ecx
pop ecx
push edi
push esi
call fcn.00406cda
push esi
test eax, eax
jne 0x4070a3
test edi, edi
je 0x40708f
push 0x40a248
call fcn.00406e0b
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.0040630c
xor eax, eax
push eax
push esi
call fcn.004067fa
jmp 0x4070aa
push str.Delete:
call fcn.00406e0b
inc dword [0x46f608]
pop ecx
pop ecx
jmp 0x4070aa
push 0xfffffffffffffff2
call fcn.0040630c
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40700a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x407157
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
jne 0x4070eb
push esi
push 0x40a2a0
jmp 0x407141
push esi
call fcn.00406d24
test eax, eax
je 0x407157
push esi
call fcn.00406cab
push esi
push 0x40a2cc
call fcn.00406e0b
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406cda
push esi
test eax, eax
jne 0x407150
test edi, edi
je 0x40713c
push 0x40a2f0
call fcn.00406e0b
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.0040630c
xor eax, eax
push eax
push esi
call fcn.004067fa
jmp 0x407157
push str.RMDir:
call fcn.00406e0b
inc dword [0x46f608]
pop ecx
pop ecx
jmp 0x407157
push 0xffffffffffffffe5
call fcn.0040630c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8