joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [esp + 0xe], 8
call dword [sym.imp.user32.dll_GetKeyboardState]
call fcn.004023d8
sub ecx, edx
call fcn.00403680
mov ebx, 0x7eff
inc ebx
call dword [fcn.0040365c]
add byte [eax], al
add byte [eax], al
mov bl, 0x31
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], dl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi + 0x4032], dh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x36], ah
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
jmp 0x5a1285

Function at 0x4023d8
Capabilities:
Terminate process

Disassembly:
mov edx, eax
xor edi, edi
xor esi, esi
push dword [0x403657]
call dword [sym.imp.winmm.dll_waveInClose]
add eax, 5
inc eax
test eax, 0xb
jne 0x402401
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401037], eax
ret
Function at 0x401308
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4013a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401380
xor eax, eax
push ebp
push 0x401379
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4013bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401380
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40600c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x401a58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x401ab9
cmp word [0x407208], 0xd7b2
jne 0x401a81
cmp dword [0x407210], 0
jbe 0x401a81
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x401ae0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x401ad5
push 0
push 0x406060
push 0x406040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x402598
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebx, edx
mov esi, eax
xor edi, edi
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp], 0x128
push esp
push ebp
call sub.kernel32.dll_Process32First
jmp 0x4025e1
lea eax, [esp + 0x24]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4025da
mov edi, dword [esp + 8]
test bl, bl
je 0x4025eb
push esp
push ebp
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4025c3
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402600
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40267d
push ebx
call sub.kernel32.dll_lstrlenA
test eax, eax
je 0x402658
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x40266c
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
mov ebp, dword [esp + 0x14]
jmp 0x40267d
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x40263f
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402744
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.0040271c
test al, al
jne 0x402768
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x402b80
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402bf4
cmp byte [ebp + 8], 1
jne 0x402bd2
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402be0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
mov dword [ebp - 4], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402c67
cmp byte [ebp + 8], 1
jne 0x402c45
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402c53
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402c74
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WritePrivateProfileStringA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402cf4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push ebx
call sub.kernel32.dll_lstrlenA
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402d34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x404880
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push 0x407910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x404840
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x408228], eax
push 0
push 0x407910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x404860
push 7
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40822c], eax
ret

Function at 0x4048ec
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, esp
push 0x404a3c
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x408028
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x404a44
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x407a14
mov ecx, 0x404a54
mov edx, ebx
mov eax, 0x80000000
call fcn.00402cf4
push 0x404a58
mov ecx, 0x404a64
mov edx, ebx
mov eax, 0x80000000
call fcn.00402cf4
push 0x404a74
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x407910
mov ecx, 0x408028
mov edx, ebx
mov eax, 0x80000002
call fcn.00402cf4
push 0x404abc
push ebx
call sub.kernel32.dll_lstrcpyA_1
mov eax, 0x404af4
xor edx, edx
call fcn.00402598
test eax, eax
ja 0x40498e
mov eax, 0x404b00
xor edx, edx
call fcn.00402598
test eax, eax
jbe 0x4049a6
push 0x404a54
mov ecx, 0x404b10
mov edx, ebx
mov eax, 0x80000002
call fcn.00402cf4
jmp 0x4049bc
push 0x407910
mov ecx, 0x404b10
mov edx, ebx
mov eax, 0x80000002
call fcn.00402cf4
push 0x404b20
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 1
mov ecx, 0x404b58
mov edx, ebx
mov eax, 0x80000002
call fcn.00402d34
push 1
mov ecx, 0x404b68
mov edx, ebx
mov eax, 0x80000002
call fcn.00402d34
push 0x404b74
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x404bd0
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x404bd8
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0
lea ecx, [esp + 0x104]
mov edx, ebx
mov eax, 0x80000002
call fcn.00402d34
add esp, 0x200
pop ebx
ret
Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5e946060
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x48f25bba
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001281
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x18]
push str.mscoree.dll
mov dword [ebp - 0x248], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x100012e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_load_mscoree.dll__Error_code__d_._This_custom_action_requires_the_.NET_Framework_to_be_installed.
push dword [ebp + 8]
call fcn.10004023
add esp, 0xc
xor al, al
jmp 0x10001424
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetRequestedRuntimeInfo
push edi
call esi
push str.CorBindToRuntimeEx
push edi
mov dword [ebp - 0x23c], eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x10001403
test esi, esi
je 0x10001403
xor edx, edx
test ebx, ebx
je 0x10001372
cmp word [ebx], dx
je 0x10001372
push 0x14
push ebx
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.1000646b
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push str.Binding_to_CLR_version__s
push dword [ebp + 8]
call fcn.10004023
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push 0x100162c0
push 0x100162b0
push 2
push 0
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
jns 0x100013bb
push eax
push str.Failed_to_bind_to_the_CLR._Error_code_0x_X
jmp 0x1000140f
push edx
push 0x14
lea ecx, [ebp - 0x2c]
push ecx
push edx
push 0x104
lea ecx, [ebp - 0x234]
push ecx
push edx
push edx
push dword [ebp - 0x240]
push edx
push dword [ebp - 0x244]
call eax
test eax, eax
jns 0x10001334
push eax
push str.Failed_to_get_requested_CLR_info._Error_code_0x_x
push dword [ebp + 8]
call fcn.10004023
push str.Ensure_that_the_proper_version_of_the_.NET_Framework_is_installed__or_that_there_is_a_matching_supportedRuntime_element_in_CustomAction.config._If_you_are_binding_to_.NET_4_or_greater_add_useLegacyV2RuntimeActivationPolicytrue_to_the__startup__element.
push dword [ebp + 8]
call fcn.10004023
add esp, 0x14
jmp 0x1000141a
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x100013ea
push eax
push str.Failed_to_start_the_CLR._Error_code_0x_X
push dword [ebp + 8]
call fcn.10004023
mov eax, dword [ebp - 0x238]
add esp, 0xc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1000141a
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x238]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x10001423
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_locate_functions_in_mscoree.dll__Error_code__d_._This_custom_action_requires_the_.NET_Framework_to_be_installed.
push dword [ebp + 8]
call fcn.10004023
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10004917
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10001729
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100017a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100017a6
movzx ecx, word [edi]
mov eax, edi
push ebx
xor ebx, ebx
test cx, cx
je 0x100017a2
push 0x5c
pop edx
cmp cx, dx
jne 0x10001763
mov ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x1000175c
test ebx, ebx
je 0x100017a2
xor eax, eax
push edi
mov word [ebx], ax
call fcn.10001729
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
jne 0x100017a5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100017a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100017a5
or esi, 0xffffffff
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10002315
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push 2
pop ebx
mov ecx, dword [esi + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
test ax, ax
jne 0x10002323
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 0xa]
xor ecx, ecx
mov eax, edi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000495c
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x10002356
push 0xe
pop eax
pop edi
pop esi
pop ebx
ret
push str..pipe_
push edi
push eax
call fcn.100084a8
push dword [esi + 8]
push edi
push dword [esi + 0xc]
call fcn.10008433
add esp, 0x18
mov ecx, esi
cmp byte [esi + 0x40], 0
pop edi
pop esi
pop ebx
jne 0x100023c1
jmp 0x10002385
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push 0x40000000
push 3
push esi
push esi
push 0xc0000000
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
je 0x100023b1
mov byte [edi + 0x42], 1
jmp 0x100023bc
mov dword [edi + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
ret
push ebx
push esi
push edi
xor ebx, ebx
mov eax, 0x400
push ebx
push ebx
push eax
push eax
push 1
mov edi, ecx
mov esi, ebx
push ebx
push 0x40080003
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, eax
mov dword [edi + 0x10], ecx
cmp ecx, 0xffffffff
jne 0x100023fb
mov dword [edi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002448
lea eax, [edi + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x10002410
mov byte [edi + 0x42], 1
jmp 0x10002448
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, eax
cmp esi, 0xe7
jne 0x1000243a
push 0x4e20
push dword [edi + 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x1000240a
call ebx
mov esi, eax
cmp esi, 0x3e5
jne 0x10002448
xor esi, esi
mov byte [edi + 0x41], 1
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x1000244e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002c920], 0
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6c0], eax
jne 0x10002489
test esi, esi
jne 0x10002489
push eax
push dword [ebp + 8]
call fcn.1000275c
jmp 0x10002608
mov byte [ebp - 0x6a9], 0
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x100024cb
push 0x104
lea eax, [ebp - 0x43c]
push eax
push dword [0x1002c91c]
push edi
call fcn.10003dca
test al, al
jne 0x100024be
mov eax, 0x643
jmp 0x10002607
lea esi, [ebp - 0x43c]
mov byte [ebp - 0x6a9], 1
push ebx
push esi
mov ebx, 0x118
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.100014b4
push str.CustomAction.config
push ebx
lea eax, [ebp - 0x234]
push eax
call fcn.10001436
lea ebx, [ebp - 0x234]
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
push esi
sbb eax, eax
and eax, ebx
mov ebx, 0x136
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x6a8]
push ebx
push eax
call fcn.100014b4
push str.Microsoft.Deployment.WindowsInstaller.dll
push ebx
lea eax, [ebp - 0x6a8]
push eax
call fcn.10001436
lea eax, [ebp - 0x6b0]
mov ebx, 0x643
push eax
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x6bc], ebx
push eax
push dword [ebp - 0x6b8]
push 0
push edi
call fcn.10001281
test al, al
je 0x100025ef
lea eax, [ebp - 0x6b4]
push eax
push dword [ebp - 0x6b8]
push esi
push str.CustomAction
push dword [ebp - 0x6b0]
push edi
call section..text
test al, al
je 0x100025d7
lea eax, [ebp - 0x6bc]
push eax
push dword [ebp - 0x6c0]
push dword [ebp - 0x6b4]
push edi
call fcn.10002619
test al, al
je 0x100025a6
mov ebx, dword [ebp - 0x6bc]
mov eax, dword [ebp - 0x6b0]
push dword [ebp - 0x6b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jns 0x100025cb
push eax
push str.Failed_to_unload_app_domain._Error_code_0x_X
push edi
call fcn.10004023
add esp, 0xc
mov eax, dword [ebp - 0x6b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x6b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x6b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebp - 0x6a9], 0
je 0x10002604
lea eax, [ebp - 0x43c]
push eax
call fcn.10003c2f
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10004917
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002acc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
xor ebx, ebx
cmp ebx, dword [ebp + 0xc]
jae 0x10002b88
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x10002b7d
cmp byte [esi + 0x40], 0
push 0xffffffffffffffff
je 0x10002b42
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x10002b4b
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
jne 0x10002b69
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10002b7d
jmp 0x10002b6e
cmp edi, 0xffffffff
jne 0x10002b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10002b7d
mov edi, 0x3e3
add ebx, dword [ebp - 4]
test edi, edi
je 0x10002adb
test edi, edi
je 0x10002bb4
cmp byte [esi + 0x40], 0
push dword [esi + 0x10]
je 0x10002ba6
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x10002bb0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
mov byte [esi + 0x42], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10002d84
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x40], 0
je 0x10002df4
xor eax, eax
cmp dword [esi + 0x18], eax
jne 0x10002df4
push edi
push eax
push eax
push 1
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10002db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10002def
cmp dword [esi + 0x14], edi
je 0x10002dc1
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push esi
push 0x10002abd
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10002def
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x18], 0
mov eax, edi
pop edi
pop esi
ret
mov eax, 0x10dd
pop esi
ret