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

Disassembly:
push 0xffffffffffffffff
push 0x482428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047ae7a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00446350
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047ada8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00477669
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00477669
push 1
push 0
push 0
mov ecx, esi
call fcn.00477611
push 1
push 0
push 1
mov ecx, esi
call fcn.00477611
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047aeec
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x446b30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047ae7a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00446350
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047ada8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x446bf4
cmp dword [esp + 0x40], 1
jne 0x446bf2
cmp ecx, eax
jge 0x446bf4
mov eax, ecx
cmp eax, 0xc8
jge 0x446c00
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004469b0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047aeec
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x447380
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4824b3
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.00475a8a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.0047b122
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047c63e
test eax, eax
je 0x44749c
mov ecx, dword [esp + 0x3c]
call fcn.0047b14f
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 0x447460
push edi
mov ecx, esi
call fcn.004787b7
mov ecx, esi
call fcn.00447600
cmp dword [esp + 0x38], 1
jne 0x447495
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.004788f2
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 0x449ec0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x449ef3
push esi
call fcn.0044cfd0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x449eec
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 0x449f79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x449f62
mov eax, dword [esi + 8]
test eax, eax
je 0x449f17
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 0x449f5e
cmp eax, 2
je 0x449f62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x449f0a
cmp eax, 3
je 0x449f3d
cmp eax, 1
jne 0x449f0a
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 0x449f0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x449f0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00449fa0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x449f88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00449fa0
add esp, 4
pop esi
ret
Function at 0x456870
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4568ba
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4568e9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45692b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x47687f
Capabilities:
Get graphical window text

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

Function at 0x477f71
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 0x477fb3
call fcn.0047da29
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x477fb3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x477faa
xor eax, eax
jmp 0x477fbb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00477fc1
pop edi
pop esi
pop ebx
ret 4

