joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1388
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d13a9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d13f5
xor eax, eax
push ebp
push 0x4d13e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d13ec
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1560
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d1583
mov dword [ebp - 4], 0xffffffff
jmp 0x4d15cf
xor eax, eax
push ebp
push 0x4d15bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d15c6
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1704
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d1728
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d177c
xor eax, eax
push ebp
push 0x4d176c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1773
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1788
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
test edi, edi
jne 0x4d17ab
test esi, 4
je 0x4d17ab
xor edi, edi
jmp 0x4d17b4
mov eax, edi
call fcn.004064d4
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d17c9
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4d1818
xor eax, eax
push ebp
push 0x4d1808
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d180f
lea eax, [ebp - 0x10]
call fcn.004d11e0
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d1894
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d18b5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d1901
xor eax, eax
push ebp
push 0x4d18f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_RemoveDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d18f8
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d190c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d1930
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d197d
xor eax, eax
push ebp
push 0x4d196d
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1974
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d24c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4d24c8
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4d25b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0049d868
mov edx, dword [ebp - 8]
mov ecx, 0x4d25d0
xor eax, eax
call fcn.004d2228
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4d2583
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4d24e2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.004a0e54
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00429cf8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0049e81c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.004a0e24
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x427698]
call fcn.0042e4cc
call fcn.00404a74
jmp 0x4d24e2
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d25bc
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4d3f54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.00406430
xor eax, eax
push ebp
push 0x4d4038
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x4d3f9b
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.0049c70c
cmp dword [ebp + 0x18], 0
jne 0x4d3f9b
lea eax, [ebp + 0x18]
call fcn.0049d6e0
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403540
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x4d3fc6
mov eax, ebx
call fcn.004064d4
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.004064d4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.004064d4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.004064d4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4d4008
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x4d4022
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d4022
push esi
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ebp + 0x14]
call fcn.004d3bf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d403f
lea eax, [ebp + 0x18]
call fcn.00406438
ret

Function at 0x4d4270
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4d429e
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00406640
jmp 0x4d42a7
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x24
pop ebx
ret

Function at 0x4d42ac
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x4d42dd
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.00406640
jmp 0x4d42e6
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x208
pop ebx
ret

Function at 0x4d42f8
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x59707c]
cmp dword [eax], 2
jne 0x4d4360
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4d431b
xor eax, eax
jmp 0x4d436f
lea eax, [esp + 8]
push eax
push 0x4d4374
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4d4360
xor eax, eax
jmp 0x4d436f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4d439c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4d43f6
inc esi
xor edi, edi
cmp edi, 1
jne 0x4d43c2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x4d43d0
cmp edi, 1
jle 0x4d43d0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004d1388
test eax, eax
jne 0x4d43f6
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4d43f6
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4d43f6
inc edi
dec esi
jne 0x4d43b2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4d4c54
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
push 0
push 2
lea eax, [esp + 8]
push eax
call fcn.0049da90
and eax, 0x7f
mov ecx, dword [eax*4 + 0x59667c]
mov edx, 0x80000002
xor eax, eax
call fcn.0049dcc0
test eax, eax
jne 0x4d4c9e
mov eax, esi
call fcn.004064d4
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
call fcn.004064d4
push eax
call sub.gdi32.dll_RemoveFontResourceW
test eax, eax
je 0x4d4cbf
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop edx
pop esi
pop ebx
ret
Function at 0x4d4cc4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4d4e0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d4e24
push 0x4d4e4c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
lea edx, [ebp - 0xc]
movzx eax, byte [ebp - 1]
call fcn.004d11a4
test al, al
jne 0x4d4d23
mov byte [ebp - 2], 0
jmp 0x4d4df2
xor eax, eax
push ebp
push 0x4d4deb
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4d4d67
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.0049c65c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0049c230
mov eax, dword [ebp - 0x20]
call fcn.004064d4
push eax
call ebx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x4d4dd5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.0049c65c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0049c734
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0049c230
mov eax, dword [ebp - 0x28]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x4d4dd5
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00432bc0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00432bc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4df2
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4e14
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00406440
ret

Function at 0x4d4ff8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4d501c
mov eax, dword [ebp - 4]
jmp 0x4d501f
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x4d5024
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4d5071
xor ebx, ebx
jmp 0x4d5066
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00428de8
test eax, eax
jne 0x4d5065
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4d511b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4d5047
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4d507d
je 0x4d5086
jmp 0x4d508f
call fcn.0049e29c
mov esi, eax
jmp 0x4d5091
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4d5091
xor esi, esi
test si, si
je 0x4d511b
xor ebx, ebx
jmp 0x4d50b7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4d50b6
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4d511b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4d509e
xor ebx, ebx
jmp 0x4d5110
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4d510f
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x4d5104
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004d4ff8
push eax
mov eax, esi
call fcn.004d4ff8
pop edx
cmp edx, eax
jne 0x4d510f
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4d511b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4d50c6
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4db560
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1200], ebx
mov dword [ebp - 0x1204], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11fc], ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11d8], edx
mov dword [ebp - 0x11dc], eax
lea esi, [ebp - 0x11ea]
lea edi, [ebp - 0x11dc]
xor eax, eax
push ebp
push 0x4db78d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11e0], eax
xor eax, eax
mov dword [ebp - 0x11d4], eax
mov eax, dword [edi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11ce]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11d8]
call fcn.004d81f4
cmp dword [ebp - 0x1084], 0x418
jle 0x4db622
lea ecx, [ebp - 0x11f4]
mov edx, dword [ebp - 0x1004]
mov al, 0xc3
call fcn.004a0e54
mov ecx, dword [ebp - 0x11f4]
mov dl, 1
mov eax, dword [0x427698]
call fcn.0042e4cc
call fcn.00404a74
lea eax, [ebp - 0x11fc]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.004055f4
mov edx, dword [ebp - 0x11fc]
lea ecx, [ebp - 0x11f8]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004daec0
mov edx, dword [ebp - 0x11f8]
mov eax, dword [edi]
add eax, 0x14
call fcn.00406448
lea eax, [ebp - 0x1204]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.004055f4
mov edx, dword [ebp - 0x1204]
lea ecx, [ebp - 0x1200]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004daec0
mov edx, dword [ebp - 0x1200]
mov eax, dword [edi]
add eax, 0x18
call fcn.00406448
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [edi]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x4db74e
push ebp
mov eax, esi
mov edx, 0xa
call fcn.004db4e8
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call fcn.004d89a8
mov dword [ebp - 0x11f0], eax
cmp dword [ebp - 0x11f0], 0
jne 0x4db6ef
push ebp
call fcn.004db340
pop ecx
xor eax, eax
push ebp
push 0x4db720
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11f0]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11f0]
add eax, 0x12
call fcn.004db4e8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4db73a
mov edx, dword [ebp - 0x11f0]
mov eax, dword [edi]
call fcn.004d89e4
dec ebx
jne 0x4db6b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db794
lea eax, [ebp - 0x1204]
call fcn.0040527c
lea eax, [ebp - 0x1200]
call fcn.00406438
lea eax, [ebp - 0x11fc]
call fcn.0040527c
lea eax, [ebp - 0x11f8]
mov edx, 2
call fcn.00406440
ret
Function at 0x4db930
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x59707c]
cmp dword [eax], 2
jne 0x4db95b
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jae 0x4db967
mov dword [ebp - 0xc], 1
jmp 0x4dbb72
push 0x4dbb80
call sub.kernel32.dll_GetModuleHandleW_2
mov esi, eax
push 0x4dbb9c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x4dbbb4
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x4dbbcc
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
test edi, edi
je 0x4db9ac
cmp dword [ebp - 0x10], 0
je 0x4db9ac
cmp dword [ebp - 0x14], 0
jne 0x4db9b8
mov dword [ebp - 0xc], 0x7f
jmp 0x4dbb72
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4dbb72
xor edx, edx
push ebp
push 0x4dbb6b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
shl eax, 5
call fcn.00403000
mov dword [ebp - 0x24], eax
mov esi, ebx
mov edi, dword [ebp + 0xc]
dec edi
test edi, edi
jl 0x4dbaa7
inc edi
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
movzx eax, byte [esi + 6]
push eax
push esi
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
jne 0x4dba5c
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4dba52
mov dword [ebp - 0xc], 0x57
call fcn.00404b68
jmp 0x4dbb72
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x10]
mov dword [edx + eax*8], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + eax*8 + 4], 1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [edx + eax*8 + 0x18], ecx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*8 + 0x1c], ecx
add esi, 0x14
inc ebx
dec edi
jne 0x4dba16
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4dbacd
call fcn.00404b68
jmp 0x4dbb72
xor eax, eax
push ebp
push 0x4dbb11
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbb18
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_LocalFree
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e33bc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x4e33d5
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4e3409
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.004e328c
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4e4bf8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e4d0b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x596cb4]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x5967ac]
mov edx, 0x80000002
xor eax, eax
call fcn.0049dcc0
test eax, eax
jne 0x4e4c8d
mov esi, edi
test esi, esi
je 0x4e4c50
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, edi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4e4c82
mov eax, 0x4e4d28
call fcn.004d6b80
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4e4c97
mov eax, 0x4e4d8c
call fcn.004d6b80
test bl, bl
je 0x4e4cf0
mov eax, edi
call fcn.004064d4
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x4e4cbe
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x4e4cf0
lea ecx, [ebp - 0x10]
mov edx, 0x4e4de0
mov al, 0x3a
call fcn.004a0e54
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0049e5a8
mov eax, dword [ebp - 0xc]
mov edx, dword [0x596e88]
mov edx, dword [edx + 0xc8]
call fcn.004e2890
test al, al
je 0x4e4c9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4d12
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406440
ret
Function at 0x4e82d8
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4e83b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e839e
test bl, 0x10
je 0x4e839e
lea ecx, [ebp - 4]
mov edx, 0x4e83d4
mov eax, esi
call fcn.0049c3a4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x4e83f8
mov eax, 0x4e8414
call fcn.0049cb54
mov edx, 0x4e8440
mov eax, dword [ebp - 8]
call fcn.00428de8
test eax, eax
jne 0x4e839e
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea ecx, [ebp - 0xc]
mov edx, 0x4e849c
mov eax, esi
call fcn.0049c3a4
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e83c0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret