joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10029230
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000c855
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1000da5b
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100045c0
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 8], ecx
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push eax
push str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
movups xmmword [ebp - 0x4c], xmm0
xor ebx, ebx
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea eax, [ebp - 0x3c]
push eax
push str.6EDD6D74_C007_4E75_B76A_E5740995E24C
call dword [sym.imp.ole32.dll_IIDFromString]
push 0x208
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.1000f750
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edi, [ebp - 0x258]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10004626
mov ecx, 0xe
mov esi, 0x10037ab4
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x258]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10004650
mov ecx, 0x13
mov dword [ebp - 0x2c], 0x24
mov esi, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
mov dword [ebp - 0xc], ebx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x2c]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0x258]
movlpd qword [ebp - 0x28], xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ole32.dll_CoGetObject]
test eax, eax
js 0x100046ca
mov eax, dword [ebp - 4]
push 5
push 0
push 0
mov ecx, dword [eax]
push 0
push dword [ebp - 8]
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
mov ecx, 1
cmovns ebx, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x100046d9
mov ecx, dword [eax]
push eax
mov ecx, dword [ecx + 8]
call ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004c40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029309
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.10016200
add esp, 8
test eax, eax
jne 0x10004cee
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x10004cdf
mov eax, dword [ebp - 0x238]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x10004cee
lea eax, [ebp - 0x238]
push eax
push ecx
mov ecx, esi
call fcn.10005480
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10004cb5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10004d20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov esi, edx
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10004d8f
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004da0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push ecx
push 0
mov esi, edx
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10004e88
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x328], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10004e88
push 0x40
push 0x1000
push dword [ebp + 0xc]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10004e88
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10004e88
lea eax, [ebp - 0x328]
mov dword [ebp - 0x270], esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x10004e88
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100050d0
Capabilities:
Allocate or change rwx memory
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
xorps xmm0, xmm0
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov eax, edx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [eax], 0
mov dword [ebp - 0x68], edi
movlpd qword [ebp - 0x60], xmm0
lea esi, [edi + 0x34]
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x64], str.winsta0default
movups xmmword [ebp - 0x20], xmm0
call fcn.10004e90
mov ebx, eax
test ebx, ebx
je 0x1000521f
push 1
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1000515a
mov eax, dword [ebp - 8]
mov esi, 0x434
jmp 0x1000515f
xor eax, eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x10005218
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
push 0x2c8
push 0
mov dword [ecx], eax
lea eax, [ebp - 0x338]
push eax
call fcn.1000f750
add esp, 0xc
mov dword [ebp - 0x33c], 0x1003f
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10005218
push 0x40
push 0x1000
push dword [ebp + 0xc]
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10005218
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10005218
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x284], esi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100067d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029409
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push ebx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x10037a68
mov word [esi], ax
call fcn.10003250
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process
push 0x10037d94
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000686e
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
je 0x1000688d
push str.Wow64DisableWow64FsRedirection
push 0x10037d94
call edi
push eax
call ebx
test eax, eax
je 0x1000688d
lea ecx, [ebp - 0x18]
push ecx
call eax
push 0x800
lea eax, [ebp - 0x828]
mov dword [ebp - 0x24], 1
push 0
push eax
call fcn.1000f750
add esp, 0xc
mov dword [ebp - 0x20], 0x400
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x24]
push eax
push str.ProxyServer
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push str.IsWow64Process
push 0x10037d94
mov dword [ebp - 0x10], 0
call edi
push eax
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10006900
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
je 0x1000691e
push str.Wow64RevertWow64FsRedirection
push 0x10037d94
call edi
push eax
call ebx
test eax, eax
je 0x1000691e
push dword [ebp - 0x18]
call eax
lea ecx, [ebp - 0x828]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006927
sub ecx, edx
lea eax, [ebp - 0x828]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10003250
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10007c00
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push esi
push 0x110
lea eax, [ebp - 0x168]
mov dword [ebp - 0x10], 0
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call fcn.1000f750
add esp, 0xc
mov dword [ebp - 0x16c], 0x114
lea eax, [ebp - 4]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10007cfc
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10007cfc
cmp dword [ebp - 0x168], 6
jb 0x10007cb5
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x12
push dword [ebp - 4]
call esi
test eax, eax
je 0x10007cfc
cmp dword [ebp - 0x14], 3
jne 0x10007cb5
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x13
push dword [ebp - 4]
call esi
test eax, eax
je 0x10007cfc
cmp dword [ebp - 8], 0
jne 0x10007cce
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x10007cfc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x44
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x10007cfc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10007d0c
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x10007d16
push eax
call esi
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007d20
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push edi
push eax
push 0
push 8
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push eax
call edi
test eax, eax
jne 0x10007d85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x10007dc9
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x10007d64
or ebx, 0xffffffff
jmp 0x10007d88
lea eax, [ebp - 4]
push eax
push 0
push 8
call esi
push eax
call edi
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ebx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0
call esi
push dword [ebp - 8]
call fcn.1000c893
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x10007dcd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x10007d88
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push ebx
call esi
test eax, eax
jne 0x10007df7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000c850
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x10007e7c
add edi, 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x10007e5e
mov eax, dword [ebp - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10007e5e
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x10007e57
push esi
push str.SeTcbPrivilege
call fcn.10016200
add esp, 8
test eax, eax
je 0x10007e6b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
inc ebx
add edi, 0xc
cmp ebx, dword [eax]
jb 0x10007e00
jmp 0x10007e79
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x18], 1
mov edi, dword [ebp - 0x10]
push edi
call fcn.1000c850
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008480
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push edi
push 0x208
push 0x10075740
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x10075740
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100084a0
mov eax, dword [0x10037a6c]
push 0x208
push 0x10075b50
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, 0x10075b50
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100084d0
mov eax, dword [0x10037a6c]
mov ecx, esi
mov dword [edi], eax
call fcn.100080c0
pop edi
pop esi
pop ecx
ret
Function at 0x100084f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x10c]
push ebx
push esi
push edi
push 0x104
push 0
push eax
call fcn.1000f750
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.1000f130
lea edi, [ebp - 0x10c]
add esp, 8
dec edi
mov byte [eax], 0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10008541
mov ax, word [0x10037a64]
lea ecx, [ebp - 0x10c]
mov word [edi], ax
dec ecx
nop dword [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10008560
mov eax, dword [str.time.sig]
push 0
push 0x80
mov dword [ecx], eax
mov eax, dword [0x100381f0]
push 3
mov dword [ecx + 4], eax
mov al, byte [0x100381f4]
push 0
push 0
mov byte [ecx + 8], al
lea eax, [ebp - 0x10c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008643
push 0x104
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1000f750
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.100086c0
test eax, eax
je 0x100085f7
lea ecx, [ebp - 0x210]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100085d4
mov eax, dword [str.time.sig]
mov dword [ecx], eax
mov eax, dword [0x100381f0]
mov dword [ecx + 4], eax
mov al, byte [0x100381f4]
mov byte [ecx + 8], al
jmp 0x10008617
lea edi, [ebp - 0x210]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10008600
mov ecx, 7
mov esi, str.C:ProgramData_vxhost_time.sig
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0
push 0x80
push 3
push 0
push 0
push 1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008643
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, 0xfffffffc
push 0
push 0
push eax
push ebx
mov dword [ebp - 4], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 4
lea eax, [ebp - 4]
push eax
push ebx
call esi
push 0
push 0
push 0
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x795
push str.cfg_find_tag
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, str.cfg_find_tag
push 0x795
call fcn.10008730
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100086c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.C:ProgramDatauncfg.cfg
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10008723
push 0
push 0x80
push 3
push 0
push 0
push 1
push str.C:ProgramDatauncfg.cfg
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008723
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10008730
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
lea esi, [ecx*2 + 0xa]
mov edi, edx
push 0x32
movd xmm0, esi
lea eax, [ebp - 0x44]
pshufd xmm0, xmm0, 0
push 0
push eax
movaps xmmword [ebp - 0x10], xmm0
call fcn.1000f750
add esp, 0xc
xor eax, eax
cmp dword [0x10074940], 2
jl 0x10008870
movaps xmm4, xmmword [0x10038f60]
mov ecx, 8
movaps xmm5, xmmword [0x10038f80]
movaps xmm6, xmmword [str._t_t_t_t_n_n_n_n]
movaps xmm7, xmmword [0x10038f90]
movaps xmm3, xmmword [ebp - 0x10]
movd xmm2, ecx
lea ecx, [eax + 4]
nop dword [eax]
movd xmm0, eax
add eax, 8
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
paddd xmm1, xmm4
paddd xmm1, xmm5
pmulld xmm1, xmm3
psubd xmm1, xmm6
pcmpgtd xmm0, xmm1
pand xmm0, xmm7
paddd xmm0, xmm1
psrad xmm0, xmm2
pslld xmm0, xmm2
psubd xmm1, xmm0
pshuflw xmm0, xmm1, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
pand xmm0, xmmword [0x10038fa0]
packuswb xmm0, xmm0
movd dword [ebp + ecx - 0x48], xmm0
movd xmm0, ecx
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
paddd xmm1, xmm4
paddd xmm1, xmm5
pmulld xmm1, xmm3
psubd xmm1, xmm6
pcmpgtd xmm0, xmm1
pand xmm0, xmm7
paddd xmm0, xmm1
psrad xmm0, xmm2
pslld xmm0, xmm2
psubd xmm1, xmm0
pshuflw xmm0, xmm1, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
pand xmm0, xmmword [0x10038fa0]
packuswb xmm0, xmm0
movd dword [ebp + ecx - 0x44], xmm0
add ecx, 8
cmp ecx, 0x34
jl 0x100087b0
cmp eax, 0x32
jge 0x1000889e
lea edx, [eax + 0xa]
imul edx, esi
sub edx, 9
nop dword [eax]
mov ecx, edx
and ecx, 0x800000ff
jns 0x10008892
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp + eax - 0x44], cl
add edx, esi
inc eax
cmp eax, 0x32
jl 0x10008880
mov esi, dword [ebx + 8]
xor eax, eax
xor edx, edx
test esi, esi
je 0x100088c7
nop dword [eax]
xor ecx, ecx
cmp eax, 0x32
cmovne ecx, eax
mov al, byte [ebp + ecx - 0x44]
xor byte [edx + edi], al
inc edx
lea eax, [ecx + 1]
cmp edx, esi
jb 0x100088b0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100088d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
call fcn.100084f0
cmp byte [0x10074236], 0
je 0x100089b5
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [0x1007573c], 1
push 0
push eax
call fcn.1000f750
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call fcn.10017a76
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.1000f130
lea edi, [ebp - 0x108]
add esp, 0xc
dec edi
mov byte [eax], 0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10008948
mov ax, word [0x10037a64]
push 0
push 0x80
push 2
push 0
push 0
push 2
push str.C:ProgramDatauncfg.cfg
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100089aa
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008985
push 0
lea eax, [ebp - 4]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x1007573c], 0
mov eax, 1
mov esp, ebp
pop ebp
ret