joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404270
Capabilities:
Create process on windows
Set current directory

Disassembly:
sub esp, 0x27c
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push edi
push str.RemoveFilterDriverReg___n
call fcn.004032b0
lea eax, [esp + 0x174]
push str.devcon_classfilter_USB_upper__vl810filter
push eax
call fcn.00407696
push esi
lea ecx, [esp + 0x78]
push str._sDriverFilter
push ecx
call fcn.00407696
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0x18
lea edx, [esp + 0x68]
push edx
call edi
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00409780
add esp, 0xc
xor ecx, ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov word [esp + 0x70], cx
lea ecx, [esp + 0x190]
push ecx
mov ebx, 1
push 0
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [esp + 0xc], eax
test eax, eax
je 0x404346
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
push eax
call ebx
jmp 0x40434a
mov dword [esp + 0xc], ebx
push esi
call edi
cmp dword [esp + 0xc], 0
mov ecx, dword [esp + 0x27c]
pop edi
setne al
pop ebx
xor ecx, esp
call fcn.004071fc
add esp, 0x27c
ret
Function at 0x404370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x11a]
push ecx
mov word [esp + 0x11c], ax
call fcn.00409780
push 0x103
lea edx, [esp + 0x1d]
push 0
push edx
mov dword [esp + 0x1c], 0xff
mov byte [esp + 0x24], 0
call fcn.00409780
push str.2.2_CheckFilterDriver___n
xor bl, bl
call fcn.004032b0
add esp, 0x1c
mov eax, str.SYSTEMCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
cmp byte [0x428953], bl
je 0x4043e1
mov eax, str.SYSTEMControlSet001ControlClass36fc9e60_c465_11cf_8056_444553540000
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4044e1
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x114]
push eax
push 0
push 0
push str.UpperFilters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4044e8
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push eax
push eax
push eax
push edx
lea eax, [esp + 0x128]
push eax
push 0
push 0
call esi
mov edx, dword [esp + 8]
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x128]
push eax
push 0
push 0
call esi
lea ecx, [esp + 0x10]
push str.vl810filter
push ecx
call fcn.004072e0
add esp, 8
test eax, eax
jne 0x4044cf
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404482
sub eax, edx
movzx esi, ax
cmp byte [esp + esi + 0x11], cl
lea esi, [esp + esi + 0x11]
je 0x4044d1
jmp 0x4044a0
push str.vl810filter
push esi
call fcn.004072e0
add esp, 8
test eax, eax
jne 0x4044cf
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044b7
sub eax, edx
movzx edx, ax
cmp byte [esi + edx + 1], cl
lea esi, [esi + edx + 1]
jne 0x4044a0
jmp 0x4044d1
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test bl, bl
jne 0x4044f1
push str.Filter_Driver_not_found_n
jmp 0x4044f6
xor bl, bl
push str.Filter_Driver_not_found_n
jmp 0x4044f6
push str.Filter_Driver_is_found__tool_will_remove_old_driver_reg_n
call fcn.004032b0
mov ecx, dword [esp + 0x31c]
add esp, 4
mov al, bl
pop ebx
xor ecx, esp
call fcn.004071fc
add esp, 0x318
ret
Function at 0x4071fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420044]
jne 0x407206
repz ret
jmp fcn.00408c7c

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40e397
call fcn.0040984f
mov dword [eax], esi
call fcn.0040983c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00408eb9
add esp, 0x14
push 0x16
pop eax
jmp 0x40e3ec
test dword [ebp + 0xc], 0xfffffff9
jne 0x40e373
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e3c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409862
pop ecx
call fcn.0040983c
mov eax, dword [eax]
jmp 0x40e3ec
test al, 0x10
jne 0x40e3ea
test al, 1
je 0x40e3ea
test byte [ebp + 0xc], 2
je 0x40e3ea
call fcn.0040984f
mov dword [eax], 5
call fcn.0040983c
mov dword [eax], 0xd
jmp 0x40e3bb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4134eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040cb84
and dword [ebp - 4], 0
cmp dword [0x421df4], 0
mov ebx, eax
jne 0x41359c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41364d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41364d
push eax
call fcn.0040cb12
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x421df4], eax
call esi
push eax
call fcn.0040cb12
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x421df8], eax
call esi
push eax
call fcn.0040cb12
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x421dfc], eax
call esi
push eax
call fcn.0040cb12
pop ecx
mov dword [0x421e04], eax
test eax, eax
je 0x41359c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040cb12
pop ecx
mov dword [0x421e00], eax
mov eax, dword [0x421e00]
cmp eax, ebx
je 0x4135f4
cmp dword [0x421e04], ebx
je 0x4135f4
push eax
call fcn.0040cb8d
push dword [0x421e04]
mov esi, eax
call fcn.0040cb8d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4135f4
test edi, edi
je 0x4135f4
call esi
test eax, eax
je 0x4135eb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4135eb
test byte [ebp - 0xc], 1
jne 0x4135f4
or dword [ebp + 0x10], 0x200000
jmp 0x41362d
mov eax, dword [0x421df8]
cmp eax, ebx
je 0x41362d
push eax
call fcn.0040cb8d
pop ecx
test eax, eax
je 0x41362d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41362d
mov eax, dword [0x421dfc]
cmp eax, ebx
je 0x41362d
push eax
call fcn.0040cb8d
pop ecx
test eax, eax
je 0x41362d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x421df4]
call fcn.0040cb8d
pop ecx
test eax, eax
je 0x41364d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41364f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x75994266
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [0x7599568c], esi
jne 0x7599432f
push 0x75994340
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0x75995684
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtOpenSection]
mov ebx, eax
cmp ebx, esi
jl 0x759942ee
push 2
push esi
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x75995680
push 0xffffffffffffffff
push dword [0x75995684]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp ebx, esi
jge 0x75994325
mov eax, dword [0x75995680]
cmp eax, esi
je 0x75994306
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov dword [0x75995680], esi
mov eax, dword [0x75995684]
cmp eax, esi
je 0x7599431c
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x75995684], esi
push ebx
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x75994337
mov dword [0x75995688], 1
inc dword [0x7599568c]
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x40107b
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
push str.GlobalMemoryStatusEx
push str.kernel32.dll
mov dword [esi], SysReAllocString
mov dword [ebp - 0x60], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4010d4
lea ecx, [ebp - 0x60]
push ecx
call eax
test eax, eax
je 0x4010d4
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0040102c
add esp, 0x10
mov dword [esi + 4], edx
jmp 0x4010f4
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x4010f0
mov eax, dword [ebp - 0x18]
and dword [esi + 4], 0
mov dword [esi], eax
mov al, 1
pop esi
leave
ret
Function at 0x402eeb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
or dword [edi + 0x90], 0xffffffff
or dword [edi + 0x94], 0xffffffff
inc eax
push 0x20
mov dword [edi + 0x30], eax
mov dword [edi + 0x44], eax
mov eax, dword [edi + 4]
pop ecx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
cmp eax, ecx
jbe 0x402f54
mov eax, ecx
mov dword [edi + 0x54], eax
mov eax, dword [edi]
push esi
mov dword [edi + 0x58], ebx
cmp eax, dword [edi + 0x20]
je 0x402f98
lea esi, [edi + 0xc8]
mov dword [ebp + 8], ecx
cmp dword [esi + 8], ebx
je 0x402f77
push esi
call fcn.00402250
pop ecx
add esi, 0x28
dec dword [ebp + 8]
jne 0x402f6b
mov ecx, dword [edi + 0x5c]
cmp ecx, ebx
je 0x402f93
mov eax, dword [edi + 0x14]
push ecx
push eax
call dword [eax + 4]
pop ecx
pop ecx
mov dword [edi + 0x5c], ebx
mov eax, dword [edi]
mov dword [edi + 0x20], eax
push dword [edi + 0x10]
lea eax, [edi + 0x98]
push eax
call fcn.00402140
mov eax, dword [edi + 0x58]
lea esi, [eax + 5]
imul esi, esi, 0x28
add esi, edi
pop ecx
inc eax
pop ecx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x58], eax
call fcn.004021fe
cmp eax, ebx
jne 0x403005
lea eax, [esi + 0x20]
push eax
call fcn.00409c1b
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x403000
lea eax, [esi + 0x1c]
push eax
call fcn.00409c1b
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x403000
push esi
call fcn.00402ca1
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x403000
mov eax, edi
mov dword [edi + 0x44], ebx
call fcn.004022b9
mov eax, dword [ebp + 8]
cmp eax, ebx
pop esi
jle 0x403012
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
cmp ecx, ebx
je 0x40301b
mov dword [edi + 0x40], ecx
cmp dword [edi + 0x38], ebx
jne 0x40302d
cmp dword [edi + 0x40], ebx
jne 0x40302d
cmp dword [edi + 0x3c], ebx
jne 0x40302d
mov dword [edi + 0x44], ebx
mov eax, dword [edi + 0x44]
neg eax
sbb eax, eax
not eax
pop edi
and eax, ecx
pop ebx
pop ebp
ret
Function at 0x4043bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.00412367
push dword [ebp + 0xc]
lea ecx, [esi + 0x10]
call fcn.004143f0
push 0x5c
lea ecx, [esi + 0x10]
call fcn.00404093
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4042ac
push edi
push edi
mov dword [0x42c720], esi
mov dword [0x42c728], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42c724], eax
cmp eax, edi
je 0x404430
cmp dword [0x42c784], 2
je 0x404422
call fcn.0040bbe1
mov eax, dword [0x42c724]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x42c724]
mov ecx, dword [0x42c728]
mov dword [0x42c824], edi
cmp ecx, edi
je 0x404476
cmp ecx, 1
je 0x40446a
cmp ecx, 2
je 0x404466
cmp ecx, 3
je 0x404462
cmp ecx, 0x67
jle 0x40445d
cmp ecx, 0x6b
jle 0x4044df
push ecx
push 0x14
jmp 0x4044b0
push 0x12
jmp 0x40446c
push 0x13
jmp 0x40446c
push 0x11
push edi
call fcn.0040bd65
pop ecx
pop ecx
jmp 0x4044df
mov dword [ebp + 8], edi
cmp dword [0x42c82c], edi
jne 0x4044df
cmp eax, edi
je 0x40449d
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40449d
cmp dword [ebp + 8], edi
jne 0x40449d
xor eax, eax
jmp 0x4044e4
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x4044b3
push dword [ebp + 8]
push 0x21
push edi
jmp 0x4044d7
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x4044c9
cmp dword [0x42c788], 0xffffffff
je 0x4044df
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.0040bd65
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x404cd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x404cfd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x404d15
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404d12
test al, 0x10
jne 0x404d12
push esi
jmp 0x404cf3
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x405127
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x42c73c]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x40516f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x405199
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405182
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405199
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x405203
cmp dword [0x42c74c], 0
jne 0x405201
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x42c750]
mov dword [0x42c74c], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x42c73c]
push edi
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x4051f7
push str.SetThreadPreferredUILanguages
push dword [0x42c750]
call esi
mov ebx, eax
test ebx, ebx
je 0x405201
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054e7
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x42a038], ebx
je 0x40551a
mov eax, 0x42a038
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x40551a
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x42a038]
cmp dword [eax], ebx
jne 0x405503
shl esi, 4
cmp dword [esi + 0x42a038], ebx
jne 0x40552f
mov eax, 0x425a0c
jmp 0x4056a3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x4055df
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x4055d6
call edi
test eax, eax
jne 0x4055d6
mov eax, dword [esi + 0x42a044]
test eax, eax
je 0x4055cb
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4055c8
push dword [esi + 0x42a044]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x42a044], edi
jmp 0x4055de
push edi
jmp 0x4055d9
mov eax, dword [ebp - 8]
mov dword [esi + 0x42a044], eax
jmp 0x4055df
push dword [ebp - 8]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x42a044]
test eax, eax
jne 0x4056a2
mov ebx, dword [esi + 0x42a03c]
cmp dword [esi + 0x42a040], eax
je 0x405617
call fcn.0040548c
cmp eax, dword [0x426bd8]
jne 0x405617
mov ebx, dword [esi + 0x42a040]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x42a004], 0xffffffff
pop ecx
mov dword [esi + 0x42a044], eax
jne 0x405682
and dword [0x42a004], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x42c73c]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x405682
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCR100.dll__wtol]
pop ecx
mov dword [0x42a004], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x42a044]
push edi
push ebx
push 0
push dword [0x42a004]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x42a044]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057a0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4057f3
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x405a51
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004143b7
push 0x425b20
lea ecx, [ebp - 0xc]
call fcn.00413fb3
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405b2d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004143f0
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00404093
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00413fb3
test byte [ebp - 0x25c], 0x10
je 0x405af8
push 0x425b1c
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x405b10
push 0x425b14
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x405b10
push dword [ebp - 0xc]
call fcn.00405a51
pop ecx
jmp 0x405b0c
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x405b52
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405b52
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a9c
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x405b52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x405b52
push dword [ebp - 0xc]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x405b5c
push dword [ebp - 0xc]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405b62
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x42c838], 0
je 0x405b79
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x405b95
xor eax, eax
inc eax
jmp 0x405bc6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x405bbf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405bbb
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x405bc6
xor eax, eax
jmp 0x405bc6
push esi
call fcn.00405a51
pop ecx
pop esi
leave
ret
Function at 0x406453
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.004143b7
push 0
lea ecx, [ebp - 0x18]
call fcn.004060a0
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x40648f
cmp eax, 0x2f
jne 0x4064bd
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x4064bd
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x4064af
cmp eax, 0x5c
je 0x4064af
dec esi
test esi, esi
jg 0x40649c
test esi, esi
je 0x406561
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00404cd0
pop ecx
test eax, eax
je 0x4064ab
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4064f4
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004061bc
pop ecx
pop ecx
test eax, eax
je 0x4064f4
xor esi, esi
jmp 0x406584
push edi
call fcn.00404cd0
pop ecx
test eax, eax
jne 0x40654e
push edi
push 0xc
push 1
call fcn.0040bd65
add esp, 0xc
jmp 0x4064ed
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCR100.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x406540
jmp 0x40653f
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x406546
cmp eax, 0x2f
je 0x406546
inc esi
cmp word [edi + esi*2], cx
jne 0x406531
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x4064f4
cmp esi, dword [ebp - 4]
jl 0x40650e
push dword [ebp - 0x18]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4065a8
cmp dword [ebp - 4], 2
jne 0x406591
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x406591
cmp ax, 0x7a
ja 0x406591
cmp word [ebx + 2], 0x3a
jne 0x406591
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4065a8
push ebx
push 0xc
push 1
call fcn.0040bd65
push dword [ebp - 0x18]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret