joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d85ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov dword [ebp - 0x12], eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0xe], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa], eax
call fcn.004d84c0
lea eax, [ebp - 0x12]
push eax
push 0
push 0x4a
mov eax, dword [0x50bd1c]
push eax
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, dword [esi]
xor edx, edx
mov dword [esi], edx
call fcn.00404098
cmp ebx, 0x6c840001
jne 0x4d863f
call fcn.00411924
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x6c830000
je 0x4d8663
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d8718
call fcn.004adb38
mov word [ebp - 6], bx
xor esi, esi
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call dword [ebp - 4]
call sub.kernel32.dll_GetTickCount_1
mov edx, eax
sub edx, ebx
cmp edx, 0xa
jb 0x4d86bb
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 6]
call fcn.004d8540
mov esi, eax
mov eax, esi
sub ax, 2
je 0x4d86bb
dec eax
sub ax, 2
jb 0x4d86cf
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d8778
call fcn.004adb38
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4d8670
mov edx, 2
movzx eax, word [ebp - 6]
call fcn.004d8540
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 6]
call fcn.004d8540
movzx eax, ax
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp si, 3
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d8d84
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4d8d8e
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x4d8e44
push 0x4d8e78
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
test ebx, ebx
je 0x4d8e2d
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4d8e2d
test al, 0x10
je 0x4d8dde
mov ebp, 0x2000000
jmp 0x4d8de0
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4d8e2d
push 0
push 0x1000
lea eax, [esp + 8]
push eax
push ebp
call ebx
mov ebx, eax
push ebp
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
jle 0x4d8e2d
cmp ebx, 0xff0
jge 0x4d8e2d
mov edx, edi
mov eax, esp
call fcn.004d8c9c
jmp 0x4d8e36
mov eax, edi
mov edx, esi
call fcn.00406448
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d8e94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x20c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d8f27
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW_1
mov ebx, eax
test ebx, ebx
jle 0x4d8efb
cmp ebx, 0x104
jge 0x4d8efb
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.004d8d84
jmp 0x4d8f0e
mov eax, 0x4d8f40
call fcn.004adce8
mov eax, esi
xor edx, edx
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8f2e
lea eax, [ebp - 0x20c]
call fcn.00406438
ret

Function at 0x4d8f68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d90b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004d8d84
lea eax, [ebp - 8]
call fcn.004d8e94
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403540
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x4d90c4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.004064d4
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.004064d4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.004064d4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x4d9013
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x4d9009
call fcn.0041191c
mov eax, 0x4d90dc
call fcn.004adc34
cmp dword [ebp - 0x10], 0
jne 0x4d9023
mov eax, 0x4d9108
call fcn.004adae0
xor edx, edx
push ebp
push 0x4d9095
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004d8a90
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4d9031
cmp eax, 0xffffffff
jne 0x4d905e
mov eax, 0x4d915c
call fcn.004adc34
call fcn.004d8a90
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x4d907e
mov eax, 0x4d919c
call fcn.004adc34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d909c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4d91c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d9293
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4d8a28]
call fcn.004d92bc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d926c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4d92ac
call fcn.0040e258
mov edx, dword [ebp - 8]
mov eax, dword [0x504e38]
mov eax, dword [eax]
call fcn.0047bf28
call fcn.004d8a90
call sub.user32.dll_GetFocus
mov edx, dword [0x504e38]
mov edx, dword [edx]
cmp eax, dword [edx + 0x170]
jne 0x4d924f
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4d9256
call sub.user32.dll_WaitMessage
jmp 0x4d9229
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9273
mov eax, dword [ebp - 4]
call fcn.00404098
ret

Function at 0x4de8ac
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4de8b4
push ecx
push ebx
xor eax, eax
push ebp
push 0x4de9fe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004ae274
mov edx, dword [ebp - 0x10]
mov eax, 0x50bdc8
call fcn.00406448
lea eax, [ebp - 0x14]
mov ecx, dword [0x50bdc8]
mov edx, 0x4dea18
call fcn.00406914
mov eax, dword [ebp - 0x14]
call fcn.004b2bc8
mov eax, dword [0x504f00]
cmp byte [eax], 0
je 0x4de90f
mov eax, dword [0x50bdc8]
call fcn.004b22d0
lea edx, [ebp - 0x18]
mov eax, dword [0x50bdc8]
call fcn.0047e290
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4dea60
call fcn.00406914
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4de9a5
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.004abb3c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.0040d15c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0048087c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov al, 0x68
call fcn.004abb0c
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x40aafc]
call fcn.00411930
call fcn.00404a74
lea eax, [ebp - 8]
call fcn.004b3478
cmp dword [ebp - 8], 0
je 0x4de9d6
lea eax, [ebp - 0xc]
mov ecx, 0x4dea7c
mov edx, dword [ebp - 4]
call fcn.00406914
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004de854
mov eax, dword [ebp - 0xc]
call fcn.004b34d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dea05
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00406440
ret
Function at 0x4e12d8
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x50c0a1], 1
call fcn.004b00ac
test al, al
jne 0x4e132a
push 5
mov eax, dword [0x504e38]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x504e38]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 1
push 1
mov eax, dword [0x504e48]
mov eax, dword [eax + 0x124]
mov cl, 2
xor edx, edx
call fcn.004e11bc
ret

Function at 0x4e45bc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x4e45e1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e6308
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4e6334
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jae 0x4e633d
call fcn.004e5028
mov eax, 0xa
call fcn.00480c80
call fcn.004e5028
call fcn.004e62d4
test al, al
jne 0x4e6312
pop ebx
ret

Function at 0x4e6860
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x5049dc]
cmp dword [eax], 0
je 0x4e690b
mov eax, dword [0x5049dc]
mov eax, dword [eax]
call fcn.00463dbc
test al, al
je 0x4e690b
mov eax, dword [0x5049dc]
mov eax, dword [eax]
cmp byte [eax + 0x1e2], 0
je 0x4e68b5
cmp byte [ebx + 0x389], 0
jne 0x4e68b5
mov eax, dword [0x504e38]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4e68b9
xor eax, eax
jmp 0x4e68bb
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x5049dc]
mov eax, dword [eax]
call fcn.00463a10
push eax
call sub.user32.dll_GetWindowLongW
test eax, 0x10000000
setne al
cmp bl, al
je 0x4e690b
test bl, bl
je 0x4e68f7
push 5
mov eax, dword [0x5049dc]
mov eax, dword [eax]
call fcn.00463a10
push eax
call sub.user32.dll_ShowWindow
jmp 0x4e690b
push 0
mov eax, dword [0x5049dc]
mov eax, dword [eax]
call fcn.00463a10
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4e69bc
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov byte [0x50c05a], 0
push 0x4e6a94
call sub.kernel32.dll_GetModuleHandleW_2
mov ebx, eax
push 0x4e6ab0
push ebx
call fcn.00409620
test eax, eax
je 0x4e6a48
lea edx, [esp + 4]
push edx
call eax
push 0x4e6ad8
push ebx
call fcn.00409620
mov esi, eax
test esi, esi
je 0x4e6a52
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x4e6a52
cmp dword [esp], 0
je 0x4e6a52
call fcn.004acf50
test al, al
je 0x4e6a52
push 0x4e6af8
push ebx
call fcn.00409620
test eax, eax
je 0x4e6a52
push 0x4e6b2c
push 0x4e6b4c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
test eax, eax
je 0x4e6a52
mov byte [0x50c05a], 1
jmp 0x4e6a52
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
movzx eax, word [esp + 4]
sub ax, 1
jb 0x4e6a6b
sub ax, 5
je 0x4e6a74
sub ax, 3
je 0x4e6a7d
jmp 0x4e6a86
mov byte [0x5044f0], 1
jmp 0x4e6a8d
mov byte [0x5044f0], 3
jmp 0x4e6a8d
mov byte [0x5044f0], 2
jmp 0x4e6a8d
mov byte [0x5044f0], 0
add esp, 0x28
pop esi
pop ebx
ret

Function at 0x4e6b68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x4e6bd8
mov edx, 0x80000002
xor eax, eax
call fcn.0047fd20
test eax, eax
jne 0x4e6bd1
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4e6c2c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e6bc8
cmp dword [ebp - 0xc], 4
jne 0x4e6bc8
cmp dword [ebp - 8], 4
jne 0x4e6bc8
movzx eax, word [ebp - 0x10]
mov word [0x50c070], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esp, ebp
pop ebp
ret

Function at 0x4e6dd4
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffdd0
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4e6e83
movzx eax, byte [esp + 4]
shl eax, 0x18
movzx edx, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x50c06c], eax
cmp byte [0x50c059], 0
je 0x4e6e83
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x4e6e74
mov dword [esp + 0x114], 0x11c
lea eax, [esp + 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4e6e83
movzx eax, byte [esp + 0x228]
shl eax, 8
movzx edx, byte [esp + 0x22a]
or ax, dx
mov word [0x50c070], ax
movzx eax, byte [esp + 0x22e]
mov byte [0x50c072], al
movzx eax, word [esp + 0x22c]
mov word [0x50c074], ax
jmp 0x4e6e83
cmp eax, 4
jne 0x4e6e83
call fcn.004e6b68
call fcn.004e6c44
add esp, 0x230
ret
Function at 0x4f21a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4f2372
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 4]
mov ecx, 0x200
xor edx, edx
call fcn.00406584
push 0
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0x50496c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004064d4
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0047fd20
test eax, eax
jne 0x4f2357
xor eax, eax
push ebp
push 0x4f234c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [edi + 4]
mov eax, dword [edi]
xor ecx, ecx
call fcn.0048b298
xor ebx, ebx
mov esi, dword [ebp - 4]
test esi, esi
je 0x4f2231
sub esi, 4
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
cmp byte [ebp + 8], 0
je 0x4f225e
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov dword [ebp - 0x1c], eax
jmp 0x4f2280
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueW
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, 1
jb 0x4f22f6
sub eax, 0xe9
je 0x4f229a
sub eax, 0x19
je 0x4f2335
jmp 0x4f22ef
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4f22b1
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10000
jl 0x4f22c4
call fcn.00404b68
jmp 0x4f2357
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4f22db
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406584
jmp 0x4f2225
call fcn.00404b68
jmp 0x4f2357
lea ecx, [ebx + 1]
mov edx, dword [edi + 4]
mov eax, dword [edi]
call fcn.0048b298
lea eax, [ebp - 4]
call fcn.00406eb8
mov edx, eax
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.00406584
lea ecx, [ebp - 0x30]
mov eax, edi
mov edx, ebx
call fcn.0049c428
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.00489430
inc ebx
jmp 0x4f2225
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2353
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2379
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret
Function at 0x4f7d94
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4f7e18
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4f7e00
mov ebx, esi
test ebx, ebx
je 0x4f7dc6
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
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x4f7e34
call fcn.00406914
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov ebx, eax
jmp 0x4f7e02
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7e1f
lea eax, [ebp - 8]
call fcn.00406438
ret

Function at 0x4fbb64
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4fbc0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4fbc28
push ebx
push 0x4fbc38
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004069f8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403540
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4fbbea
mov eax, dword [0x504e48]
mov eax, dword [eax + 0x1a8]
call fcn.004fbabc
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fbc13
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4fc5ac
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fc79a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0047f8c8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004ae0f8
test al, al
jne 0x4fc619
xor eax, eax
push ebp
push 0x4fc60f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.004ae5e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fc619
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [0x50c164]
call fcn.004064d4
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x4fc648
mov eax, dword [0x504e48]
mov eax, dword [eax + 0x1a4]
call fcn.004fbabc
push 0x80
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x508b50]
push eax
push 0
mov ecx, 0x4fc7a8
mov edx, 0x4fc7ac
xor eax, eax
call fcn.0040a124
mov dword [ebp - 8], eax
push 0x4fbc7c
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x50c190], eax
xor eax, eax
push ebp
push 0x4fc763
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x504e38]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.0047f29c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x4fc7c8
call fcn.0040e258
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.0047f17c
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00406854
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004fbb64
mov dword [ebp - 0xc], eax
call fcn.004fbc40
test al, al
jne 0x4fc743
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4fc721
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc76a
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x4fdad4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4fdd8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x504e38]
mov eax, dword [eax]
mov edx, 0x4fdda8
call fcn.0047bf28
push 5
mov eax, dword [0x504e38]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x4fdd55
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004e1564
lea eax, [ebp - 0x10]
call fcn.0047f740
mov eax, dword [ebp - 0x10]
call fcn.0040dd04
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0047f29c
mov edx, dword [ebp - 0x14]
mov eax, 0x50c164
call fcn.00406448
call fcn.004fbe74
lea ecx, [ebp - 0x18]
mov edx, 0x4fddc8
mov eax, dword [0x50c164]
call fcn.0047e380
mov edx, dword [ebp - 0x18]
mov eax, 0x50c168
call fcn.00406448
lea ecx, [ebp - 0x1c]
mov edx, 0x4fdde0
mov eax, dword [0x50c164]
call fcn.0047e380
mov edx, dword [ebp - 0x1c]
mov eax, 0x50c16c
call fcn.00406448
push 2
push 0
push 1
mov ecx, dword [0x50c164]
mov dl, 1
mov eax, dword [0x4aa728]
call fcn.004aaa68
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fdc2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.004aaa28
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.004aaa00
cmp dword [ebp - 0xc], 0x67734d49
je 0x4fdc07
mov cl, 1
xor edx, edx
mov eax, dword [0x50c16c]
call fcn.004abcec
jmp 0x4fdc16
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x50c164]
call fcn.004abcec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdc33
mov eax, dword [ebp - 4]
call fcn.00404098
ret
Function at 0x4fdf38
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4fe07b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x4fe094
mov edx, ebx
call fcn.00406914
mov eax, dword [ebp - 0x25c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4fe055
xor eax, eax
push ebp
push 0x4fe04e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4fe0b0
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.0040df84
test eax, eax
jne 0x4fe01f
test byte [ebp - 0x258], 0x10
jne 0x4fe01f
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00406640
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406914
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x4fe011
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4fdfa9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe055
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe082
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret