joyce8/EMBER2024-capa huggingface dataset:
Function at 0x535f90
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 0x535ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x536035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00535e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x535fc5
mov edi, 0x5508b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x536035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00535e00
add edi, 4
add esp, 0xc
cmp edi, 0x5508c0
jb 0x536000
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 0x536070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.0053c082
mov esi, eax
add esp, 8
test esi, esi
je 0x536107
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 0x536102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0053b946
add esp, 8
test eax, eax
je 0x5360e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x5360e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0053b946
add esp, 8
test eax, eax
jne 0x5360c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x536102
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 0x536f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x54b9fb
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 0x537002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0053adff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x537002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005326e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0053b20b
push 0x10
call fcn.0053b1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x536fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005271c0
jmp 0x536fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00536b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x536ff0
mov ecx, edi
call fcn.005272c0
push edi
call fcn.0053b1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x537021
inc ebx
cmp ebx, 0x20
jb 0x536f3e
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 0x538250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c808
push 0x53c288
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 0x538329
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 0x538329
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.0053b1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x538329
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 0x538329
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 0x53832c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00538351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x538d20
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 0x538d58
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 0x538d60
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 0x538d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x538d94
push eax
push esi
call fcn.0053b20b
add esp, 8
pop esi
ret 0x10

Function at 0x538da0
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 0x538e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x538e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x551320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0053adff
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 0x538dda
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 0x538e30
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 0x538ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x538eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x551320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0053adff
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 0x538eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x538e6a
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 0x539000
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 0x539131
push esi
call fcn.0053c145
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.0052b080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x539131
push 0
push ebp
call fcn.0052b3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0052b260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x53908b
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.0052b2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x539121
push 0x551918
push edi
call fcn.0053a3f0
push eax
push ebx
push esi
call fcn.00538f60
push 0x5518f8
push edi
call fcn.0053a3f0
push eax
push ebx
push esi
call fcn.00538f60
push 0x5518d8
push edi
call fcn.0053a3f0
push eax
push ebx
push esi
call fcn.00538f60
push 0x5518c0
push edi
call fcn.0053a3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00538f60
push 0x5518a0
push edi
call fcn.0053a3f0
push eax
push ebx
push esi
call fcn.00538f60
push 0x551888
push edi
call fcn.0053a3f0
push eax
push ebx
push esi
call fcn.00538f60
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 0x53a1b0
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.0053a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0053a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0053a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0053a140
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 0x53abfa
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 0x53ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x54c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x53ac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10039df
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1007960]
test eax, eax
je 0x10039ef
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x10039f5
Capabilities:
Resume thread

Disassembly:
mov eax, dword [0x1007960]
test eax, eax
je 0x1003a05
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x1003cdf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [0x1007970]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x1003d96
mov edi, 0x1007930
push edi
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [0x100792c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003d84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1003d53
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x100792c]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x1003da5
push 0xffffffffffffffff
push ebx
push 0x100796c
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x1003d72
dec eax
jne 0x1003d6d
xor esi, esi
inc esi
or eax, 0xffffffff
jmp 0x1003d92
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [0x100792c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [ebp - 8], 1
jae 0x1003d8e
xor eax, eax
jmp 0x1003da5
movzx eax, byte [ebp - 1]
cmp esi, ebx
je 0x1003da5
push dword [0x1007970]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003f20
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor ecx, ecx
push ebx
inc ecx
xor ebx, ebx
cmp dword [0x100792c], ebx
mov dword [ebp - 4], ecx
jne 0x1004096
mov al, byte [0x1007da4]
test al, 2
je 0x1004096
test cl, al
je 0x1004096
mov eax, dword [0x1007960]
cmp eax, ebx
je 0x1003f7c
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1007960]
cmp eax, ebx
je 0x1003f7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1007960], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov edi, 0x1001214
push edi
push dword [0x1008428]
mov dword [0x1008430], 0x12c
mov dword [0x1008434], ebx
mov dword [0x1008424], ebx
call esi
push edi
push dword [0x100842c]
call esi
call fcn.01003b3d
test eax, eax
jne 0x1003fe4
push edi
push dword [0x1007da8]
mov dword [0x1007db0], 0x12c
mov dword [0x1007db4], ebx
mov dword [0x1007da4], ebx
call esi
push edi
push dword [0x1007dac]
call esi
jmp 0x1004055
push dword [0x100796c]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
push dword [0x1007970]
call edi
xor eax, eax
mov edi, 0x1007930
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x100796c]
mov dword [0x1007940], eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1003de0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x1007960], eax
jne 0x100405a
push 0x1007910
push dword [0x100792c]
call dword [sym.imp.KERNEL32.dll_SetCommState]
push dword [0x100792c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100792c], ebx
mov dword [0x1008434], ebx
mov dword [ebp - 4], ebx
jmp 0x1004094
push dword [0x1007da8]
mov eax, dword [0x1007db0]
push dword [0x1008428]
mov dword [0x1008430], eax
mov dword [0x1008434], 2
mov dword [0x1008424], 0x43
call esi
push dword [0x1007da8]
push dword [0x100842c]
call esi
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x1004182
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1007b98]
test eax, eax
je 0x1004192
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x1004198
Capabilities:
Resume thread

Disassembly:
mov eax, dword [0x1007b98]
test eax, eax
je 0x10041a8
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x100446a
Capabilities:
Create pipe
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
or dword [0x1007b9c], 0xffffffff
push esi
push edi
xor esi, esi
push 0xc0000004
mov dword [0x1007b98], esi
mov dword [0x1007b94], esi
call fcn.010040ac
mov edi, eax
cmp edi, esi
je 0x100450b
lea eax, [ebp - 0x10]
push eax
push 0x7530
push esi
push esi
push 1
push 6
push 3
push 0x1001220
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push edi
mov dword [0x1007b9c], eax
call dword [sym.imp.msvcrt.dll_free]
cmp dword [0x1007b9c], 0xffffffff
pop ecx
jne 0x10044e4
mov dword [0x1007b9c], esi
jmp 0x100450b
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10043d7
push esi
push esi
mov dword [0x1007024], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1007b98], eax
jne 0x100450f
call fcn.010041ea
xor eax, eax
jmp 0x1004512
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x100477a
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x1007ba0], ebx
push edi
je 0x10047a6
mov byte [0x100865a], bl
mov byte [0x1008659], bl
mov byte [0x1008658], bl
mov dword [0x1007ba0], ebx
mov edi, dword [ebp + 8]
test edi, 0xe000
je 0x10047ba
xor esi, esi
inc esi
and edi, 0xff
push 3
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [ebp + 8], al
call fcn.01004734
push ebx
add esi, 2
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1004986
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1007da4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or eax, 2
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x1001354
push dword [0x1008648]
call esi
test eax, eax
jne 0x1004a45
mov eax, dword [0x1007da8]
test eax, eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 0x1001350
jne 0x10049d8
push 2
push ebx
jmp 0x10049e6
push eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [0x1007da8]
push 1
push 0
push 0x1001338
push dword [0x1008648]
call esi
test eax, eax
jne 0x1004a43
mov eax, dword [0x1007dac]
test eax, eax
jne 0x1004a09
push 2
push ebx
jmp 0x1004a17
push eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [0x1007dac]
push 1
push 0
push 0x100132c
push dword [0x1008648]
call esi
test eax, eax
jne 0x1004a43
push 4
push 0x1007db0
push 4
push eax
push 0x1001320
push dword [0x1008648]
call esi
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1004a4d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
push 0x1007da4
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push 0x1001354
push dword [0x1008648]
mov dword [0x1007da4], edi
mov dword [ebp - 4], 4
call esi
mov eax, dword [0x1007da8]
or dword [0x1007da4], 2
cmp eax, edi
je 0x1004ac9
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x1001338
push dword [0x1008648]
mov dword [ebp - 4], 0x208
call esi
test eax, eax
je 0x1004ac9
push 0x1001214
push dword [0x1007da8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x1007dac]
cmp eax, edi
je 0x1004b05
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x100132c
push dword [0x1008648]
mov dword [ebp - 4], 0x208
call esi
test eax, eax
je 0x1004b05
push 0x1001214
push dword [0x1007dac]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push 0x1007db0
lea eax, [ebp - 8]
push eax
push edi
push 0x1001320
push dword [0x1008648]
mov dword [ebp - 4], 4
call esi
test eax, eax
pop edi
pop esi
je 0x1004b37
mov dword [0x1007db0], 0x12c
leave
ret

Function at 0x1004bed
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x10078c8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
push 0xf003f
push 0
push dword [0x1007040]
mov dword [ebp - 0x80c], 0x800
push reloc.SKDLL.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004cfe
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push dword [0x1007044]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004cf2
push dword [0x100703c]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004cf2
push esi
push edi
push dword [0x100703c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
mov esi, eax
lea eax, [ebp - 0x804]
push eax
call edi
lea eax, [esi + eax + 2]
cmp eax, 0x400
jae 0x1004cf0
push dword [0x1007048]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x804]
push eax
call esi
push dword [0x100703c]
lea eax, [ebp - 0x804]
push eax
call esi
lea eax, [ebp - 0x804]
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push 1
push 0
push dword [0x1007044]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.010054a3
leave
ret
Function at 0x1004d0d
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x10078c8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
push 0xf003f
push 0
push dword [0x1007040]
mov dword [ebp - 0x80c], 0x800
push reloc.SKDLL.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004df0
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push dword [0x1007044]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004de4
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
push edi
push dword [0x100703c]
lea eax, [ebp - 0x804]
push eax
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1004de2
push dword [0x1007048]
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x1004dbb
add eax, 2
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1004de2
lea eax, [ebp - 0x804]
cmp eax, edi
jae 0x1004dde
mov eax, dword [0x100703c]
mov ax, word [eax]
cmp ax, word [edi]
je 0x1004dde
dec edi
dec edi
lea ecx, [ebp - 0x804]
cmp ecx, edi
jb 0x1004dcd
and word [edi], 0
pop edi
pop esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.010054a3
leave
ret

Function at 0x1004dff
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x2000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x1004e64
push ebx
push esi
push 0x22
mov esi, 0x10013f8
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
je 0x1004e5d
mov ecx, dword [ebp + 8]
push esi
push edi
push edi
push edi
push edi
push edi
push edi
neg ecx
push 0xffffffffffffffff
sbb ecx, ecx
add ecx, 3
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
cmp dword [ebp + 8], edi
pop edi
je 0x1004e71
call fcn.01004bed
jmp 0x1004e76
call fcn.01004d0d
leave
ret 4
Function at 0x1004e7f
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10078c8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
push 4
mov dword [ebp - 4], eax
pop ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x210], esi
je 0x1004ee5
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0x100142c
xor ebx, ebx
push eax
inc ebx
mov dword [ebp - 0x208], 2
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x204]
add esp, 0xc
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], esi
push dword [0x1007038]
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x1004f19
push edi
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x208]
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010054a3
leave
ret 8