joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30008ae4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
jmp 0x30008b18
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ecx + 0x104]
jge 0x30008bd1
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x114]
call fcn.30008d63
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x30008b53
jmp 0x30008b09
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.30008d23
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.30006ef3
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x30008b99
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.30006e17
add esp, 8
test eax, eax
je 0x30008b99
jmp 0x30008b09
lea edx, [ebp - 0x104]
push edx
call fcn.300075c5
add esp, 4
push 0
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [ebp - 0x110]
add edx, eax
mov dword [ebp - 0x110], edx
jmp 0x30008b09
mov eax, dword [ebp - 0x110]
mov esp, ebp
pop ebp
ret 8

Function at 0x30008dd0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30033aa9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
lea ecx, [ebp - 0x40]
call fcn.30011ee0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [0x3003b4ec]
push ecx
push 0x80000002
lea edx, [ebp - 0x40]
push edx
call fcn.3001203b
add esp, 0xc
test eax, eax
je 0x30008e32
push 0x104
mov eax, dword [ebp + 8]
push eax
push str.Common_Programs
lea ecx, [ebp - 0x40]
call fcn.300126a5
mov ecx, dword [ebp + 8]
push ecx
call fcn.30019760
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.30011f5b
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x300090b8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30033b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
lea ecx, [ebp - 0x40]
call fcn.30011ee0
mov dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
lea eax, [ebp - 0x40]
push eax
call fcn.3001203b
add esp, 0xc
test eax, eax
je 0x30009153
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x40]
call fcn.30012856
mov dword [ebp - 0x48], eax
jmp 0x3000911c
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x40]
call fcn.300128c3
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x30009153
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.300197e0
add esp, 8
test eax, eax
jne 0x30009151
mov dword [ebp - 0x4c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.30011f5b
mov eax, dword [ebp - 0x4c]
jmp 0x3000916c
jmp 0x3000910d
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.30011f5b
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.30004d6b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3000981d
mov eax, 1
jmp 0x30009882
push 0
push 0
push 0x12
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 0xc], 0
jne 0x3000983a
mov eax, 1
jmp 0x30009882
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 8]
jae 0x30009880
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.30004d6b
add esp, 8
test eax, eax
jne 0x3000986a
mov eax, 1
jmp 0x30009882
push 0
push 0
push 0
call fcn.300180f2
add esp, 0xc
test eax, eax
jne 0x3000987e
jmp 0x30009880
jmp 0x30009846
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x3000b6be
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
push 4
push 0x30041610
push str._s_v_d
lea eax, [ebp - 0x15c]
push eax
call fcn.30019570
add esp, 0x10
lea ecx, [ebp - 0x10c]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x3000b713
jmp 0x3000b7ac
lea edx, [ebp - 0x108]
push edx
push 0
call fcn.30004de0
add esp, 8
lea eax, [ebp - 0x108]
push eax
call fcn.30019760
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x108]
push ecx
push 1
push 0
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x3000b75c
jmp 0x3000b7aa
mov dword [ebp - 4], 1
cmp dword [ebp - 0x10c], 0
je 0x3000b779
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x3000b78f
cmp dword [ebp + 8], 0
je 0x3000b78f
push 0x4d
call fcn.30006b17
add esp, 4
cmp dword [ebp - 4], 0
jne 0x3000b7a5
cmp dword [ebp + 0xc], 0
je 0x3000b7a5
push 0x4e
call fcn.30006a18
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x3000b7ae
jmp 0x3000b763
jmp 0x3000b763
mov esp, ebp
pop ebp
ret

Function at 0x3000b890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x30035308
push 0x104
call fcn.300291ac
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
push 0x104
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
call fcn.300291ac
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
cmp dword [0x30041aa0], 0
je 0x3000b8ee
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
mov byte [eax], 0
jmp 0x3000b929
lea ecx, [ebp - 4]
push ecx
push 0x104
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [0x3003bd74]
push ecx
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
push 0x3003ba24
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.30006ef3
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
add edx, 0xc
push edx
push 0x30037eb8
push 1
push 0
push 0x30037dc8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x3000b95e
jmp 0x3000b97b
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
push 0x300381b8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x3000c668
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x20c], ecx
mov eax, dword [ebp - 0x20c]
cmp dword [eax + 4], 0
je 0x3000c68e
mov ecx, dword [ebp - 0x20c]
call fcn.3000c789
mov ecx, dword [ebp - 0x20c]
cmp dword [ecx], 0
je 0x3000c6a8
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x104]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x208]
push edx
push 0
call fcn.3000cbb0
add esp, 8
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.300197e0
add esp, 8
test eax, eax
jne 0x3000c6f5
mov edx, dword [ebp - 0x20c]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x30012301
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.3001240b
push 0
push 0
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
push 0
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x30012357
xor eax, eax
jmp 0x30012407
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call fcn.300291ac
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20], 0
jne 0x30012390
mov ecx, dword [ebp - 4]
call fcn.3001240b
xor eax, eax
jmp 0x30012407
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.300291ac
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x300123c9
mov ecx, dword [ebp - 4]
call fcn.3001240b
xor eax, eax
jmp 0x30012407
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.300291ac
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x28], 0
jne 0x30012402
mov ecx, dword [ebp - 4]
call fcn.3001240b
xor eax, eax
jmp 0x30012407
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x300124a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0
je 0x300124bf
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 0x10], 0
je 0x300124ce
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0x14], 0
je 0x300124dd
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x300124ef
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x28], 0
jne 0x300124f3
xor eax, eax
jmp 0x30012558
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x28]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x30012526
xor eax, eax
jmp 0x30012558
cmp dword [ebp + 0xc], 0
je 0x30012537
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x28]
mov dword [edx], ecx
cmp dword [ebp + 0x10], 0
je 0x30012545
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
cmp dword [ebp + 0x14], 0
je 0x30012553
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x300126a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x300126c6
mov edx, dword [ebp - 8]
cmp dword [edx + 0x28], 0
jne 0x300126ca
xor eax, eax
jmp 0x30012705
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], 1
je 0x300126f9
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
xor eax, eax
jmp 0x30012705
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.30019760
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3001270b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
je 0x30012723
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 0x14], 0
je 0x30012732
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 8], 0
je 0x3001275e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x24], 0
je 0x3001275e
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x28], 0
je 0x3001275e
cmp dword [ebp + 8], 0
jl 0x3001275e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x14]
jl 0x30012762
xor eax, eax
jmp 0x300127dc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
push ecx
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x300127a9
xor eax, eax
jmp 0x300127dc
cmp dword [ebp + 0xc], 0
je 0x300127ba
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x28]
mov dword [eax], edx
cmp dword [ebp + 0x10], 0
je 0x300127c8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x300127d6
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x24]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x30012a5a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
je 0x30012a86
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x20], 0
je 0x30012a86
cmp dword [ebp + 8], 0
jl 0x30012a86
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0xc]
jl 0x30012a8a
xor eax, eax
jmp 0x30012ac5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x30012abf
xor eax, eax
jmp 0x30012ac5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov esp, ebp
pop ebp
ret 4
Function at 0x30012b85
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x30012b99
xor eax, eax
jmp 0x30012bda
cmp dword [ebp + 8], 0
jne 0x30012ba6
mov dword [ebp + 8], 0x30041b78
mov ecx, dword [ebp + 8]
push ecx
call fcn.30019760
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x30012bd5
xor eax, eax
jmp 0x30012bda
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x30012c66
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0
jne 0x30012c81
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.30012cca
jmp 0x30012cc4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x30012c8e
xor eax, eax
jmp 0x30012cc4
mov edx, dword [ebp + 0xc]
push edx
call fcn.30019760
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x30012cbf
xor eax, eax
jmp 0x30012cc4
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x30012fce
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], ecx
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push str.ProfileImagePath
mov ecx, dword [ebp - 0x114]
call fcn.300124a7
test eax, eax
jne 0x30013002
xor eax, eax
jmp 0x300130b0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x118], 1
je 0x30013041
cmp dword [ebp - 0x118], 2
je 0x30013022
jmp 0x300130ae
push 0x104
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [ebp - 0x110]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x110]
push eax
push str.ntuser.dat
mov ecx, dword [ebp - 8]
push ecx
call fcn.30006ef3
add esp, 0xc
push 0x5c
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 4]
push eax
call fcn.3001a820
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x30013084
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
jmp 0x3001308d
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x300130ae
mov eax, 1
jmp 0x300130b0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x30014fc0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x30037eb8
push 1
push 0
push 0x30037dc8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x30014fff
jmp 0x300150df
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
call dword [eax + 0x50]
cmp dword [ebp + 0x10], 0
je 0x30015025
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 0x1c]
cmp dword [ebp + 0x14], 0
je 0x3001503b
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
call dword [edx + 0x24]
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
call dword [eax + 0x3c]
cmp dword [ebp + 0x1c], 0
je 0x30015061
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 0x2c]
lea eax, [ebp - 4]
push eax
push 0x300381b8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
call dword [edx]
test eax, eax
je 0x3001507b
jmp 0x300150dd
push 0
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.30016730
add esp, 0xc
push 1
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx + 0x18]
test eax, eax
je 0x300150ab
jmp 0x300150db
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x300150c4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx + 8]
cmp dword [ebp - 8], 0
je 0x300150d6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0xc]
jmp 0x300150e1
jmp 0x300150b2
jmp 0x300150b2
jmp 0x300150b2
mov esp, ebp
pop ebp
ret
Function at 0x300160e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x30016a0c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x100
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [ebp + 8]
push eax
call fcn.30019760
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x30016a3b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
push str.Environment
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x30016a71
xor eax, eax
jmp 0x30016aa8
mov dword [ebp - 8], 0x100
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esp, ebp
pop ebp
ret
Function at 0x30016aac
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x30041aa4], 0
jne 0x30016ac5
mov eax, 1
jmp 0x30016c41
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 5
mov dword [ebp - 0x14], 0
lea eax, [ebp - 4]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x30016b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x30016b36
lea ecx, [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x30016b34
jmp 0x30016c3f
jmp 0x30016b3b
jmp 0x30016c3d
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x30016b58
jmp 0x30016c3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x30016b68
jmp 0x30016c39
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.300291ac
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x30016b82
jmp 0x30016c37
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x30016ba3
jmp 0x30016c35
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x30016bcc
jmp 0x30016c33
mov dword [ebp - 0x20], 0
jmp 0x30016bde
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
jae 0x30016c0c
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*8 + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x30016c0a
mov dword [ebp - 0x18], 1
jmp 0x30016c0c
jmp 0x30016bd5
cmp dword [ebp - 0x14], 0
je 0x30016c1c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.300291e8
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x30016c41
jmp 0x30016c0c
jmp 0x30016c0c
jmp 0x30016c0c
jmp 0x30016c0c
jmp 0x30016c0c
jmp 0x30016c0c
jmp 0x30016c0c
mov esp, ebp
pop ebp
ret