joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006cfce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1006d013
call fcn.100674eb
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1006d013
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1006d02f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10076ea2
mov ebx, eax
test edi, edi
je 0x1006d02d
test esi, esi
je 0x1006d02d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1006da1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1006dada
cmp dword [esi + 0x20], 0
je 0x1006dada
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1006dada
cmp dword [ebp + 8], 0
je 0x1006dada
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.100674eb
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1006daab
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1006dada
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.10077b75
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1006dacb
test edi, edi
je 0x1006dacb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x1006dad6
mov ecx, esi
call fcn.1006d7bf
mov eax, ebx
jmp 0x1006dadc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10071fec
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10228444
call fcn.101b70f2
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10072012
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10072071
call fcn.100687ac
push eax
lea ecx, [ebp - 0x10]
call fcn.1000dd90
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.101b79da
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.101e4551
push eax
call fcn.1000d1c0
add esp, 0x14
test esi, esi
je 0x10072064
push esi
call fcn.101e5e0b
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000dde0
mov eax, ebx
call fcn.101b70bb
ret 8
Function at 0x1007445c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10071f36
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10074498
call fcn.1007467e
mov dword [esi + 0xc], 1
jmp 0x1007449d
call fcn.1007467e
cmp dword [esi], 0
je 0x100744e6
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x100744c0
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10067a26
jmp 0x100744d1
push 0xff
mov ecx, esi
call fcn.1000d570
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1000c6b0
jmp 0x1007450a
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1007450a
push dword [esi]
push dword [ebp - 4]
call fcn.10073c90
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100745d3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1007467e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1007461b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10067a26
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000c6b0
jmp 0x10074626
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10073c90
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10078241
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.100674eb
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10078278
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10078299
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1007a3c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x1007a3dd
mov edi, dword [esi + 0xc]
jmp 0x1007a41d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1007a3f6
call fcn.100751ba
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1007a40b
call fcn.100751ba
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1007a41d
call fcn.100751ba
call fcn.100674eb
cmp dword [eax + 0x3c], 0
je 0x1007a432
push edi
mov ecx, ebx
call fcn.10079a57
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1007a60f
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1007a45b
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1007a467
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1008f0ea
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100dde23
call fcn.10067539
cmp dword [eax + 0x14], 0
jne 0x1008f105
mov ecx, esi
pop esi
jmp fcn.1008e435
pop esi
ret

Function at 0x1008ffae
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.1000b3d0
call fcn.10067539
cmp dword [eax + 0x14], 0
jne 0x1008ffc9
mov ecx, esi
pop esi
jmp fcn.1008f82c
pop esi
ret
Function at 0x1009e6be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x1009e6d7
call fcn.100674eb
mov esi, dword [eax + 0xc]
push 0x10249d30
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1009e72d
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1009e72c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009e70d
xor esi, esi
jmp 0x1009e723
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.1009e735
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10196cf0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10196c30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10196d48
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [0x102ddf8c]
cmp esi, eax
je 0x10196d31
cmp esi, dword [0x102ddf88]
je 0x10196d31
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x102ddf8c]
cmp byte [ebp + 0x10], 0
je 0x10196d48
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x102ddf8c], 0
xor eax, eax
test esi, esi
pop esi
setne al
pop ebp
ret
Function at 0x101972a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0
push 0
push 0x2001f
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push connect
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10069078
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x101972e7
xor bl, bl
jmp 0x1019732e
mov edx, dword [ebp + 8]
test edx, edx
jne 0x101972f3
lea eax, [edx + 0xd]
jmp 0x10197329
mov ecx, edx
push edi
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10197300
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.DAEMON_Tools_Ultra_5.2.0.0639
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
sete bl
test esi, esi
je 0x10197339
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10198310
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10198345
push 0x40
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [ebp - 0x84]
push ebx
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10198370
sub ecx, edx
lea eax, [ebp - 0x9c]
push eax
sar ecx, 1
push ecx
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x94]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x9c], eax
pop ebx
cmp ecx, 0xffffffff
je 0x101983c9
cmp eax, ecx
jle 0x101983c9
mov eax, ecx
mov dword [ebp - 0x9c], eax
push 6
push dword [ebp - 0x98]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x9c]
xor ecx, ebp
mov edx, dword [ebp - 0x98]
pop edi
pop esi
call fcn.101b70aa
mov esp, ebp
pop ebp
ret
Function at 0x10198de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022cb61
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102bff3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
push str.SoftwareDigital_RiverSoftwarePassport_
mov dword [ebp - 4], 0
mov edi, reloc.WS2_32.dll_bind
mov dword [ebp - 0x14], 0
call fcn.1001f510
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
call fcn.1001f510
push 0xd
push 0x1026c0fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 1
call fcn.1000f790
push 0x1026c118
lea ecx, [ebp - 0x10]
call fcn.1004f633
push 0x12
push 0x10288b34
lea ecx, [ebp - 0x10]
call fcn.1000f790
push 0x1026c11c
lea ecx, [ebp - 0x10]
call fcn.1004f633
mov bl, 1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x14], 0
je 0x10198f1d
push 0x800
call fcn.10066581
push 0x400
mov esi, eax
push 0
push esi
call fcn.101d1720
add esp, 0x10
mov dword [ebp - 0x1c], 0x800
lea eax, [ebp - 0x1c]
push eax
push esi
push 0
push 0
push str.BuyURL
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov word [esi + 0x7fe], ax
cmp word [esi], ax
je 0x10198f0b
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10198ef0
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.1000d6e0
xor bl, bl
push esi
call fcn.1006658a
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x10198f33
cmp edi, 0x80000001
je 0x10198f33
mov edi, connect
jmp 0x10198e82
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10198f52
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10198f70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x10198fa9
push 0x100
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [ebp - 0x204]
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
mov dword [ebp - 0x214], 0
mov ecx, esi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20c], eax
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10198ff0
push 0x410
sub ecx, edx
lea eax, [ebp - 0x214]
push eax
sar ecx, 1
push ecx
push esi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
xor ecx, ebp
sub eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.101b70aa
mov esp, ebp
pop ebp
ret

Function at 0x10199320
Capabilities:
Get geographical location

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x40
push 0x102de7c8
mov esi, eax
push 0x59
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x1026c0a0
push 0x40
push 0x102de7c8
call fcn.101e4735
mov eax, 0x102de7c8
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10199355
sub eax, edx
mov ecx, 0x3f
sub ecx, eax
push ecx
lea eax, [eax + 0x102de7c8]
push eax
push 0x5a
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, 0x102de7c8
pop esi
ret
Function at 0x101999e0
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022cba2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
mov esi, dword [ebp + 8]
neg eax
push ecx
sbb eax, eax
mov dword [ebp - 4], 0
and eax, 0xfffffff7
mov dword [ebp - 0x220], esi
push 0
add eax, 0x23
mov dword [ebp - 0x21c], 0
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10199a72
mov eax, dword [esi]
jmp 0x10199a74
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x218], cx
je 0x10199a9f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x10199a90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10199a90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10011260
push 1
push 0x1023d4d4
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
call fcn.1002211c
push 0x12
push 0x10288b34
mov ecx, esi
call fcn.1002211c
cmp dword [esi + 0x14], 8
jb 0x10199ae5
mov eax, dword [esi]
jmp 0x10199ae7
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x1023d4d4
mov ecx, esi
call fcn.1002211c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret
Function at 0x1019a5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, 1
push eax
push esi
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101d1720
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1019a66a
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1019a653
sub ecx, edx
xor eax, eax
sar ecx, 1
cmp eax, ecx
sbb eax, eax
and esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.101b70aa
mov esp, ebp
pop ebp
ret

Function at 0x1019a690
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 8
push 0xffffffffffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1019a6d7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x12
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1019a787
cmp dword [ebp - 0x24], 3
jne 0x1019a787
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1019a6c7
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1019a777
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1019a777
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1019a790
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1019a790
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1019a79e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret
Function at 0x1019a910
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa21c
call fcn.101b7610
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xa218], eax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0xa21c], ebx
call fcn.101d1720
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101df899
push str..new
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101df824
push 0x1026b64c
lea eax, [ebp - 0xa210]
push ebx
push eax
call fcn.101eba31
push 0x1026c09c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa214]
push eax
call fcn.101eba31
mov esi, dword [ebp - 0xa210]
add esp, 0x3c
test esi, esi
je 0x1019ab00
cmp dword [ebp - 0xa214], 0
je 0x1019ab00
push 0x5000
lea eax, [ebp - 0x520c]
push 0
push eax
call fcn.101d1720
push 0x5000
lea eax, [ebp - 0xa20c]
push 0
push eax
call fcn.101d1720
push esi
call fcn.101eac33
add esp, 0x1c
test eax, eax
jne 0x1019aad7
mov ebx, dword [ebp - 0xa218]
nop
push dword [ebp - 0xa210]
lea eax, [ebp - 0x520c]
push 0x2800
push eax
call fcn.101ea627
add esp, 0xc
test eax, eax
je 0x1019aad1
lea eax, [ebp - 0x520c]
push edi
push eax
call fcn.101d309b
mov esi, eax
add esp, 8
lea eax, [ebp - 0x520c]
test esi, esi
je 0x1019aaac
mov ecx, esi
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0xa20c]
push 0x2800
push eax
call fcn.101e4551
push ebx
lea eax, [ebp - 0xa20c]
push 0x2800
push eax
call fcn.101df824
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1019aa71
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0xa20c]
push 0x2800
push eax
call fcn.101df824
push dword [ebp - 0xa214]
lea eax, [ebp - 0xa20c]
push eax
call fcn.101ea632
add esp, 0x14
jmp 0x1019aabb
push dword [ebp - 0xa214]
push eax
call fcn.101ea632
add esp, 8
push dword [ebp - 0xa210]
call fcn.101eac33
add esp, 4
test eax, eax
je 0x1019aa00
mov ebx, dword [ebp - 0xa21c]
push dword [ebp - 0xa210]
call fcn.101dea16
push dword [ebp - 0xa214]
call fcn.101dea16
add esp, 8
lea eax, [ebp - 0x20c]
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101b70aa
mov esp, ebp
pop ebp
ret

Function at 0x1019ae50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push str.VolatileTest
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1019ae93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.VolatileTest
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor al, al
mov esp, ebp
pop ebp
ret
cmp eax, 0x3fd
jne 0x1019ae8d
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x1019b590
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.1019b5b0
add esp, 4
test al, al
jne 0x1019b5a8
pop ebp
jmp fcn.1019b970
pop ebp
ret