joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dd1dc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov byte [ebp - 1], al
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4dd2bf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
je 0x4dd2a9
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.0048eaec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4dd2dc
call fcn.004bbdd8
mov eax, dword [0x537aec]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.0042e35c
mov esi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4dd258
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
push eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
movzx eax, byte [ebp - 1]
call fcn.004c1e80
test al, al
jne 0x4dd2a9
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x4dd28e
mov eax, 0x4dd340
call fcn.004bbb54
jmp 0x4dd2a9
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4dd3f4
call fcn.004bbdd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd2c6
lea eax, [ebp - 0x1c]
call fcn.00406438
ret
Function at 0x4df0ec
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4df2b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x258]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004890d8
lea eax, [ebp - 0x258]
mov edx, 0x4df2d0
call fcn.00406854
mov eax, dword [ebp - 0x258]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4df28f
lea eax, [ebp - 4]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 4]
test eax, eax
je 0x4df17f
sub eax, 4
mov eax, dword [eax]
cmp eax, 9
jl 0x4df1b4
lea eax, [ebp - 0x25c]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406bec
mov eax, dword [ebp - 0x25c]
mov edx, 0x4df2f4
call fcn.00416f98
test eax, eax
sete al
jmp 0x4df1b6
xor eax, eax
test al, al
je 0x4df1df
mov eax, 0x4df300
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xa]
cmp si, 0x100
jae 0x4df1d7
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4df1db
xor eax, eax
jmp 0x4df1e1
mov al, 1
jmp 0x4df1e1
xor eax, eax
test al, al
je 0x4df20a
mov eax, 0x4df300
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xc]
cmp si, 0x100
jae 0x4df202
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4df206
xor eax, eax
jmp 0x4df20c
mov al, 1
jmp 0x4df20c
xor eax, eax
test al, al
je 0x4df235
mov eax, 0x4df300
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xe]
cmp si, 0x100
jae 0x4df22d
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4df231
xor eax, eax
jmp 0x4df237
mov al, 1
jmp 0x4df237
xor eax, eax
test al, al
je 0x4df274
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0x2e
jne 0x4df274
lea eax, [ebp - 0x260]
push eax
mov ecx, 3
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.00406bec
mov eax, dword [ebp - 0x260]
call fcn.00417ef8
mov edx, dword [ebp + 8]
mov byte [edx + eax - 0x3ec], 1
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4df160
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df2bc
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4e27a4
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.004e2678
lea eax, [ebp - 0x12]
push eax
push 0
push 0x4a
mov eax, dword [0x53ed10]
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 0x4e27f7
call fcn.0041c670
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x6c830000
je 0x4e281b
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4e28d0
call fcn.0048e8e4
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 0x4e2873
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 6]
call fcn.004e26f8
mov esi, eax
mov eax, esi
sub ax, 2
je 0x4e2873
dec eax
sub ax, 2
jb 0x4e2887
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4e2930
call fcn.0048e8e4
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4e2828
mov edx, 2
movzx eax, word [ebp - 6]
call fcn.004e26f8
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 6]
call fcn.004e26f8
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 0x4e2f3c
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 0x4e2f46
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x4e2ffc
push 0x4e3030
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409658
mov ebx, eax
test ebx, ebx
je 0x4e2fe5
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4e2fe5
test al, 0x10
je 0x4e2f96
mov ebp, 0x2000000
jmp 0x4e2f98
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 0x4e2fe5
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 0x4e2fe5
cmp ebx, 0xff0
jge 0x4e2fe5
mov edx, edi
mov eax, esp
call fcn.004e2e54
jmp 0x4e2fee
mov eax, edi
mov edx, esi
call fcn.00406448
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e304c
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 0x4e30df
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 0x4e30b3
cmp ebx, 0x104
jge 0x4e30b3
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.004e2f3c
jmp 0x4e30c6
mov eax, 0x4e30f8
call fcn.0048ea94
mov eax, esi
xor edx, edx
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e30e6
lea eax, [ebp - 0x20c]
call fcn.00406438
ret

Function at 0x4e3120
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 0x4e326f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004e2f3c
lea eax, [ebp - 8]
call fcn.004e304c
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, 0x4e327c
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 0x4e31cb
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x4e31c1
call fcn.0041c668
mov eax, 0x4e3294
call fcn.0048e9e0
cmp dword [ebp - 0x10], 0
jne 0x4e31db
mov eax, 0x4e32c0
call fcn.0048e88c
xor edx, edx
push ebp
push 0x4e324d
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004e2c48
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4e31e9
cmp eax, 0xffffffff
jne 0x4e3216
mov eax, 0x4e3314
call fcn.0048e9e0
call fcn.004e2c48
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x4e3236
mov eax, 0x4e3354
call fcn.0048e9e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3254
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4e337c
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 0x4e344b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4e2be0]
call fcn.004e3474
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e3424
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, 0x4e3464
call fcn.00418fa4
mov edx, dword [ebp - 8]
mov eax, dword [0x537e6c]
mov eax, dword [eax]
call fcn.00486d70
call fcn.004e2c48
call sub.user32.dll_GetFocus
mov edx, dword [0x537e6c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x170]
jne 0x4e3407
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4e340e
call sub.user32.dll_WaitMessage
jmp 0x4e33e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e342b
mov eax, dword [ebp - 4]
call fcn.00404098
ret

Function at 0x4e8a64
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4e8a6c
push ecx
push ebx
xor eax, eax
push ebp
push 0x4e8bb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0048f020
mov edx, dword [ebp - 0x10]
mov eax, 0x53edc0
call fcn.00406448
lea eax, [ebp - 0x14]
mov ecx, dword [0x53edc0]
mov edx, 0x4e8bd0
call fcn.00406914
mov eax, dword [ebp - 0x14]
call fcn.004bbb54
mov eax, dword [0x537f34]
cmp byte [eax], 0
je 0x4e8ac7
mov eax, dword [0x53edc0]
call fcn.004bb25c
lea edx, [ebp - 0x18]
mov eax, dword [0x53edc0]
call fcn.004890d8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4e8c18
call fcn.00406914
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4e8b5d
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.0048d3fc
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.00417ea8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0048b6c4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov al, 0x68
call fcn.0048d3cc
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x415848]
call fcn.0041c67c
call fcn.00404a74
lea eax, [ebp - 8]
call fcn.004bc404
cmp dword [ebp - 8], 0
je 0x4e8b8e
lea eax, [ebp - 0xc]
mov ecx, 0x4e8c34
mov edx, dword [ebp - 4]
call fcn.00406914
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004e8a0c
mov eax, dword [ebp - 0xc]
call fcn.004bc45c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8bbd
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00406440
ret
Function at 0x4eb490
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x53f099], 1
call fcn.00490e58
test al, al
jne 0x4eb4e2
push 5
mov eax, dword [0x537e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x537e6c]
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 [0x537e7c]
mov eax, dword [eax + 0x124]
mov cl, 2
xor edx, edx
call fcn.004eb374
ret

Function at 0x4ee9dc
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 0x4eea01
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4f07b4
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jae 0x4f07bd
call fcn.004ef4a8
mov eax, 0xa
call fcn.0048bac8
call fcn.004ef4a8
call fcn.004f0754
test al, al
jne 0x4f0792
pop ebx
ret

Function at 0x4f0ce0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x537a08]
cmp dword [eax], 0
je 0x4f0d8b
mov eax, dword [0x537a08]
mov eax, dword [eax]
call fcn.0046ec04
test al, al
je 0x4f0d8b
mov eax, dword [0x537a08]
mov eax, dword [eax]
cmp byte [eax + 0x1e2], 0
je 0x4f0d35
cmp byte [ebx + 0x389], 0
jne 0x4f0d35
mov eax, dword [0x537e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4f0d39
xor eax, eax
jmp 0x4f0d3b
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x537a08]
mov eax, dword [eax]
call fcn.0046e858
push eax
call sub.user32.dll_GetWindowLongW
test eax, 0x10000000
setne al
cmp bl, al
je 0x4f0d8b
test bl, bl
je 0x4f0d77
push 5
mov eax, dword [0x537a08]
mov eax, dword [eax]
call fcn.0046e858
push eax
call sub.user32.dll_ShowWindow
jmp 0x4f0d8b
push 0
mov eax, dword [0x537a08]
mov eax, dword [eax]
call fcn.0046e858
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4f0e3c
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov byte [0x53f052], 0
push 0x4f0f14
call sub.kernel32.dll_GetModuleHandleW_2
mov ebx, eax
push 0x4f0f30
push ebx
call fcn.00409658
test eax, eax
je 0x4f0ec8
lea edx, [esp + 4]
push edx
call eax
push 0x4f0f58
push ebx
call fcn.00409658
mov esi, eax
test esi, esi
je 0x4f0ed2
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x4f0ed2
cmp dword [esp], 0
je 0x4f0ed2
call fcn.0048dcfc
test al, al
je 0x4f0ed2
push 0x4f0f78
push ebx
call fcn.00409658
test eax, eax
je 0x4f0ed2
push 0x4f0fac
push 0x4f0fcc
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409658
test eax, eax
je 0x4f0ed2
mov byte [0x53f052], 1
jmp 0x4f0ed2
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
movzx eax, word [esp + 4]
sub ax, 1
jb 0x4f0eeb
sub ax, 5
je 0x4f0ef4
sub ax, 3
je 0x4f0efd
jmp 0x4f0f06
mov byte [0x53748c], 1
jmp 0x4f0f0d
mov byte [0x53748c], 3
jmp 0x4f0f0d
mov byte [0x53748c], 2
jmp 0x4f0f0d
mov byte [0x53748c], 0
add esp, 0x28
pop esi
pop ebx
ret

Function at 0x4f0fe8
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, 0x4f1058
mov edx, 0x80000002
xor eax, eax
call fcn.0048ab68
test eax, eax
jne 0x4f1051
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 0x4f10ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4f1048
cmp dword [ebp - 0xc], 4
jne 0x4f1048
cmp dword [ebp - 8], 4
jne 0x4f1048
movzx eax, word [ebp - 0x10]
mov word [0x53f068], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esp, ebp
pop ebp
ret

Function at 0x4f1254
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffdd0
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4f1303
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 [0x53f064], eax
cmp byte [0x53f051], 0
je 0x4f1303
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x4f12f4
mov dword [esp + 0x114], 0x11c
lea eax, [esp + 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4f1303
movzx eax, byte [esp + 0x228]
shl eax, 8
movzx edx, byte [esp + 0x22a]
or ax, dx
mov word [0x53f068], ax
movzx eax, byte [esp + 0x22e]
mov byte [0x53f06a], al
movzx eax, word [esp + 0x22c]
mov word [0x53f06c], ax
jmp 0x4f1303
cmp eax, 4
jne 0x4f1303
call fcn.004f0fe8
call fcn.004f10c4
add esp, 0x230
ret
Function at 0x4fc620
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 0x4fc7f2
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 + 0x537908]
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.0048ab68
test eax, eax
jne 0x4fc7d7
xor eax, eax
push ebp
push 0x4fc7cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [edi + 4]
mov eax, dword [edi]
xor ecx, ecx
call fcn.0049b9b0
xor ebx, ebx
mov esi, dword [ebp - 4]
test esi, esi
je 0x4fc6b1
sub esi, 4
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
cmp byte [ebp + 8], 0
je 0x4fc6de
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 0x4fc700
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 0x4fc776
sub eax, 0xe9
je 0x4fc71a
sub eax, 0x19
je 0x4fc7b5
jmp 0x4fc76f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4fc731
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10000
jl 0x4fc744
call fcn.00404b68
jmp 0x4fc7d7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4fc75b
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 0x4fc6a5
call fcn.00404b68
jmp 0x4fc7d7
lea ecx, [ebx + 1]
mov edx, dword [edi + 4]
mov eax, dword [edi]
call fcn.0049b9b0
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.004acb40
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.00499b48
inc ebx
jmp 0x4fc6a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc7d3
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 0x4fc7f9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret
Function at 0x502214
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 0x502298
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x502280
mov ebx, esi
test ebx, ebx
je 0x502246
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, 0x5022b4
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 0x502282
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50229f
lea eax, [ebp - 8]
call fcn.00406438
ret

Function at 0x5063e0
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 0x506523
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x50653c
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 0x5064fd
xor eax, eax
push ebp
push 0x5064f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x506558
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.00418cd0
test eax, eax
jne 0x5064c7
test byte [ebp - 0x258], 0x10
jne 0x5064c7
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 0x5064b9
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 0x506451
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5064fd
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 0x50652a
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x506564
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x506664
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00406448
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0048966c
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x506680
call fcn.00418fa4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406914
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x506604
test esi, 0x10
jne 0x506634
test esi, 1
je 0x506604
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x50662e
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00406448
jmp 0x506641
inc edi
cmp edi, 0xa
je 0x506641
inc ebx
cmp ebx, 0x3e8
jne 0x5065a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50666b
lea eax, [ebp - 0x14]
call fcn.00406438
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret