joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edi, [eax + 0x68]
mov esi, 0x20019
push edi
push esi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 4
call dword [sym.imp.NTDLL.DLL_RtlOpenCurrentUser]
test eax, eax
jl 0x100d573
lea eax, [ebp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
push eax
push esi
push 0
push 0x100b1ec
push dword [edi]
call ebx
test eax, eax
jne 0x100d50d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100b1cc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
jne 0x100d504
cmp dword [ebp - 0xc], eax
jne 0x100d504
and dword [ebp - 8], eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x100d573
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec eax
dec eax
je 0x100d592
dec eax
je 0x100d58b
dec eax
je 0x100d584
dec eax
je 0x100d57d
mov eax, 0x100b17c
lea ecx, [ebp + 0xc]
push ecx
push esi
push 0
push eax
push dword [edi]
call ebx
test eax, eax
jne 0x100d573
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 4
lea esi, [eax + 0x114]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push 0
push 0x100b020
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
je 0x100d56a
and dword [esi], 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, 0x100b128
jmp 0x100d52a
mov eax, 0x100b0d8
jmp 0x100d52a
mov eax, 0x100b08c
jmp 0x100d52a
mov eax, 0x100b03c
jmp 0x100d52a

Function at 0x100d599
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov eax, dword [edi + 8]
mov esi, dword [eax + 8]
lea eax, [esi + 0x28]
push eax
call fcn.0100a927
add esi, 0x68
mov dword [ebp - 4], eax
push esi
push 0x20019
call dword [sym.imp.NTDLL.DLL_RtlOpenCurrentUser]
test eax, eax
jl 0x100d618
mov eax, dword [edi]
dec eax
dec eax
je 0x100d63b
dec eax
je 0x100d634
dec eax
je 0x100d62d
dec eax
je 0x100d626
mov eax, 0x100b17c
lea ecx, [ebp + 8]
push ecx
push 0x20006
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x100d618
add edi, 0x114
push 4
push edi
push 4
push eax
push 0x100b020
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push dword [ebp - 4]
call fcn.0100a9e8
pop edi
pop esi
leave
ret 4
mov eax, 0x100b128
jmp 0x100d5dd
mov eax, 0x100b0d8
jmp 0x100d5dd
mov eax, 0x100b08c
jmp 0x100d5dd
mov eax, 0x100b03c
jmp 0x100d5dd
Function at 0x100d855
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
lea ecx, [ebp + 0x14]
cmp eax, ebx
je 0x100d88f
movzx edx, word [ebp - 8]
inc dword [ebp - 8]
cmp word [ebp - 8], 0x14
mov dword [ebp + edx*4 - 0x64], eax
jae 0x100d88f
mov eax, dword [ecx]
add ecx, 4
jmp 0x100d872
push 0x1008ef8
push ebx
call dword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x100d937
cmp dword [ebp + 0xc], ebx
je 0x100d901
lea ecx, [ebp - 0xc]
mov eax, 0x100
push ecx
mov esi, dword [sym.imp.ADVAPI32.DLL_GetTokenInformation]
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x164]
push eax
push 1
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x100d94a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x100d901
push dword [ebp - 0xc]
call fcn.01005a7e
mov edi, eax
cmp edi, ebx
je 0x100d901
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 1
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x100d901
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
shr eax, 0x1e
sub eax, ebx
je 0x100d964
dec eax
je 0x100d95b
dec eax
je 0x100d952
dec eax
jne 0x100d91b
mov dword [ebp - 4], 1
lea eax, [ebp - 0x64]
push ebx
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.DLL_ReportEventW]
cmp dword [ebp - 0x14], ebx
je 0x100d945
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.DLL_DeregisterEventSource]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x164]
jmp 0x100d8fe
mov dword [ebp - 4], 2
jmp 0x100d91b
mov dword [ebp - 4], 4
jmp 0x100d91b
mov dword [ebp - 4], ebx
jmp 0x100d91b

Function at 0x1011244
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
push esi
push esi
push 1
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x1011276
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
test bh, 1
push fcn.010112b8
je 0x10112b0
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
cmp edi, esi
je 0x10112a3
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObjectEx]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
jmp 0x101126f
push edi
call fcn.010086f8
jmp 0x1011291
Function at 0x10112b8
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
cmp eax, ebx
mov dword [ebp + 8], ecx
je 0x10112d9
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov edi, 0x2000
test dword [ebp + 8], edi
je 0x1011322
lea eax, [ebp + 8]
push eax
call fcn.01014f47
movzx eax, al
cmp eax, ebx
je 0x101134d
test byte [ebp + 8], 0xb
push 1
pop esi
je 0x1011309
test dword [ebp + 8], edi
jne 0x1011309
push esi
push 0x13
call fcn.01013812
cmp eax, ebx
je 0x101134d
cmp dword [0x1022bd0], ebx
je 0x1011338
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x101130d
xor eax, eax
cmp dword [0x1022bd0], ebx
sete al
cmp dword [esi + 0x1c], ebx
je 0x10112ef
and dword [ebp + 8], 0xfffffff4
jmp 0x10112ef
call fcn.01011143
push ebx
mov dword [0x1022bd0], esi
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ExitWindowsEx]
xor ecx, ecx
cmp eax, ebx
sete cl
inc ecx
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 4
Function at 0x10113f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.DLL_SetProcessWindowStation]
push 0x80000001
call dword [sym.imp.KERNEL32.DLL_SetThreadExecutionState]
xor ebx, ebx
push 0x6e3
push ebx
push 1
mov dword [0x1021148], esi
call fcn.01004ffc
add esp, 0xc
call sub.SFC.DLL_Ordinal_2
push 5
push 0x12c
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
cmp eax, ebx
je 0x101144c
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push 3
push esi
call fcn.010053e0
push 0x78
push esi
call fcn.01005f67
cmp dword [0x102104c], ebx
je 0x101146d
push 1
push ebx
call dword [0x1023040]
mov edi, dword [esp + 0x18]
push edi
push dword [esi + 0x38c]
call dword [esi + 0x3c0]
cmp dword [esi + 0x60], 0xd
mov ebp, dword [sym.imp.NTDLL.DLL_NtShutdownSystem]
je 0x1011550
cmp edi, 0xb
jne 0x1011542
push 2
pop ecx
cmp edi, 0xa
jne 0x1011549
push 8
pop eax
or eax, ecx
or al, 5
push eax
push esi
call fcn.010111a7
push ebx
push esi
call fcn.01005f67
push esi
push 0x10115b2
push ebx
push 0x258
push dword [0x1021040]
push esi
call fcn.01005fe1
mov eax, dword [esi + 8]
push ebx
add eax, 0x28
push eax
call fcn.0100a927
push 1
push 0x13
mov dword [esp + 0x1c], eax
call fcn.01013812
call fcn.01014907
cmp dword [0x102104c], ebx
mov eax, dword [esi + 0x20]
je 0x1011590
test al, 8
je 0x101157b
push 0xa
pop eax
push 2
pop edi
push eax
push ebx
call dword [0x1023040]
cmp dword [0x102103c], ebx
je 0x101151b
push edi
call ebp
mov edi, dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.0100a9e8
cmp edi, 0xa
jne 0x1011533
push esi
call fcn.010113aa
push esi
call fcn.0101135e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor ecx, ecx
jmp 0x101149a
xor eax, eax
jmp 0x10114a6
push 1
push 0x13
call fcn.01013812
cmp edi, 0xa
jne 0x101156f
push 2
call ebp
push ebx
push 0x13
call fcn.01013812
jmp 0x10114d0
cmp edi, 0xb
jne 0x1011578
push 1
jmp 0x1011560
push ebx
jmp 0x1011560
test al, 2
je 0x1011586
push 6
pop eax
push 1
jmp 0x1011507
push 2
xor edi, edi
pop eax
jmp 0x1011508
test al, 8
jne 0x101159d
test al, 2
jne 0x10115ab
cmp edi, 0xa
jne 0x10115a6
push 2
call ebp
jmp 0x101151f
cmp edi, 0xb
jne 0x10115af
push 1
jmp 0x101159f
push ebx
jmp 0x101159f
Function at 0x1011989
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x57c
lea eax, [ebp - 0x57c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ebx, ebx
mov eax, dword [eax + 8]
push edi
push ebx
push 0x100b648
push 0x1008b34
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetProfileIntW]
test eax, eax
push 1
jne 0x10119f2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x1011ad4
push 4
push 0x100b638
push edi
call dword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x10119f8
push edi
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
push 1
pop eax
jmp 0x1011ad6
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.DLL_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
test ebx, ebx
je 0x10119f0
cmp dword [ebp - 0x2c], 4
jne 0x10119f0
mov eax, dword [0x1023030]
test eax, eax
jne 0x1011a3c
push 0x100b61c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
test eax, eax
mov dword [0x1023030], eax
je 0x1011ad4
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x100b608
push eax
call esi
push 0x100b5fc
mov edi, eax
push dword [0x1023030]
call esi
test edi, edi
mov dword [ebp - 0x14], eax
je 0x1011ad4
test eax, eax
je 0x1011ad4
mov eax, dword [ebp - 8]
push 0
add eax, 0x28
push eax
call fcn.0100a927
test eax, eax
mov dword [ebp - 8], eax
je 0x1011ad4
push 1
lea eax, [ebp + 8]
pop ebx
mov esi, 0x54c
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x57c]
push eax
mov dword [ebp - 0x57c], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], ebx
call edi
cmp eax, 0x25b
jne 0x1011add
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
test eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
je 0x1011ad4
lea ecx, [ebp + 8]
mov dword [eax], esi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call edi
test eax, eax
je 0x1011ae1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
test eax, eax
jne 0x1011ad4
xor ebx, ebx
cmp dword [ebp + 8], ebx
jbe 0x1011afb
mov eax, dword [ebp - 4]
lea edi, [eax + 4]
push dword [edi]
call dword [ebp - 0x14]
inc ebx
add edi, esi
cmp ebx, dword [ebp + 8]
jb 0x1011aee
cmp dword [ebp - 0x10], 0
je 0x1011b0a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp - 8]
call fcn.0100a9e8
jmp 0x10119f0
Function at 0x1011b17
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 8
pop eax
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x1c], eax
jbe 0x1011b2c
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
jbe 0x1011b45
mov edx, dword [ebp + 0x1c]
lea eax, [ebp - 0x20]
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], edi
add eax, 4
dec edx
jne 0x1011b38
mov eax, dword [0x1023028]
test eax, eax
jne 0x1011b69
push 0x1008ef8
push eax
call dword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
test eax, eax
mov dword [0x1023028], eax
jne 0x1011b69
push 6
pop eax
pop edi
leave
ret
push dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.DLL_ReportEventW]
test eax, eax
jne 0x1011b93
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1011b66
xor eax, eax
jmp 0x1011b66

Function at 0x1011bfa
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
push 0x100a74c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x1011cb7
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x100b670
push eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x1011cae
push 0x100a738
push dword [ebp - 8]
call esi
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x1011cae
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push 0xffffffffffffffff
push eax
push edi
push edi
call ebx
cmp eax, edi
jne 0x1011cae
mov ebx, dword [ebp - 4]
xor esi, esi
cmp dword [ebp - 0xc], edi
jbe 0x1011ca4
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.MSVCRT.DLL__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x1011c9a
mov eax, dword [ebp - 4]
push dword [eax]
push edi
call dword [ebp - 0x18]
add dword [ebp - 4], 4
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x1011c7c
cmp ebx, edi
je 0x1011cae
push ebx
call fcn.01006efc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1012811
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov ecx, dword [ebp + 0x10]
push ebx
movzx eax, cx
push esi
cmp eax, 8
push edi
jg 0x1012859
je 0x1012881
xor edi, edi
cmp eax, edi
jle 0x1012850
cmp eax, 6
jg 0x1012850
push edi
push edi
push dword [ebp + 8]
push dword [eax*4 + 0x1021a30]
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
sub eax, 9
je 0x1012971
dec eax
je 0x1012873
dec eax
dec eax
je 0x1012881
dec eax
je 0x1012971
dec eax
jne 0x1012850
mov word [ebp - 8], 0x31
mov word [ebp - 6], 0x31
jmp 0x101288d
mov word [ebp - 8], 0x31
mov word [ebp - 6], 0x30
and cl, 4
mov esi, dword [sym.imp.USER32.DLL_wsprintfW]
or cl, 0xc3
xor edi, edi
shr cl, 2
movzx ax, cl
mov word [ebp - 4], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xac]
push 0x100bb38
push eax
mov word [ebp - 2], di
call esi
add esp, 0xc
push 0x2000000
push edi
push edi
call dword [sym.imp.USER32.DLL_OpenInputDesktop]
cmp eax, edi
mov dword [ebp + 0x10], eax
je 0x1012850
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push dword [eax + 8]
lea eax, [ebp - 0x2b4]
push 0x100afa0
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.MSVCRT.DLL_wcslen]
pop ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, 0x104
sub ecx, eax
lea eax, [ebp + eax*2 - 0x2b4]
push ecx
push eax
push 2
push dword [ebp + 0x10]
call dword [sym.imp.USER32.DLL_GetUserObjectInformationW]
call fcn.0101a80d
mov esi, eax
cmp esi, edi
je 0x1012963
push 0x493e0
push esi
call fcn.0101a8b3
push 2
push esi
call fcn.0101ac28
push esi
push edi
lea eax, [ebp - 0xac]
push edi
push eax
lea eax, [ebp - 0x2b4]
push edi
push eax
xor eax, eax
cmp dword [ebx + 0x1c], edi
sete al
push eax
push ebx
call fcn.0101a917
push esi
call fcn.0101aba8
push dword [ebp + 0x10]
call dword [sym.imp.USER32.DLL_CloseDesktop]
jmp 0x1012850
mov word [ebp - 8], 0x30
jmp 0x1012879
Function at 0x1013f5f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x57
pop esi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1008da4
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1013fa9
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x1008d90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 4
Function at 0x1013fb5
Capabilities:
Create thread
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x109c
call fcn.01003a3d
push ebx
push esi
push edi
call fcn.01013ef5
lea eax, [ebp - 8]
push eax
push 0x1008da4
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyW]
xor ebx, ebx
cmp eax, ebx
jne 0x101400f
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x800
push eax
lea eax, [ebp - 0x89c]
push eax
push ebx
push ebx
push 0x100be28
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push ebx
call fcn.01013f5f
cmp dword [0x1021044], 4
je 0x101402f
push ebx
push 0x1009854
push 0x1008ef8
call dword [sym.imp.KERNEL32.DLL_WriteProfileStringW]
push 0x18
mov esi, dword [ebp + 8]
pop ecx
xor eax, eax
lea edi, [ebp - 0x9c]
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push 0xc
push eax
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.DLL_GetUserObjectInformationW]
push 1
pop edi
push edi
push dword [eax + 4]
call ebx
lea eax, [ebp - 0x18]
push 0xc
push eax
mov eax, dword [esi + 8]
push edi
mov dword [ebp - 0x18], edi
push dword [eax + 4]
call dword [sym.imp.USER32.DLL_SetUserObjectInformationW]
push 0
lea eax, [ebp - 0x18]
push 0xc
push eax
mov eax, dword [esi + 8]
push edi
push dword [eax + 0x10]
call ebx
lea eax, [ebp - 0x18]
push 0xc
push eax
mov eax, dword [esi + 8]
push edi
mov dword [ebp - 0x18], edi
push dword [eax + 0x10]
call dword [sym.imp.USER32.DLL_SetUserObjectInformationW]
push 2
push esi
call fcn.010025fb
mov edi, dword [sym.imp.USER32.DLL_GetAsyncKeyState]
push 0xa0
lea ebx, [ebp - 0x89c]
call edi
push 0xa1
mov dword [ebp + 8], eax
call edi
mov ecx, eax
or ecx, dword [ebp + 8]
test ch, 0x80
je 0x10140f6
test ah, 0x80
mov eax, 0x100be20
jne 0x10140d3
mov eax, 0x10091b0
lea ecx, [ebp - 0x89c]
push ecx
push eax
lea eax, [ebp - 0x109c]
push 0x100be08
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x10
lea ebx, [ebp - 0x109c]
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push edi
push edi
push edi
push 0x100bde8
push ebx
call fcn.01003c3c
test eax, eax
je 0x1014181
cmp dword [ebp - 4], edi
je 0x1014181
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [0x1023020], eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 4]
push 0x101418f
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x1014178
mov ebx, dword [sym.imp.USER32.DLL_GetMessageW]
push edi
push edi
lea eax, [ebp - 0x3c]
push edi
push eax
call ebx
test eax, eax
je 0x1014162
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageW]
push edi
push edi
lea eax, [ebp - 0x3c]
push edi
push eax
jmp 0x1014149
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push esi
call fcn.010025fb
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10142a9
Capabilities:
Create process on windows
Delete file
Delete registry value
Get common file path
Persist via run registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
push esi
lea eax, [ebp - 4]
push edi
push eax
xor esi, esi
push 0x20019
push esi
push 0x100bee4
push 0x80000002
call ebx
mov edi, eax
cmp edi, esi
jne 0x101440a
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push 0x100bed4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x10142fe
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp edi, esi
jne 0x101440a
push esi
push dword [ebp + 8]
call fcn.01005f67
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x46c]
push 0x104
push eax
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 0x80
mov dword [ebp - 0x54], 0x100beb0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x264]
push 0x100be98
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x46c]
push eax
push esi
push 0x4000000
push esi
push esi
push esi
lea eax, [ebp - 0x264]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
cmp eax, esi
je 0x101440a
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, esi
je 0x10143bd
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push 0x1008dc0
push 0x80000002
call ebx
cmp eax, esi
jne 0x10143f3
push 0x1009c3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0x78
push dword [ebp + 8]
call fcn.01005f67
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1014477
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 8]
xor esi, esi
push edi
mov edi, dword [ebp + 8]
add eax, 0x28
push esi
push eax
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x14], 5
mov dword [ebp - 0x10], esi
mov word [ebp - 0x12], si
call fcn.0100a927
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x10144d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
push dword [ebp + 0x20]
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0x18]
push esi
or ax, 0x404
push dword [ebp + 0x14]
push eax
mov eax, dword [ebx + 8]
push esi
push esi
push esi
push edi
push esi
push dword [eax + 0x28]
call dword [sym.imp.ADVAPI32.DLL_CreateProcessAsUserW]
push dword [ebp + 8]
mov esi, eax
call fcn.0100a9e8
mov eax, esi
jmp 0x10144d0

Function at 0x1014c2c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.01015381
xor esi, esi
cmp eax, esi
jne 0x1014c96
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x100c030
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExW]
cmp eax, esi
jne 0x1014c75
lea eax, [ebp + 0x1c]
push 4
push eax
push 4
push esi
push 0x100c010
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push dword [ebp + 0x18]
mov dword [0x1022f0c], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.01014b35
pop esi
leave
ret 0x18