joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100798f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x1007996f
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1007996f
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call dword [0x100f5820]
add esp, 4
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10079963
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x1002aff
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100a118
call fcn.01002c94
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100cbbc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10028b6
cmp eax, esi
jne 0x10028a9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10028b9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002890
xor esi, esi
inc esi
mov eax, dword [0x100cbb8]
cmp eax, esi
jne 0x10028cc
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10028fb
mov eax, dword [0x100cbb8]
test eax, eax
jne 0x10028f5
mov dword [0x100cbb8], esi
push 0x1001278
push 0x100126c
call fcn.010027f5
pop ecx
pop ecx
test eax, eax
je 0x10028fb
jmp 0x1002a23
mov dword [0x100c270], esi
mov eax, dword [0x100cbb8]
cmp eax, esi
jne 0x100291f
push 0x1001268
push 0x100125c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100cbb8], 2
test ebx, ebx
jne 0x100292b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100cbc0], 0
je 0x100294f
push 0x100cbc0
call fcn.01002c09
pop ecx
test eax, eax
je 0x100294f
push 0
push 2
push 0
call dword [0x100cbc0]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10029ab
test al, al
je 0x1002969
cmp dword [ebp - 0x1c], 0
jne 0x10029ab
mov al, byte [esi]
test al, al
je 0x1002979
cmp al, 0x20
ja 0x1002979
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002969
test byte [ebp - 0x3c], 1
je 0x1002985
movzx eax, word [ebp - 0x38]
jmp 0x1002988
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100c26c], eax
cmp dword [0x100c260], 0
jne 0x10029ff
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10029ba
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10029cd
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1002956
cmp dword [0x100c270], 0
jne 0x1002a0e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100c26c]
jmp 0x1002a2f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002cd9
ret
call fcn.01002e87
jmp 0x1002856
Function at 0x10046c7
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x1004790
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x1004790
push esi
lea eax, [ebp - 4]
push eax
push 2
push edi
mov esi, 0x10015a0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x100473a
jle 0x100470f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x100477c
test byte [eax + 0x1c], 1
je 0x100477c
push edi
push ebx
push esi
push 0x1001590
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003243
jmp 0x100477c
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x100477c
jle 0x1004754
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x100477c
test byte [eax + 0x1c], 1
je 0x100477c
push edi
push ebx
push 0x1001590
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003109
cmp dword [ebp - 4], 0
pop esi
je 0x100478c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10047b9
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10047b4
test byte [eax + 0x1c], 1
je 0x10047b4
push 0x1001590
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
mov eax, 0x80070057
pop edi
pop ebx
leave
ret 8

Function at 0x1004a71
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.01004a2d
mov esi, eax
cmp esi, ebx
jge 0x1004ac6
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1004b58
test byte [eax + 0x1c], 1
je 0x1004b58
push esi
push 0x1001628
push 0x11
jmp 0x1004b49
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
xor eax, eax
or eax, edx
xor esi, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
or ecx, esi
sub eax, ebx
mov dword [ebp - 8], ecx
je 0x1004afe
dec eax
jne 0x1004b56
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push ebx
push 0x10016c8
jmp 0x1004b0c
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push ebx
push 0x10016a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x1004b56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1004b2d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1004b58
test byte [eax + 0x1c], 1
je 0x1004b58
push esi
push 0x1001628
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x1004b58
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x1004b66
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1004b74
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 4], ebx
inc esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 8
mov dword [ebp - 0x10], ebx
call fcn.01004a2d
cmp eax, ebx
jge 0x1004be4
mov ecx, dword [0x100c014]
cmp ecx, 0x100c014
je 0x1004c79
test byte [ecx + 0x1c], 1
je 0x1004c79
push eax
push 0x1001628
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01003070
jmp 0x1004c79
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x1004c18
dec eax
jne 0x1004c90
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10016c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov dword [ebp - 8], 0xa320
jmp 0x1004c40
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10016a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0xd
call fcn.01007ee4
cmp esi, ebx
je 0x1004c90
push dword [ebp + 8]
call fcn.01004a71
cmp eax, ebx
jge 0x1004c77
mov ecx, dword [0x100c014]
cmp ecx, 0x100c014
je 0x1004c77
test byte [ecx + 0x1c], 1
je 0x1004c77
push eax
push 0x1001628
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01003070
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x1004c87
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
xor esi, esi
or esi, eax
mov eax, dword [ebp - 8]
or ecx, edx
sub esi, dword [ebp - 0x18]
mov edx, 0x23c34600
sbb ecx, dword [ebp - 0x14]
mul edx
cmp ecx, edx
jb 0x1004c77
ja 0x1004cc2
cmp esi, eax
jbe 0x1004c77
xor esi, esi
inc esi
jmp 0x1004c79
Function at 0x100536a
Capabilities:
Delete file
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, ecx
je 0x10053c1
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, dword [ebp + 0x10]
je 0x10053c1
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0x1048], eax
test eax, eax
jne 0x10053cc
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10053c1
test byte [eax + 0x1c], 1
je 0x10053c1
push 0x10016f8
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
mov eax, 0x80070057
pop edi
pop esi
pop ebp
ret 0xc
push 0x8f8
push 0
push 0
push 6
push edi
mov dword [esi + 0x1050], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x100541f
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x100540f
test byte [eax + 0x1c], 1
je 0x100540f
push 0x10016f8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov edi, eax
jmp 0x100545d
mov eax, dword [eax + 4]
mov ecx, esi
mov dword [esi + 0x104c], eax
call fcn.010050a4
mov edi, eax
test edi, edi
jge 0x100545b
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x100545d
test byte [eax + 0x1c], 1
je 0x100545d
push 0x10016f8
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
jmp 0x100545d
xor edi, edi
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1005471
add esi, 0x6dc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x10053c6
Function at 0x10057b4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1009f1d
call fcn.01009c87
mov esi, ecx
mov dword [ebp - 0x20], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
cmp edi, ebx
jne 0x1005805
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10057fb
test byte [eax + 0x1c], 1
je 0x10057fb
push 0x1001708
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
mov eax, 0x80070057
jmp 0x10059b9
lea ecx, [esi + 0x20]
call fcn.010089bb
test eax, eax
je 0x100581b
mov eax, 0xe0000000
jmp 0x10059b9
cmp dword [esi + 4], ebx
je 0x10059a6
cmp dword [esi], ebx
jne 0x10059a6
lea ebx, [esi + 0x14]
mov ecx, ebx
call fcn.0100897c
test eax, eax
jne 0x1005854
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x1005889
cmp dword [ebp - 0x14], edi
je 0x1005889
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
jmp 0x1005889
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x20019
push eax
push 0
mov ecx, ebx
call fcn.01008985
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1005880
mov esi, 0x80004005
jmp 0x10059b7
mov dword [ebp - 0x1c], 1
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
lea ecx, [esi + 0x20]
call fcn.01008985
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10058b3
mov esi, 0x80004005
jmp 0x10059a8
mov eax, dword [ebp - 0x18]
xor edx, edx
inc edx
cmp eax, edx
je 0x10058cd
cmp eax, 2
je 0x10058cd
cmp eax, 7
jne 0x10058d0
add dword [ebp + 8], 2
jmp 0x10058d0
inc dword [ebp + 8]
push eax
call fcn.01005690
mov ecx, dword [esi + 0xc]
cmp ecx, eax
je 0x1005921
cmp ecx, 9
je 0x1005921
cmp ecx, 5
jne 0x10058eb
cmp eax, edx
je 0x1005921
cmp ecx, edx
jne 0x10058f4
cmp eax, 5
je 0x1005921
cmp ecx, ebx
jne 0x10058fc
cmp eax, edx
je 0x1005921
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10058a9
test byte [eax + 0x1c], dl
je 0x10058a9
push 0x1001708
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
jmp 0x10058a9
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1005935
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 8], ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
or dword [ebp - 4], 0xffffffff
pop ecx
mov dword [esi + 8], eax
jmp 0x1005959
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x1005967
mov esi, 0x8007000e
jmp 0x10059a8
push dword [ebp + 8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
lea eax, [ebp - 0x18]
push eax
push ebx
lea ecx, [esi + 0x20]
call fcn.01008985
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10058a9
mov eax, dword [ebp + 8]
mov dword [esi], 1
mov dword [esi + 0x10], eax
xor esi, esi
cmp dword [ebp - 0x1c], 0
je 0x10059b7
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.01009cfd
ret 8
Function at 0x1005b67
Capabilities:
Get file attributes

Disassembly:
push 0xc
mov eax, 0x1009f45
call fcn.01009c4f
lea ecx, [ebp - 0x18]
call fcn.0100895d
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.01009212
test eax, eax
jge 0x1005bbd
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1005c37
test byte [eax + 0x1c], 1
je 0x1005c37
push 0x1001780
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
jmp 0x1005c37
lea ecx, [ebp - 0x18]
call fcn.01008985
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1005c0d
cmp eax, 0xffffffff
je 0x1005c0d
push 0
push 0
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x18]
call fcn.01008985
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1005c37
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0100896f
xor eax, eax
inc eax
jmp 0x1005c45
mov ecx, dword [0x100c014]
cmp ecx, 0x100c014
je 0x1005c37
test byte [ecx + 0x1c], 1
je 0x1005c37
push eax
push dword [ebp + 8]
push 0x1001780
push 0x5a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01003109
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0100896f
xor eax, eax
call fcn.01009cfd
ret 4

Function at 0x10062ee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 8
mov dword [ebp + 0x18], ecx
cmp eax, esi
je 0x100631d
mov dword [eax], esi
cmp dword [ebp + 0xc], esi
jne 0x1006327
cmp dword [ebp + 0x20], esi
je 0x100633f
lea eax, [ebp + 0x18]
push eax
push 0x101
push esi
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100635b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x40
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, esi
je 0x1006363
push eax
call fcn.0100346f
jmp 0x1006365
xor eax, eax
cmp eax, esi
jge 0x100637c
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
cmp eax, esi
je 0x100637c
mov dword [eax], 1
mov eax, dword [ebp + 0x18]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x1006392
cmp eax, dword [ebp + 8]
je 0x1006392
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
leave
ret 0x1c
Function at 0x10068a8
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x1006939
lea ecx, [ebp - 0x1c]
push ecx
push 2
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x1006993
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov ecx, dword [0x100c014]
cmp ecx, 0x100c014
je 0x1006a22
test byte [ecx + 0x1c], 1
je 0x1006a22
push eax
push 0x1001780
push 0x4f
jmp 0x1006980
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1006990
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov ecx, dword [0x100c014]
cmp ecx, 0x100c014
je 0x1006a22
test byte [ecx + 0x1c], 1
je 0x1006a22
push eax
push 0x1001780
push 0x50
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01003070
jmp 0x1006a22
xor edi, edi
inc edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
call fcn.01005a38
test eax, eax
jne 0x10069fc
cmp dword [ebp - 0x28], ebx
jne 0x10069b1
cmp dword [ebp - 0x20], ebx
je 0x10069f9
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x10069fc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10069e8
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x24], ebx
je 0x10069fc
mov dword [ebp - 0x18], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x1006a10
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
je 0x1006a21
cmp edi, ebx
je 0x1006a21
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
pop esi
cmp dword [ebp - 0x10], ebx
pop edi
pop ebx
je 0x1006a32
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
call fcn.01002f1d
leave
ret 4
Function at 0x1006cb3
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], ebx
call fcn.01006a6c
mov esi, eax
cmp esi, ebx
jge 0x1006d3b
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1006e82
test byte [eax + 0x1c], 1
je 0x1006e82
push esi
push 0x1001780
push 0xa3
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x1006e82
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1001960
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010037fa
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x1006d88
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1006e82
test byte [eax + 0x1c], 1
je 0x1006e82
push esi
push 0x1001780
push 0xa4
jmp 0x1006d2b
lea eax, [ebp - 0x20c]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x214], eax
cmp eax, ebx
jne 0x1006ddf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1006db6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1006e6e
test byte [eax + 0x1c], 1
je 0x1006e6e
push esi
push 0x1001780
push 0xa5
jmp 0x1006e15
push 0x18
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
jne 0x1006e22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1006e6e
test byte [eax + 0x1c], 1
je 0x1006e6e
push esi
push 0x1001780
push 0xa6
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x1006e6e
cmp dword [eax], 0x18
jne 0x1006e42
mov ecx, dword [eax + 8]
or ecx, dword [eax + 0xc]
je 0x1006e42
mov ecx, dword [eax + 0x10]
or ecx, dword [eax + 0x14]
je 0x1006e42
push 6
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor esi, esi
jmp 0x1006e6e
mov esi, 0x8007000d
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1006e6e
test byte [eax + 0x1c], 1
je 0x1006e6e
push 0x1001780
push 0xa7
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
cmp dword [ebp - 0x214], ebx
je 0x1006e82
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], ebx
je 0x1006e98
push 1
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ClosePrivateNamespace]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002f1d
leave
ret 4
Function at 0x1007025
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
mov dword [ebp + 0x14], eax
cmp edi, esi
je 0x100704d
mov dword [edi], esi
cmp dword [ebp + 0xc], esi
jne 0x1007057
cmp dword [ebp + 0x1c], esi
je 0x100706f
lea ecx, [ebp + 0x14]
push ecx
push 0x101
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100708b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x10
push dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, esi
je 0x1007093
push eax
call fcn.0100346f
jmp 0x1007095
xor eax, eax
cmp eax, esi
jge 0x10070a6
mov dword [ebp - 4], ebx
cmp edi, esi
je 0x10070a6
mov dword [edi], 1
mov eax, dword [ebp + 0x14]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x10070bc
cmp eax, dword [ebp + 8]
je 0x10070bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
leave
ret 0x18