joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ffe540f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
cld
push edx
cdq
pop edx
cld
push edx
cdq
pop edx
nop
push edx
cdq
pop edx
nop
and bh, 0xff
stc
and bh, 0xff
cld
push edx
cdq
pop edx
nop
add eax, 0
stc
push edx
cdq
pop edx
call 0x7ffe543a
pop edx
nop
clc
xor dx, dx
cld
clc
clc
nop
add edx, 0xd5e0
stc
pushal
inc eax
popal
cld
cld
xor ecx, ecx
clc
lea esp, [esp]
cld
mov cl, 0x1e
lea esp, [esp]
stc
nop
xor byte [ecx + edx], 0x32
loop 0x7ffe545e
cld
push dword fs:[0x24]
cld
cld
pop dword [edx + 0xa]
cld
nop
stc
mov cl, 0xff
push edx
loop 0x7ffe5476
cld
nop
nop
nop
mov dword [edx + 0x11], 0xffffacbb
clc
nop
mov ecx, dword [eax + 0x2c]
nop
lea esp, [esp]
cld
mov dword [edx + 0x1b], ecx
nop
clc
mov dword [edx + 0x100], ecx
cld
mov dword [eax + 0x2c], esp
stc
and bh, 0xff
nop
nop
push 0
push edx
cdq
pop edx
push 0
add al, 0
stc
push 0
and bh, 0xff
nop
cld
push 0
add eax, 0
push 0x30
pushal
inc eax
popal
clc
cld
push 0x20
nop
cld
nop
push 0
pushal
inc eax
popal
push eax
pop eax
clc
push 0
clc
and bh, 0xff
cld
stc
add edx, 0xffff7f30
nop
pushal
inc eax
popal
push edx
clc
pushal
inc eax
popal
cld
nop
push edx
clc
stc
push 0
cld
pushal
inc eax
popal
cld
cld
call dword [edx + 0x8213]
clc
clc
clc
cld
add esp, 0x3f8
cld
cld
xor eax, eax
cld
and bh, 0xff
cld
inc eax
ret 0xc
Function at 0x424c8a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52bc60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004224c0
mov dword [ebp - 0x14], eax
cmp dword [0x52d798], edi
jne 0x424d7b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x424d08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x424e5b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x424e5b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424e5b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x52d798], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x52d79c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x52d7a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x52d7a8], eax
test eax, eax
je 0x424d78
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x52d7a4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x424da0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424d93
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x424db5
push 4
pop eax
jmp 0x424e5d
cmp dword [ebp - 0x14], edi
je 0x424db5
push dword [0x52d798]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x424d9a
mov eax, dword [0x52d7a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x424e13
cmp dword [0x52d7a8], esi
je 0x424e13
push eax
call ebx
push dword [0x52d7a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x424e13
test eax, eax
je 0x424e13
call ecx
test eax, eax
je 0x424e08
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x424e08
test byte [ebp - 8], 1
jne 0x424e13
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x424e43
mov eax, dword [0x52d79c]
cmp eax, esi
je 0x424e40
push eax
call ebx
test eax, eax
je 0x424e40
call eax
mov edi, eax
test edi, edi
je 0x424e40
mov eax, dword [0x52d7a0]
cmp eax, esi
je 0x424e40
push eax
call ebx
test eax, eax
je 0x424e40
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x52d798]
call ebx
test eax, eax
je 0x424e5b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x424e5d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423470
leave
ret
Function at 0x4260f8
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0042617b
jae 0x426106
xor ecx, ecx
call fcn.0042617b
jae 0x426135
xor eax, eax
call fcn.0042617b
jae 0x426145
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0042617b
adc al, al
jae 0x426127
jne 0x426171
stosb byte es:[edi], al
jmp 0x426109
call fcn.00426187
sub ecx, ebx
jne 0x42614e
call fcn.00426185
jmp 0x42616d
lodsb al, byte [esi]
shr eax, 1
je 0x426197
adc ecx, ecx
jmp 0x42616a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00426185
cmp eax, 0x7d00
jae 0x42616a
cmp ah, 5
jae 0x42616b
cmp eax, 0x7f
ja 0x42616c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x426109
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x56ee048b
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x313048d2
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x123a690
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xac8000]
push edi
or ebp, 0xffffffff
jmp 0x123a6b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x123a6b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x123a6a8
mov eax, 1
add ebx, ebx
jne 0x123a6cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x123a6dc
jne 0x123a6fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x123a6fb
dec eax
add ebx, ebx
jne 0x123a6e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x123a6c0
add ebx, ebx
jne 0x123a6f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x123a74d
xor ecx, ecx
sub eax, 3
jb 0x123a713
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x123a782
sar eax, 1
mov ebp, eax
jmp 0x123a71e
add ebx, ebx
jne 0x123a71e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x123a6ec
inc ecx
add ebx, ebx
jne 0x123a72c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x123a6ec
add ebx, ebx
jne 0x123a739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x123a72e
jne 0x123a74a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x123a72e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x123a76c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x123a75e
jmp 0x123a6ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x123a76c
add edi, ecx
jmp 0x123a6ae
pop esi
mov edi, esi
mov ecx, 0xc836
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x123a78a
cmp byte [edi], 0x39
jne 0x123a78a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x123a78f
lea edi, [esi + 0xe36000]
mov eax, dword [edi]
or eax, eax
je 0x123a7fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe95b44]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe95cb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x123a7bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe95cc0]
or eax, eax
je 0x123a7f8
mov dword [ebx], eax
add ebx, 4
jmp 0x123a7d9
call dword [esi + 0xe95cbc]
mov ebp, dword [esi + 0xe95cc4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x123a832
sub esp, 0xffffff80
jmp 0x6a2d9c
Function at 0x403332
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040697b
xor ebx, ebx
cmp eax, ebx
jne 0x403415
test byte [ebp + 0x10], 2
je 0x403393
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4033fa
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4033cf
test edi, edi
jne 0x4033fa
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00403332
test eax, eax
jne 0x4033d8
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4033a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00407150
test eax, eax
jne 0x40340a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x403415
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x403415
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40373d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x40375d
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40376f
mov dword [ebp - 0xc], 0x424bb8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403784
mov ecx, dword [0x438118]
add ecx, eax
push ecx
call fcn.0040396e
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403958
test eax, eax
je 0x403946
test byte [ebp + 0x17], 0x80
je 0x4038f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40f51c], 0
and dword [0x40f518], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x410ba0
mov dword [0x40f000], 8
mov dword [0x418ba8], eax
mov dword [0x418ba4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x418ba0], 0x418ba0
mov dword [ebp + 8], eax
jle 0x40394e
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4037fd
mov esi, dword [ebp + 0x14]
mov edi, 0x420bb8
push esi
push edi
call fcn.00403958
test eax, eax
je 0x403946
sub dword [ebp + 0x14], esi
mov dword [0x40eff0], edi
mov dword [0x40eff4], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40eff0
mov dword [0x40eff8], edi
mov dword [0x40effc], eax
call fcn.004072ab
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4038e9
mov esi, dword [0x40eff8]
sub esi, edi
call ebx
test byte [0x438174], 1
mov edi, eax
je 0x4038a4
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x40386b
cmp dword [ebp + 0x14], 0
jne 0x4038a4
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 - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405b05
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4038dd
cmp dword [ebp + 0x10], 0
jne 0x4038c3
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004066b0
test eax, eax
je 0x4038ed
add dword [ebp - 4], esi
jmp 0x4038d1
mov eax, dword [0x40eff8]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403820
jmp 0x40394e
cmp dword [ebp + 0x14], 0
jg 0x4037f0
jmp 0x40394e
push 0xfffffffffffffffc
jmp 0x403948
push 0xfffffffffffffffe
jmp 0x403948
test edi, edi
jne 0x403933
cmp dword [ebp + 0x14], edi
jle 0x40394e
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403907
mov esi, ebx
mov edi, 0x420bb8
push esi
push edi
call fcn.00403958
test eax, eax
je 0x403946
push esi
push edi
push dword [ebp + 0xc]
call fcn.004066b0
test eax, eax
je 0x4038ed
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4038fd
jmp 0x40394e
cmp dword [ebp + 0x14], esi
jge 0x40393b
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403958
test eax, eax
jne 0x40394b
push 0xfffffffffffffffd
pop eax
jmp 0x403951
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x406098
Capabilities:
Create process on windows

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

Function at 0x4060db
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406179
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004065d9
mov edi, eax
cmp edi, 0xffffffff
je 0x4061ba
test byte [esp + 0x10], 1
push esi
je 0x40619c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4061a2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4061ab
xor eax, eax
inc eax
jmp 0x4061bc
test byte [esp + 0x10], 4
jne 0x4061ba
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4061c1
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.004064e5
test bl, 8
mov dword [ebp - 8], eax
je 0x406200
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x438148], eax
jmp 0x4063d6
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40621a
test eax, eax
je 0x406358
test bl, 2
je 0x406358
mov edi, 0x430c00
push esi
push edi
call fcn.00406b0e
cmp dword [ebp + 8], 0
je 0x406239
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40623f
push esi
call fcn.00406429
cmp word [esi], 0
jne 0x40624f
cmp word [0x430c00], 0x5c
jne 0x40625a
push 0x40b524
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40634d
cmp word [ebp - 0x22c], 0x2e
jne 0x4062ac
cmp word [ebp - 0x22a], 0
je 0x406330
cmp word [ebp - 0x22a], 0x2e
jne 0x4062ac
cmp word [ebp - 0x228], 0
je 0x406330
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406b0e
test byte [ebp - 0x258], 0x10
je 0x4062d7
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406330
push dword [ebp + 0xc]
push esi
call fcn.004061c1
jmp 0x406330
push esi
push str.Delete:_DeleteFile___s__
call fcn.00407088
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00406179
test eax, eax
push esi
jne 0x406329
cmp dword [ebp - 4], eax
je 0x406315
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00407088
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405b05
push 0
push esi
call fcn.004068ce
jmp 0x406330
push str.Delete:_DeleteFile_failed___s__
call fcn.00407088
inc dword [0x438148]
pop ecx
pop ecx
jmp 0x406330
push 0xfffffffffffffff2
call fcn.00405b05
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40627c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406358
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4063d6
cmp dword [ebp - 8], edi
push esi
jne 0x406379
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00407088
inc dword [0x438148]
pop ecx
pop ecx
jmp 0x4063d6
call fcn.004070b9
test eax, eax
je 0x4063d6
push esi
call fcn.004063dd
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00407088
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00406179
test eax, eax
push esi
jne 0x4063cf
cmp dword [ebp - 4], edi
je 0x4063c8
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00407088
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405b05
push edi
push esi
call fcn.004068ce
jmp 0x4063d6
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x40636a
push 0xffffffffffffffe5
call fcn.00405b05
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4064e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x431400
push esi
call fcn.00406b0e
push esi
call fcn.00406488
mov edi, eax
test edi, edi
jne 0x406506
xor eax, eax
jmp 0x40655e
push edi
call fcn.00406dbc
test byte [0x4380d8], 0x80
je 0x406523
mov ax, word [edi]
test ax, ax
je 0x406502
cmp ax, 0x5c
je 0x406502
sub edi, esi
sar edi, 1
jmp 0x40653d
call fcn.004070b9
test eax, eax
je 0x406537
test byte [eax], 0x10
je 0x406502
push esi
call fcn.00406429
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x406529
call fcn.004063dd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4065d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4065f8
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4065fe
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x40662d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40c508]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40c50c]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40667d
test edi, edi
jne 0x40663a
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406677
Function at 0x406754
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x432298], 0x55004e
mov dword [0x43229c], 0x4c
mov edi, 0x400
mov ebp, 0x432298
je 0x4067aa
push 1
push 0
push esi
call fcn.004065fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4068c9
cmp eax, edi
jg 0x4068c9
mov esi, 0x432a98
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4068c9
cmp eax, edi
jg 0x4068c9
push esi
push ebp
push str._ls_ls_r_n
push 0x431e98
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4380d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406b4b
push 4
push 0xc0000000
push esi
call fcn.004065fe
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4068c9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4068c2
push edi
push esi
push ebp
call fcn.00406681
test eax, eax
je 0x4068c2
push str._Rename__r_n
push esi
call fcn.00406563
test eax, eax
jne 0x406860
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406895
add eax, 0xa
push 0x40c510
push eax
call fcn.00406563
mov ebp, eax
test ebp, ebp
je 0x406891
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406882
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40687c
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406897
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x431e98
push eax
call fcn.004065b9
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004066b0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4068ce
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4068f1
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406754
pop ecx
pop ecx
inc dword [0x438150]
ret 8
Function at 0x4069dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040697b
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406a4c
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406a4c
cmp dword [ebp + 0xc], 1
je 0x406a50
cmp dword [ebp + 0xc], 2
je 0x406a50
and word [esi], 0
pop esi
leave
ret 0x14