joyce8/EMBER2024-capa huggingface dataset:
Function at 0xdf2f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xe079fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xdf3002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00df6dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xdf3002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00dee6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00df720b
push 0x10
call fcn.00df71d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xdf2fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00de31c0
jmp 0xdf2fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00df2b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xdf2ff0
mov ecx, edi
call fcn.00de32c0
push edi
call fcn.00df71c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xdf3021
inc ebx
cmp ebx, 0x20
jb 0xdf2f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xdf4250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xe08808
push 0xdf8288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xdf4329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xdf4329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00df71d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xdf4329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xdf4329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xdf432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00df4351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xdf4d20
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 0xdf4d58
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 0xdf4d60
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 0xdf4d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xdf4d94
push eax
push esi
call fcn.00df720b
add esp, 8
pop esi
ret 0x10

Function at 0xdf4da0
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 0xdf4e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xdf4e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xe0d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00df6dff
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 0xdf4dda
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 0xdf4e30
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 0xdf4ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xdf4eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xe0d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00df6dff
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 0xdf4eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xdf4e6a
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 0xdf5000
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 0xdf5131
push esi
call fcn.00df8145
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.00de7080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xdf5131
push 0
push ebp
call fcn.00de73a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00de7260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xdf508b
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.00de72f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xdf5121
push 0xe0d918
push edi
call fcn.00df63f0
push eax
push ebx
push esi
call fcn.00df4f60
push 0xe0d8f8
push edi
call fcn.00df63f0
push eax
push ebx
push esi
call fcn.00df4f60
push 0xe0d8d8
push edi
call fcn.00df63f0
push eax
push ebx
push esi
call fcn.00df4f60
push 0xe0d8c0
push edi
call fcn.00df63f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00df4f60
push 0xe0d8a0
push edi
call fcn.00df63f0
push eax
push ebx
push esi
call fcn.00df4f60
push 0xe0d888
push edi
call fcn.00df63f0
push eax
push ebx
push esi
call fcn.00df4f60
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 0xdf61b0
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.00df6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00df6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00df6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00df6140
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 0xdf6bfa
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 0xdf6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe0887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xdf6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xdf6c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402ffb
Capabilities:
Check for time delay via gettickcount

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 0x403018
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40302a
mov dword [ebp - 0xc], 0x796100
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40303f
mov ecx, dword [0x7a2fb8]
add ecx, eax
push ecx
call fcn.00403200
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004031ea
test eax, eax
je 0x4031d8
test byte [ebp + 0x17], 0x80
je 0x403183
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40b858], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40b840], 0xb
mov dword [ebp + 8], eax
jle 0x4031e0
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403095
mov esi, dword [ebp + 0x14]
mov edi, 0x792100
push esi
push edi
call fcn.004031ea
test eax, eax
je 0x4031d8
sub dword [ebp + 0x14], esi
mov dword [0x40b830], edi
mov dword [0x40b834], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b830
mov dword [0x40b838], edi
mov dword [0x40b83c], eax
call fcn.004064aa
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40317b
mov esi, dword [0x40b838]
sub esi, edi
call ebx
test byte [0x7a3014], 1
mov edi, eax
je 0x403136
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403103
cmp dword [ebp + 0x14], 0
jne 0x403136
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.00405114
mov dword [ebp - 0x10], edi
test esi, esi
je 0x40316f
cmp dword [ebp + 0x10], 0
jne 0x403155
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405c2d
test eax, eax
je 0x40317f
add dword [ebp - 4], esi
jmp 0x403163
mov eax, dword [0x40b838]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x4030b8
jmp 0x4031e0
cmp dword [ebp + 0x14], 0
jg 0x403088
jmp 0x4031e0
push 0xfffffffffffffffc
jmp 0x4031da
push 0xfffffffffffffffe
jmp 0x4031da
test edi, edi
jne 0x4031c5
cmp dword [ebp + 0x14], edi
jle 0x4031e0
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403199
mov esi, ebx
mov edi, 0x792100
push esi
push edi
call fcn.004031ea
test eax, eax
je 0x4031d8
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405c2d
test eax, eax
je 0x40317f
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40318f
jmp 0x4031e0
cmp dword [ebp + 0x14], esi
jge 0x4031cd
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004031ea
test eax, eax
jne 0x4031dd
push 0xfffffffffffffffd
pop eax
jmp 0x4031e3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4055da
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40837c
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], 0x40836c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40562b
xor eax, eax
jmp 0x405652
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405652
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405627
call esi
pop esi
leave
ret 4

Function at 0x40568c
Capabilities:
Create process on windows

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

Function at 0x4056cf
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_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b61
mov edi, eax
cmp edi, 0xffffffff
je 0x4057ae
test byte [esp + 0x10], 1
push esi
je 0x405790
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405796
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40579f
xor eax, eax
inc eax
jmp 0x4057b0
test byte [esp + 0x10], 4
jne 0x4057ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4057b5
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a73
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4057f4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2fe8], eax
jmp 0x40597e
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40580e
test eax, eax
je 0x40592c
test bl, 2
je 0x40592c
mov esi, 0x7a0550
push edi
push esi
call fcn.00405fed
cmp dword [ebp + 8], 0
je 0x40582d
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405833
push edi
call fcn.004059cc
cmp byte [edi], 0
jne 0x405841
cmp byte [0x7a0550], 0x5c
jne 0x40584c
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405922
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004059b0
cmp byte [eax], 0
je 0x405892
cmp byte [ebp - 0x1c], 0
je 0x405892
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4058a8
mov al, byte [esi + 1]
test al, al
je 0x405901
cmp al, 0x2e
jne 0x4058a8
cmp byte [esi + 2], 0
je 0x405901
push esi
push ebx
call fcn.00405fed
test byte [ebp - 0x14c], 0x10
je 0x4058cd
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405901
push dword [ebp + 0xc]
push edi
call fcn.004057b5
jmp 0x405901
push dword [ebp - 4]
push edi
call fcn.0040576d
test eax, eax
jne 0x4058f9
cmp dword [ebp - 4], eax
je 0x4058f1
push edi
push 0xfffffffffffffff1
call fcn.00405114
push 0
push edi
call fcn.00405dcc
jmp 0x405901
inc dword [0x7a2fe8]
jmp 0x405901
push edi
push 0xfffffffffffffff2
call fcn.00405114
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405870
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40592c
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40597e
cmp dword [ebp - 0xc], esi
jne 0x405940
inc dword [0x7a2fe8]
jmp 0x40597e
push edi
call fcn.004062f0
test eax, eax
je 0x40597e
push edi
call fcn.00405985
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040576d
test eax, eax
jne 0x405976
cmp dword [ebp - 4], esi
je 0x405938
push edi
push 0xfffffffffffffff1
call fcn.00405114
push esi
push edi
call fcn.00405dcc
jmp 0x40597e
push edi
push 0xffffffffffffffe5
call fcn.00405114
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a73
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0950
push esi
call fcn.00405fed
push esi
call fcn.00405a1e
mov edi, eax
test edi, edi
jne 0x405a94
xor eax, eax
jmp 0x405ae6
push edi
call fcn.00406257
test byte [0x7a2f5c], 0x80
je 0x405aad
mov al, byte [edi]
test al, al
je 0x405a90
cmp al, 0x5c
je 0x405a90
sub edi, esi
jmp 0x405ac5
call fcn.004062f0
test eax, eax
je 0x405abf
test byte [eax], 0x10
je 0x405a90
push esi
call fcn.004059cc
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405ab1
call fcn.00405985
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 0x405b61
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405b86
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 0x405bb5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3b4]
dec edi
mov dword [ebp + 8], 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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405bfa
test edi, edi
jne 0x405bc0
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405bf4
Function at 0x405c5c
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a12d8], 0x4c554e
mov edi, 0x400
mov ebp, 0x7a12d8
je 0x405ca8
push 1
push 0
push esi
call fcn.00405b86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dc7
cmp eax, edi
jg 0x405dc7
mov esi, 0x7a16d8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dc7
cmp eax, edi
jg 0x405dc7
push esi
push ebp
push str._s_s_r_n
push 0x7a0ed8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2f54]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040600f
push 4
push 0xc0000000
push esi
call fcn.00405b86
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405dc7
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 0x405dc0
push edi
push esi
push ebp
call fcn.00405bfe
test eax, eax
je 0x405dc0
push str._Rename__r_n
push esi
call fcn.00405aeb
test eax, eax
jne 0x405d5e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d93
add eax, 0xa
push 0x40a3b8
push eax
call fcn.00405aeb
mov ebp, eax
test ebp, ebp
je 0x405d8f
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d80
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d7a
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d95
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a0ed8
push eax
call fcn.00405b41
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.00405c2d
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 0x405dcc
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405def
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405c5c
pop ecx
pop ecx
inc dword [0x7a2ff0]
ret 8

Function at 0x405ed4
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], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405e73
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405f43
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_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405f43
cmp dword [ebp + 0xc], 1
je 0x405f46
cmp dword [ebp + 0xc], 2
je 0x405f46
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406317
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40633b
xor eax, eax
test eax, eax
je 0x40634d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40634d
xor ecx, ecx
jmp 0x406350
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x7a1adc], 0
push esi
jne 0x406473
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 0x40644d
mov dword [ecx*4 + 0x7a1ad8], eax
inc ecx
cmp ecx, 0x100
jl 0x406448
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4064a4
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 + 0x7a1ad8]
xor eax, esi
inc ecx
dec edx
jne 0x406486
pop edi
not eax
pop esi
ret 0xc