joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cdfa0
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 0x4cdfb9
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 0x4cdfed
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.004cde70
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cf95c
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 0x4cfa6f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x505c9c]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x505440]
mov edx, 0x80000002
xor eax, eax
call fcn.0047fdb8
test eax, eax
jne 0x4cf9f1
mov esi, edi
test esi, esi
je 0x4cf9b4
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 0x4cf9e6
mov eax, 0x4cfa8c
call fcn.004b2f34
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4cf9fb
mov eax, 0x4cfaf0
call fcn.004b2f34
test bl, bl
je 0x4cfa54
mov eax, edi
call fcn.004064d4
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x4cfa22
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x4cfa54
lea ecx, [ebp - 0x10]
mov edx, 0x4cfb44
mov al, 0x3a
call fcn.004abea8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004806a0
mov eax, dword [ebp - 0xc]
mov edx, dword [0x505e6c]
mov edx, dword [edx + 0xc8]
call fcn.004cd474
test al, al
je 0x4cf9ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfa76
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406440
ret
Function at 0x4d2c84
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 0x4d2d65
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 0x4d2d4a
test bl, 0x10
je 0x4d2d4a
lea ecx, [ebp - 4]
mov edx, 0x4d2d80
mov eax, esi
call fcn.0047e49c
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x4d2da4
mov eax, 0x4d2dc0
call fcn.0047ec4c
mov edx, 0x4d2dec
mov eax, dword [ebp - 8]
call fcn.0040c2bc
test eax, eax
jne 0x4d2d4a
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea ecx, [ebp - 0xc]
mov edx, 0x4d2e48
mov eax, esi
call fcn.0047e49c
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 0x4d2d6c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4d3d68
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
xor eax, eax
push ebp
push 0x4d3e40
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.004ae0ac
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, 0x4d3e5c
call fcn.004b31b8
mov eax, dword [0x505ae0]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
call fcn.00423584
mov esi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4d3dd9
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.004b9264
test al, al
jne 0x4d3e2a
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x4d3e0f
mov eax, 0x4d3eac
call fcn.004b2f34
jmp 0x4d3e2a
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4d3f4c
call fcn.004b31b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3e47
lea eax, [ebp - 0x1c]
call fcn.00406438
ret
Function at 0x4d62f8
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 0x4d64c1
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.0047e328
lea eax, [ebp - 0x258]
mov edx, 0x4d64dc
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 0x4d649b
lea eax, [ebp - 4]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d638b
sub eax, 4
mov eax, dword [eax]
cmp eax, 9
jl 0x4d63c0
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, 0x4d6500
call fcn.0040c2bc
test eax, eax
sete al
jmp 0x4d63c2
xor eax, eax
test al, al
je 0x4d63eb
mov eax, 0x4d650c
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xa]
cmp si, 0x100
jae 0x4d63e3
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d63e7
xor eax, eax
jmp 0x4d63ed
mov al, 1
jmp 0x4d63ed
xor eax, eax
test al, al
je 0x4d6416
mov eax, 0x4d650c
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xc]
cmp si, 0x100
jae 0x4d640e
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d6412
xor eax, eax
jmp 0x4d6418
mov al, 1
jmp 0x4d6418
xor eax, eax
test al, al
je 0x4d6441
mov eax, 0x4d650c
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xe]
cmp si, 0x100
jae 0x4d6439
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d643d
xor eax, eax
jmp 0x4d6443
mov al, 1
jmp 0x4d6443
xor eax, eax
test al, al
je 0x4d6480
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0x2e
jne 0x4d6480
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.0040d21c
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 0x4d636c
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d64c8
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4d9b4c
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.004d9a20
lea eax, [ebp - 0x12]
push eax
push 0
push 0x4a
mov eax, dword [0x50cd1c]
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 0x4d9b9f
call fcn.00411994
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x6c830000
je 0x4d9bc3
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d9c78
call fcn.004adea4
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 0x4d9c1b
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 6]
call fcn.004d9aa0
mov esi, eax
mov eax, esi
sub ax, 2
je 0x4d9c1b
dec eax
sub ax, 2
jb 0x4d9c2f
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d9cd8
call fcn.004adea4
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4d9bd0
mov edx, 2
movzx eax, word [ebp - 6]
call fcn.004d9aa0
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 6]
call fcn.004d9aa0
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 0x4da2e4
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 0x4da2ee
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x4da3a4
push 0x4da3d8
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
test ebx, ebx
je 0x4da38d
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4da38d
test al, 0x10
je 0x4da33e
mov ebp, 0x2000000
jmp 0x4da340
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 0x4da38d
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 0x4da38d
cmp ebx, 0xff0
jge 0x4da38d
mov edx, edi
mov eax, esp
call fcn.004da1fc
jmp 0x4da396
mov eax, edi
mov edx, esi
call fcn.00406448
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4da3f4
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 0x4da487
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 0x4da45b
cmp ebx, 0x104
jge 0x4da45b
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.004da2e4
jmp 0x4da46e
mov eax, 0x4da4a0
call fcn.004ae054
mov eax, esi
xor edx, edx
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da48e
lea eax, [ebp - 0x20c]
call fcn.00406438
ret

Function at 0x4da4c8
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 0x4da617
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004da2e4
lea eax, [ebp - 8]
call fcn.004da3f4
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, 0x4da624
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 0x4da573
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x4da569
call fcn.0041198c
mov eax, 0x4da63c
call fcn.004adfa0
cmp dword [ebp - 0x10], 0
jne 0x4da583
mov eax, 0x4da668
call fcn.004ade4c
xor edx, edx
push ebp
push 0x4da5f5
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004d9ff0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4da591
cmp eax, 0xffffffff
jne 0x4da5be
mov eax, 0x4da6bc
call fcn.004adfa0
call fcn.004d9ff0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x4da5de
mov eax, 0x4da6fc
call fcn.004adfa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da5fc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4da724
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 0x4da7f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4d9f88]
call fcn.004da81c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4da7cc
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, 0x4da80c
call fcn.0040e2c8
mov edx, dword [ebp - 8]
mov eax, dword [0x505e5c]
mov eax, dword [eax]
call fcn.0047bfc0
call fcn.004d9ff0
call sub.user32.dll_GetFocus
mov edx, dword [0x505e5c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x170]
jne 0x4da7af
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4da7b6
call sub.user32.dll_WaitMessage
jmp 0x4da789
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da7d3
mov eax, dword [ebp - 4]
call fcn.00404098
ret

Function at 0x4dfe14
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4dfe1c
push ecx
push ebx
xor eax, eax
push ebp
push 0x4dff66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004ae5e0
mov edx, dword [ebp - 0x10]
mov eax, 0x50cdc8
call fcn.00406448
lea eax, [ebp - 0x14]
mov ecx, dword [0x50cdc8]
mov edx, 0x4dff80
call fcn.00406914
mov eax, dword [ebp - 0x14]
call fcn.004b2f34
mov eax, dword [0x505f20]
cmp byte [eax], 0
je 0x4dfe77
mov eax, dword [0x50cdc8]
call fcn.004b263c
lea edx, [ebp - 0x18]
mov eax, dword [0x50cdc8]
call fcn.0047e328
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4dffc8
call fcn.00406914
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4dff0d
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.004abea8
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.0040d1cc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00480914
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov al, 0x68
call fcn.004abe78
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x40ab6c]
call fcn.004119a0
call fcn.00404a74
lea eax, [ebp - 8]
call fcn.004b37e4
cmp dword [ebp - 8], 0
je 0x4dff3e
lea eax, [ebp - 0xc]
mov ecx, 0x4dffe4
mov edx, dword [ebp - 4]
call fcn.00406914
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004dfdbc
mov eax, dword [ebp - 0xc]
call fcn.004b383c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dff6d
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00406440
ret
Function at 0x4e2850
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x50d0a1], 1
call fcn.004b0418
test al, al
jne 0x4e28a2
push 5
mov eax, dword [0x505e5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x505e5c]
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 [0x505e6c]
mov eax, dword [eax + 0x124]
mov cl, 2
xor edx, edx
call fcn.004e2734
ret

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

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

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4e7944
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jae 0x4e794d
call fcn.004e6638
mov eax, 0xa
call fcn.00480d18
call fcn.004e6638
call fcn.004e78e4
test al, al
jne 0x4e7922
pop ebx
ret

Function at 0x4e7e70
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x505a00]
cmp dword [eax], 0
je 0x4e7f1b
mov eax, dword [0x505a00]
mov eax, dword [eax]
call fcn.00463e54
test al, al
je 0x4e7f1b
mov eax, dword [0x505a00]
mov eax, dword [eax]
cmp byte [eax + 0x1e2], 0
je 0x4e7ec5
cmp byte [ebx + 0x389], 0
jne 0x4e7ec5
mov eax, dword [0x505e5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4e7ec9
xor eax, eax
jmp 0x4e7ecb
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x505a00]
mov eax, dword [eax]
call fcn.00463aa8
push eax
call sub.user32.dll_GetWindowLongW
test eax, 0x10000000
setne al
cmp bl, al
je 0x4e7f1b
test bl, bl
je 0x4e7f07
push 5
mov eax, dword [0x505a00]
mov eax, dword [eax]
call fcn.00463aa8
push eax
call sub.user32.dll_ShowWindow
jmp 0x4e7f1b
push 0
mov eax, dword [0x505a00]
mov eax, dword [eax]
call fcn.00463aa8
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4e7fcc
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov byte [0x50d05a], 0
push 0x4e80b4
call sub.kernel32.dll_GetModuleHandleW_2
mov ebx, eax
push 0x4e80d0
push ebx
call fcn.00409620
test eax, eax
je 0x4e8058
lea edx, [esp + 4]
push edx
call eax
push 0x4e80f8
push ebx
call fcn.00409620
mov esi, eax
test esi, esi
je 0x4e8062
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x4e8062
cmp dword [esp], 0
je 0x4e8062
call fcn.004ad2bc
test al, al
je 0x4e8062
push 0x4e8118
push ebx
call fcn.00409620
test eax, eax
je 0x4e8062
push 0x4e814c
push 0x4e816c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
test eax, eax
je 0x4e8062
mov byte [0x50d05a], 1
jmp 0x4e8062
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
movzx eax, word [esp + 4]
sub ax, 1
jb 0x4e8081
sub ax, 5
je 0x4e808a
sub ax, 3
je 0x4e8093
sub ax, 3
je 0x4e809c
jmp 0x4e80a5
mov byte [0x5054f4], 1
jmp 0x4e80ac
mov byte [0x5054f4], 3
jmp 0x4e80ac
mov byte [0x5054f4], 2
jmp 0x4e80ac
mov byte [0x5054f4], 4
jmp 0x4e80ac
mov byte [0x5054f4], 0
add esp, 0x28
pop esi
pop ebx
ret

Function at 0x4e8188
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, 0x4e81f8
mov edx, 0x80000002
xor eax, eax
call fcn.0047fdb8
test eax, eax
jne 0x4e81f1
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 0x4e824c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e81e8
cmp dword [ebp - 0xc], 4
jne 0x4e81e8
cmp dword [ebp - 8], 4
jne 0x4e81e8
movzx eax, word [ebp - 0x10]
mov word [0x50d070], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esp, ebp
pop ebp
ret

Function at 0x4e83f4
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffdd0
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4e84a3
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 [0x50d06c], eax
cmp byte [0x50d059], 0
je 0x4e84a3
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x4e8494
mov dword [esp + 0x114], 0x11c
lea eax, [esp + 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4e84a3
movzx eax, byte [esp + 0x228]
shl eax, 8
movzx edx, byte [esp + 0x22a]
or ax, dx
mov word [0x50d070], ax
movzx eax, byte [esp + 0x22e]
mov byte [0x50d072], al
movzx eax, word [esp + 0x22c]
mov word [0x50d074], ax
jmp 0x4e84a3
cmp eax, 4
jne 0x4e84a3
call fcn.004e8188
call fcn.004e8264
add esp, 0x230
ret
Function at 0x4f3938
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 0x4f3b0a
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 + 0x505988]
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.0047fdb8
test eax, eax
jne 0x4f3aef
xor eax, eax
push ebp
push 0x4f3ae4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [edi + 4]
mov eax, dword [edi]
xor ecx, ecx
call fcn.0048b344
xor ebx, ebx
mov esi, dword [ebp - 4]
test esi, esi
je 0x4f39c9
sub esi, 4
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
cmp byte [ebp + 8], 0
je 0x4f39f6
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 0x4f3a18
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 0x4f3a8e
sub eax, 0xe9
je 0x4f3a32
sub eax, 0x19
je 0x4f3acd
jmp 0x4f3a87
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4f3a49
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10000
jl 0x4f3a5c
call fcn.00404b68
jmp 0x4f3aef
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4f3a73
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 0x4f39bd
call fcn.00404b68
jmp 0x4f3aef
lea ecx, [ebx + 1]
mov edx, dword [edi + 4]
mov eax, dword [edi]
call fcn.0048b344
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.0049c4b4
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.004894e0
inc ebx
jmp 0x4f39bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3aeb
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 0x4f3b11
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret