joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f63f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b753a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x60e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 5
lea ecx, [edi + 0x7c]
call fcn.0040d3d0
mov byte [ebp - 4], 4
lea ecx, [edi + 0x64]
call fcn.0040d3d0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x4c]
call fcn.0040d3d0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
call fcn.0040d3d0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x14]
call fcn.0040d3d0
mov byte [ebp - 4], 0
mov esi, dword [edi + 8]
test esi, esi
je 0x4f64d5
mov ebx, dword [edi + 0xc]
cmp esi, ebx
je 0x4f6481
nop dword [eax]
mov ecx, esi
call fcn.0040d3d0
add esi, 0x18
cmp esi, ebx
jne 0x4f6470
mov esi, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x4f64b6
mov ecx, dword [esi - 4]
add eax, 0x23
sub esi, ecx
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x4f650c
mov esi, ecx
push eax
push esi
call fcn.0053fb46
add esp, 8
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0xffffffff
test byte [ebp + 8], 1
mov dword [edi], vtable.RCJson::StreamWriter.0
je 0x4f64f6
push 0x9c
push edi
call fcn.0053fb46
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0054cdad
int3
Function at 0x51ca33
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, ecx
cmp dword [edi + 0x64], 0
je 0x51ca4b
push dword [edi + 0x64]
call esi
cmp dword [edi + 0x70], 0
je 0x51ca56
push dword [edi + 0x70]
call esi
xor ebp, ebp
mov ebx, 0x611b18
cmp dword [edi + 0x78], ebp
je 0x51cb16
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x51ca80
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x51ca93
push dword [edi + 0x80]
call fcn.0054cdfd
mov eax, dword [edi + 0x78]
pop ecx
test al, 4
je 0x51caa3
push dword [edi + 0x84]
call fcn.0054211a
pop ecx
mov esi, dword [0x611b38]
mov eax, dword [esi + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x51cab8
mov dword [esi + 4], eax
jmp 0x51caf4
push str.warning:_removing_Breakpad_handler_out_of_order_n
push 2
call fcn.00563dc5
pop ecx
push eax
call fcn.004fcef0
mov esi, dword [0x611b38]
pop ecx
pop ecx
mov ecx, dword [esi]
jmp 0x51caed
cmp dword [ecx], edi
jne 0x51caea
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0051d78b
mov ecx, dword [eax]
jmp 0x51caed
add ecx, 4
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x51cad7
cmp dword [esi], eax
jne 0x51cb0f
mov ecx, esi
call fcn.0051d9b9
push 0xc
push esi
call fcn.0053fb46
pop ecx
pop ecx
mov dword [0x611b38], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [edi + 0xc], ebp
jne 0x51cb5c
push 1
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x90]
mov dword [edi + 0x88], ebp
push eax
call ebx
push dword [edi + 0xa8]
call esi
push dword [edi + 0xac]
call esi
push 0x611b34
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x51cb72
push 0x611b18
call ebx
lea esi, [edi + 0xc0]
mov ecx, esi
call fcn.0051db0c
push 0x18
push dword [esi]
call fcn.00404bb0
pop ecx
pop ecx
lea ecx, [edi + 0x40]
call fcn.00403b90
lea ecx, [edi + 0x28]
call fcn.00403b90
lea ecx, [edi + 0x10]
call fcn.00403b90
mov ecx, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
je 0x51cbb3
push ecx
call fcn.0051d93e
pop ecx
ret
Function at 0x51e4af
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
mov esi, ecx
push dword [esi + 0x360]
lea ecx, [esi + 0x348]
call fcn.00403b20
push eax
sub esp, 0xc
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x38]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0051e1d0
lea ecx, [ebp - 0x38]
call fcn.0051e163
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push 0x34
mov eax, ecx
push eax
push 0x34
lea eax, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x51e57c
cmp dword [ebp - 0x38], 2
jne 0x51e533
lea ecx, [ebp - 0x38]
call fcn.0051e5cf
jmp 0x51e535
xor al, al
test al, al
je 0x51e57c
lea ecx, [ebp - 0x6c]
call fcn.0051e163
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x6c], 3
push eax
push 0x34
mov eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x51e57c
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x34], eax
mov al, 1
jmp 0x51e57e
xor al, al
pop esi
leave
ret 4
Function at 0x581c21
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00581826

Function at 0x581c2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005819a7

Function at 0x589cfe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005894d8

Function at 0x589d09
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00589713

Function at 0x58a283
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058a00a
Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1be30c37
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6c8b1c55
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x41e970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6d3f48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004ad910
add esp, 8
mov dword [esp + 0x38], 0
mov ecx, esi
mov edx, dword [esi]
push eax
call dword [edx + 0x54]
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x1c], 8
jb 0x41e9e9
push dword [esp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret 4
Function at 0x464cf0
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e0190
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x831704]
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 - 4], 0
cmp dword [ebp + 0x18], 4
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, dword [sym.imp.MSVCR120.dll_free]
ja 0x464d63
sub esp, 0x20
xor eax, eax
mov esi, esp
mov ecx, esi
push 0x35
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x7ca1b0
mov word [esi], ax
call fcn.00419290
mov dword [esi + 0x18], 0
jmp 0x464d8a
lea eax, [ebp + 8]
push eax
call fcn.005f7e50
add esp, 4
test al, al
jne 0x464da0
sub esp, 0x20
lea edx, [ebp + 8]
mov eax, esp
push 0x7ca138
push edx
push eax
call fcn.005c7cb0
add esp, 0xc
mov ecx, 3
call fcn.00465af0
add esp, 0x20
mov byte [ebp - 0x71], 0
jmp 0x464eb3
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x50]
push 0x7ca108
push eax
call fcn.005c7f90
push 0x7ca134
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.005c7cb0
add esp, 0x18
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x464df8
push 0xffffffffffffffff
push 0
push eax
call fcn.00419170
push dword [ebp - 0x58]
call ebx
add esp, 4
cmp dword [ebp - 0x5c], 8
jb 0x464e0e
push dword [ebp - 0x70]
call edi
add esp, 4
mov byte [ebp - 4], 1
xor eax, eax
push dword [ebp - 0x38]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call ebx
add esp, 4
cmp dword [ebp - 0x3c], 8
jb 0x464e3c
push dword [ebp - 0x50]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov eax, dword [0x87c820]
mov dword [ebp - 0x40], 0
test eax, eax
jne 0x464e63
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041f710
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_system]
add esp, 4
lea ecx, [ebp - 0x78]
call fcn.004181c0
push dword [ebp - 0x18]
mov byte [ebp - 0x71], 1
call ebx
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x464e9f
push dword [ebp - 0x30]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
push dword [ebp + 0x20]
call ebx
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x464ec9
push dword [ebp + 8]
call edi
add esp, 4
mov al, byte [ebp - 0x71]
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.006d1ba7
mov esp, ebp
pop ebp
ret
Function at 0x465350
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e02d8
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x87c820]
test eax, eax
jne 0x465396
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp + 8]
call fcn.0041f710
mov ecx, dword [ebp + 0x18]
inc ecx
push ecx
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCR120.dll_mbstowcs]
add esp, 0xc
call fcn.005c92f0
mov ecx, dword [ebp - 0x814]
cmp ecx, eax
je 0x465403
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x4653fe
mov esi, dword [ebp - 0x814]
test esi, esi
je 0x4653fe
cmp byte [esi + 0xa], 0
je 0x4653f4
push dword [esi]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
call fcn.005c92f0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp + 0x20]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x46542e
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret

Function at 0x465b80
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call sub.KERNEL32.dll_GetCurrentProcessId
push 0
mov esi, eax
mov dword [ebp - 0x230], 0x22c
push 2
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x465c47
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x465c47
lea eax, [ebp - 0x20c]
push 0x7ca7b8
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x465c35
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x465c35
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x465c2c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x465be3
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret
Function at 0x46a1a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e1075
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x831704]
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 esi, ecx
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 1
mov edx, 0x7bf4e8
mov eax, dword [0x82e964]
test eax, eax
mov dword [esi + 0x14], 7
cmovne edx, eax
mov dword [esi + 0x10], 0
xor eax, eax
mov word [esi], ax
cmp word [edx], ax
jne 0x46a212
xor ecx, ecx
jmp 0x46a226
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a217
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00419290
mov dword [esi + 0x18], 0
mov eax, dword [0x87c820]
mov dword [ebp - 0x440], 1
test eax, eax
jne 0x46a253
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp + 8]
call fcn.0041f710
lea edx, [ebp - 0x454]
mov eax, dword [eax]
mov ecx, dword [eax]
call fcn.0046bd40
mov ebx, eax
mov dword [ebp - 0x434], ebx
call fcn.005c92f0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ecx, eax
mov eax, dword [ebp - 0x438]
cmp eax, ecx
je 0x46a2ce
mov ecx, 0xffff
add word [eax + 8], cx
jne 0x46a2c3
mov ebx, dword [ebp - 0x438]
test ebx, ebx
je 0x46a2bd
cmp byte [ebx + 0xa], 0
je 0x46a2b7
push dword [ebx]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push ebx
call edi
add esp, 4
mov ebx, dword [ebp - 0x434]
call fcn.005c92f0
mov dword [ebp - 0x438], eax
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x43c]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
call ebx
test eax, eax
je 0x46a37f
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x46a37f
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.004291b0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041aea0
mov byte [ebp - 4], 1
push dword [ebp - 0x418]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x41c], 8
jb 0x46a35e
push dword [ebp - 0x430]
call edi
add esp, 4
push 0
lea eax, [ebp - 0x43c]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x434]
call ebx
test eax, eax
jne 0x46a306
push 0xffffffffffffffff
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x20]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x46a3a7
push dword [ebp + 8]
call edi
add esp, 4
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.006d1ba7
mov esp, ebp
pop ebp
ret
Function at 0x46b060
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.0041f670
mov ecx, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x46b07c
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
push ebx
push esi
push edi
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [ebp - 4], 0
mov ebx, eax
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
je 0x46b0d3
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x46b0d3
push dword [esi + 0x18]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x46b0ba
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], ax
call edi
add esp, 4
test bl, 2
jne 0x46b142
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.0041f670
mov ecx, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x46b0ee
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
or ebx, 2
push ebx
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 4], 0
mov ebx, dword [sym.imp.MSVCR120.dll_free]
je 0x46b148
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x46b148
push dword [esi + 0x18]
call ebx
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x46b127
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], ax
call edi
add esp, 4
jmp 0x46b148
mov ebx, dword [sym.imp.MSVCR120.dll_free]
push dword [ebp + 0x20]
call ebx
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x46b15e
push dword [ebp + 8]
call edi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46bd40
Capabilities:
Create pipe
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str._n__Start_of_parent_execution._n
mov esi, edx
mov dword [ebp - 0x808], 0
mov edi, ecx
mov dword [ebp - 0x80c], 0
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov dword [ebp - 0x818], 0xc
lea eax, [ebp - 0x818]
mov dword [ebp - 0x810], 1
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x808], 0
push 0
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x80c], 0
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x46bdea
mov ecx, str.StdoutRd_CreatePipe
call fcn.0046bcb0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret
push 0
push 1
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x46be1a
mov ecx, str.Stdout_SetHandleInformation
call fcn.0046bcb0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret
push edi
push 0x7cc1a0
lea eax, [ebp - 0x804]
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll_swprintf_s]
push 0x44
lea eax, [ebp - 0x85c]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [esi], xmm0
call sub.MSVCR120.dll_memset
mov eax, dword [ebp - 0x80c]
add esp, 0x1c
or dword [ebp - 0x830], 0x100
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x85c]
push esi
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x804]
mov dword [ebp - 0x85c], 0x44
push eax
push 0
mov dword [ebp - 0x824], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x46bec2
mov ecx, str.CreateProcess
call fcn.0046bcb0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x80c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x808]
xor ecx, ebp
pop edi
pop esi
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret
Function at 0x46ccc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d4541
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0
call fcn.005debf0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push str.PatchExtract
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push 0x846a70
push eax
mov dword [ebp - 0x34], 1
call fcn.005c7cb0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0041aea0
mov byte [ebp - 4], 0
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x46cd62
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push esi
call fcn.005f7e50
add esp, 4
test al, al
jne 0x46cd85
cmp dword [esi + 0x14], 8
jb 0x46cd79
mov eax, dword [esi]
jmp 0x46cd7b
mov eax, esi
push eax
call dword [sym.imp.MSVCR120.dll__wmkdir]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret
Function at 0x471ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e277d
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x240]
push eax
push 0x20019
xor edi, edi
mov dword [ebp - 0x24c], esi
push edi
push str.SOFTWAREWow6432NodeElectronics_For_ImagingHarmony_cxp3.0
push SysStringLen
mov dword [ebp - 0x248], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x471f08
lea edi, [eax + 1]
jmp 0x471f30
lea eax, [ebp - 0x240]
push eax
push 0x20019
push 0
push str.SOFTWAREElectronics_For_ImagingHarmony_cxp3.0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x248], 1
cmp edi, 1
jne 0x47200c
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0x205
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push str.Path
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x472000
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00418140
mov dword [ebp - 4], edi
cmp esi, eax
je 0x471fb7
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419170
mov byte [ebp - 4], 0
push dword [ebp - 0x224]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x228], 8
jb 0x471fe2
push dword [ebp - 0x23c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00419fb0
add esp, 8
movzx ecx, word [eax]
push ecx
push 1
mov ecx, esi
call fcn.004390c0
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret 4