Function at 0x47df3d
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 0x47df6b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47df89
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047dea3
jmp 0x47df89
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47df89
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047dea3
test edi, edi
mov eax, edi
jne 0x47df73
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4032be
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032db
mov dword [ebp - 8], RegSetValueExA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032ea
mov ebx, 0x4183ac
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032ff
mov ecx, dword [0x44aa78]
add ecx, eax
push ecx
call fcn.004034ec
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034ba
test eax, eax
je 0x4034a8
test byte [ebp + 0x17], 0x80
je 0x40344e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4142e0
mov dword [ebp - 0xc], eax
call fcn.004063fc
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034b0
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40334f
mov esi, dword [ebp + 0x14]
mov edi, 0x4143ac
push esi
push edi
call fcn.004034ba
test eax, eax
je 0x4034a8
sub dword [ebp + 0x14], esi
mov dword [0x4142f8], edi
mov dword [0x4142fc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4142e0
mov dword [0x414300], ebx
mov dword [0x414304], eax
call fcn.0040641e
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403446
mov esi, dword [0x414300]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409808], 1
mov edi, eax
je 0x4033f1
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033be
cmp dword [ebp + 0x14], 0
jne 0x4033f1
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040522c
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40343b
cmp dword [ebp + 0x10], eax
jne 0x40341a
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40344a
cmp dword [ebp - 0x10], esi
jne 0x40344a
add dword [ebp - 4], esi
jmp 0x403430
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x414300]
jl 0x4034b0
cmp dword [ebp - 0x14], 1
je 0x4034b0
jmp 0x403372
cmp dword [ebp + 0x14], eax
jg 0x403342
jmp 0x4034b0
push 0xfffffffffffffffc
jmp 0x4034aa
push 0xfffffffffffffffe
jmp 0x4034aa
test edi, edi
jne 0x403495
cmp dword [ebp + 0x14], 0
jle 0x4034b0
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403463
mov esi, dword [ebp + 0x14]
mov edi, 0x4143ac
push esi
push edi
call fcn.004034ba
test eax, eax
je 0x4034a8
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40344a
cmp esi, dword [ebp + 0x10]
jne 0x40344a
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x403452
cmp dword [ebp + 0x14], esi
jge 0x40349d
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034ba
test eax, eax
jne 0x4034ad
push 0xfffffffffffffffd
pop eax
jmp 0x4034b3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403bc4
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47b000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov edi, 0x47b000
je 0x403be3
push edi
call fcn.00405e95
jmp 0x403be9
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44aa64]
mov ecx, esi
dec esi
test ecx, ecx
je 0x403c3d
mov ecx, dword [0x44aa28]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x44aa60]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x403c24
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x403c0c
jmp 0x403c3d
mov edx, dword [ecx + 2]
mov dword [0x446a00], edx
mov edx, dword [ecx + 6]
mov dword [0x44aac8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403c4f
cmp bx, 0xffff
jne 0x403c4b
mov ebx, 0x3ff
jmp 0x403be9
xor ebx, ebx
jmp 0x403be9
mov dword [0x4469fc], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.00405e7c
push 0xfffffffffffffffe
push 0x446a20
call fcn.00405f4e
push eax
push dword [0x4343c4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44aa4c]
mov esi, dword [0x44aa48]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403ca9
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403ca2
push eax
push ebx
call fcn.00405f4e
add esi, edi
add ebx, edi
dec ebp
jne 0x403c95
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40574f
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 [0x439be8], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405773
test al, 0x10
jne 0x405776
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x439be8
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 0x4057a1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405821
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 esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405b06
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405855
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44aaa8], eax
jmp 0x405a1e
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405873
test eax, eax
je 0x4059a2
test byte [ebp + 0xc], 2
je 0x4059a2
mov esi, 0x4353e8
push edi
push esi
call fcn.00405f1f
test ebx, ebx
je 0x405890
push str..
push esi
call fcn.00405f3d
jmp 0x405896
push edi
call fcn.00405a6b
push 0x409228
push edi
call fcn.00405f3d
push edi
call fcn.00405f30
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 0x405998
cmp byte [ebp - 0x118], 0x2e
jne 0x4058e7
cmp byte [ebp - 0x117], 0x2e
je 0x40597b
cmp byte [ebp - 0x117], 0
je 0x40597b
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00405f1f
test byte [ebp - 0x144], 0x10
je 0x405912
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40597b
push dword [ebp + 0xc]
push edi
call fcn.00405821
jmp 0x40597b
push edi
push str.Delete:_DeleteFile___s__
call fcn.004062c5
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405973
test byte [ebp + 0xc], 4
push edi
je 0x40595f
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004062c5
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040522c
push 0
push edi
call fcn.00405c68
jmp 0x40597b
push str.Delete:_DeleteFile_failed___s__
call fcn.004062c5
inc dword [0x44aaa8]
pop ecx
pop ecx
jmp 0x40597b
push edi
push 0xfffffffffffffff2
call fcn.0040522c
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058c4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4059a2
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405a1e
cmp dword [ebp - 4], esi
push edi
jne 0x4059c4
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004062c5
inc dword [0x44aaa8]
pop ecx
pop ecx
jmp 0x405a1e
call fcn.004062e1
test eax, eax
je 0x405a1e
push edi
call fcn.00405a24
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004062c5
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405a16
test byte [ebp + 0xc], 4
push edi
je 0x405a0f
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004062c5
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040522c
push esi
push edi
call fcn.00405c68
jmp 0x405a1e
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4059b5
push edi
push 0xffffffffffffffe5
call fcn.0040522c
pop edi
pop esi
leave
ret 8
Function at 0x405b06
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4373e8
push esi
call fcn.00405f1f
push esi
call fcn.00405ab7
mov edi, eax
test edi, edi
jne 0x405b27
xor eax, eax
jmp 0x405b79
push edi
call fcn.0040618f
test byte [0x44aa30], 0x80
je 0x405b40
mov al, byte [edi]
test al, al
je 0x405b23
cmp al, 0x5c
je 0x405b23
sub edi, esi
push esi
call fcn.00405f30
cmp eax, edi
push esi
jle 0x405b63
call fcn.004062e1
test eax, eax
je 0x405b5b
test byte [eax], 0x10
je 0x405b23
push esi
call fcn.00405a6b
jmp 0x405b42
call fcn.00405a24
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

Function at 0x405bf0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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 0x405c1f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c64
mov eax, edi
dec edi
test eax, eax
jne 0x405c2a
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c5e
Function at 0x405c68
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.0040631f
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c94
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dd8
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x439d70], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x439d70
je 0x405cd8
push 1
push 0
push esi
call fcn.00405bf0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dde
cmp eax, edi
jg 0x405dde
mov esi, 0x4397e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dde
cmp eax, edi
jg 0x405dde
push esi
push ebp
push str._s_s_r_n
push 0x4393e8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.00405f3d
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 0x405dd8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
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 0x405dc0
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405db4
push str._Rename__r_n
push edi
call fcn.00405b7e
test eax, eax
jne 0x405de5
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00405f1f
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4393e8
push eax
call fcn.00405bca
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 [0x44aab0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4099bc
push eax
call fcn.00405b7e
test eax, eax
je 0x405d9b
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405e0e
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405e01
sub eax, edi
jmp 0x405d9d
Function at 0x405e12
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
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 0x405e76
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e65
cmp dword [ebp + 0x14], 1
je 0x405e67
cmp dword [ebp + 0x14], 2
je 0x405e67
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10