joyce8/EMBER2024-capa huggingface dataset:
Function at 0x644d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x644d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x644d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x644d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x644d94
push eax
push esi
call fcn.0064720b
add esp, 8
pop esi
ret 0x10

Function at 0x644da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x644e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x644e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x65d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00646dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x644dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x644e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x644ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x644eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x65d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00646dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x644eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x644e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x645000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x645131
push esi
call fcn.00648145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00637080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x645131
push 0
push ebp
call fcn.006373a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00637260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x64508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006372f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x645121
push 0x65d918
push edi
call fcn.006463f0
push eax
push ebx
push esi
call fcn.00644f60
push 0x65d8f8
push edi
call fcn.006463f0
push eax
push ebx
push esi
call fcn.00644f60
push 0x65d8d8
push edi
call fcn.006463f0
push eax
push ebx
push esi
call fcn.00644f60
push 0x65d8c0
push edi
call fcn.006463f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00644f60
push 0x65d8a0
push edi
call fcn.006463f0
push eax
push ebx
push esi
call fcn.00644f60
push 0x65d888
push edi
call fcn.006463f0
push eax
push ebx
push esi
call fcn.00644f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6461b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00646140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00646140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00646140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00646140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x646bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x646c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x65887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x646c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x646c52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x9935193
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1fc52f46
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x404b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3000]
push edi
or ebp, 0xffffffff
jmp 0x404b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x404b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x404b28
mov eax, 1
add ebx, ebx
jne 0x404b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x404b40
jne 0x404b5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x404b40
xor ecx, ecx
sub eax, 3
jb 0x404b70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x404be2
mov ebp, eax
add ebx, ebx
jne 0x404b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x404b88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x404bac
inc ecx
add ebx, ebx
jne 0x404b98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x404b8d
jne 0x404ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x404b8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x404bcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x404bbd
jmp 0x404b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x404bcc
add edi, ecx
jmp 0x404b2e
pop esi
lea edi, [esi + 0x2000]
mov eax, dword [edi]
or eax, eax
je 0x404c2b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x404be9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4068]
or eax, eax
je 0x404c25
mov dword [ebx], eax
add ebx, 4
jmp 0x404c06
call dword [esi + 0x406c]
popal
jmp 0x40211d
Function at 0x40332b
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.00406a89
xor ebx, ebx
cmp eax, ebx
jne 0x40340e
test byte [ebp + 0x10], 2
je 0x40338c
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 0x4033f3
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4033c8
test edi, edi
jne 0x4033f3
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.0040332b
test eax, eax
jne 0x4033d1
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4033a1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00407237
test eax, eax
jne 0x403403
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40340e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40340e
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 0x4037f3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x40381e
mov ecx, dword [0x42cc58]
push esi
add eax, ecx
push esi
push eax
mov dword [0x42208c], eax
push dword [0x40ad1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004038fb
cmp eax, esi
jl 0x4038f5
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40ad1c]
call fcn.0040678f
test eax, eax
je 0x4038e5
push dword [ebp + 8]
add dword [0x42208c], 4
call fcn.004038fb
mov ebx, eax
cmp ebx, esi
jl 0x4038f3
cmp dword [ebp + 0x10], esi
jne 0x4038c1
cmp dword [ebp + 8], esi
jle 0x4038f3
mov esi, 0x416088
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403883
mov eax, 0x4000
push eax
push esi
push dword [0x40ad1c]
mov dword [ebp - 4], eax
call fcn.0040678f
test eax, eax
je 0x4038e5
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.004067be
test eax, eax
je 0x4038bd
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x42208c], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403872
jmp 0x4038f3
push 0xfffffffffffffffe
jmp 0x4038e7
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4038cc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40ad1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4038ea
push 0xfffffffffffffffd
pop eax
jmp 0x4038f5
mov ebx, dword [ebp - 4]
add dword [0x42208c], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4060f4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408408
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083f8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406145
xor eax, eax
jmp 0x40616c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40616c
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x406141
call esi
pop esi
leave
ret 4

Function at 0x4061a6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4278e0], 0x44
push eax
xor eax, eax
push 0x4278e0
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 0x4061e5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4061e9
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 0x406287
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004066e7
mov edi, eax
cmp edi, 0xffffffff
je 0x4062c8
test byte [esp + 0x10], 1
push esi
je 0x4062aa
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4062b0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4062b9
xor eax, eax
inc eax
jmp 0x4062ca
test byte [esp + 0x10], 4
jne 0x4062c8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4062cf
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.004065f3
test bl, 8
mov dword [ebp - 8], eax
je 0x40630e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42cc88], eax
jmp 0x4064e4
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x406328
test eax, eax
je 0x406466
test bl, 2
je 0x406466
mov edi, 0x4268e0
push esi
push edi
call fcn.00406c1c
cmp dword [ebp + 8], 0
je 0x406347
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40634d
push esi
call fcn.00406537
cmp word [esi], 0
jne 0x40635d
cmp word [0x4268e0], 0x5c
jne 0x406368
push 0x40a524
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 0x40645b
cmp word [ebp - 0x22c], 0x2e
jne 0x4063ba
cmp word [ebp - 0x22a], 0
je 0x40643e
cmp word [ebp - 0x22a], 0x2e
jne 0x4063ba
cmp word [ebp - 0x228], 0
je 0x40643e
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406c1c
test byte [ebp - 0x258], 0x10
je 0x4063e5
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40643e
push dword [ebp + 0xc]
push esi
call fcn.004062cf
jmp 0x40643e
push esi
push str.Delete:_DeleteFile___s__
call fcn.0040716f
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00406287
test eax, eax
push esi
jne 0x406437
cmp dword [ebp - 4], eax
je 0x406423
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040716f
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405bf0
push 0
push esi
call fcn.004069dc
jmp 0x40643e
push str.Delete:_DeleteFile_failed___s__
call fcn.0040716f
inc dword [0x42cc88]
pop ecx
pop ecx
jmp 0x40643e
push 0xfffffffffffffff2
call fcn.00405bf0
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40638a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406466
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4064e4
cmp dword [ebp - 8], edi
push esi
jne 0x406487
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040716f
inc dword [0x42cc88]
pop ecx
pop ecx
jmp 0x4064e4
call fcn.004071a0
test eax, eax
je 0x4064e4
push esi
call fcn.004064eb
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040716f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00406287
test eax, eax
push esi
jne 0x4064dd
cmp dword [ebp - 4], edi
je 0x4064d6
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040716f
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405bf0
push edi
push esi
call fcn.004069dc
jmp 0x4064e4
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x406478
push 0xffffffffffffffe5
call fcn.00405bf0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4065f3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4270e0
push esi
call fcn.00406c1c
push esi
call fcn.00406596
mov edi, eax
test edi, edi
jne 0x406614
xor eax, eax
jmp 0x40666c
push edi
call fcn.00406ea3
test byte [0x42cc18], 0x80
je 0x406631
mov ax, word [edi]
test ax, ax
je 0x406610
cmp ax, 0x5c
je 0x406610
sub edi, esi
sar edi, 1
jmp 0x40664b
call fcn.004071a0
test eax, eax
je 0x406645
test byte [eax], 0x10
je 0x406610
push esi
call fcn.00406537
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x406637
call fcn.004064eb
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 0x4066e7
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 0x406706
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 0x40670c
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 0x40673b
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 [0x40b540]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b544]
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 0x40678b
test edi, edi
jne 0x406748
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406785
Function at 0x406862
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 [0x427f78], 0x55004e
mov dword [0x427f7c], 0x4c
mov edi, 0x400
mov ebp, 0x427f78
je 0x4068b8
push 1
push 0
push esi
call fcn.0040670c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4069d7
cmp eax, edi
jg 0x4069d7
mov esi, 0x428778
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4069d7
cmp eax, edi
jg 0x4069d7
push esi
push ebp
push str._ls_ls_r_n
push 0x427b78
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42cc10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406c59
push 4
push 0xc0000000
push esi
call fcn.0040670c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4069d7
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 0x4069d0
push edi
push esi
push ebp
call fcn.0040678f
test eax, eax
je 0x4069d0
push str._Rename__r_n
push esi
call fcn.00406671
test eax, eax
jne 0x40696e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4069a3
add eax, 0xa
push 0x40b548
push eax
call fcn.00406671
mov ebp, eax
test ebp, ebp
je 0x40699f
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406990
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40698a
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4069a5
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x427b78
push eax
call fcn.004066c7
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.004067be
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 0x4069dc
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 0x4069ff
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406862
pop ecx
pop ecx
inc dword [0x42cc90]
ret 8
Function at 0x406aea
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.00406a89
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406b5a
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 0x406b5a
cmp dword [ebp + 0xc], 1
je 0x406b5e
cmp dword [ebp + 0xc], 2
je 0x406b5e
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4071c7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4071eb
xor eax, eax
test eax, eax
je 0x4071fe
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4071fe
xor ecx, ecx
jmp 0x407201
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a524]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x407324
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x428f7c], 0
push esi
jne 0x40735b
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 0x407335
mov dword [ecx*4 + 0x428f78], eax
inc ecx
cmp ecx, 0x100
jl 0x407330
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40738c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x428f78]
xor eax, esi
inc ecx
dec edx
jne 0x40736e
pop edi
not eax
pop esi
ret 0xc

Function at 0x408949
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
and edi, eax
add eax, 1
call fcn.00408970
add eax, edi
push edi
pop edi
xor dword [ecx], edx
inc eax
mov eax, edi
inc ecx
add edi, edi
mov eax, edi
cmp ecx, ebx
jne fcn.00408949
ret