joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10081de
Capabilities:
Delete service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
call fcn.010080cf
test eax, eax
jne 0x10081f8
inc eax
jmp 0x1008282
push ebx
push edi
push 0x2000007
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
jne 0x100821c
push edi
add esi, 0x68
push esi
push 0x100e7f0
push edi
jmp 0x1008278
push 0x10020
lea edi, [esi + 0x68]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1008243
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push 0x100e5f0
push esi
jmp 0x1008278
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
call esi
push ebx
call esi
xor eax, eax
cmp dword [ebp - 4], eax
je 0x1008270
inc eax
jmp 0x1008280
push eax
push edi
push 0x100e3f0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1008961
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUdateFromDate]
test eax, eax
jne 0x1008af6
fld qword [ebp - 0x24]
lea eax, [ebp - 4]
push eax
push 0x80000000
push 0x800
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_VarBstrFromDisp]
test eax, eax
jne 0x1008af6
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push edi
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetOEMCP]
shr eax, 1
push eax
push dword [ebp - 4]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1008af4
push ebx
push ebx
push dword [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
shr eax, 1
push eax
push dword [ebp - 4]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 8]
mov byte [eax + edi], bl
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1008a22
sub eax, esi
mov ecx, edi
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x1008a32
sub ecx, edi
lea esi, [ecx + esi + 3]
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1008af4
push 0x10020ec
push dword [ebp - 8]
push dword [ebp + 8]
push 0x10020e4
push esi
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x100f48c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1008af4
push 1
push ebx
push ebx
push dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x18], eax
xor edi, edi
call fcn.0100b680
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov eax, dword [0x100f498]
adc edi, edx
shl eax, 0x14
cdq
cmp edi, edx
jg 0x1008ad0
jl 0x1008ab2
cmp ecx, eax
ja 0x1008ad0
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x100f48c]
push esi
push dword [ebp - 0xc]
mov byte [0x100f49c], bl
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1008af4
cmp byte [0x100f49c], bl
jne 0x1008af4
push dword [0x100f494]
mov byte [0x100f49c], 1
push 0xc0000fa2
push 4
call fcn.0100828a
add esp, 0xc
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop ebx
leave
ret 4
Function at 0x1009dea
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x10026b8
call fcn.0100b614
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [ebp - 0x20], edi
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x10017c0
push 0x80000002
call fcn.0100bf4b
test eax, eax
jne 0x1009e5a
lea ebx, [esi + 0x24]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push edi
push 0x10017a0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1009e61
mov dword [ebx], 2
jmp 0x1009e61
mov dword [esi + 0x24], 2
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], 4
mov dword [ebp - 4], edi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
or dword [ebp - 4], 0xffffffff
jmp 0x1009e8c
mov eax, esi
call fcn.0100b64f
ret
Function at 0x100b3a2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002738
call fcn.0100b614
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100b3dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100b3dd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100b3f5
cmp eax, 0x20b
je 0x100b3e2
mov dword [ebp - 0x1c], edi
jmp 0x100b409
cmp dword [ecx + 0x84], 0xe
jbe 0x100b3dd
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100b403
cmp dword [ecx + 0x74], 0xe
jbe 0x100b3dd
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100f4ec], 0xffffffff
or dword [0x100f4f0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100f4c8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100f4c4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100f4f4], eax
call fcn.0100b6f4
cmp dword [0x100e0b0], edi
jne 0x100b466
push fcn.0100b6f4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100b6dd
push 0x100e010
push 0x100e00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100f4c0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100f4bc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x100e008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x100b4cc
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x100b586
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x100b51a
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x100b4e8
cmp ax, 0x22
jne 0x100b4d5
cmp word [esi], 0x22
jne 0x100b4f3
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x100b501
cmp ax, 0x20
jbe 0x100b4ee
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x100b527
movzx eax, word [ebp - 0x50]
jmp 0x100b52a
cmp word [esi], 0x20
jbe 0x100b4f3
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x100b51a
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x100b54b
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100b580
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100b64f
ret
Function at 0x100b99d
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, eax
je 0x100ba18
movzx ecx, word [ebp + 0xc]
dec ecx
je 0x100ba03
dec ecx
je 0x100b9f3
dec ecx
dec ecx
je 0x100b9e3
sub ecx, 4
je 0x100b9d3
sub ecx, 8
jne 0x100ba18
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 0x10
jmp 0x100ba11
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 8
jmp 0x100ba11
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 4
jmp 0x100ba11
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 2
jmp 0x100ba11
push eax
push dword [ebp + 0x14]
push eax
push 1
push eax
push dword [ebp + 0x10]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop ebp
ret 0x10

Function at 0x100c2b0
Capabilities:
Check if file exists
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push edi
xor edi, edi
cmp dword [0x100f4d0], esi
mov dword [ebp - 4], esi
jne 0x100c2ea
push 0xf0000000
push 1
push esi
push esi
push 0x100f4d0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100c2ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x100c35e
lea eax, [ebp - 4]
push eax
push 4
push dword [0x100f4d0]
inc edi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push dword [ebp - 4]
push 0x10027c8
push 0x103
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
push esi
push 0xc0100080
push 3
push dword [ebp + 0xc]
push esi
push 0x2000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x100c343
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100c355
lea eax, [ebp - 8]
push eax
push esi
call fcn.0100c1da
cmp edi, 0xc8
jl 0x100c2ea
xor eax, eax
cmp dword [ebp - 8], 0xffffffff
sete al
pop edi
pop esi
leave
ret 8
Function at 0x100c3b9
Capabilities:
Create pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e0a8]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
je 0x100c4b6
cmp edi, ebx
je 0x100c4b6
cmp byte [ebp + 0x14], bl
je 0x100c3f9
cmp byte [ebp + 0x14], 1
jne 0x100c4b6
mov dword [ebp - 0x214], eax
mov al, byte [ebp + 0x14]
sub al, bl
mov dword [ebp - 0x218], 0xc
je 0x100c420
dec al
jne 0x100c426
mov dword [ebp - 0x210], 1
jmp 0x100c426
mov dword [ebp - 0x210], ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100c2b0
test al, al
je 0x100c4b6
lea eax, [ebp - 0x218]
push eax
push ebx
mov eax, 0x800
push eax
push eax
push 1
push 6
push 0x40080001
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x100c4b6
mov al, byte [ebp + 0x14]
sub al, bl
je 0x100c47c
dec al
jne 0x100c486
mov dword [ebp - 0x210], ebx
jmp 0x100c486
mov dword [ebp - 0x210], 1
push ebx
push 0xc0110080
push 3
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x100c4c7
push esi
push ebx
call fcn.0100c1da
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100b28a
leave
ret 0x10
mov al, 1
jmp 0x100c4b8

Function at 0x100c572
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x18], ebx
jne 0x100c5f5
cmp eax, 0xea
je 0x100c5a9
cmp eax, ebx
jne 0x100c5f5
cmp dword [ebp - 8], 2
je 0x100c5b5
cmp dword [ebp - 8], 1
jne 0x100c5ec
cmp dword [ebp - 4], ebx
jne 0x100c5c1
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x100c5ec
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x100c63f
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
push dword [ebp + 0x14]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [esi], eax
je 0x100c5ec
push dword [ebp + 0x14]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [esi]
call edi
add esp, 0xc
lea eax, [eax + eax + 2]
push eax
push dword [esi]
mov dword [ebp - 4], eax
push 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
jmp 0x100c5ee
Function at 0x100c648
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp word [esi + 4], di
mov dword [ebp - 4], edi
jbe 0x100c68f
lea eax, [ebp - 4]
push eax
movzx eax, di
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x100c688
mov eax, dword [ebp - 4]
add eax, 8
push eax
push dword [0x100f4e8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100c697
inc edi
cmp di, word [esi + 4]
jb 0x100c65e
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x100c691

Function at 0x100c73b
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100c75c
leave
ret
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x10027f4
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor esi, esi
test eax, eax
je 0x100c7a5
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100c7a5
xor esi, esi
lea eax, [ebp - 4]
push eax
push edi
call fcn.0100c1da
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x100c849
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xfb8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0100c73b
lea eax, [ebp - 0xc]
push eax
push 0x3e8
lea eax, [ebp - 0xfb8]
push eax
call sub.PSAPI.DLL_EnumProcesses
mov eax, dword [ebp - 0xc]
shr eax, 2
mov dword [ebp - 0x18], eax
mov edi, ebx
je 0x100c91e
push esi
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.0100b707
lea esi, [ebp + edi*4 - 0xfb8]
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100c913
lea ecx, [ebp - 4]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100c909
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.0100c7ba
test eax, eax
je 0x100c8ff
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x100c8ff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jne 0x100c8ff
cmp dword [ebp + 0x14], ebx
jne 0x100c8f6
push dword [ebp - 4]
call fcn.0100c6a0
test al, al
jne 0x100c8ff
push ebx
push dword [esi]
push dword [ebp - 8]
call dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0100c1da
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0100c1da
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x100c88d
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x100c94d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x100e0a8]
mov ecx, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x638], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x620], ebx
mov dword [edi], ecx
jne 0x100c99d
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100cb2a
lea eax, [ebp - 0x624]
push eax
push 1
push ebx
push 0x1002898
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100c9ca
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100cb15
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x628]
push eax
push ebx
push 0x100287c
push dword [ebp - 0x624]
mov dword [ebp - 0x62c], 0x208
call esi
test eax, eax
je 0x100ca11
mov dword [ebp - 0x620], 0x8000ffff
jmp 0x100cb14
cmp dword [ebp - 0x628], 1
jne 0x100ca02
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0x1002864
push dword [ebp - 0x624]
mov dword [ebp - 0x634], 0x208
call esi
test eax, eax
jne 0x100ca02
cmp dword [ebp - 0x628], 1
jne 0x100ca02
push dword [ebp - 0x630]
call sub.msvcrt.dll_wcslen
add eax, dword [ebp - 0x634]
pop ecx
mov ecx, dword [ebp - 0x62c]
lea eax, [eax + ecx + 2]
cmp eax, 0x104
jb 0x100ca87
mov dword [ebp - 0x620], 0x8007000e
jmp 0x100cb14
mov ecx, dword [ebp - 0x20c]
test cx, cx
je 0x100cab2
lea eax, [ebp - 0x20c]
inc eax
lea edx, [ebx + ebx*4]
lea ebx, [ecx + edx*2 - 0x30]
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x100ca98
cmp bx, 0x409
je 0x100cb14
push dword [ebp - 0x630]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x1002848
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x100caf5
mov dword [ebp - 0x620], 0x80070006
jmp 0x100cb14
cmp dword [ebp - 0x638], 0
mov dword [edi], eax
je 0x100cb14
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x638]
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0x624], 0
je 0x100cb2a
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
pop ebx
call fcn.0100b28a
leave
ret 0x10
Function at 0x407fe0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a90b
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.0046f573
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408062
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046d44d
mov eax, dword [eax]
push 0x496c5c
push eax
call fcn.004600c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046f7fe
test bl, bl
je 0x408062
push 0x496c5c
lea ecx, [esp + 0xc]
call fcn.0046fb8e
push 0x496c68
lea ecx, [esp + 0xc]
call fcn.0046fb8e
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 0x40809e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046f7fe
jmp 0x408169
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 0x408122
lea edx, [esp + 0x7c]
push 0x496c64
push edx
call fcn.004600c4
add esp, 8
test eax, eax
je 0x408122
lea eax, [esp + 0x7c]
push 0x496c60
push eax
call fcn.004600c4
add esp, 8
test eax, eax
je 0x408122
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 0x4080b2
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.0046f7fe
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 0x408970
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 0x4089d2
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 0x4089e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a98b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a051c]
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 0x408b18
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408a46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046f7fe
xor eax, eax
jmp 0x408b8f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046f93b
push esi
lea ecx, [esp + 0xc]
call fcn.0046fbca
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 0x408b6d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00408970
test eax, eax
jne 0x408b6d
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.00408970
test eax, eax
jne 0x408b6d
lea eax, [esp + 0x14]
push 0x496c78
push eax
call fcn.00461140
mov esi, eax
add esp, 8
test esi, esi
jne 0x408b4c
lea ecx, [esp + 0x14]
push 0x496c74
push ecx
call fcn.004610c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408b4c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408b4f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046f8eb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408a5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046f7fe
xor eax, eax
jmp 0x408b8f
mov byte [esi], 0
push 0x496c70
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.0046f7fe
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