joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469353
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045ca5d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004620f5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00463611
test eax, eax
je 0x43cdac
mov ecx, dword [esp + 0x3c]
call fcn.00462122
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43cd70
push edi
mov ecx, esi
call fcn.0045f783
mov ecx, esi
call fcn.0043cf50
cmp dword [esp + 0x38], 1
jne 0x43cda5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045f8be
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43ef80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43efb3
push esi
call fcn.004420f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43efac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f039
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f022
mov eax, dword [esi + 8]
test eax, eax
je 0x43efd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f01e
cmp eax, 2
je 0x43f022
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43efca
cmp eax, 3
je 0x43effd
cmp eax, 1
jne 0x43efca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43efca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43efca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f060
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f048
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f060
add esp, 4
pop esi
ret

Function at 0x45d852
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45d88a
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.0045b909
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045b8e1
jmp 0x45d896
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45ef40
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 0x45ef82
call fcn.00464a01
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45ef82
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45ef79
xor eax, eax
jmp 0x45ef8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045ef90
pop edi
pop esi
pop ebx
ret 4

Function at 0x464f31
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 0x464f5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464f7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464e97
jmp 0x464f7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464f7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464e97
test edi, edi
mov eax, edi
jne 0x464f67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402c07
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [0x409140]
xor ecx, ecx
xor edx, edx
test eax, eax
jle 0x402c35
push edi
movsx edi, byte [edx + esi]
add edi, ecx
imul edi, edi, 0x401
mov ecx, edi
shr edi, 6
xor ecx, edi
inc edx
cmp edx, eax
jl 0x402c1c
pop edi
imul ecx, ecx, 9
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
pop esi
ret
Function at 0x401596
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42d000], 0
push ebx
push ebp
push esi
push edi
mov edi, 0xffff
mov ebx, 0x42d000
je 0x4015b5
push ebx
call fcn.00405c5c
jmp 0x4015bb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x425bc4]
test esi, esi
je 0x401610
mov ecx, dword [0x425b80]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x425bc0]
xor ebp, ebp
add ecx, edx
mov bp, word [ecx]
xor bp, ax
dec esi
and ebp, edi
test bp, bp
je 0x4015f5
test esi, esi
jne 0x4015dd
jmp 0x401610
mov edx, dword [ecx + 2]
mov dword [0x425c7c], edx
mov edx, dword [ecx + 6]
mov dword [0x425c28], edx
lea edx, [ecx + 0xa]
mov dword [0x425c88], edx
cmp dword [0x425c88], 0
jne 0x40162b
cmp di, 0xffff
jne 0x401627
mov edi, 0x3ff
jmp 0x4015bd
xor edi, edi
jmp 0x4015bd
movzx eax, word [ecx]
push eax
push ebx
call fcn.00405c43
push 0xfffffffffffffffe
push 0x425ca0
call fcn.00406159
push eax
push dword [0x40b09c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4035dd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40c8bc], 0
push esi
jne 0x403614
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 0x4035ee
mov dword [ecx*4 + 0x40c8b8], eax
inc ecx
cmp ecx, 0x100
jl 0x4035e9
mov esi, dword [esp + 0x10]
test esi, esi
mov eax, dword [esp + 8]
not eax
jbe 0x403642
mov ecx, dword [esp + 0xc]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x40c8b8]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x403626
not eax
pop esi
ret 0xc

