joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0x18
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x51c]
push ebx
mov edi, dword fs:[0x18]
mov ebx, edi
sub esp, 0x54c
mov dword [ebp - 0x51c], 0x18
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov edi, eax
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.iphlpapi.dll_GetTcpTable
sub esp, 0xc
test eax, eax
jne 0x4015b0
mov ebx, eax
mov eax, dword [edi]
mov ecx, edi
lea esi, [edi + 4]
test eax, eax
je 0x40157d
mov dword [ebp - 0x52c], ecx
lea esi, [esi]
mov eax, dword [esi]
cmp eax, 0xb
ja 0x401567
mov ecx, 0x920
bt ecx, eax
jae 0x401567
mov eax, dword [esi + 4]
lea edx, [ebp - 0x498]
lea edi, [ebp - 0x398]
call fcn.00401050
movzx eax, word [esi + 8]
lea ecx, [ebp - 0x518]
mov dword [esp + 8], 0x405484
mov dword [esp], ecx
rol ax, 8
mov dword [esp + 4], 0x20
movzx eax, ax
mov dword [esp + 0xc], eax
call fcn.00401000
mov eax, dword [esi + 0xc]
mov edx, edi
call fcn.00401050
movzx eax, word [esi + 0x10]
lea edx, [ebp - 0x4d8]
mov dword [esp + 8], 0x405484
mov dword [esp], edx
rol ax, 8
mov dword [esp + 4], 0x20
movzx eax, ax
mov dword [esp + 0xc], eax
call fcn.00401000
lea ecx, [ebp - 0x518]
lea eax, [ebp - 0x498]
mov dword [esp + 8], str._s:_s
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x298]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xa0
call fcn.00401000
mov dword [esp + 0xc], edi
lea edx, [ebp - 0x4d8]
lea edi, [ebp - 0x158]
mov dword [esp + 0x10], edx
mov dword [esp + 8], str._s:_s
mov dword [esp + 4], 0xa0
mov dword [esp], edi
call fcn.00401000
mov eax, dword [esi]
lea ecx, [ebp - 0x298]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
shl eax, 5
mov dword [esp + 4], 0x4054ac
add eax, 0x405140
mov dword [esp], str.____6s___22s___22s__s_n
mov dword [esp + 0x10], eax
call fcn.00401140
mov eax, dword [ebp - 0x52c]
add ebx, 1
add esi, 0x14
cmp dword [eax], ebx
ja 0x401448
mov ecx, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [ebp - 0x52c], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov edx, dword [ebp - 0x52c]
sub esp, 0xc
cmp edx, 0x7a
jne 0x4015a0
mov eax, dword [ebp - 0x51c]
jmp 0x4013f0
Function at 0x4015f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0xc
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x2bc
mov dword [ebp - 0x29c], 0xc
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov esi, eax
lea eax, [ebp - 0x29c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.iphlpapi.dll_GetUdpTable
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401730
mov eax, dword [esi]
lea edi, [ebp - 0x258]
test eax, eax
je 0x4016fe
nop
mov eax, dword [esi + ebx*8 + 4]
mov edx, edi
call fcn.00401050
movzx eax, word [esi + ebx*8 + 8]
add ebx, 1
mov dword [esp + 8], 0x405484
mov dword [esp + 4], 0x20
rol ax, 8
movzx eax, ax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x298]
mov dword [esp], eax
call fcn.00401000
lea eax, [ebp - 0x298]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x158]
mov dword [esp + 8], str._s:_s
mov dword [esp + 4], 0xa0
mov dword [esp], eax
call fcn.00401000
lea eax, [ebp - 0x158]
mov dword [esp + 4], 0x405498
mov dword [esp + 8], eax
mov dword [esp], str.____6s___22s_:_n
call fcn.00401140
cmp dword [esi], ebx
ja 0x401670
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
cmp ebx, 0x7a
jne 0x401721
mov eax, dword [ebp - 0x29c]
jmp 0x401618
Function at 0x4026a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll__configure_wide_argv]
call dword [sym.imp.ucrtbase.dll__initialize_wide_environment]
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call dword [sym.imp.ucrtbase.dll__get_initial_wide_environment]
mov ebx, eax
mov eax, dword [0x40003c]
cmp word [eax + 0x40005c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__set_app_type]
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401b80
mov dword [esp], eax
call 0x402710
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll_exit]
Function at 0x1004e9af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1004e9be
pop dword [ebp - 0x34]
mov eax, 0x1004e9be
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xfecb227
sub dword [ebp - 0x44], 0xc19a6cdc
mov dword [ebp - 0x40], 0x654ac028
sub dword [ebp - 0x40], 0x331773e3
mov dword [ebp - 0x3c], 0xc09134bb
sub dword [ebp - 0x3c], 0x7444f08d
mov dword [ebp - 0x38], 0xc4cdc3c3
add dword [ebp - 0x38], 0x3b323c3d
lea eax, [ebp - 0x44]
push eax
mov eax, 0x168bf786
add eax, 0xf97c78ae
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x5f98d4c
add dword [ebp - 0x44], 0x6e78dc0a
mov dword [ebp - 0x40], 0x22ce608d
add dword [ebp - 0x40], 0x1e9e00e8
mov dword [ebp - 0x3c], 0x9e89a725
sub dword [ebp - 0x3c], 0x3b1a3ab9
mov dword [ebp - 0x38], 0x80b990d2
add dword [ebp - 0x38], 0x7f466f2e
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x143d1bd6
sub eax, 0x434abb2
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3af53
push 0
call eax
mov ecx, 0x95e7dae
sub ecx, 0x95e3f52
mov ebx, eax
mov esi, 0x100b9000
add esi, dword [ebp - 0x34]
mov edi, 0x13bc6a0a
add edi, 0xe66e5b7f
xor dword [ebp - 0x30], ebx
mov edx, dword [esi]
add dword [ebp - 0x14], 0x83a740ee
add edx, edi
mov dword [ebp - 0x2c], 0xb7943cd3
mov dword [ebx], edx
sub dword [ebp - 0x24], 0xe751c3a3
add ebx, 0x50cdf922
add ebx, 0xaf3206e2
add esi, 0x3b02330
add esi, 0xfc4fdcd4
loop 0x1004ead5
add eax, 0xb0e68e9
sub eax, 0xb0d7ca6
mov ebx, eax
add eax, 0xf8360e12
sub eax, 0xf8360e0d
mov ecx, 0xb4849720
sub ecx, 0xa4849720
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10008780
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cfd9
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x10008850
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1000897a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100bf9a0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.100020c0
test al, al
jne 0x10008825
push 0
push 0x100bf9a0
mov ecx, edi
call fcn.10001950
mov esi, dword [ebp + 0xc]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000895c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1000895c
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x10008984
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x21c]
call fcn.100020c0
test al, al
jne 0x100088b2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008890
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10001950
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.100083c0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp - 0x21c]
je 0x10008911
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10008911
push 0x100bf9a0
mov ecx, edi
call fcn.10002180
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000893d
mov ecx, dword [edx]
push edx
jmp 0x10008938
lea ebx, [esi - 0x10]
push ebx
call fcn.100016d0
add eax, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1000893d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000895c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
int3
Function at 0x10008990
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d018
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100cd4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10008ae2
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10008ae2
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10008ae2
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x10008b0d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push edi
push 0x800
push 0x800
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.10008530
push eax
push dword [ebp + 0x18]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [esi - 8]
push esi
call fcn.10073a2b
add esp, 8
test eax, eax
js 0x10008b17
cmp eax, dword [esi - 8]
jg 0x10008b17
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp eax, 0x7ff
je 0x10008a54
cmp eax, 0x7fe
jne 0x10008a9e
push edi
push 0x1000
push 0x1000
lea ecx, [ebp + 0xc]
call fcn.10008530
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0xc]
push dword [esi - 8]
push esi
call fcn.10073a2b
add esp, 8
test eax, eax
js 0x10008b17
cmp eax, dword [esi - 8]
jg 0x10008b17
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.100016d0
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10008ace
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, 0x100bf9a0
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002180
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
push 0x80004005
call fcn.100015b0
push 0x80070057
call fcn.100015b0
int3
Function at 0x10008b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10008be7
cmp dword [ebp + 0xc], 0
je 0x10008be7
test edx, edx
je 0x10008be7
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
mov dword [ebp + 8], 0
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008b80
sub ecx, ebx
lea eax, [ebp + 8]
sar ecx, 1
mov ebx, 0
push eax
cmovne ebx, edx
mov ecx, 0x20019
cmp dword [ebp + 0x18], 0
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008be7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test esi, esi
je 0x10008bea
mov eax, dword [ebp + 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x810], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80c], edi
test ecx, ecx
je 0x10008cfa
test eax, eax
je 0x10008cfa
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.1006c590
add esp, 0xc
mov dword [ebp - 0x80c], 1
mov dword [ebp - 0x818], 0x200000
mov dword [ebp - 0x808], 0
test esi, esi
je 0x10008c8b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008c74
sub ecx, edx
mov eax, 0
sar ecx, 1
cmove esi, eax
cmp dword [ebp + 0x1c], 0
lea eax, [ebp - 0x808]
push eax
mov ecx, 0x20019
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push dword [ebp - 0x810]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008cfa
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10008cfa
lea eax, [ebp - 0x804]
jmp 0x10008d04
test ebx, ebx
mov eax, 0x100bf9a0
cmovne eax, ebx
push eax
mov ecx, edi
call fcn.10002180
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100612dc
mov esp, ebp
pop ebp
ret
Function at 0x10009080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10009126
cmp dword [ebp + 0xc], 0
je 0x10009126
test edx, edx
je 0x10009126
mov ecx, edx
mov dword [ebp + 8], 0
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100090b2
sub ecx, ebx
lea eax, [ebp - 4]
push eax
sar ecx, 1
lea eax, [ebp + 8]
push eax
mov ebx, 0
mov ecx, 0x20006
push 0
cmovne ebx, edx
mov eax, 0x20106
cmp dword [ebp + 0x18], 0
cmove eax, ecx
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10009119
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
mov edx, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, 0x100bf9a0
cmovne esi, eax
cmp dword [ebp + 8], 0
push edi
je 0x10009202
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10009202
test edx, edx
je 0x10009202
mov ecx, edx
mov dword [ebp + 0x14], 0
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009174
sub ecx, dword [ebp - 4]
mov eax, 0
sar ecx, 1
mov ecx, 0x20006
cmovne eax, edx
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
push 0
mov eax, 0x20106
cmove eax, ecx
push eax
push 0
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x100091f5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100091c6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push dword [ebp - 4]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000f750
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c49a0
push 0x1006c790
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100cd4bc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [ecx], edi
lea eax, [ebp - 0x28]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1000f7ca
cmp dword [ebp - 0x28], edi
je 0x1000f7ca
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000f802
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x1000f8e4
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000f8e4
cmp dword [ebp - 0x28], 0
je 0x1000f8e4
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x1000f8e4
cmp dword [ebp - 0x2c], eax
jbe 0x1000f8e4
call esi
cmp eax, 0x7a
jne 0x1000f8e4
push dword [ebp - 0x2c]
call fcn.1006fb0b
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x1000f8e4
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push edi
push 2
push dword [ebp - 0x28]
call ebx
test eax, eax
je 0x1000f8e4
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x1000f8e4
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1000f8e4
cmp dword [ebp - 0x30], 0
je 0x1000f8e4
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x1000f8e4
lea ebx, [edi + esi*8]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1000f8cd
inc esi
jmp 0x1000f8b0
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov eax, dword [ebx + 8]
shr eax, 2
and eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.1000f911
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret 8
Function at 0x10011660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d806
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, 0x100a4160
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
nop
push ebx
push dword [esi + 4]
call fcn.1007b7f8
add esp, 8
test eax, eax
je 0x100116fb
add esi, 8
cmp esi, str.CSIDL_DESKTOP
jl 0x100116a0
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100117bc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100bf9a0
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.100020c0
test al, al
jne 0x1001179e
push 0
push 0x100bf9a0
jmp 0x10011797
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10011745
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100117c6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.100020c0
test al, al
jne 0x1001179e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011780
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10001950
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
int3

Function at 0x100117e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cf7b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], esi
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100118ae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100020c0
test al, al
jne 0x10011892
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011874
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001950
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.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
int3