joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014050
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x230
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x13d]
push 0
push eax
mov byte [esp + 0x144], 0
call sub.MSVCR90.dll_memset
xor eax, eax
add esp, 0xc
push 0x10022d10
push eax
push str.count
push str.RESTART_EXES
mov byte [esp + 0x20], 0
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
mov ebp, eax
mov edi, 1
cmp ebp, edi
jl 0x10014128
push edi
lea ecx, [esp + 0x14]
push 0x1001c38c
push ecx
call ebx
add esp, 0xc
push 0x10022d10
push 0x104
lea edx, [esp + 0x140]
push edx
push str.NPAV
lea eax, [esp + 0x20]
push eax
push str.RESTART_EXES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [esp + 0x138]
call fcn.1000d880
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, ebp
jle 0x100140d5
push 0x103
lea ecx, [esp + 0x39]
push 0
push ecx
mov byte [esp + 0x40], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x10022d10
push 0
push str.count
push str.RESTART_SERVICE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov esi, 1
cmp edi, esi
jl 0x100141bd
push esi
lea edx, [esp + 0x14]
push 0x1001c38c
push edx
call ebx
add esp, 0xc
push 0x10022d10
push 0x104
lea eax, [esp + 0x3c]
push eax
push str.NPAV
lea ecx, [esp + 0x20]
push ecx
push str.RESTART_SERVICE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x34]
push edx
call fcn.1000f440
add esp, 4
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x34]
call fcn.10008150
inc esi
cmp esi, edi
jle 0x10014163
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100191d2
add esp, 0x230
ret
Function at 0x10014280
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x219]
push ebx
push eax
xor edi, edi
mov byte [esp + 0x220], bl
call sub.MSVCR90.dll_memset
push 0x103
lea ecx, [esp + 0x121]
push ebx
push ecx
mov byte [esp + 0x128], bl
call sub.MSVCR90.dll_memset
push 0x103
lea edx, [esp + 0x335]
push ebx
push edx
mov byte [esp + 0x33c], bl
call sub.MSVCR90.dll_memset
push 0x103
lea eax, [esp + 0x35]
push ebx
push eax
mov byte [esp + 0x3c], bl
call sub.MSVCR90.dll_memset
add esp, 0x30
xor eax, eax
mov cl, byte [eax + 0x10022d10]
mov byte [esp + eax + 0x214], cl
inc eax
cmp cl, bl
jne 0x10014302
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x214]
push ecx
call esi
lea eax, [esp + 0x214]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10014330
mov edx, dword [str.EPSFW_Backup.ini]
mov ecx, dword [0x1001ec58]
mov dword [eax], edx
mov edx, dword [0x1001ec5c]
mov dword [eax + 4], ecx
mov ecx, dword [0x1001ec60]
mov dword [eax + 8], edx
mov dx, word [0x1001ec64]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
xor eax, eax
jmp 0x10014370
mov cl, byte [eax + 0x10022b00]
mov byte [esp + eax + 0x110], cl
inc eax
cmp cl, bl
jne 0x10014370
lea eax, [esp + 0x110]
push eax
call esi
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0xc], cl
inc eax
cmp cl, bl
jne 0x10014390
lea eax, [esp + 0xc]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x100143a5
mov ecx, dword [str.EpsPol]
mov edx, dword [0x1001ec6c]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x100143c6
mov ecx, dword [str.CCLM.ini]
mov edx, dword [0x1001ec74]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [eax], ecx
mov cx, word [0x1001ec78]
mov dword [eax + 4], edx
lea edx, [esp + 0x214]
push edx
push ebx
push str.FilterCount
push str.EPSFW
mov word [eax + 8], cx
call esi
test eax, eax
jle 0x1001447b
lea eax, [esp + 0x110]
push eax
push 0x104
lea ecx, [esp + 0x320]
push ecx
push str.Default
push str.PolicyName
push str.epspol
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x318]
push edx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push str._s_s.epl
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push ebx
push 0x1001ecb8
push str.EPSfrw_user_rules
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.100191d2
add esp, 0x414
ret
mov ecx, dword [esp + 0x41c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100191d2
add esp, 0x414
ret
Function at 0x10014880
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc20
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0xc1c], eax
push ebx
push ebp
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x82d]
push ebx
push eax
mov byte [esp + 0x834], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100238f4
mov edi, str.In_RegCheckForVC15Redist_function
call fcn.10002690
push 0x3ff
lea ecx, [esp + 0x42d]
push ebx
push ecx
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x434], bl
call sub.MSVCR90.dll_memset
push 0x3ff
lea edx, [esp + 0x39]
push ebx
push edx
mov byte [esp + 0x40], bl
call sub.MSVCR90.dll_memset
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x4c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x100149ea
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10014a18
xor edi, edi
cmp eax, ebx
jbe 0x10014a18
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea esp, [esp]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x43c]
push eax
push edi
push esi
mov dword [esp + 0x38], 0x400
call ebp
test eax, eax
jne 0x100149d3
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x434]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100149d3
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.DisplayName
push eax
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100149d3
push str.Microsoft_Visual_C_2015_2022_Redistributable
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x100149e0
mov dword [esp + 0xc], ebx
inc edi
cmp edi, dword [esp + 0x10]
jb 0x10014950
jmp 0x10014a18
mov dword [esp + 0xc], 1
jmp 0x10014a18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x82c]
push str.RegQueryInfoKey_Failed_GetLastError_is_:__d
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
push 0x100238f4
lea edi, [esp + 0x82c]
call fcn.10002690
mov eax, dword [esp + 0x14]
pop edi
pop ebp
cmp eax, ebx
pop ebx
je 0x10014a2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc1c]
mov eax, dword [esp]
xor ecx, esp
call fcn.100191d2
add esp, 0xc20
ret
Function at 0x100155c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
push 0x44
mov esi, ecx
push 0
push esi
call sub.MSVCR90.dll_memset
xor eax, eax
add esp, 0xc
lea edi, [esi + 0x44]
push edi
push esi
push eax
push eax
push 0x8000000
mov dword [edi], eax
push eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push eax
mov dword [edi + 0xc], eax
mov cx, word [esi + 0x858]
push eax
lea ebx, [esi + 0x54]
push ebx
push eax
mov dword [esi], 0x44
mov word [esi + 0x32], ax
mov dword [esi + 0x2c], 1
mov word [esi + 0x30], cx
mov byte [esp + 0x34], al
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov byte [esp + 0x3d], al
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1001567b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push 0x1001c38c
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
push str.c:zv1.ini
lea eax, [esp + 0x10]
push eax
push ebx
push str.Launch
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.100191d2
add esp, 0x10
ret
mov ecx, dword [esi + 0x854]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [edi]
push ecx
call esi
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.100191d2
add esp, 0x10
ret

Function at 0x100156e0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 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 0x10015701
xor eax, eax
add esp, 0x24
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100156fb
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
add esp, 0x24
ret
Function at 0x10016440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov eax, esi
push ebp
mov ebp, dword [esp + 0x220]
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016462
sub eax, ebx
sar eax, 1
je 0x100164f2
lea eax, [esp + 8]
push eax
push 1
push 0
push edi
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100164f2
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100164e7
lea ecx, [esp + 0x10]
push ecx
push 0x104
push ebp
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov edx, dword [esp + 0x14]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100191d2
add esp, 0x214
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100191d2
add esp, 0x214
ret

Function at 0x10016510
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016516
mov ecx, dword [esi]
sub eax, edi
push eax
mov eax, dword [esp + 0xc]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
ret

Function at 0x10016550
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
mov dword [esp], 0
jne 0x1001658d
lea ecx, [esp]
push ecx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100165d0
mov ecx, dword [esp]
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0xc]
push eax
push 0
push edi
push ecx
jmp 0x100165ba
lea edx, [esp]
push edx
push 0x101
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100165d0
mov edx, dword [esp]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push edx
mov dword [esp + 0x24], 0x200
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
test eax, eax
je 0x100165de
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x100191d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022018]
jne 0x100191dc
repz ret
jmp fcn.100196c2
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0xb97d24
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b97d24
ret
Function at 0x1000ae70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10095570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1008aa84
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1000c2c0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1000aec4
jmp dword [ecx*4 + 0x1000b02c]
mov al, byte [esi]
test al, al
je 0x1000aef2
cmp al, 0x20
je 0x1000aede
cmp al, 0xa1
jne 0x1000aef2
cmp byte [esi + 1], al
jne 0x1000aef2
test al, 0x80
je 0x1000aeea
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1000aef2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000aed1
test ecx, ecx
je case.default.0x1000aec4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1000aec4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1000af38
cmp dl, 0xa1
jne 0x1000af2c
cmp byte [eax + 1], 0xa1
jne 0x1000af2c
test ecx, ecx
jne 0x1000af24
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1000af4c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1000af66
jmp 0x1000af4c
cmp dl, 0x20
jne 0x1000af4a
test ecx, ecx
jne 0x1000af43
mov edi, eax
mov ecx, 1
jmp 0x1000af4c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1000af0c
cmp ecx, 1
jne case.default.0x1000aec4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1000aec4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1000aec4
mov al, byte [esi]
test al, al
je 0x1000afbe
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1000afa4
mov cl, byte [esi + 1]
test cl, cl
je 0x1000afbe
cmp al, 0xa1
jne 0x1000af94
cmp cl, al
je 0x1000afa1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1000c550
inc esi
jmp 0x1000afb6
cmp al, 0x20
je 0x1000afb6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1000c590
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000af7d
push 0
lea ecx, [esp + 0x14]
call fcn.1000c590
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10017f30
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1000aff1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100a1948
call fcn.1000c4c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1008aa16
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x100124c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10095b8b
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.1008a78b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10012542
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10088671
mov eax, dword [eax]
push 0x100b9cd0
push eax
call fcn.10079fd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1008aa16
test bl, bl
je 0x10012542
push 0x100b9cd0
lea ecx, [esp + 0xc]
call fcn.1008ada6
push 0x100b9cdc
lea ecx, [esp + 0xc]
call fcn.1008ada6
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 0x1001257e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1008aa16
jmp 0x10012649
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 0x10012602
lea edx, [esp + 0x7c]
push 0x100b9cd8
push edx
call fcn.10079fd4
add esp, 8
test eax, eax
je 0x10012602
lea eax, [esp + 0x7c]
push 0x100b9cd4
push eax
call fcn.10079fd4
add esp, 8
test eax, eax
je 0x10012602
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 0x10012592
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.1008aa16
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 0x10012e40
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 0x10012ea2
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 0x10012eb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10095c0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100c69d8]
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 0x10012fe8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10012f16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1008aa16
xor eax, eax
jmp 0x1001305f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1008ab53
push esi
lea ecx, [esp + 0xc]
call fcn.1008ade2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x100b9d10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1001303d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10012e40
test eax, eax
jne 0x1001303d
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.10012e40
test eax, eax
jne 0x1001303d
lea eax, [esp + 0x14]
push 0x100b9cec
push eax
call fcn.1007b050
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001301c
lea ecx, [esp + 0x14]
push 0x100b9ce8
push ecx
call fcn.1007afd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001301c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1001301f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1008ab03
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10012f2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1008aa16
xor eax, eax
jmp 0x1001305f
mov byte [esi], 0
push 0x100b9ce4
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.1008aa16
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