joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b8fc
Capabilities:
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
xor eax, eax
push ebp
push 0x1001bb23
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x220]
mov eax, 0x1001bb3c
call fcn.1000ccec
push dword [ebp - 0x220]
push 0x1001bb68
lea edx, [ebp - 0x224]
mov eax, 0x1001bb74
call fcn.1000ccec
push dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
mov edx, 3
call fcn.1000a808
mov eax, dword [ebp - 0x21c]
call fcn.1000a948
push eax
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x1001ba39
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea edx, [ebp - 0x228]
mov eax, 0x1001bb88
call fcn.1000ccec
mov eax, dword [ebp - 0x228]
call fcn.1000a948
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x1001b9ef
cmp dword [ebp - 8], 4
je 0x1001b9f6
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1001b9ff
cmp dword [ebp - 4], 0
jbe 0x1001b9ff
dec dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
mov eax, 0x1001bb88
lea edx, [ebp - 0x22c]
call fcn.1000ccec
mov eax, dword [ebp - 0x22c]
call fcn.1000a948
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x1001ba3e
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001bb03
call fcn.1001b0c8
test al, al
je 0x1001bb05
push 0xf003f
push 0
push 0
call dword [0x1002a70c]
mov esi, eax
test esi, esi
je 0x1001bb05
push 0x101ff
lea edx, [ebp - 0x234]
mov eax, 0x1001bb74
call fcn.1000ccec
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x230]
mov dl, 1
call fcn.1000cd5c
mov eax, dword [ebp - 0x230]
push eax
push esi
call dword [0x1002a710]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001baed
mov eax, dword [ebp - 4]
push eax
call dword [0x1002a708]
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x1001bae1
mov word [ebp - 0x216], 0
lea eax, [ebp - 0x216]
call fcn.1001a48c
lea eax, [ebp - 0x216]
push eax
call sub.KERNEL32.dll_DeleteFileW
mov eax, dword [ebp - 4]
push eax
call dword [0x1002a700]
jmp 0x1001bafa
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x424
sete bl
push esi
call dword [0x1002a700]
jmp 0x1001bb05
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001bb2a
lea eax, [ebp - 0x234]
mov edx, 7
call fcn.1000a50c
ret
Function at 0x1001bb98
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.1000a938
xor eax, eax
push ebp
push 0x1001bc65
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.1000a948
push eax
push esi
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x1001bc35
xor ebx, ebx
jmp 0x1001bc12
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.1000a730
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.1001bb98
pop ecx
inc ebx
push 0x104
lea eax, [ebp - 0x10d]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegEnumKeyA
test eax, eax
je 0x1001bbe8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 4]
call fcn.1000a948
push eax
push esi
call sub.ADVAPI32.dll_RegDeleteKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001bc6c
lea eax, [ebp - 0x114]
call fcn.1000a4e8
lea eax, [ebp - 4]
call fcn.1000a4e8
ret
Function at 0x1001c464
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8f8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x704], edx
mov dword [ebp - 0x708], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1001c635
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x704]
mov eax, 0x1001c64c
call fcn.1000ccec
mov eax, dword [ebp - 0x704]
push eax
lea eax, [ebp - 0x708]
lea edx, [edi + 0x30]
call fcn.1000a6b4
mov ecx, dword [ebp - 0x708]
lea eax, [ebp - 0x14]
pop edx
call fcn.1000a794
push 0
mov eax, dword [ebp - 0x14]
call fcn.1000a948
push eax
call fcn.100134ec
mov esi, eax
test esi, esi
je 0x1001c5f0
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1001c5ea
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x1001c521
cmp eax, dword [esp]
pop edx
pop eax
jne 0x1001c5e1
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x1001c5e1
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1001c595
imul eax, dword [ebp - 8], 0x8f
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x700]
mov ecx, 0x11e
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp word [ebp - 0x700], 0
jne 0x1001c57e
mov bl, 1
jmp 0x1001c5e1
lea eax, [ebp - 0x700]
push eax
call sub.KERNEL32.dll_GetModuleHandleW
cmp eax, dword [ebp - 4]
jne 0x1001c5d5
mov byte [ebp - 9], 1
jmp 0x1001c5e1
imul eax, dword [ebp - 8], 0x4e
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x288]
mov ecx, 0x9c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp - 0x288], 0
jne 0x1001c5be
mov bl, 1
jmp 0x1001c5e1
lea eax, [ebp - 0x288]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
cmp eax, dword [ebp - 4]
jne 0x1001c5d5
mov byte [ebp - 9], 1
jmp 0x1001c5e1
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x1001c545
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
or bl, byte [ebp - 9]
jne 0x1001c5ff
inc edi
cmp edi, 0xa
jne 0x1001c49b
cmp byte [ebp - 9], 0
jne 0x1001c60f
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.1001c328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001c63c
lea eax, [ebp - 0x708]
mov edx, 2
call fcn.1000a50c
lea eax, [ebp - 0x14]
call fcn.1000a4e8
ret
Function at 0x1001cdac
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1001ce00
push esi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x1001cde9
test ebx, ebx
je 0x1001cde1
push ebx
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x1001cde1
push ebx
push esi
call sub.ADVAPI32.dll_EqualSid
test eax, eax
jne 0x1001cde5
xor eax, eax
jmp 0x1001ce02
mov al, 1
jmp 0x1001ce02
test ebx, ebx
je 0x1001cdfb
push ebx
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x1001cdfb
xor eax, eax
jmp 0x1001ce02
mov al, 1
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret
Function at 0x1001d5cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.1001d310
pop ecx
test al, al
jne 0x1001d6f4
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.1001d310
pop ecx
test al, al
jne 0x1001d6f4
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x1002a658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x1002a658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.1001d310
pop ecx
test al, al
jne 0x1001d6f4
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.1001d310
pop ecx
test al, al
jne 0x1001d6f4
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.1001d310
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1001dd08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x1001dd33
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x1001dd47
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x1001dd4b
xor eax, eax
jmp 0x1001dd4d
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x1001debc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x1001df53
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.1001dcdc
test al, al
je 0x1001df53
cmp word [ebp - 2], 0x5a4d
jne 0x1001df53
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.1001dcdc
test al, al
je 0x1001df53
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.1001dcdc
test al, al
je 0x1001df53
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x1001df53
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x1001df57
xor eax, eax
jmp 0x1001df59
mov al, 1
test al, al
je 0x1001df76
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x1001faf4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
mov byte [ebp - 1], 0
push ebx
mov eax, dword [esi]
push eax
call fcn.100112d8
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x149
push esi
push edi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1001fc41
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1001fc41
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1001fc41
cmp dword [esi + 0x20], 0
je 0x1001fbbd
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x20]
push eax
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1001fc41
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
lea eax, [edi + 0x24]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1001fc41
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x1001fc41
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x145]
dec eax
push eax
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1001fc41
cmp byte [ebp - 0x16], 0xe8
jne 0x1001fc41
lea eax, [edi + 0x3c]
sub eax, dword [esi + 0x145]
sub eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x1001fc41
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + 0x145]
push eax
call sub.KERNEL32.dll_VirtualProtect
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10020528
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
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
push 1
push 1
mov ecx, dword [ebp - 0x10]
xor edx, edx
call fcn.1001fc50
mov ebx, eax
test bl, bl
je 0x1002056d
test esi, 4
jne 0x10020578
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ResumeThread
jmp 0x10020578
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 0x10021fdc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x100220b9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x10029f44], 0
jne 0x10022085
lea edx, [ebp - 8]
mov eax, 0x100220d0
call fcn.1000ccec
push dword [ebp - 8]
lea edx, [ebp - 0xc]
mov eax, 0x100220e0
call fcn.1000ccec
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.1000c980
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.1000a808
mov eax, dword [ebp - 4]
call fcn.1000a948
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
push 0
push 0
push 0
push 0xf001f
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov dword [0x10029f44], eax
mov eax, dword [0x10029f44]
xor edx, edx
mov dword [eax], edx
push ebx
call sub.KERNEL32.dll_CloseHandle
cmp dword [0x10029f44], 0
je 0x1002209c
mov eax, dword [0x10029f44]
call fcn.10021fcc
mov ebx, eax
jmp 0x1002209e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100220c0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.1000a50c
ret

Function at 0x10022894
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 0x150], eax
xor eax, eax
push ebp
push 0x10022939
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x150]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
call fcn.1000a6c4
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
xor ecx, ecx
call fcn.10020d10
mov ebx, eax
test bl, bl
je 0x10022920
mov eax, dword [ebp - 0x140]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x64
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
push 0
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_TerminateThread
mov eax, dword [ebp - 0x144]
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 0x10022940
lea eax, [ebp - 0x150]
call fcn.1000a4e8
ret
Function at 0x10022bb4
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x10022d3f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x10022d24
xor eax, eax
push ebp
push 0x10022d1d
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 0x10022d06
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 0x10022d00
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x10022d58
call fcn.1000ccec
mov eax, dword [ebp - 0x1c]
call fcn.1000a948
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10022c7c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
mov eax, 0x10022d74
call fcn.1000ccec
mov eax, dword [ebp - 0x20]
call fcn.1000a948
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x10022caf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x10022cec
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 0x10022ccc
cmp eax, dword [ebp - 0x10]
je 0x10022ce8
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 0x10022ce1
cmp eax, dword [ebp - 0x18]
je 0x10022ce8
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x10022cb9
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 0x10022d24
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10022d46
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.1000a50c
ret
Function at 0x40b2e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e01b
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.00462545
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b362
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004601cd
mov eax, dword [eax]
push 0x4ac1d0
push eax
call fcn.004526a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004627d0
test bl, bl
je 0x40b362
push 0x4ac1d0
lea ecx, [esp + 0xc]
call fcn.00462b60
push 0x4afd60
lea ecx, [esp + 0xc]
call fcn.00462b60
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 0x40b39e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004627d0
jmp 0x40b469
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 0x40b422
lea edx, [esp + 0x7c]
push 0x4afd5c
push edx
call fcn.004526a4
add esp, 8
test eax, eax
je 0x40b422
lea eax, [esp + 0x7c]
push 0x4afd58
push eax
call fcn.004526a4
add esp, 8
test eax, eax
je 0x40b422
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 0x40b3b2
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.004627d0
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 0x40bc60
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 0x40bcc2
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 0x40bcd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e09b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b6540]
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 0x40be08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bd36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004627d0
xor eax, eax
jmp 0x40be7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046290d
push esi
lea ecx, [esp + 0xc]
call fcn.00462b9c
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 0x40be5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040bc60
test eax, eax
jne 0x40be5d
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 accept
mov ecx, edi
call fcn.0040bc60
test eax, eax
jne 0x40be5d
lea eax, [esp + 0x14]
push 0x4afd74
push eax
call fcn.004536e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40be3c
lea ecx, [esp + 0x14]
push 0x4afd70
push ecx
call fcn.00453660
mov esi, eax
add esp, 8
test esi, esi
jne 0x40be3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40be3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004628bd
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bd4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004627d0
xor eax, eax
jmp 0x40be7f
mov byte [esi], 0
push 0x4afd6c
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.004627d0
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