Function at 0x403762
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 8
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4037d4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4037ad
cmp dword [ebp + 0x10], ebx
jne 0x4037db
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00403762
test eax, eax
jne 0x4037bf
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403794
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x4037d4
Function at 0x4053a8
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4229e0]
sub esi, dword [0x4229ec]
mov ebx, eax
add esi, dword [esp + 0x38]
add ebx, 0x1f4
cmp esi, edi
jle 0x405579
push dword [0x4229e8]
call fcn.00405391
push edi
push edi
push dword [0x4229ec]
push dword [0x40a05c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41e9d8], esi
mov dword [0x41e9d0], edi
mov eax, dword [0x4229e4]
sub eax, dword [0x4229e8]
mov ebp, 0x4000
cmp eax, ebp
jg 0x40541c
mov ebp, eax
push ebp
mov esi, 0x41e9e0
push esi
call fcn.0040535f
test eax, eax
je 0x405585
add dword [0x4229e8], ebp
mov dword [0x416960], esi
mov dword [0x416964], ebp
cmp dword [0x425b80], edi
je 0x4054ce
cmp dword [0x425c20], edi
jne 0x4054ce
cmp dword [esp + 0x10], edi
je 0x40549b
mov eax, dword [0x41e9d8]
sub eax, dword [0x4229e0]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [esp + 0x38]
add eax, dword [0x4229ec]
mov dword [0x41e9d0], eax
jmp 0x405489
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
call esi
test eax, eax
jne 0x40547e
jmp 0x4054ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x4054ce
mov eax, dword [0x4264a0]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x40529e
push edi
push 0x6f
push dword [0x4264a4]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x416948
mov dword [0x416968], 0x4169d0
mov dword [0x41696c], 0x8000
call fcn.00406582
test eax, eax
jl 0x40558e
mov esi, dword [0x416968]
mov eax, 0x4169d0
sub esi, eax
je 0x405535
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
push dword [0x40a05c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40558a
cmp esi, dword [esp + 0x14]
jne 0x40558a
add dword [0x4229ec], esi
cmp dword [0x416964], edi
jne 0x405442
jmp 0x405541
cmp dword [0x416964], edi
jne 0x40558e
cmp ebp, edi
je 0x40558e
mov eax, dword [0x4229e0]
mov ecx, eax
sub ecx, dword [0x4229ec]
add ecx, dword [esp + 0x38]
test ecx, ecx
jg 0x405406
push edi
push edi
push eax
push dword [0x40a05c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x10], edi
je 0x405579
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
or eax, 0xffffffff
jmp 0x40557b
push 0xfffffffffffffffe
jmp 0x405590
push 0xfffffffffffffffd
pop eax
jmp 0x40557b
Function at 0x405593
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 esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4055bf
mov ecx, dword [0x425bd8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a05c]
mov dword [0x4229e0], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004053a8
cmp eax, edi
jl 0x4056b8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a05c]
call ebx
test eax, eax
je 0x4056b4
cmp dword [ebp - 4], esi
jne 0x4056b4
push dword [ebp + 8]
add dword [0x4229e0], esi
call fcn.004053a8
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4056b7
cmp dword [ebp + 0x10], edi
jne 0x405683
cmp dword [ebp + 8], edi
jle 0x4056af
mov esi, 0x41e9e0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x405633
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a05c]
call ebx
test eax, eax
je 0x4056b4
cmp edi, dword [ebp - 4]
jne 0x4056b4
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40567f
cmp dword [ebp + 0x14], edi
jne 0x40567f
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4229e0], eax
cmp dword [ebp + 8], 0
jg 0x405626
jmp 0x4056af
push 0xfffffffffffffffe
jmp 0x4056b6
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40568e
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a05c]
call ebx
test eax, eax
je 0x4056b4
mov eax, dword [ebp - 4]
add dword [0x4229e0], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4056b7
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4059e9
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x4231f0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405a0d
test al, 0x10
jne 0x405a10
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x4231f0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405a3b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x405b62
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405b91
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405bd5
test edi, edi
jne 0x405b9c
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405bcf

Function at 0x405bd9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c3d
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], 0x400
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c2c
cmp dword [ebp + 0x14], 1
je 0x405c2e
cmp dword [ebp + 0x14], 2
je 0x405c2e
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405d95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405dba
mov eax, dword [0x40a060]
cmp eax, 0xffffffff
je 0x405db1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a060], 0xffffffff
jmp 0x405e2e
cmp dword [0x423f78], ebx
je 0x405e2e
cmp byte [0x425780], bl
je 0x405df9
cmp dword [0x40a060], 0xffffffff
jne 0x405e02
push 4
push 0x40000000
push 0x425780
call fcn.00405b62
cmp eax, 0xffffffff
mov dword [0x40a060], eax
je 0x405e2e
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a060], 0xffffffff
je 0x405e2e
push esi
push 0x408b20
mov esi, 0x423f80
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp + 8]
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a060]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
mov esi, 0x423238
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00405af5
test eax, eax
jne 0x405efc
xor eax, eax
jmp 0x405f4e
test byte [0x425be4], 0x80
je 0x405f10
mov cl, byte [eax]
test cl, cl
je 0x405ef8
cmp cl, 0x5c
je 0x405ef8
push edi
mov edi, eax
sub edi, esi
jmp 0x405f2c
push esi
call fcn.00405e4f
test eax, eax
je 0x405f26
test byte [eax], 0x10
je 0x405f52
push esi
call fcn.00405eb9
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
jg 0x405f17
push esi
call fcn.00405e8d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405f4d
Function at 0x405fa2
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x4083b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405fda
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405fda
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40611f
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423638], 0x4c554e
mov edi, 0x400
mov ebp, 0x423638
je 0x40601e
push 1
push 0
push esi
call fcn.00405b62
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406125
cmp eax, edi
jg 0x406125
push edi
mov esi, 0x422df0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406125
cmp eax, edi
jg 0x406125
push esi
push ebp
push str._s_s_r_n
push 0x4229f0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x3f0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40611f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406107
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4060fb
push str._Rename__r_n
push edi
call fcn.00405f56
test eax, eax
jne 0x40612c
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
push 0x4229f0
add eax, edi
push eax
call fcn.00405b42
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x425c10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408b24
add eax, 0xa
push eax
call fcn.00405f56
test eax, eax
je 0x4060e2
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406155
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406148
sub eax, edi
jmp 0x4060e4
Function at 0x40638e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405ede
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], eax
mov dword [ebp + 8], ebx
je 0x4063c3
test eax, eax
je 0x40655b
test byte [ebp + 0xc], 2
je 0x4064f2
push edi
mov esi, 0x423b78
push esi
call sub.KERNEL32.dll_lstrcpyA
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4063e3
push str..
push esi
call ebx
jmp 0x4063e9
push edi
call fcn.00405eb9
push 0x408634
push edi
call ebx
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4064e8
cmp byte [ebp - 0x118], 0x2e
jne 0x406437
cmp byte [ebp - 0x117], 0x2e
je 0x4064cb
cmp byte [ebp - 0x117], 0
je 0x4064cb
lea eax, [ebp - 0x118]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpyA
test byte [ebp - 0x144], 0x10
je 0x406462
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4064cb
push dword [ebp + 0xc]
push edi
call fcn.0040638e
jmp 0x4064cb
push edi
push str.Delete:_DeleteFile___s__
call fcn.00405e33
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edi
jne 0x4064c4
test byte [ebp + 0xc], 4
je 0x4064b0
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00405e33
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00402842
push 0
push edi
call fcn.00405fa2
jmp 0x4064cb
push str.Delete:_DeleteFile_failed___s__
call fcn.00405e33
inc dword [0x425c08]
pop ecx
pop ecx
jmp 0x4064cb
push 0xfffffffffffffff2
call fcn.00402842
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406414
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4064f2
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40655b
cmp dword [ebp + 8], esi
je 0x40655b
push edi
call fcn.00405e8d
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00405e33
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edi
jne 0x406554
test byte [ebp + 0xc], 4
je 0x406540
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00405e33
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00402842
push esi
push edi
call fcn.00405fa2
jmp 0x40655b
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00405e33
inc dword [0x425c08]
pop ecx
pop ecx
jmp 0x40655b
push 0xffffffffffffffe5
call fcn.00402842
pop edi
pop esi
pop ebx
leave
ret 8