joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087dc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x10087fc3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov eax, dword [0x100adcb8]
call fcn.1007ea24
mov dword [0x100af724], eax
xor edx, edx
mov eax, dword [0x100adcbc]
call fcn.1007ea24
mov dword [0x100af728], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.10077968
lea eax, [ebp - 8]
call fcn.100778d4
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.100778d4
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.100778d4
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.100778d4
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.100778d4
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x100add2c]
call fcn.1007aaf8
push dword [ebp - 0x10]
push 0x10087fdc
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.1007a6a4
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.1007773c
mov eax, dword [ebp - 8]
call fcn.1007787c
push eax
push 0
push 0
call fcn.10078ba8
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x10087fa0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x100af718], edi
mov eax, dword [ebp - 4]
mov dword [0x100af71c], eax
cmp dword [0x100af724], 0
je 0x10087ee9
cmp dword [0x100af728], 0
jne 0x10087f6f
mov dl, 1
mov eax, dword [0x100adc58]
call fcn.1007eb30
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x10087f84
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x10087f84
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x10087f84
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x10087f84
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x10087f84
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10087f84
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x100af720], edx
mov edx, 0x10087d70
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x10087f84
push 0x10087d1c
push 0xffffffffffffffff
call dword [0x100af724]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x10087fa0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10087fca
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.1007744c
lea eax, [ebp - 8]
call fcn.10077428
ret
Function at 0x10087fe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x100af724], 0
je 0x10087ff8
cmp dword [0x100af728], 0
jne 0x10088039
mov dl, 1
mov eax, dword [0x100adc58]
call fcn.1007eb30
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10088040
mov eax, dword [0x100af720]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x10088040
push eax
call dword [0x100af728]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x1008aa60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x1008ab4b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
call fcn.1008630c
xor eax, eax
push ebp
push 0x1008ab2e
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.1007ad00
test al, al
je 0x1008ab1b
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.1008670c
test al, al
je 0x1008ab1b
cmp dword [ebp - 0xc], 0
jne 0x1008aac1
cmp dword [ebp - 0x10], 0
je 0x1008ab1b
call fcn.1008012c
lea eax, [ebp - 0x18]
push eax
push 0x40
push 8
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1008ab1b
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov ecx, 8
mov edx, ebx
call fcn.10084de0
test al, al
jne 0x1008aaff
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
mov edx, 8
mov eax, ebx
call fcn.10087ce0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 8
push ebx
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008ab35
call fcn.1008649c
ret
Function at 0x1008c2a8
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x1008c412
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
mov ecx, esi
mov edx, 0x1008c428
call fcn.10077c20
mov eax, dword [ebp - 0x14]
call fcn.10077ba4
push eax
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1008c3fa
mov eax, dword [ebx]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.100765e8
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
sub edi, 0x18
dec edi
test edi, edi
jl 0x1008c34e
inc edi
xor esi, esi
mov al, byte [ebp - 0xc]
xor al, byte [ecx]
mov edx, esi
and dl, 0xff
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
dec edi
jne 0x1008c33b
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
sub edx, 0x18
mov ebx, dword [ebp - 0x10]
add ebx, 0x18
mov eax, ebx
call fcn.10083c50
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0x28]
lea edi, [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
sub edi, 0x18
dec edi
test edi, edi
jl 0x1008c3ae
inc edi
xor esi, esi
mov eax, esi
mov ebx, 0x14
cdq
idiv ebx
mov eax, dword [ebp - 0x10]
mov al, byte [eax + edx + 4]
xor edx, edx
mov dl, al
shr edx, 4
xor dl, byte [ecx]
and al, 0xf
shl eax, 4
xor dl, al
mov byte [ecx], dl
inc ecx
inc esi
dec edi
jne 0x1008c386
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_SetLastError
jmp 0x1008c3fc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008c419
lea eax, [ebp - 0x14]
call fcn.100779fc
ret
Function at 0x1008c434
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, eax
push esp
push 0xf003f
push 0
push ebp
push edi
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x1008c491
xor esi, esi
push 0x208
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
jmp 0x1008c46d
mov edx, ebx
mov eax, dword [esp]
call fcn.1008c434
inc esi
push 0x104
push ebx
push esi
mov eax, dword [esp + 0xc]
push eax
call sub.ADVAPI32.dll_RegEnumKeyW
test eax, eax
je 0x1008c462
push ebx
call sub.KERNEL32.dll_LocalFree
mov eax, dword [esp]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push ebp
push edi
call sub.ADVAPI32.dll_RegDeleteKeyW
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1008d148
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x1008d1ef
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1008d1e9
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1008d1e3
push 0
push edi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1008d1ba
cmp ebx, dword [ebp - 8]
jbe 0x1008d1ba
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.10083c50
mov eax, dword [ebp - 4]
push esi
push edi
lea esi, [ebp - 0x20]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008e1ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x1008e30f
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.KERNEL32.dll_lstrlenW
mov edx, eax
cmp byte [ebp - 1], 0
je 0x1008e1f9
mov eax, edx
sub eax, 2
cmp eax, 1
jl 0x1008e1f9
cmp word [ebx + eax*2], 0x5c
jne 0x1008e1f4
mov word [ebx + eax*2], 0
mov edx, eax
jmp 0x1008e1f9
dec eax
test eax, eax
jne 0x1008e1e3
test edx, edx
jle 0x1008e212
cmp word [ebx + edx*2 - 2], 0x5c
je 0x1008e212
mov word [ebx + edx*2], 0x5c
mov word [ebx + edx*2 + 2], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
jne 0x1008e250
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dl, 1
call fcn.100849e0
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, ebx
call fcn.100849e0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.100776c8
jmp 0x1008e28c
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
call fcn.10077620
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dl, 1
call fcn.10084a34
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, ebx
call fcn.100849e0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.100776c8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.1007767c
cmp eax, 6
jle 0x1008e2da
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 2], 0x3a
je 0x1008e2c7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax], 0x5c
jne 0x1008e2da
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 2], 0x5c
jne 0x1008e2da
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x1008e2de
xor ebx, ebx
jmp 0x1008e2e0
mov bl, 1
test bl, bl
je 0x1008e2f4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008e316
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.1007744c
ret
Function at 0x1008e320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor edx, edx
xor eax, eax
call fcn.1008e1ac
pop ecx
test al, al
jne 0x1008e3db
push 0x104
lea eax, [ebp - 0x212]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.1008e1ac
pop ecx
test al, al
jne 0x1008e3db
push 0x104
lea eax, [ebp - 0x212]
push eax
mov eax, dword [0x100af658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.1008e1ac
pop ecx
test al, al
jne 0x1008e3db
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.1008e1ac
pop ecx
test al, al
jne 0x1008e3db
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.1008e1ac
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100902cc
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.1008ef78
mov ebx, eax
test bl, bl
je 0x10090326
test esi, 4
jne 0x10090331
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ResumeThread
jmp 0x10090331
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10092a74
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
xor eax, eax
mov dword [ebp - 0x154], eax
xor eax, eax
push ebp
push 0x10092b20
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x154]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
call fcn.10077620
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
xor ecx, ecx
call fcn.10090df0
mov ebx, eax
test bl, bl
je 0x10092b07
mov eax, dword [ebp - 0x144]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x64
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x10092aef
push 0
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_TerminateThread
mov eax, dword [ebp - 0x148]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10092b27
lea eax, [ebp - 0x154]
call fcn.10077428
ret
Function at 0x10092dac
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x10092f96
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x100ae188], 0
jne 0x10092f7b
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x10092f74
xor eax, eax
push ebp
push 0x10092f6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x10092f56
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x10092f50
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x100add18]
call fcn.1007aaf8
mov eax, dword [ebp - 0x24]
call fcn.1007787c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10092e84
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x100add1c]
call fcn.1007aaf8
mov eax, dword [ebp - 0x28]
call fcn.1007787c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10092eb7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x100add20]
call fcn.1007aaf8
mov eax, dword [ebp - 0x2c]
call fcn.1007787c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10092eea
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x10092f3c
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x10092f07
cmp eax, dword [ebp - 0x10]
je 0x10092f38
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x10092f1c
cmp eax, dword [ebp - 0x18]
je 0x10092f38
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x10092f31
cmp eax, dword [ebp - 0x20]
je 0x10092f38
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x10092ef4
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10092f74
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x100ae188], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10092f9d
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1007744c
ret
Function at 0x43f270
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c934b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004be12f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43f2f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004bc041
mov eax, dword [eax]
push 0x4f7c68
push eax
call fcn.004ae064
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004be3ba
test bl, bl
je 0x43f2f2
push 0x4f7c68
lea ecx, [esp + 0xc]
call fcn.004be74a
push 0x4f7c74
lea ecx, [esp + 0xc]
call fcn.004be74a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43f32e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004be3ba
jmp 0x43f3f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x43f3b2
lea edx, [esp + 0x7c]
push 0x4f7c70
push edx
call fcn.004ae064
add esp, 8
test eax, eax
je 0x43f3b2
lea eax, [esp + 0x7c]
push 0x4f7c6c
push eax
call fcn.004ae064
add esp, 8
test eax, eax
je 0x43f3b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43f342
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004be3ba
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x43fbf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x43fc52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x43fc60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c93cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5070d0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x43fd98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x43fcc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004be3ba
xor eax, eax
jmp 0x43fe0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004be4f7
push esi
lea ecx, [esp + 0xc]
call fcn.004be786
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43fded
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0043fbf0
test eax, eax
jne 0x43fded
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0043fbf0
test eax, eax
jne 0x43fded
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004af1d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43fdcc
lea ecx, [esp + 0x14]
push 0x4f7c80
push ecx
call fcn.004af150
mov esi, eax
add esp, 8
test esi, esi
jne 0x43fdcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43fdcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004be4a7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43fcde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004be3ba
xor eax, eax
jmp 0x43fe0f
mov byte [esi], 0
push 0x4f7c7c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004be3ba
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4