joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e7b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x26c
mov eax, 0x4e1d2b
call fcn.004b5417
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x46e7d5
xor al, al
call fcn.004b549a
ret
cmp eax, 0x104
jge 0x46e7cd
push str..
lea eax, [ebp - 0x268]
push edi
push eax
call fcn.00445250
add esp, 0xc
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x46e825
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.0040d610
mov al, bl
jmp 0x46e7cf
mov esi, 0x4f8b70
push 0x2e
pop eax
cmp ax, word [ebp - 0x234]
je 0x46e8ea
mov eax, dword [ebp - 0x260]
shr eax, 4
push esi
push edi
test al, 1
je 0x46e897
lea eax, [ebp - 0x26c]
push eax
call fcn.00445250
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00445250
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push eax
call fcn.0046e7b0
add esp, 0x20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.0040d610
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x26c]
jmp 0x46e8e5
lea eax, [ebp - 0x270]
push eax
call fcn.00445250
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00445250
mov byte [ebp - 4], 4
push 1
push dword [ebp + 0xc]
push eax
call fcn.0046e480
add esp, 0x24
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.0040d610
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x270]
call fcn.0040d610
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46e82a
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
push dword [ebp + 0xc]
push edi
call fcn.0046e480
add esp, 0xc
mov bl, 1
jmp 0x46e812

Function at 0x46ec66
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 7
pop ecx
xor eax, eax
push 1
push eax
lea edi, [ebp - 0x24]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
je 0x46ed07
push 0x10024
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x46ecfe
cmp byte [ebp + 0xc], 1
jne 0x46ecec
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46ecec
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x46ece4
cmp dword [ebp - 0x20], 3
jne 0x46ecea
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x46ecd4
pop esi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
leave
ret
Function at 0x46ed5e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46ed8d
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x46ed8f
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46ee51
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
add ecx, 0xbcc
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
ret

Function at 0x46ef3e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, ecx
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xd4]
mov edx, ecx
or edx, eax
je 0x46ef6e
cmp eax, dword [ebp + 0xc]
jl 0x46ef6a
jg 0x46ef65
cmp ecx, dword [ebp + 8]
jbe 0x46ef6a
xor eax, eax
inc eax
jmp 0x46efb7
xor eax, eax
jmp 0x46efb7
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x46efb5
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xd4], eax
cmp eax, dword [ebp + 0xc]
ja 0x46efb1
jb 0x46efb5
cmp ecx, dword [ebp + 8]
jbe 0x46efb5
mov al, 1
jmp 0x46efb7
xor al, al
pop esi
leave
ret 8

Function at 0x46f1e2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
xor ebx, ebx
push eax
inc ebx
call fcn.004b47e0
mov eax, dword [esi + 4]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x20019
push edi
push eax
push dword [esi]
mov dword [ebp - 0x218], 0x104
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f2ae
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x214], edi
jbe 0x46f2ae
xor ebx, ebx
cmp dword [ebp - 0x210], edi
je 0x46f2c2
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 4]
push dword [esi]
cmp ebx, 1
jne 0x46f2d4
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x46f2da
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret
Function at 0x46f300
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 4
pop ebx
push 0x11
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x258], eax
xor eax, eax
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x4c]
push eax
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], 1
call fcn.0043e503
push dword [ebp - 0x258]
lea eax, [ebp - 0x254]
push esi
push eax
call fcn.0043e503
lea eax, [ebp - 0x25c]
push eax
push 0x20007
push 0
lea eax, [ebp - 0x254]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f42f
push str.LaunchProtected
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x260]
push eax
mov edi, str.Start
push edi
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x260], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46f42f
push ebx
lea eax, [ebp - 0x26c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x254]
push eax
push esi
call edi
push ebx
lea eax, [ebp - 0x268]
push eax
push ebx
push str.DeleteFlag
lea eax, [ebp - 0x254]
push eax
push esi
call edi
mov al, 1
jmp 0x46f431
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret
Function at 0x46f440
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], eax
cmp eax, ebx
je 0x46f5c4
cmp edi, ebx
je 0x46f5c4
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.004b47e0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004b47e0
add esp, 0x18
push edi
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.0043e258
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x418]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x46f5c4
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46f54c
push edi
call esi
test eax, eax
jne 0x46f54c
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x501174
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x46f54c
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46f5d7
mov ecx, dword [ebp - 0x41c]
push edi
push dword [ebp - 0x418]
call fcn.004931a4
test eax, eax
jne 0x46f5d7
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x501174
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call esi
cmp byte [ebp + 0x10], bl
je 0x46f5c4
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46f5c4
push 5
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret 0xc
xor eax, eax
inc eax
jmp 0x46f5c6
Function at 0x46f5dc
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x46f6c3
lea eax, [esi + 0x9c4]
mov dword [ebp - 0x62c], eax
lea eax, [esi + 0x5b4]
mov dword [ebp - 0x628], eax
lea eax, [esi + 0x7bc]
add esi, 0xdca
push edi
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x624], eax
xor edi, edi
mov esi, 0x410
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.004b47e0
push esi
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004b47e0
push dword [ebp + edi*4 - 0x62c]
lea eax, [ebp - 0x20c]
push eax
push 0x4fba40
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.00411380
add esp, 0x2c
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, 4
jb 0x46f662
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b48bf
leave
ret
Function at 0x46f74e
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa84
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0xa84], ecx
mov dword [ebp - 0xa7c], esi
mov dword [ebp - 0xa78], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46f935
push ebx
push edi
mov edi, 0x208
push edi
xor ebx, ebx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004b47e0
add esp, 0xc
push 0x501184
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call esi
push 0x250
lea eax, [ebp - 0xa74]
push ebx
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa80], eax
cmp eax, 0xffffffff
je 0x46f931
test byte [ebp - 0xa74], 0x10
je 0x46f89d
lea eax, [ebp - 0xa48]
push 0x4fbb78
push eax
call fcn.004b5797
pop ecx
pop ecx
test eax, eax
je 0x46f905
lea eax, [ebp - 0xa48]
push 0x50117c
push eax
call fcn.004b5797
pop ecx
pop ecx
test eax, eax
je 0x46f905
push edi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0xa7c]
lea eax, [ebp - 0x61c]
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0xa78]
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp - 0xa84]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0046f74e
jmp 0x46f905
push edi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0xa7c]
lea eax, [ebp - 0x824]
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0xa78]
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp - 0xa84]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0046f440
lea eax, [ebp - 0xa74]
push eax
push dword [ebp - 0xa80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46f7f0
push dword [ebp - 0xa80]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x46f933
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b48bf
leave
ret 0xc
Function at 0x471e67
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 4
mov eax, 0x4e246f
call fcn.004b53ae
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
je 0x471e8e
xor eax, eax
inc eax
jmp 0x471f47
and dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 0xffffffff
je 0x471ee6
test al, 0x10
je 0x471ee6
push esi
mov dword [ebp + 8], 1
call edi
test eax, eax
jne 0x471e86
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x471ed3
cmp dword [ebp + 8], 0
push esi
jne 0x471eeb
call ebx
test eax, eax
jne 0x471e86
cmp byte [ebp + 0xc], 0
je 0x471eef
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x471f45
push esi
call ebx
jmp 0x471eb2
call edi
jmp 0x471ecf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x471f16
push str..lnk
push eax
call fcn.004b58df
pop ecx
pop ecx
test eax, eax
jne 0x471f16
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x471f45
push esi
lea ecx, [ebp + 0xc]
call fcn.0044bc85
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 4]
call fcn.0045af0d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d610
mov dword [esi + 0x1c], 1
xor eax, eax
call fcn.004b5486
ret 8
Function at 0x472107
Capabilities:
Enumerate processes

Disassembly:
push 0x24c
mov eax, 0x4e24d1
call fcn.004b5417
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test byte [0x53fd70], 1
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x248], ebx
mov esi, 0x53fd50
jne 0x47215e
or dword [0x53fd70], 1
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00471ab8
push 0x4ef6dd
call fcn.004b78c0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [0x53fd6c], ebx
je 0x472186
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x53fd4c]
sub ecx, eax
cmp ecx, 0x1388
ja 0x472186
cmp dword [ebp + 0x10], 1
jne 0x472268
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x472268
mov ecx, esi
call fcn.00470c48
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
mov edi, 0x22c
push ebx
mov dword [ebp - 0x23c], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x472253
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.0044bc85
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.0044644e
mov ecx, eax
call fcn.00444d1f
lea ecx, [ebp - 0x244]
call fcn.00445121
lea eax, [ebp - 0x244]
push eax
mov ecx, esi
call fcn.0047158d
mov ecx, dword [ebp - 0x234]
push edi
mov dword [eax], ecx
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004b47e0
add esp, 0xc
mov dword [ebp - 0x23c], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040d610
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4721d3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x254]
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x240]
call fcn.0044bc85
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00445121
push esi
push dword [0x53fd68]
lea ecx, [ebp - 0x250]
call fcn.004424c1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x258]
push eax
mov ecx, esi
call fcn.0046fdc4
mov ecx, eax
call fcn.004833f7
test al, al
je 0x4722e4
test edi, edi
je 0x4722da
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.0047158d
mov eax, dword [eax]
mov dword [edi], eax
mov dword [ebp - 0x248], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.0040d610
mov eax, dword [ebp - 0x248]
call fcn.004b549a
ret
Function at 0x473bcd
Capabilities:
Enumerate processes

Disassembly:
push 0x250
mov eax, 0x4e274c
call fcn.004b5417
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
inc ebx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x248], edi
mov esi, 0x53fd7c
test byte [0x53fd78], bl
jne 0x473c25
or dword [0x53fd78], ebx
mov dword [ebp - 4], edi
mov ecx, esi
call fcn.0045acde
push 0x4ef6e7
call fcn.004b78c0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [0x53fd98], edi
je 0x473c4c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x53fd74]
sub ecx, eax
cmp ecx, 0x1388
ja 0x473c4c
cmp dword [ebp + 0x10], ebx
jne 0x473d3c
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24c], eax
cmp eax, 0xffffffff
je 0x473d3c
mov ecx, esi
call fcn.00451d1c
push 0x228
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x24c]
mov edi, 0x22c
mov dword [ebp - 0x23c], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x473d28
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.0044bc85
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x244]
call fcn.0044644e
mov ecx, eax
call fcn.00444d1f
lea ecx, [ebp - 0x244]
call fcn.00445121
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x244]
push eax
mov ecx, esi
call fcn.0045f777
mov ecx, eax
call fcn.0045932c
push edi
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004b47e0
add esp, 0xc
mov dword [ebp - 0x23c], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040d610
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x24c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x473ca1
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x258]
lea ecx, [ebp - 0x240]
call fcn.0044bc85
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00445121
push esi
push dword [0x53fd94]
lea ecx, [ebp - 0x25c]
call fcn.004424c1
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x250]
push eax
mov ecx, esi
call fcn.004462c2
mov ecx, eax
call fcn.004833f7
test al, al
je 0x473dd4
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.0045f777
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
je 0x473dd4
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.0045f777
mov ecx, dword [ebp - 0x254]
push eax
call fcn.0045613a
mov dword [ebp - 0x248], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.0040d610
mov eax, dword [ebp - 0x248]
call fcn.004b549a
ret
Function at 0x475cc6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x128
mov eax, 0x4e2c40
call fcn.004b5417
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x128], ebx
call fcn.0040c7d0
mov dword [ebp - 4], ebx
push 0x103
xor esi, esi
lea eax, [ebp - 0x113]
push ebx
inc esi
push eax
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x114], bl
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x501624
push 0x5015fc
push 0x80000002
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x120], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x475e05
lea eax, [ebp - 0x114]
push eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x118], ebx
call fcn.004b5ff0
pop ecx
test eax, eax
jbe 0x475dcb
mov eax, dword [ebp - 0x118]
movsx eax, byte [ebp + eax - 0x114]
push ebx
sub eax, 0x30
cdq
push 0xa
push edi
mov ecx, edx
push esi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x130], ecx
call fcn.004b63d0
mov ecx, dword [ebp - 0x124]
add ecx, eax
mov eax, dword [ebp - 0x130]
adc eax, edx
inc dword [ebp - 0x118]
mov edi, eax
lea eax, [ebp - 0x114]
push eax
mov esi, ecx
call fcn.004b5ff0
pop ecx
cmp dword [ebp - 0x118], eax
jb 0x475d72
push ebx
call fcn.004b5eec
sub eax, esi
sbb edx, edi
cmp edx, ebx
pop ecx
jg 0x475de8
jl 0x475de0
cmp eax, ebx
jae 0x475de8
xor eax, eax
mov dword [ebp - 0x130], ebx
xor edx, edx
mov ecx, 0x15180
div ecx
push eax
push 0x4f8f00
push dword [ebp - 0x11c]
call fcn.0040e3f0
add esp, 0xc
mov eax, dword [ebp - 0x11c]
call fcn.004b549a
ret 4

Function at 0x475e78
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x4dc3d2
call fcn.004b53ae
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x475ef9
cmp dword [ebp + 8], esi
je 0x475ef9
cmp dword [ebp + 0xc], esi
je 0x475ef9
lea ecx, [ebp - 0x10]
call fcn.004413bb
mov dword [ebp - 4], esi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push dword [ebp + 0x14]
push str._s_s
push eax
call fcn.00461c09
add esp, 0x10
push 4
mov dword [ebp - 0x14], esi
pop esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov bl, 1
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x475ee7
cmp dword [ebp - 0x14], esi
je 0x475ee9
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044209e
mov al, bl
jmp 0x475efb
xor al, al
call fcn.004b5486
ret

Function at 0x477d24
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x477d76
cmp dword [ebp - 0x114], 6
jb 0x477d76
xor eax, eax
inc eax
jmp 0x477d78
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b48bf
leave
ret