joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10367b1
Capabilities:
Find taskbar

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x10027f0
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x1036815
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push 0x10027d4
push edi
push eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x1036815
push edi
push 0x10027bc
push edi
push ebx
call esi
test eax, eax
je 0x1036807
xor eax, eax
inc eax
jmp 0x1036890
push edi
push 0x10027a0
push edi
push ebx
call esi
test eax, eax
jne 0x10367ff
mov esi, 0x104
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01058c2d
test eax, eax
je 0x1036852
push 0x1002784
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
test eax, eax
jl 0x1036852
lea eax, [ebp - 0x20c]
push eax
call fcn.010366d9
test eax, eax
jne 0x10367ff
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01058c2d
test eax, eax
je 0x103688e
push 0x1002768
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
test eax, eax
jl 0x103688e
lea eax, [ebp - 0x20c]
push eax
call fcn.010366d9
test eax, eax
jne 0x10367ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret

Function at 0x103694b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
push eax
mov esi, 0x105
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10369b1
push 0x1002878
lea eax, [ebp - 0x210]
push eax
push 0x100286c
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0103590d
add esp, 0x14
test eax, eax
jl 0x10369b1
lea eax, [ebp - 0x41c]
push eax
call fcn.010561ca
test eax, eax
jne 0x10369b1
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret
Function at 0x1036a35
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x214], ebx
cmp edi, ebx
je 0x1036b2b
push edi
push 0x10028c8
push 0x100286c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0103590d
add esp, 0x14
test eax, eax
jl 0x1036b2b
push esi
mov dword [ebp - 0x210], ebx
mov esi, 0x2001f
call fcn.0105c72d
test eax, eax
je 0x1036aa0
mov esi, 0x2011f
lea eax, [ebp - 0x210]
push eax
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036b2a
cmp dword [ebp + 0xc], ebx
je 0x1036aff
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push ebx
push 0x10028a4
push dword [ebp - 0x210]
xor esi, esi
inc esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1036b1e
push dword [ebp + 0x10]
mov dword [ebp - 0x214], esi
push edi
call fcn.01034134
jmp 0x1036b1e
push 0x10028a4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1036b1e
mov dword [ebp - 0x214], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 0xc

Function at 0x1036b46
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x1001eb8
push 0x80000002
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036bf7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], esi
push esi
jmp 0x1036bd4
inc dword [ebp - 0x218]
push 1
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01036a35
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call edi
test eax, eax
je 0x1036ba7
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x1001eb8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret
Function at 0x1036c19
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x1001e48
push 0x80000002
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036cca
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], esi
push esi
jmp 0x1036ca7
inc dword [ebp - 0x218]
push 1
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01036a35
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call edi
test eax, eax
je 0x1036c7a
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x1001e48
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret

Function at 0x1036cec
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x424], esi
cmp eax, esi
je 0x1036e13
push ebx
push eax
push 0x1002930
push 0x100286c
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0103590d
add esp, 0x14
test eax, eax
jl 0x1036e12
push edi
mov dword [ebp - 0x418], esi
mov edi, 0x20019
call fcn.0105c72d
test eax, eax
je 0x1036d58
mov edi, 0x20119
lea eax, [ebp - 0x418]
push eax
push edi
push esi
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036e11
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x41c], esi
push esi
jmp 0x1036df3
inc dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
cmp word [ebp - 0x20c], 0x6b
pop ecx
jne 0x1036ddb
cmp word [ebp - 0x20a], 0x62
jne 0x1036ddb
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.01036a35
mov dword [ebp - 0x424], eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
mov dword [ebp - 0x420], ebx
call edi
test eax, eax
je 0x1036d9c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 8
Function at 0x1037f4c
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.01034b43
test eax, eax
je 0x103801d
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.01059012
test eax, eax
jne 0x103801d
call fcn.01058fa9
test eax, eax
jne 0x103801d
and dword [ebp - 0x210], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x210]
push eax
mov ebx, 0x2001f
push ebx
push 0
push 0x10033e8
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x1037fe0
push 0x10033b8
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push 0x10032e8
push edi
call esi
pop edi
pop esi
pop ebx
test eax, eax
jne 0x103801d
push 0x10032c8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047464
leave
ret
Function at 0x10383f9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10739cc], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x620], ebx
mov dword [ebp - 0x624], 1
jne 0x10385ee
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x10385dd
push edi
mov edi, 0x10034bc
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01035886
test eax, eax
jl 0x1038493
lea eax, [ebp - 0x414]
push eax
call fcn.010561ca
test eax, eax
jne 0x1038493
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1038493
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01035886
lea eax, [ebp - 0x414]
push eax
call fcn.010561ca
test eax, eax
je 0x10385dc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10385dc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push eax
call fcn.010581e2
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e3d
push 0x1002890
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
test eax, eax
jl 0x10385dc
lea eax, [ebp - 0x20c]
push eax
call fcn.010561ca
test eax, eax
je 0x10385dc
push 0xff
lea eax, [ebp - 0x61c]
push eax
push 0xaa
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10385dc
mov eax, dword [0x10739dc]
mov ecx, dword [0x107255c]
imul eax, eax, 0x2c
mov eax, dword [eax + ecx + 0x28]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x630], eax
call ebx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
mov edi, 0x402
push edi
push dword [ebp - 0x620]
mov dword [ebp - 0x62c], eax
call esi
mov dword [ebp - 0x628], eax
test eax, eax
jne 0x103858b
push edi
push dword [ebp - 0x620]
call ebx
push eax
call esi
mov dword [ebp - 0x628], eax
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x10385d5
push 0
push dword [ebp - 0x62c]
lea ecx, [ebp - 0x20c]
push dword [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x61c]
push ecx
push dword [ebp - 0x628]
mov ecx, eax
push edi
push dword [ebp - 0x620]
call fcn.010454bc
mov dword [0x10739cc], eax
jmp 0x10385dc
and dword [0x10739cc], 0
pop edi
cmp dword [0x10739cc], 0
pop esi
jne 0x10385ee
and dword [ebp - 0x624], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 4
Function at 0x103d0b6
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push 1
push edi
push edi
push 0x1003e00
mov esi, 0x80000002
push esi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x103d19b
push ebx
lea eax, [ebp - 0x210]
push eax
push 3
push edi
push 0x1003da0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x103d192
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01058148
test eax, eax
je 0x103d18a
push 0x1003d70
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
test eax, eax
jl 0x103d18a
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x103d15c
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x1003d48
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x214]
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret

Function at 0x103fe80
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x107255c]
cmp eax, 0x1072428
jne 0x103fec8
cmp dword [0x10739b4], 0xd2af9
je 0x103ff85
call fcn.01035319
test eax, eax
je 0x103ff74
call fcn.0103536f
jmp 0x103ff85
cmp eax, 0x1072270
jne 0x103feef
cmp dword [0x10739b4], 0xd2af9
je 0x103fee5
mov dword [0x10739a8], 1
call fcn.01034037
jmp 0x103ff85
cmp dword [0x10739b4], 0xd2af8
jne 0x103ff25
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01058148
test eax, eax
je 0x103ff25
push 0xffff
push 1
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.01059819
cmp dword [0x10739b4], 0
jl 0x103ff54
cmp dword [0x107255c], section..data
jne 0x103ff54
cmp dword [0x1073a18], 0
jne 0x103ff4f
call fcn.01036f05
call fcn.01036e2d
jmp 0x103ff54
call fcn.01036f05
mov eax, dword [0x10739b4]
cmp eax, 0xd2af9
je 0x103ff80
cmp eax, 0xc00d2afb
je 0x103ff80
test eax, eax
jl 0x103ff85
cmp dword [0x107399c], 0
jne 0x103ff85
mov dword [0x10739a8], 1
jmp 0x103ff85
call fcn.0103d0b6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047464
leave
ret
Function at 0x1041412
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
push esi
push esi
push 4
mov dword [ebp - 0x208], esi
call fcn.01058952
test eax, eax
je 0x10414cf
push edi
lea eax, [ebp - 0x208]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1004820
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10414cc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1004804
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x200
mov dword [ebp - 0x20c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10414c0
cmp dword [ebp - 0x20c], edi
jne 0x10414c0
lea eax, [ebp - 0x204]
push 0x10047f8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10414c0
mov esi, edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret

Function at 0x10416b4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x424
push esi
push edi
mov edi, 0x80004005
je 0x1041713
cmp dword [ebp + 8], 0x466
je 0x1041713
cmp dword [ebp + 8], 0x427
je 0x10416f7
push 0x100490c
push 2
call fcn.01055c2f
xor esi, esi
push esi
push esi
push esi
push 6
call fcn.01058952
neg eax
sbb eax, eax
and eax, 0x87
add eax, 0xc1
jmp 0x1041741
xor esi, esi
push esi
push esi
push 1
push 6
call fcn.01058952
test eax, eax
je 0x104172b
mov eax, 0xe2
jmp 0x1041741
push esi
push esi
push esi
push 6
call fcn.01058952
neg eax
sbb eax, eax
and eax, 0x1f
add eax, 0xc0
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push eax
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x104179f
push 7
lea eax, [ebp - 0x204]
push 0x10048fc
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x104179f
push 0xa
push esi
push esi
lea eax, [ebp - 0x204]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 4
Function at 0x1041912
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0xffffffffffffffff
xor edi, edi
push 0x1004988
mov dword [ebp - 8], edi
call fcn.0106de5c
mov ebx, eax
cmp ebx, edi
jl 0x1041ac0
lea ecx, [ebp - 0x30]
call fcn.0106d68a
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0x7fff
call fcn.0106d68a
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.0106de14
mov ebx, eax
cmp ebx, edi
jge 0x1041977
lea ecx, [ebp - 0x24]
call fcn.0106de0a
lea ecx, [ebp - 0x30]
call fcn.0106de0a
jmp 0x1041ac0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x10419a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x1041998
push 0x57
pop eax
cmp eax, edi
jle 0x10419a4
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1041962
push esi
push 0x44
pop esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10419c6
mov ebx, 0x8007000e
jmp 0x1041a9f
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0xc], edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x14], esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
test ebx, ebx
jne 0x1041a0e
cmp eax, 0x7a
je 0x1041a0e
test eax, eax
jle 0x1041a07
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1041a9f
lea ecx, [ebp - 0x3c]
call fcn.0106d68a
mov eax, dword [ebp - 0xc]
inc eax
push eax
lea ecx, [ebp - 0x3c]
call fcn.0106de14
mov ebx, eax
test ebx, ebx
jl 0x1041a97
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp - 0x24]
push 0
call edi
mov edi, eax
call esi
test edi, edi
jne 0x1041a5a
test eax, eax
jle 0x1041a95
and eax, 0xffff
or eax, 0x80070000
jmp 0x1041a95
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x1041a75
call esi
test eax, eax
jne 0x1041a4c
push 0x57
pop eax
jmp 0x1041a4a
push 0xffffffffffffffff
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
call fcn.0106de5c
mov ebx, eax
test ebx, ebx
jl 0x1041a97
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x30]
call fcn.0106e031
mov ebx, eax
lea ecx, [ebp - 0x3c]
call fcn.0106de0a
lea ecx, [ebp - 0x24]
call fcn.0106de0a
lea ecx, [ebp - 0x30]
call fcn.0106de0a
xor edi, edi
pop esi
cmp dword [ebp - 4], edi
je 0x1041ac0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], edi
je 0x1041ace
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1041adb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push 1
xor edi, edi
push edi
push 0x1004a68
push 0x80000001
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1041b6d
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1004a2c
push dword [ebp - 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x1041b3a
cmp dword [ebp - 4], 1
jne 0x1041b3a
and dword [0x1074298], 0xfffffffe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x10049e8
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call esi
pop esi
pop ebx
test eax, eax
jne 0x1041b64
cmp dword [ebp - 4], 1
jne 0x1041b64
and dword [0x1074298], 0xfffffffd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret
Function at 0x10451b5
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp edi, ebx
jne 0x10451cf
xor eax, eax
jmp 0x104520b
push 0x3c
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1045693
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x1074308], esi
jne 0x1045705
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [0x1074308], 1
call fcn.01058148
test eax, eax
je 0x1045705
lea eax, [ebp - 0x210]
push eax
call fcn.010561ca
test eax, eax
je 0x1045705
push 0xa
lea eax, [ebp - 0x210]
push esi
cmp dword [ebp + 8], esi
je 0x10456f7
push 0x1004f78
jmp 0x10456fc
push 0x1004f5c
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 4
Function at 0x10466d6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x104674c
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01058148
test eax, eax
je 0x104674c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1005530
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0103590d
add esp, 0x14
test eax, eax
jl 0x104674c
lea eax, [ebp - 0x61c]
push eax
push 0x1003d0c
call fcn.01059719
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.01047464
leave
ret

Function at 0x10467fb
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x3c], eax
cmp eax, edi
je 0x104685c
lea eax, [esi + 0x40]
push eax
push edi
push esi
push 0x10467df
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, edi
je 0x104684b
cmp dword [ebp + 8], edi
jne 0x104684b
push 0x32
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1046839
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x104685c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], edi
pop edi
pop esi
pop ebp
ret 4