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

Disassembly:
push 0xffffffffffffffff
push 0x9058f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x8efed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.008ec7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x8efe61
mov edx, dword [eax]
jmp 0x8efe63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.008ee050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x8efebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x8efebf
cmp esi, edi
je 0x8efebf
mov ecx, esi
call fcn.008e7a00
push esi
call fcn.008f51c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.008ec990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x8efef5
mov eax, dword [eax]
jmp 0x8efef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.008eb640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x8eff25
mov eax, dword [eax]
jmp 0x8eff27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x8eff76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x8eff76
cmp esi, edi
je 0x8eff76
mov eax, dword [esi]
cmp eax, edi
je 0x8eff5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x8eff6d
push eax
call fcn.008f51c8
add esp, 4
push esi
call fcn.008f51c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x8eff90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x8efffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x8f0035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.008efe00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x8effc5
mov edi, 0x90a8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x8f0035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.008efe00
add edi, 4
add esp, 0xc
cmp edi, 0x90a8c0
jb 0x8f0000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x8f0070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.008f6082
mov esi, eax
add esp, 8
test esi, esi
je 0x8f0107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x8f0102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.008f5946
add esp, 8
test eax, eax
je 0x8f00e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x8f00e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.008f5946
add esp, 8
test eax, eax
jne 0x8f00c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x8f0102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x8f0f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9059fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x8f1002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.008f4dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x8f1002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.008ec6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.008f520b
push 0x10
call fcn.008f51d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x8f0fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.008e11c0
jmp 0x8f0fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.008f0b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x8f0ff0
mov ecx, edi
call fcn.008e12c0
push edi
call fcn.008f51c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x8f1021
inc ebx
cmp ebx, 0x20
jb 0x8f0f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x8f2250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x906808
push 0x8f6288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x8f2329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x8f2329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.008f51d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x8f2329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x8f2329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x8f232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.008f2351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8f2d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x8f2d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x8f2d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x8f2d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x8f2d94
push eax
push esi
call fcn.008f520b
add esp, 8
pop esi
ret 0x10

Function at 0x8f2da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x8f2e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x8f2e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x90b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.008f4dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x8f2dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x8f2e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x8f2ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x8f2eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x90b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.008f4dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x8f2eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x8f2e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x8f3000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x8f3131
push esi
call fcn.008f6145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.008e5080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x8f3131
push 0
push ebp
call fcn.008e53a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.008e5260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x8f308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008e52f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x8f3121
push 0x90b918
push edi
call fcn.008f43f0
push eax
push ebx
push esi
call fcn.008f2f60
push 0x90b8f8
push edi
call fcn.008f43f0
push eax
push ebx
push esi
call fcn.008f2f60
push 0x90b8d8
push edi
call fcn.008f43f0
push eax
push ebx
push esi
call fcn.008f2f60
push 0x90b8c0
push edi
call fcn.008f43f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.008f2f60
push 0x90b8a0
push edi
call fcn.008f43f0
push eax
push ebx
push esi
call fcn.008f2f60
push 0x90b888
push edi
call fcn.008f43f0
push eax
push ebx
push esi
call fcn.008f2f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8f41b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.008f4140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008f4140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008f4140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008f4140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x8f4bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8f4c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x90687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8f4c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8f4c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1001cba
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1005140]
push 0x10059e0
push 6
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x1001220
push str.Attributes
push 0x1005920
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ax, word [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov word [str.0000], ax
mov ax, word [ebp - 0xe]
mov word [0x10050bc], ax
mov ax, word [ebp - 0xc]
mov word [0x10050c0], ax
xor eax, eax
cmp word [ebp - 0xa], 0x31
sete al
mov dword [0x1005360], eax
mov ax, word [ebp - 8]
mov word [0x10050c4], ax
call fcn.01002ef1
leave
ret

Function at 0x1001d92
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x1005140]
mov ecx, dword [ebp + 0xc]
push 0x10059e0
push 0x50
lea edx, [ebp - 0xa4]
push edx
push 0x100122c
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xa4], 0
je 0x1001e60
push ebx
push esi
lea esi, [ebp - 0xa4]
mov eax, esi
push eax
call fcn.01001c8b
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa4]
cmp ax, 0x20
je 0x1001e0a
inc esi
inc esi
mov ax, word [esi]
test ax, ax
jne 0x1001df0
jmp 0x1001e0a
cmp ax, 0x20
jne 0x1001e12
inc esi
inc esi
mov ax, word [esi]
test ax, ax
jne 0x1001e02
push esi
call fcn.01001c8b
mov ebx, eax
mov ax, word [esi]
test ax, ax
je 0x1001e44
cmp ax, 0x20
je 0x1001e3c
inc esi
inc esi
mov ax, word [esi]
test ax, ax
jne 0x1001e22
jmp 0x1001e3c
cmp ax, 0x20
jne 0x1001e44
inc esi
inc esi
mov ax, word [esi]
test ax, ax
jne 0x1001e34
push esi
call fcn.01001c8b
xor ecx, ecx
mov ch, al
movzx eax, byte [ebp - 0xa8]
pop esi
mov cl, bl
pop ebx
shl ecx, 8
or eax, ecx
jmp 0x1001e63
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.01002ef1
leave
ret 0xc
Function at 0x10032b8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x1005378], ebx
jne 0x1003390
cmp dword [0x1005374], ebx
jne 0x1003390
cmp dword [0x1005380], ebx
push esi
je 0x100337e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x100539c]
cmp esi, ebx
je 0x1003306
mov edx, dword [0x10053a0]
mov ecx, eax
sub ecx, edx
cmp ecx, esi
jb 0x100337e
mov ecx, dword [0x10051d0]
cmp ecx, 0xffffffff
je 0x100331a
sub eax, ecx
cmp eax, 0xc8
jb 0x1003388
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 3
mov esi, 0x113
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [0x1005378], 1
call edi
push 3
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call edi
push ebx
push ebx
push 0x8000
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [0x1005374], eax
mov dword [0x1005378], ebx
pop edi
jne 0x1003371
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10051d0], eax
jmp 0x1003388
mov dword [0x1005374], 1
mov eax, dword [0x1005374]
pop esi
jmp 0x1003392
xor eax, eax
pop ebx
leave
ret 4
Function at 0x10033da
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x1005370], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x1003452
cmp dword [0x1005374], esi
jne 0x1003452
cmp ebx, 0x10
je 0x100358a
cmp ebx, 0x8000
je 0x100356a
cmp dword [0x1005378], esi
jne 0x1003452
mov eax, 0x104
cmp ebx, eax
ja 0x10034a1
je 0x10034de
cmp ebx, 0x18
je 0x1003493
cmp ebx, 0x1c
je 0x100348e
cmp ebx, 0x20
je 0x100347f
cmp ebx, 0x48
je 0x1003448
cmp ebx, 0x100
jmp 0x100344c
cmp dword [ebp + 0x10], 3
je 0x10034de
cmp ebx, dword [0x1005388]
jne 0x10035b5
cmp ebx, esi
je 0x10035b5
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x1005380], esi
setne al
jmp 0x10035c5
push esi
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x10035c5
cmp dword [ebp + 0x10], esi
jmp 0x100344c
cmp dword [ebp + 0x10], esi
je 0x1003452
push esi
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x1003452
mov eax, ebx
sub eax, 0x200
je 0x1003512
dec eax
je 0x10034de
sub eax, 3
je 0x10034de
sub eax, 3
je 0x10034de
sub eax, 0x11
jne 0x1003452
cmp dword [ebp + 0x10], 6
jb 0x10034de
cmp dword [ebp + 0x10], 8
jbe 0x10034d4
cmp dword [ebp + 0x10], 0xa
je 0x10034ec
cmp dword [ebp + 0x10], 0x12
jne 0x10034de
test byte [ebp + 0x14], 1
jne 0x1003452
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x1003452
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetSystemPowerStatus
test eax, eax
je 0x10034fe
mov al, byte [ebp - 0x14]
jmp 0x1003500
or al, 0xff
cmp al, byte [0x10051cc]
mov byte [0x10051cc], al
jne 0x10034de
jmp 0x1003452
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x1005a00]
je 0x100352d
cmp ecx, esi
jge 0x100352d
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x1005a04]
je 0x100353e
cmp eax, esi
jge 0x100353e
neg eax
add eax, ecx
cmp eax, dword [0x10051c8]
jbe 0x1003452
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x1005a00], eax
mov eax, dword [ebp - 4]
mov dword [0x1005a04], eax
jmp 0x1003452
cmp dword [0x1005398], esi
je 0x1003452
mov eax, dword [0x1005380]
cmp eax, esi
je 0x1003486
push dword [ebp + 8]
call eax
jmp 0x10035c5
cmp dword [0x1005398], esi
je 0x1003452
push dword [ebp + 8]
call fcn.010032b8
test eax, eax
jne 0x1003452
push 0x1005a00
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x10035c5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10035d1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x1005398], esi
je 0x1003675
cmp dword [0x100537c], esi
je 0x10035f5
call fcn.0100339c
lea eax, [ebp - 4]
push eax
push 0x10012a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1003675
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.ScreenSaveUsePassword
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100366c
cmp dword [ebp - 0xc], esi
je 0x100366c
push str.PASSWORD.CPL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
mov dword [0x100537c], eax
je 0x100366c
push str.VerifyScreenSavePwd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x1005380], eax
je 0x1003667
push 1
call fcn.01003030
jmp 0x100366c
call fcn.0100339c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x1003b3d
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10013b8
call fcn.01003cbc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1003b78
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003b78
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003b90
cmp eax, 0x20b
je 0x1003b7d
mov dword [ebp - 0x1c], edi
jmp 0x1003ba4
cmp dword [ecx + 0x84], 0xe
jbe 0x1003b78
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1003b9e
cmp dword [ecx + 0x74], 0xe
jbe 0x1003b78
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005c4c], 0xffffffff
or dword [0x1005c50], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10053b0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10053ac]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005c54], eax
call fcn.01003d48
cmp dword [0x10051d8], edi
jne 0x1003bff
push fcn.01003d48
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003d31
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10053a8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10053a4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01003b33
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1003c76
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003cab
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003cf7
ret
Function at 0x401610
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 2
mov ebp, eax
mov eax, dword [esp + 0x24]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40164e
pop esi
xor eax, eax
pop ebp
pop ecx
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x401680
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x16c
mov eax, dword [0x4475a0]
xor eax, esp
mov dword [esp + 0x164], eax
push 0x104
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._regsvr32.exe
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40
lea edx, [esp + 0x18]
push 0
push edx
call fcn.00422e30
add esp, 0xc
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00421100
add esp, 0x16c
ret