joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x27700494
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x47f07f53
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x40893f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
mov edi, dword [esp]
add esp, 4
mov ecx, 0x79e5d41c
call fcn.00408977
xor dword [eax], edi
add ecx, ecx
sub edx, 1
add eax, 1
sub edx, 0xbc8c569d
cmp eax, ebx
jne fcn.0040893f
inc ecx
and ecx, ecx
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x31aa3ddd
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x7fad35b5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x20694f8d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x52f1407e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4ade3f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ade77
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004abec9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004abea1
jmp 0x4ade83
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4af531
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4af573
call fcn.004b4feb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4af573
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4af56a
xor eax, eax
jmp 0x4af57b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004af581
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b551b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b5549
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b5567
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b5481
jmp 0x4b5567
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b5567
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b5481
test edi, edi
mov eax, edi
jne 0x4b5551
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
nop
mov ecx, 0x39634146
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0xf6d361e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x71ab3e38
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x99848dd
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, reloc.mscms.dll_SetColorProfileHeader
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401445
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x40b0f8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x228]
lea ecx, [esp]
push ebp
mov ebp, dword [esp + 0x228]
and eax, 0x300
push esi
mov esi, dword [esp + 0x230]
push edi
mov edi, dword [esp + 0x22c]
and esi, 1
push ecx
mov dword [esp + 0x18], eax
or eax, 9
push eax
push ebp
push edi
call fcn.004067b5
test eax, eax
jne 0x401554
xor ecx, ecx
test byte [esp + 0x234], 2
je 0x4014cd
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401531
xor ecx, ecx
push 0x105
lea eax, [esp + 0x1c]
push eax
push ecx
jmp 0x401502
test esi, esi
jne 0x401531
push dword [esp + 0x234]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call fcn.00401445
test eax, eax
jne 0x401510
push 0x105
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4014da
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406dff
mov esi, eax
test esi, esi
jne 0x401542
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401554
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401554
push 0
push dword [esp + 0x18]
mov ecx, esi
push ebp
push edi
call dword [0x4092cc]
call esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00408581
add esp, 0x21c
ret 0xc
Function at 0x4033dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403406
mov eax, dword [0x477d98]
push edi
add eax, ecx
push edi
push eax
push dword [0x40b014]
mov dword [0x41f16c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040323e
test eax, eax
js 0x4034dc
push ebx
push esi
push 4
lea eax, [ebp - 4]
push eax
push dword [0x40b014]
call fcn.00406e61
test eax, eax
je 0x4034d7
push dword [ebp - 4]
add dword [0x41f16c], 4
call fcn.0040323e
mov esi, eax
test esi, esi
js 0x4034d3
cmp dword [ebp + 0x10], edi
jne 0x4034a7
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x4034d3
mov ebx, 0x4000
mov edi, 0x430d48
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40b014]
mov dword [ebp - 8], eax
call fcn.00406e61
test eax, eax
je 0x4034d7
push dword [ebp - 8]
push edi
push dword [ebp + 0xc]
call fcn.00406f25
test eax, eax
je 0x4034a3
mov eax, dword [ebp - 8]
add esi, eax
mov ecx, dword [ebp - 4]
add dword [0x41f16c], eax
sub ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x40345f
jmp 0x4034d3
push 0xfffffffffffffffe
jmp 0x4034d9
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
cmovl eax, dword [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4034d7
mov esi, dword [ebp - 8]
add dword [0x41f16c], esi
mov eax, esi
jmp 0x4034da
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x4034ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x40b0f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x403534
mov eax, dword [0x41f180]
test eax, eax
je 0x403528
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x41f180], 0
jmp 0x4035b6
cmp dword [0x41f180], 0
je 0x403546
push 0
call fcn.004066d4
jmp 0x4035b6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x477d40]
jbe 0x4035b6
cmp dword [0x46fd38], 0
je 0x403591
test byte [0x477e34], 1
je 0x4035b6
call fcn.004034e1
push eax
lea eax, [ebp - 0x84]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push 0
call fcn.004061ae
jmp 0x4035b6
push 0
push 0x4038c0
push 0
push 0x6f
push dword [0x46fd34]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x41f180], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408581
leave
ret
Function at 0x40664c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x40b0f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x240]
push edi
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
ja 0x406693
test eax, eax
je 0x406693
add eax, eax
cmp word [ebp + eax - 0x242], 0x5c
je 0x406695
mov ecx, 0x409318
jmp 0x40669a
xor eax, eax
mov ecx, 0x40931a
push esi
push ecx
lea ecx, [ebp - 0x240]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x240]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408581
leave
ret 4

Function at 0x406702
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 0x406725
push dword [esp + 8]
push dword [esp + 8]
call fcn.004067e3
pop ecx
pop ecx
inc dword [0x477e10]
ret 8

Function at 0x4067e3
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, 0x4659d0
mov dword [0x4659d0], 0x55004e
mov dword [0x4659d4], 0x4c
push edi
mov edi, 0x400
test esi, esi
je 0x406836
push 1
push 0
push esi
call fcn.00406e34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40691c
cmp eax, edi
jg 0x40691c
push edi
mov esi, 0x4651d0
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40691c
cmp eax, edi
jg 0x40691c
push ebp
push esi
push ebx
push str._ls_ls_r_n
push 0x464dd0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x477d50]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00406321
push 4
push 0xc0000000
push esi
call fcn.00406e34
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40691b
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 0x406914
push esi
push edi
push ebx
call fcn.00406e61
test eax, eax
je 0x406914
push str._Rename__r_n
push edi
call fcn.00407068
test eax, eax
jne 0x406920
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 0x464dd0
lea eax, [ecx + edi]
push eax
call fcn.00406ba5
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.00406f25
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
pop ebx
ret
push 0x409a0c
add eax, 0xa
push eax
call fcn.00407068
mov ecx, eax
test ecx, ecx
je 0x4068e5
lea edx, [edi + esi]
jmp 0x40693f
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406939
sub ecx, edi
inc ecx
jmp 0x4068e7
Function at 0x406a76
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004070b6
mov edi, eax
cmp edi, 0xffffffff
je 0x406ab9
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406a9a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406aa0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406aa9
xor eax, eax
inc eax
jmp 0x406abb
test byte [ebp + 0xc], 4
jne 0x406ab9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x460dd0
push edi
call fcn.0040704c
push edi
call fcn.004070de
mov esi, eax
test esi, esi
je 0x406b9e
push esi
call fcn.00407260
test byte [0x477d4c], 0x80
je 0x406b62
movzx eax, word [esi]
test ax, ax
je 0x406b9e
cmp eax, 0x5c
je 0x406b9e
sub esi, edi
sar esi, 1
jmp 0x406b7c
call fcn.00406ac0
test eax, eax
je 0x406b76
test byte [eax], 0x10
je 0x406b9e
push edi
call fcn.0040722f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
cmp eax, esi
jg 0x406b68
call fcn.00406a47
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406b9e
xor eax, eax
inc eax
jmp 0x406ba0
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x406bc7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x45cd88], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x45cd88
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 0x406c06
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406c0a
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x264
mov eax, dword [0x40b0f8]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
mov ebx, dword [esp + 0x270]
push esi
mov esi, dword [esp + 0x270]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406b29
mov dword [esp + 0x18], eax
test bl, 8
je 0x406c5a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x477e08], eax
jmp 0x406de5
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x406c77
test eax, eax
je 0x406dd4
test bl, 2
je 0x406d9d
push esi
push 0x45cdd0
call fcn.0040704c
test ebp, ebp
je 0x406c98
push str..
push 0x45cdd0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x406c9e
push esi
call fcn.0040722f
xor eax, eax
cmp word [esi], ax
jne 0x406caf
cmp word [0x45cdd0], 0x5c
jne 0x406cbb
push 0x409318
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
push 0x45cdd0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x406d89
mov ebp, dword [esp + 0x10]
push 0x2e
pop eax
cmp word [esp + 0x4c], ax
jne 0x406d0b
cmp word [esp + 0x4e], 0
je 0x406d64
cmp word [esp + 0x4e], ax
jne 0x406d0b
cmp word [esp + 0x50], 0
je 0x406d64
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x18]
call fcn.0040704c
test byte [esp + 0x20], 0x10
je 0x406d32
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406d64
push ebx
push esi
call fcn.00406c0a
jmp 0x406d64
push edi
push esi
call fcn.00406a76
test eax, eax
jne 0x406d5c
test edi, edi
je 0x406d54
push esi
push 0xfffffffffffffff1
call fcn.004061ae
xor eax, eax
push eax
push esi
call fcn.00406702
jmp 0x406d64
inc dword [0x477e08]
jmp 0x406d64
push esi
push 0xfffffffffffffff2
call fcn.004061ae
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406ced
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x406de4
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x1c], ecx
je 0x406dd4
push esi
call fcn.00406ac0
test eax, eax
je 0x406de4
push esi
call fcn.00406a47
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406a76
test eax, eax
jne 0x406ddc
test edi, edi
je 0x406dd4
push esi
push 0xfffffffffffffff1
call fcn.004061ae
xor eax, eax
push eax
push esi
call fcn.00406702
jmp 0x406de4
inc dword [0x477e08]
jmp 0x406de4
push esi
push 0xffffffffffffffe5
call fcn.004061ae
pop ebp
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408581
add esp, 0x264
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc