joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493dc0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x61e8a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov edx, dword [esi + 0x128]
mov ecx, dword [esi + 0xfc]
cmp ebx, edx
push 0
push 0
push 0xf0
sete al
push ecx
mov dword [esp + 0x28], eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
neg eax
push 4
push edx
sbb eax, eax
push 4
push 0
add eax, 2
push str.PanelView
push ebx
mov dword [esp + 0x28], eax
call ebp
mov eax, dword [esi + 0xec]
push 0
push 0
push 0xf0
push eax
call edi
lea ecx, [esp + 0x10]
push 4
neg eax
push ecx
push 4
sbb eax, eax
push 0
add eax, 2
push str.DonlCaptWP
push ebx
mov dword [esp + 0x28], eax
call ebp
or ebx, 0xffffffff
mov edx, dword [esi + 0xa8]
push 0
push ebx
push 0x100c
push edx
call edi
mov ebx, eax
test ebx, ebx
jl 0x493f53
mov eax, dword [esi + 0xa8]
push 0xf000
push ebx
push 0x102c
push eax
call edi
shr eax, 0xc
dec eax
push 0
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
lea ebp, [esi + 0x8c]
push ebx
add eax, 2
push ecx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.005fdcfd
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
je 0x493f37
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push edx
push ecx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x493f37
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x493f37
push ebx
mov ecx, ebp
call fcn.005fdda2
test eax, eax
mov dword [esp + 0x1c], eax
je 0x493f25
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x12c]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call edi
jmp 0x493f37
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x12c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00603a3c
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x493e62
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x493dde
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x61e8a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov edx, dword [esi + 0x128]
mov ecx, dword [esi + 0xfc]
cmp ebx, edx
push 0
push 0
push 0xf0
sete al
push ecx
mov dword [esp + 0x28], eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
neg eax
push 4
push edx
sbb eax, eax
push 4
push 0
add eax, 2
push str.PanelView
push ebx
mov dword [esp + 0x28], eax
call ebp
mov eax, dword [esi + 0xec]
push 0
push 0
push 0xf0
push eax
call edi
lea ecx, [esp + 0x10]
push 4
neg eax
push ecx
push 4
sbb eax, eax
push 0
add eax, 2
push str.DonlCaptWP
push ebx
mov dword [esp + 0x28], eax
call ebp
or ebx, 0xffffffff
mov edx, dword [esi + 0xa8]
push 0
push ebx
push 0x100c
push edx
call edi
mov ebx, eax
test ebx, ebx
jl 0x493f53
mov eax, dword [esi + 0xa8]
push 0xf000
push ebx
push 0x102c
push eax
call edi
shr eax, 0xc
dec eax
push 0
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
lea ebp, [esi + 0x8c]
push ebx
add eax, 2
push ecx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.005fdcfd
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
je 0x493f37
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push edx
push ecx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x493f37
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x493f37
push ebx
mov ecx, ebp
call fcn.005fdda2
test eax, eax
mov dword [esp + 0x1c], eax
je 0x493f25
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x12c]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call edi
jmp 0x493f37
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x12c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00603a3c
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x493e62
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x495fb0
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61eb50
push eax
mov eax, dword [0x6d2324]
mov dword fs:[0], esp
push ebp
push esi
test eax, eax
push edi
je 0x4960e8
mov eax, dword [0x6d26f8]
test eax, eax
jne 0x496000
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [0x6d26ec]
test eax, eax
jne 0x49601d
call fcn.00495ac0
mov dword [0x6d26e8], eax
mov dword [0x6d26ec], 1
mov eax, dword [0x6d26e8]
test eax, eax
je 0x496048
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.00495b80
mov edi, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x4960a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x49608f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4960a6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4960ca
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push 0
push esi
push edi
call fcn.00495710
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebp, eax
test ebp, ebp
jne 0x4961b3
mov eax, dword [0x6a55ac]
test eax, eax
jne 0x4961b3
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00402500
lea edx, [esp + 0x28]
push esi
push edx
mov dword [esp + 0x24], ebp
call fcn.00402500
mov eax, dword [esp + 0x2c]
push 0x3f
push eax
call fcn.005e71f0
add esp, 0x18
test eax, eax
jne 0x496194
mov ecx, dword [esp + 0x20]
push 0x3f
push ecx
call fcn.005e71f0
add esp, 8
test eax, eax
jne 0x496194
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x14], 0
call fcn.00603a3c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00603a3c
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.00603a3c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00603a3c
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret
Function at 0x4961d0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61eb70
push eax
mov eax, dword [0x6d2324]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x4962f5
mov eax, dword [0x6d26f8]
test eax, eax
jne 0x496227
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x6d26ec]
test eax, eax
jne 0x496244
call fcn.00495ac0
mov dword [0x6d26e8], eax
mov dword [0x6d26ec], 1
mov eax, dword [0x6d26e8]
test eax, eax
jne 0x4961ff
mov esi, dword [esp + 0x24]
push esi
call fcn.00495b80
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4962b2
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x49629a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4962b2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4962d7
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
push ebx
call fcn.004957e0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
test ebp, ebp
jne 0x4963c7
mov eax, dword [0x6a55ac]
test eax, eax
jne 0x4963c7
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00402500
lea ecx, [esp + 0x30]
push esi
push ecx
mov dword [esp + 0x28], ebp
call fcn.00402500
mov edx, dword [esp + 0x34]
push 0x3f
push edx
call fcn.005e71f0
add esp, 0x18
test eax, eax
jne 0x4963a8
mov eax, dword [esp + 0x28]
push 0x3f
push eax
call fcn.005e71f0
add esp, 8
test eax, eax
jne 0x4963a8
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.00603a3c
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00603a3c
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.00603a3c
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00603a3c
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x4963e0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61eb88
push eax
mov eax, dword [0x6d2324]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4964ff
mov eax, dword [0x6d26f8]
test eax, eax
jne 0x496429
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d26ec]
test eax, eax
jne 0x496446
call fcn.00495ac0
mov dword [0x6d26e8], eax
mov dword [0x6d26ec], 1
mov eax, dword [0x6d26e8]
test eax, eax
je 0x49646b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00495b80
add esp, 4
test eax, eax
jne 0x4964c2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4964ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4964c2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4964e5
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.004958b0
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x496555
mov eax, dword [0x6a55ac]
test eax, eax
jne 0x496555
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00402500
mov eax, dword [esp + 0x20]
push 0x3f
push eax
call fcn.005e71f0
add esp, 0x10
test eax, eax
jne 0x496544
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00603a3c
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x496570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61eba8
push eax
mov eax, dword [0x6d2324]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4966d3
mov eax, dword [0x6d26f8]
test eax, eax
jne 0x4965c3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d26ec]
test eax, eax
jne 0x4965e0
call fcn.00495ac0
mov dword [0x6d26e8], eax
mov dword [0x6d26ec], 1
mov eax, dword [0x6d26e8]
test eax, eax
je 0x4965f0
mov edx, dword [esp + 0x18]
push edx
jmp 0x4965a2
mov esi, dword [esp + 0x18]
push esi
call fcn.00495b80
add esp, 4
test eax, eax
jne 0x496632
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49664e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x496696
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d25d8]
test eax, eax
jne 0x496640
mov eax, 0x6d25dc
push eax
push esi
call fcn.005e985c
add esp, 8
test eax, eax
jne 0x496664
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d24c8]
test eax, eax
jne 0x496672
mov eax, 0x6d24cc
push eax
push esi
call fcn.005e985c
add esp, 8
test eax, eax
jne 0x496696
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4966b9
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00495960
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x496739
mov eax, dword [0x6a55ac]
test eax, eax
jne 0x496739
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00402500
mov ecx, dword [esp + 0x20]
push 0x3f
push ecx
call fcn.005e71f0
add esp, 0x10
test eax, eax
jne 0x496728
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00603a3c
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x496750
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61ebc8
push eax
mov eax, dword [0x6d2324]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x496874
mov eax, dword [0x6d26f8]
test eax, eax
jne 0x49679b
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d26ec]
test eax, eax
jne 0x4967b8
call fcn.00495ac0
mov dword [0x6d26e8], eax
mov dword [0x6d26ec], 1
mov eax, dword [0x6d26e8]
test eax, eax
je 0x4967df
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00495b80
add esp, 4
test eax, eax
jne 0x496837
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x496821
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x496837
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x49685a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00495a10
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4968cd
mov eax, dword [0x6a55ac]
test eax, eax
jne 0x4968cd
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00402500
mov eax, dword [esp + 0x20]
push 0x3f
push eax
call fcn.005e71f0
add esp, 0x10
test eax, eax
jne 0x4968bc
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00603a3c
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x4968e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x90
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x24], eax
push edi
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov ecx, 0x10
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], ebx
mov esi, str.S_1_16_8192
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x4c], ecx
push edx
mov dword [esp + 0x54], ecx
push 0x8b
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
xor ebp, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, ebx
je 0x496a12
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 1
push 2
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, ebx
je 0x496a12
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
je 0x496a12
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x496a12
lea edx, [esp + 0x14]
lea ecx, [esp + 0x34]
push edx
push ecx
call eax
mov esi, eax
cmp esi, ebx
je 0x496a12
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0x20
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, ebx
je 0x496a12
lea ecx, [esp + 0x24]
lea edx, [esp + 0x5c]
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x496a23
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x496a2e
push eax
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x496a44
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x496a4f
push eax
call edi
cmp ebp, ebx
je 0x496a5a
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x497880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ed60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x4978bd
push eax
call fcn.005ffe68
add esp, 4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005ffe3f
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x49797a
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 1
push eax
mov edx, dword [ecx + 8]
mov eax, dword [0x6d2354]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6d1c98
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49797a
lea edx, [ebp + 8]
push edx
call fcn.005e8a29
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x6d1c98
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x497ae0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ed90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
call fcn.00445570
mov ecx, dword [0x6d2354]
cmp ecx, esi
je 0x497b80
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push eax
push ecx
call edi
test eax, eax
jne 0x497b91
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x497b3f
push eax
call fcn.005ffe68
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x497b80
inc eax
push eax
call fcn.005ffe3f
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x497b80
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x6d2354]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x497b80
mov eax, dword [ebx + 4]
push eax
call fcn.005ffe68
add esp, 4
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
push str.ExceptionServers
push eax
call fcn.005e897a
add esp, 8
test eax, eax
jne 0x497b80
mov edi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005ffe3f
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x497b80
mov edi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [0x6d2354]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret