joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090b2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x18
mov eax, 0x411546
call fcn.0040f8b2
push dword [ebp + 0x10]
mov esi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 1
call esi
add esp, 0xc
mov edi, dword [reloc.Common.dll___YCTXStringW__QAEAAV0_PB_W_Z]
mov ebx, 0x414d78
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call edi
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call esi
add esp, 0xc
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call edi
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call ebx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 4
call ebx
mov byte [ebp - 4], 3
call fcn.00407dd5
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x409226
cmp eax, 0xfffffffd
je 0x409226
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call esi
add esp, 0xc
push 0x414e4c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
cmp eax, 0xffffffff
je 0x4091f7
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
cmp dword [0x419208], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
je 0x4091b0
push 0x414e44
jmp 0x4091b5
push 0x414e3c
call edi
push 0x414e4c
lea ecx, [ebp - 0x10]
call edi
push 1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call ebx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 7
call ebx
mov byte [ebp - 4], 6
call fcn.00407cc4
add esp, 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call esi
jmp 0x409250
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call edi
mov eax, dword [ebp - 0x20]
call fcn.0040f951
ret
Function at 0x40bead
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push 0x26c
mov eax, 0x41192b
call fcn.0040f91b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
xor edi, edi
push 0x24c
xor ebx, ebx
lea eax, [ebp - 0x25c]
push edi
inc ebx
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x260], edi
call sub.MSVCR100.dll_memset
push 0x414b68
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0x18
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], bl
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x40c032
cmp ebx, edi
je 0x40c026
test byte [ebp - 0x260], 0x10
je 0x40c00c
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x414b60
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x40c00c
push 0x414b5c
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x40c00c
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x274], edi
call dword [sym.imp.Common.dll_Ordinal_34]
pop ecx
pop ecx
cmp dword [ebp - 0x274], edi
je 0x40bfce
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
call fcn.0040b669
add esp, 0x10
jmp 0x40c00c
lea eax, [ebp - 0x234]
push eax
push str.All_Users
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40c00c
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
call fcn.0040bbb7
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x40bf32
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40c07f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push 0x414d90
push str.StorageTool
push 2
push str.func
push 0xa4d
push str.file
call fcn.00407b42
add esp, 0x20
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call esi
call fcn.0040f965
ret
Function at 0x40ec32
Capabilities:
Create process on windows

Disassembly:
push 0x14
mov eax, 0x411ee3
call fcn.0040f8b2
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [ebp - 0x10]
call esi
mov eax, 0x104
push eax
xor ebx, ebx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXStringW::GetBuffer_int_]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::ReleaseBuffer_int_]
push 0x5c
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::ReverseFind_wchar_t_const]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Mid_int__int_]
push str.QQ.exe
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
mov byte [ebp - 4], 2
cmp dword [0x419208], ebx
je 0x40ecb6
push str.TM.exe
lea ecx, [ebp - 0x14]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call esi
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push 5
push ebx
lea ecx, [ebp - 0x18]
call esi
push eax
lea ecx, [ebp - 0x1c]
call esi
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call esi
call fcn.0040f951
ret

Function at 0x40ed29
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.explorer.exe
lea ecx, [ebp - 4]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push 5
push 0
call esi
push eax
lea ecx, [ebp - 4]
call esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
pop esi
leave
ret
Function at 0x40ee57
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x411f10
call fcn.0040f8b2
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
lea ecx, [ebp + 8]
test al, al
je 0x40ee8a
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor eax, eax
call fcn.0040f951
ret
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
push 0x5c
push eax
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 0xd], al
call esi
cmp byte [ebp - 0xd], bl
je 0x40eebf
push 0x5c
lea ecx, [ebp + 8]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
push str.temp.tmp
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
xor eax, eax
push ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push 0x80
push 2
lea eax, [ebp - 0x24]
push eax
push ebx
push 0xc0000000
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40ef2c
xor edi, edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call esi
mov eax, edi
jmp 0x40ee84
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
jmp 0x40ef14
Function at 0x40f459
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x412041
call fcn.0040f91b
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x228], esi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0x22c], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x413658
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f4e6
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
je 0x40f540
push 0x415418
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea eax, [ebp - 0x224]
push eax
mov ecx, edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call esi
mov eax, edi
jmp 0x40f5cb
push ebx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
mov edi, 0x414d78
push edi
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_const__]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 0x21d], al
mov byte [ebp - 4], 2
call esi
cmp byte [ebp - 0x21d], 0
je 0x40f595
push edi
lea ecx, [ebp - 0x21c]
call dword [0x41307c]
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call esi
mov eax, dword [ebp - 0x22c]
call fcn.0040f965
ret
Function at 0x405ef7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1274], 0
push esi
jne 0x405f2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f08
mov dword [ecx*4 + 0x7a1270], eax
inc ecx
cmp ecx, 0x100
jl 0x405f03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1270]
xor eax, esi
inc ecx
dec edx
jne 0x405f41
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x78b70c8c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x78e53c5d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x451c50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405eaa
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x451c50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x451c50], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x402f3a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f67
mov ecx, dword [0x451bf8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4297ac], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403065
cmp eax, edi
jl 0x40305e
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x40305b
cmp dword [ebp - 4], esi
jne 0x40305b
push dword [ebp + 8]
add dword [0x4297ac], esi
call fcn.00403065
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40305e
cmp dword [ebp + 0x10], edi
jne 0x40302a
cmp dword [ebp + 8], edi
jle 0x403056
mov esi, 0x4257a8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fda
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x40305b
cmp edi, dword [ebp - 4]
jne 0x40305b
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403026
cmp dword [ebp + 0x14], edi
jne 0x403026
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4297ac], eax
cmp dword [ebp + 8], 0
jg 0x402fcd
jmp 0x403056
push 0xfffffffffffffffe
jmp 0x40305d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403035
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x40305b
mov eax, dword [ebp - 4]
add dword [0x4297ac], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40305e
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403065
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4297ac]
sub esi, dword [0x413be0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x451bac], eax
jle 0x4031cf
push dword [0x4317bc]
call fcn.00403213
push ebx
push ebx
push dword [0x413be0]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4317b8], esi
mov dword [0x4297a8], ebx
mov ebp, 0x41d7a8
mov eax, dword [0x4297b0]
mov edi, 0x4000
sub eax, dword [0x4317bc]
cmp eax, edi
jg 0x4030da
mov edi, eax
mov esi, 0x4257a8
push edi
push esi
call fcn.004031e1
test eax, eax
je 0x4031c1
add dword [0x4317bc], edi
mov dword [0x413be8], esi
mov dword [0x413bec], edi
cmp dword [0x451bb0], ebx
je 0x403131
cmp dword [0x451c40], ebx
jne 0x403131
mov eax, dword [0x4317b8]
push ebx
sub eax, dword [0x4297ac]
sub eax, dword [esp + 0x1c]
add eax, dword [0x413be0]
mov dword [0x4297a8], eax
call fcn.00402bd3
pop ecx
push 0x413be8
mov dword [0x413bf0], ebp
mov dword [0x413bf4], 0x8000
call fcn.00405f84
test eax, eax
jl 0x4031ca
mov esi, dword [0x413bf0]
sub esi, ebp
je 0x40318b
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031c6
cmp esi, dword [esp + 0x10]
jne 0x4031c6
add dword [0x413be0], esi
cmp dword [0x413bec], ebx
jne 0x403100
jmp 0x403197
cmp dword [0x413bec], ebx
jne 0x4031ca
cmp edi, ebx
je 0x4031ca
mov eax, dword [0x4297ac]
mov ecx, eax
sub ecx, dword [0x413be0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030c4
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031cf
or eax, 0xffffffff
jmp 0x4031d9
push 0xfffffffffffffffe
jmp 0x4031cc
push 0xfffffffffffffffd
pop eax
jmp 0x4031d9
push 1
call fcn.00402bd3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4053e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x448010], 0x44
push eax
xor eax, eax
push 0x448010
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405423
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4054ad
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040575c
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054e1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451c28], eax
jmp 0x405675
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054ff
test eax, eax
je 0x405620
test byte [ebp + 0xc], 2
je 0x405620
mov esi, 0x443810
push edi
push esi
call fcn.00405b88
test ebx, ebx
je 0x40551c
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405522
push edi
call fcn.004056c2
cmp byte [edi], 0
jne 0x405530
cmp byte [0x443810], 0x5c
jne 0x40553b
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405616
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056a6
cmp byte [eax], 0
je 0x405581
cmp byte [ebp - 0x18], 0
je 0x405581
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405597
mov al, byte [esi + 1]
test al, al
je 0x4055f5
cmp al, 0x2e
jne 0x405597
cmp byte [esi + 2], 0
je 0x4055f5
push esi
push ebx
call fcn.00405b88
test byte [ebp - 0x148], 0x10
je 0x4055bc
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055f5
push dword [ebp + 0xc]
push edi
call fcn.004054ad
jmp 0x4055f5
push edi
call fcn.00405840
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055ed
test byte [ebp + 0xc], 4
je 0x4055e5
push edi
push 0xfffffffffffffff1
call fcn.00404f26
push 0
push edi
call fcn.004058d6
jmp 0x4055f5
inc dword [0x451c28]
jmp 0x4055f5
push edi
push 0xfffffffffffffff2
call fcn.00404f26
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40555f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405620
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405675
cmp dword [ebp - 8], esi
jne 0x405635
inc dword [0x451c28]
jmp 0x405675
push edi
call fcn.00405e83
test eax, eax
je 0x405675
push edi
call fcn.0040567b
push edi
call fcn.00405840
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40566d
test byte [ebp + 0xc], 4
je 0x40562d
push edi
push 0xfffffffffffffff1
call fcn.00404f26
push esi
push edi
call fcn.004058d6
jmp 0x405675
push edi
push 0xffffffffffffffe5
call fcn.00404f26
pop edi
pop esi
leave
ret 8