joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c72a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
cmp dword [ebp + 0x38], ebx
je 0x43c838
cmp byte [ebp + 0x3e], bl
je 0x43c838
mov eax, dword [ebp]
mov esi, 0xffff
push esi
call dword [eax + 0xc]
cmp si, ax
jne 0x43c765
xor al, al
jmp 0x43c83a
push ebx
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xf
mov byte [esp + 0x20], bl
call fcn.0043c4fc
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebp + 0x38]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebp + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x43c7c5
sub eax, 1
je 0x43c7c8
dec eax
sub eax, 1
jne 0x43c82b
inc eax
jmp 0x43c829
mov byte [ebp + 0x3e], bl
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x43c807
push dword [ebp + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0051899d
add esp, 0x10
cmp esi, eax
jne 0x43c827
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebp + 0x3e], bl
je 0x43c825
test esi, esi
jne 0x43c789
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0043c590
jmp 0x43c781
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.0043c446
mov al, bl
jmp 0x43c83a
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x441f65
Capabilities:
Terminate process

Disassembly:
push esi
push dword [ecx + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
jne 0x441f81
xor al, al
pop esi
ret
push ebx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
ret
Function at 0x447a54
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x3c], 7
xor edi, edi
lea ecx, [esp + 0x28]
xor eax, eax
mov dword [esp + 0x38], edi
push 0x556764
mov word [esp + 0x2c], ax
call fcn.0043c2b9
mov esi, dword [esp + 0x44]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x447a89
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.0043d30e
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmovae eax, dword [esp + 0x28]
push eax
push edi
push 0xf001f
call ebp
mov dword [ebx], eax
test eax, eax
jne 0x447b2e
push str.Local_
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call fcn.0043c2b9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x447aea
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.0043d30e
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
push edi
push 0xf001f
call ebp
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [ebx], esi
call fcn.0043c274
test esi, esi
je 0x447b69
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, 0xf001f
push 4
push edi
push edi
push ebp
push eax
call esi
test eax, eax
je 0x447b69
mov ecx, dword [eax]
push eax
mov dword [ebx + 8], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebx + 8]
add eax, 4
push eax
push edi
push edi
push ebp
push dword [ebx]
call esi
mov dword [ebx + 4], eax
test eax, eax
je 0x447b69
lea edi, [eax + 4]
lea ecx, [esp + 0x28]
call fcn.0043c274
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4

Function at 0x447e8c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 4
push 8
push 1
mov dword [edi], 0x556a34
lea esi, [edi + 0xc]
mov dword [edi + 4], eax
mov word [edi + 8], bx
mov byte [edi + 0xa], bl
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.0043e4eb
mov dword [esi], eax
add esp, 0xc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [esi]
mov dword [eax], esi
call fcn.00517b84
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [edi + 0x20], eax
lea eax, [ebp + 8]
push 4
push eax
mov dword [edi + 0x24], ebx
mov ebx, 0xffff
push 0x1002
push ebx
push dword [edi + 4]
mov dword [ebp + 8], 0x100000
call esi
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push ebx
push dword [edi + 4]
call esi
push dword [0x56cb90]
mov ecx, edi
call fcn.00447e46
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46bebd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
mov ebp, edx
mov dword [esp + 0x20], ecx
push ebx
push ebp
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
call fcn.0046cbdd
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x38]
push ebx
push edi
lea ecx, [esp + 0x20]
call fcn.0046cbdd
mov edx, dword [esp + 0x24]
add esp, 0x10
mov esi, dword [esp + 0x30]
cmp edx, esi
cmovg esi, edx
mov eax, esi
and eax, 1
add esi, eax
mov eax, dword [esp + 0x10]
mov ecx, esi
sub ecx, dword [esp + 0x30]
sar eax, cl
mov ecx, esi
sub ecx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
sar eax, cl
xor ecx, ecx
inc ecx
cmp eax, ecx
mov edx, ecx
cmovg edx, eax
xor eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x46bf5f
sub ebp, edi
movsx eax, word [edi]
mov ecx, esi
movsx edx, word [edi + ebp]
lea edi, [edi + 2]
imul edx, eax
mov eax, dword [esp + 0x10]
sar edx, cl
add eax, edx
mov dword [esp + 0x10], eax
sub ebx, 1
jne 0x46bf3b
mov edx, dword [esp + 0x30]
push 0xd
mov ecx, eax
call fcn.0046bdc2
mov edx, eax
mov ecx, 0xffffc000
cmp eax, ecx
cmovl edx, ecx
mov ecx, 0x4000
cmp eax, ecx
cmovg edx, ecx
sar esi, 1
movsx ecx, dx
mov eax, edx
movzx ebp, dx
imul ebp, ecx
sar eax, 0x10
imul eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
sar ebp, 0x10
mov dword [esp + 0x1c], esi
add ebp, eax
mov eax, ebp
cdq
mov edi, eax
xor edi, edx
sub edi, edx
call fcn.0045e14c
mov ebx, eax
mov ecx, esi
mov eax, dword [esp + 0x30]
shl ebx, cl
mov ecx, dword [esp + 0x38]
movzx edx, cx
sub ebx, dword [eax]
cmp ecx, edi
movzx esi, di
mov ecx, eax
cmovg esi, edx
movzx edi, bx
movsx esi, si
imul edi, esi
sar ebx, 0x10
imul ebx, esi
sar edi, 0x10
add edi, dword [ecx]
mov ecx, dword [esp + 0x34]
add edi, ebx
mov ebx, eax
movzx edx, cx
movsx eax, bp
mov ebp, dword [esp + 0x14]
imul edx, eax
sar ecx, 0x10
imul ecx, eax
movzx eax, bp
mov dword [ebx], edi
mov ebx, dword [esp + 0x18]
sar edx, 0x10
add edx, ecx
sar ebp, 0xc
movsx ecx, bx
and ebp, 0xfffffff0
imul eax, ecx
imul ebp, ecx
mov ecx, dword [esp + 0x20]
shl edx, 6
sar eax, 0xc
and eax, 0xfffffff0
sub edx, eax
sub edx, ebp
add ecx, edx
call fcn.0045e14c
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
shl eax, cl
sub eax, dword [ebx + 4]
movzx ecx, ax
imul ecx, esi
sar ecx, 0x10
sar eax, 0x10
add ecx, dword [ebx + 4]
imul eax, esi
push 0xe
add ecx, eax
xor eax, eax
inc eax
mov dword [ebx + 4], ecx
cmp edi, eax
cmovg eax, edi
mov edx, eax
call fcn.0046bdc2
mov edx, dword [esp + 0x28]
pop ecx
pop ecx
mov ecx, 0x7fff
mov dword [edx], eax
cmp eax, ecx
jg 0x46c080
xor esi, esi
mov ecx, eax
test eax, eax
cmovs ecx, esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x14
ret
Function at 0x46e2d3
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
xor eax, eax
push ebx
push esi
mov bl, dl
mov dword [ebp - 4], 7
push edi
lea edx, [ebp - 0x18]
mov word [ebp - 0x18], ax
call fcn.004c82c4
test bl, bl
je 0x46e364
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46e364
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 8]
lea edi, [eax*2 + 2]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x46e35e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x46e357
cmp dword [ebp - 4], 8
lea ecx, [ebp - 0x18]
push edi
cmovae ecx, dword [ebp - 0x18]
push ecx
push eax
call fcn.00505060
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x18]
call fcn.0043c274
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472097
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0xb0
call fcn.004ed632
mov edx, eax
pop ecx
xor ecx, ecx
push 0x10
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov byte [edx + 0x51], cl
pop edi
mov dword [edx + 0x58], edi
cmp byte [edx + 0x51], cl
jne 0x4720cb
mov byte [edx + 0x51], 1
lea esi, [edx + 0x10]
jmp 0x4720cd
mov esi, ecx
mov dword [edx + 0x5c], esi
mov byte [edx + 0xa1], cl
mov dword [edx + 0xa8], edi
cmp byte [edx + 0xa1], cl
jne 0x4720ee
mov byte [edx + 0xa1], 1
lea ecx, [edx + 0x60]
mov eax, ecx
mov dword [edx + 0xac], ecx
pop edi
pop esi
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
mov dword [edx], 0x55743c
mov esp, ebp
pop ebp
ret
Function at 0x474444
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
mov byte [esp + 0xe], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebp, str.SoftwareSASGeneration
push 4
sete byte [esp + 0x13]
pop edi
test eax, eax
jne 0x4744cb
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 3
pop ecx
test eax, eax
jne 0x4744b3
mov byte [esp + 0xe], bl
cmp dword [esp + 0x14], ecx
jne 0x4744b3
xor bl, bl
jmp 0x4744cb
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push edi
push 0
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.sas.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4744ee
push str.SendSAS
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4744ee
push 0
call eax
cmp byte [esp + 0xf], 0
je 0x47452b
cmp byte [esp + 0xe], 0
jne 0x474509
push ebp
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x474521
test bl, bl
je 0x474521
push edi
lea eax, [esp + 0x18]
push eax
push edi
push 0
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4745ba
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
lea eax, [esp + 0x61c]
push ebx
push esi
push edi
push 0x104
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4745f1
xor eax, eax
jmp 0x474762
lea eax, [esp + 0x628]
push 0x5c
push eax
call fcn.00504a54
pop ecx
pop ecx
lea edx, [esp + 0x420]
lea ecx, [eax + 2]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x47460e
push ecx
push ecx
lea ecx, [esp + 0x48]
call fcn.0043adb7
lea edx, [esp + 0x420]
lea ecx, [esp + 0x50]
call fcn.0043e07c
push eax
call fcn.0043e241
mov dword [esp], 0x100
lea eax, [esp + 0xf4]
push esi
push eax
call fcn.005055e0
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x58]
push eax
call fcn.0043c8d5
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
call fcn.0043c8d5
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push dword [esp + 0x38]
cmovae eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.00517f34
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0043c274
lea ecx, [esp + 0x28]
call fcn.0043c274
push 0x557fa4
push str.C:AeroAdminLog.txt
call fcn.0051874e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4746d5
lea eax, [esp + 0xf0]
push eax
push edi
call fcn.0047442c
push edi
call fcn.00518a6b
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.00436d2d
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x4745ea
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x474760
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [esp + 0x1f0], 0x22c
lea eax, [esp + 0x1f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x474755
cmp dword [esp + 0x1f8], ebx
je 0x474746
lea eax, [esp + 0x420]
push eax
lea eax, [esp + 0x218]
push eax
call fcn.005192d5
pop ecx
pop ecx
test eax, eax
jne 0x474746
inc esi
lea eax, [esp + 0x1f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x474721
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475982
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
push ecx
lea ecx, [ebp - 0xc8]
call fcn.004443c5
mov edx, str.REMOVE_SERVICE
lea ecx, [ebp - 0xb8]
call fcn.0044348f
push eax
call fcn.00443642
mov dword [esp], 0x557fa4
push str.C:AeroAdminLog.txt
call fcn.0051874e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4759fc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00444f26
cmp dword [ebp - 4], 0x10
lea ecx, [ebp - 0x18]
cmovae ecx, dword [ebp - 0x18]
push ecx
push esi
call fcn.0047442c
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.0043c446
push esi
call fcn.00518a6b
pop ecx
lea ecx, [ebp - 0xc8]
call fcn.00443fd6
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x475a20
xor al, al
jmp 0x475a5b
push 0x10020
push str.AeroadminService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x475a40
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x475a1c
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
cmp edi, 1
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x475a62
Capabilities:
Start service

Disassembly:
push ebx
push edi
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x475a7a
xor al, al
jmp 0x475ab8
push esi
push 0x10
push str.AeroadminService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x475a9a
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x475ab7
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
cmp edi, 1
sete al
pop esi
pop edi
pop ebx
ret

Function at 0x475b58
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x475ba3
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x475bab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x475bba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
pop ebx
je 0x475bc3
xor al, al
jmp 0x475bca
cmp dword [ebp - 8], 1
sete al
mov esp, ebp
pop ebp
ret
Function at 0x475bce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
lea eax, [ebp - 0x260]
push ebx
push esi
push edi
push 0x104
push eax
xor edi, edi
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x475bfc
xor al, al
jmp 0x475c8a
push 0x38
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x3c
push edi
push eax
call fcn.005055e0
add esp, 0xc
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0x260]
mov dword [ebp - 8], edi
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 4], 7
push 0x55822c
mov word [ebp - 0x18], ax
call fcn.0043c2b9
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x475c49
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.0043d30e
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], edi
cmovae eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x18]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0043c274
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x479bc6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
lea eax, [ebp - 4]
xor ecx, ecx
push ebx
push esi
push ecx
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push 0x5584a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x479ce8
push ecx
push ecx
lea ecx, [ebp - 0xe8]
call fcn.0043adb7
mov edx, dword [0x5ffd80]
mov bl, 1
mov esi, dword [edx]
jmp 0x479c82
mov eax, dword [esi + 0x10]
test eax, eax
jle 0x479c44
test bl, bl
jne 0x479c30
mov edx, 0x556714
lea ecx, [ebp - 0xd8]
call fcn.0043e07c
mov eax, dword [esi + 0x10]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0043b5fd
mov edx, dword [0x5ffd80]
xor bl, bl
cmp byte [esi + 0xd], 0
jne 0x479c82
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x479c6b
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x479c82
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x479c5d
jmp 0x479c82
mov eax, dword [esi + 4]
jmp 0x479c7a
cmp esi, dword [eax + 8]
jne 0x479c80
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x479c70
mov esi, eax
cmp esi, edx
jne 0x479c12
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xd0]
call fcn.0043c8d5
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xd0]
call fcn.0043c8d5
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae ecx, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.admins
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x1c]
call fcn.0043c274
lea ecx, [ebp - 0x34]
call fcn.0043c274
lea ecx, [ebp - 0xe8]
call fcn.00436d2d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479cf7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
lea eax, [ebp - 4]
push esi
xor esi, esi
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x5584a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x479da3
push ecx
push ecx
lea ecx, [ebp - 0xe8]
call fcn.0043adb7
mov edx, 0x54de54
lea ecx, [ebp - 0xd8]
call fcn.0043e07c
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xd0]
call fcn.0043c8d5
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xd0]
call fcn.0043c8d5
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae ecx, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push esi
push str.admins
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x1c]
call fcn.0043c274
lea ecx, [ebp - 0x34]
call fcn.0043c274
lea ecx, [ebp - 0xe8]
call fcn.00436d2d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x479db1
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x479e77
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x479e77
call fcn.00479bc6
mov eax, dword [ebp + 8]
push 0x80020003
or eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x479e30
call fcn.00479cf7
jmp 0x479e77
cmp dword [ebp + 8], esi
je 0x479e77
mov esi, 0x5ffca8
push esi
call fcn.004ebd68
pop ecx
test eax, eax
je 0x479e4c
push eax
call fcn.004eb791
pop ecx
mov ecx, dword [0x5f1f14]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x73
lea ecx, [ecx + 0x40]
call fcn.004424c7
push esi
call fcn.004ebd8d
pop ecx
test eax, eax
je 0x479e77
push eax
call fcn.004eb791
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x47d35e
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x18
mov eax, dword [0x5ffdd8]
push ebx
push ebp
push esi
mov ebx, dword [eax + 0x18]
xor ebp, ebp
shl ebx, 4
xor eax, eax
inc eax
mov dword [0x6009d8], 0x1e0
mov word [esp + 0x10], ax
push edi
movzx ecx, word [ebx + 0x56cbac]
movzx eax, word [ebx + 0x56cba8]
mov edx, dword [ebx + 0x56cba4]
mov word [esp + 0x22], cx
shr cx, 3
movzx ecx, cx
imul ecx, eax
mov word [esp + 0x16], ax
push 0x30000
push ebp
push 0x47d1e4
movzx eax, cx
imul eax, edx
mov dword [esp + 0x24], edx
mov word [esp + 0x2c], cx
mov dword [esp + 0x28], eax
xor eax, eax
mov word [esp + 0x30], ax
imul eax, dword [ebx + 0x56cba8], 0x3c0
mov dword [0x600a40], eax
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push 0x600a48
call dword [sym.imp.WINMM.dll_waveInOpen]
mov esi, 0x6009e0
push 8
pop ecx
push dword [0x600a40]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
call fcn.005192ca
pop ecx
push 0x20
push esi
push dword [0x600a48]
mov dword [esi], eax
mov eax, dword [0x600a40]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebp
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
push 0x20
push esi
push dword [0x600a48]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
add esi, 0x20
inc ebp
cmp esi, 0x600a40
jl 0x47d3f7
mov edx, dword [ebx + 0x56cba8]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, dword [ebx + 0x56cba4]
call fcn.00463aab
push 0xa
mov esi, eax
push 0xfaa
push esi
mov dword [0x600a44], esi
call fcn.004650bf
mov edi, 0xfffffc18
push edi
push 0xfa2
push esi
call fcn.004650bf
push edi
push 0xfb8
push esi
call fcn.004650bf
add esp, 0x2c
push dword [0x600a48]
call dword [sym.imp.WINMM.dll_waveInStart]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8