joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40615a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x214
mov eax, 0x520181
call fcn.004b327c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x40617a
xor eax, eax
jmp 0x4062bf
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004f64a0
add esp, 0xc
call fcn.00406a6c
push 0x52d9f0
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x4061e6
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.00407d51
push ebx
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.Ultra_Uninstaller_Tray
lea ecx, [ebp - 0x21c]
call fcn.00408bb7
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.004083c8
jmp 0x4062bd
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4062bd
call fcn.004067f6
push eax
lea ecx, [ebp - 0x21c]
call fcn.00405f79
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x40624b
push ebx
push eax
lea eax, [ebp - 0x21c]
push 0x52dab4
push eax
call fcn.00406701
add esp, 0x10
jmp 0x406260
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.00406701
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x406281
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00406697
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + ebx]
push eax
push esi
push 1
push edi
push str.Ultra_Uninstaller_Tray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00406cf0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00406cd8
mov eax, edi
call fcn.004b3226
ret

Function at 0x406593
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 8
mov eax, 0x5201b1
call fcn.004b3248
cmp dword [ebp + 8], 0
jne 0x4065a9
xor eax, eax
jmp 0x406622
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.004068ef
pop ecx
pop ecx
test eax, eax
jne 0x4065c3
inc eax
jmp 0x406622
call fcn.00406a6c
test al, al
je 0x4065f2
lea ecx, [ebp + 8]
call fcn.00407d51
push 1
push str.Ultra_Uninstaller_Tray
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0040932d
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004083c8
jmp 0x406620
lea eax, [ebp - 0x14]
push eax
push 0x20006
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406620
push str.Ultra_Uninstaller_Tray
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
call fcn.004b3211
ret
Function at 0x4068ef
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x428
mov eax, 0x5201ed
call fcn.004b327c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x40690f
xor eax, eax
jmp 0x406a66
xor edi, edi
test ebx, ebx
je 0x406917
mov dword [ebx], edi
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004f64a0
add esp, 0xc
call fcn.00406a6c
push 0x52d9f0
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x406980
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x42c]
call fcn.00407d51
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.Ultra_Uninstaller_Tray
lea ecx, [ebp - 0x42c]
call fcn.004096d1
lea ecx, [ebp - 0x42c]
mov edi, eax
call fcn.004083c8
jmp 0x406a64
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x430]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406a64
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push str.Ultra_Uninstaller_Tray
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x430]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406a64
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405fa2
inc esi
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], esi
call fcn.00406b36
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.00405fa2
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00406b36
push edi
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0040665d
test eax, eax
js 0x406a48
mov edi, esi
test ebx, ebx
je 0x406a48
mov dword [ebx], esi
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00406cd8
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00406cd8
mov eax, edi
call fcn.004b3226
ret
Function at 0x40957a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x576690], 0
push esi
mov esi, 0x576690
jne 0x4095a1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
mov ecx, dword [ebp + 8]
push esi
call fcn.00405fa2
mov eax, dword [ebp + 8]
pop esi
leave
ret 4

Function at 0x40dd5e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x570720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x414]
mov ecx, 0x82
lea eax, [ebp - 0x20c]
mov esi, str.UtilsActivePlugin.dll
rep movsd dword es:[edi], dword [esi]
push 0x208
xor esi, esi
push esi
push eax
call fcn.004f64a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40de20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40de20
push str.CreatePlugin
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40de20
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], esi
push ecx
push 1
call eax
test eax, eax
je 0x40de20
mov dword [ebx + 0x3f8], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3200
leave
ret
Function at 0x40fce1
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x5210d2
call fcn.004b3248
lea eax, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40fe80
push esi
call fcn.004b33ad
mov edi, eax
pop ecx
test edi, edi
je 0x40fe80
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40fe79
call fcn.0040ff5d
mov ebx, dword [ebp + 0xc]
test al, al
je 0x40fe2d
call fcn.0040fedb
test al, al
jne 0x40fe2d
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40fe2d
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x40fe2d
call fcn.004067f6
push eax
lea ecx, [ebp - 0x18]
call fcn.00405f79
mov ecx, dword [ebp - 0x28]
and dword [ebp - 4], 0
movzx eax, word [ecx + esi*4 + 2]
push eax
movzx eax, word [ecx + esi*4]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00406701
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0x24], 0
add esp, 0x10
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40fdf1
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406cd8
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x40fd83
jmp 0x40fe2d
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00406d64
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.0041003f
push 0x20
mov ecx, ebx
call fcn.0040ffbf
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.00406cd8
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x40fe76
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x52dad0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40fe76
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push ebx
call fcn.00406701
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x40fe79
mov ebx, dword [ebp - 0x10]
push edi
call fcn.004b3377
pop ecx
mov al, bl
call fcn.004b3211
ret
Function at 0x4101eb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004b3380
mov eax, dword [0x570720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x4000
push ebx
push eax
call fcn.004f64a0
add esp, 0xc
mov dword [ebp - 0x4008], ebx
test esi, esi
je 0x4102c5
test edi, edi
je 0x4102c5
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4102c5
cmp eax, 0x3fff
ja 0x4102c5
lea ecx, [ebp - 0x4004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4102c5
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x52dad0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4102c5
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004f64a0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.0040c9bb
xor eax, eax
add esp, 0x28
inc eax
jmp 0x4102c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3200
leave
ret

Function at 0x4103db
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x410446
cmp dword [ebp + 0xc], 0
je 0x410446
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x410446
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x410446
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x410440
push esi
push dword [ebp + 0xc]
push edi
call fcn.004f59a0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x410440
mov al, 1
jmp 0x410448
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
leave
ret
Function at 0x41083b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
jne 0x4108a6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x4108ba
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x4108a6
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x4108b8
cmp dword [edi + 4], ebx
je 0x4108b8
cmp dword [edi + 0xc], ebx
je 0x4108b8
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4108c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x570720]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4108e4
xor eax, eax
inc eax
jmp 0x410971
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f64a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [ebp + 8]
test edi, edi
je 0x410938
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub edi, 1
jne 0x410926
push str.netul.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
je 0x410971
lea eax, [ebp - 0x20c]
mov dword [esi + 0x1c], 1
push eax
mov ecx, esi
call fcn.0041083b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b3200
leave
ret 4
Function at 0x4122b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x521291
call fcn.004b32ea
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x412336
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x412336
call fcn.004115a8
mov esi, eax
jmp 0x41240d
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x412359
call fcn.004115a8
jmp 0x412400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x41234f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x412389
mov esi, 0x8007000e
jmp 0x412402
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00411425
jmp 0x4123af
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x412382
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x41234f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00412180
mov esi, eax
test edi, edi
je 0x41240d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x412426
lea ecx, [ebp - 0x418]
call fcn.00411957
mov eax, esi
call fcn.004b3237
ret 0x10
Function at 0x414931
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul esi, ebx, 0x4058
mov edi, ecx
add esi, edi
push esi
push dword [esi + 0x28]
and dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x414979
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x414979
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x414997
cmp eax, 0x3e5
je 0x414991
xor al, al
jmp 0x4149a6
mov byte [esi + 0x2c], 1
jmp 0x4149a0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [esi + 0x2d], 0
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4149ad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
call fcn.00414b83
xor edi, edi
push edi
push 0x40000000
push 3
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4149e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x414a5b
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.0040b0e9
push edi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x414a15
mov eax, dword [ecx]
push edi
push esi
call dword [eax]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x414a59
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x414fff
push edi
push edi
call fcn.004fe797
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x414a59
cmp dword [esi + 4], 0xffffffff
je 0x4149e3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
jmp 0x4149e3
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x414a61
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
cmp dword [esi + 0x80c8], 0xffffffff
je 0x414a7a
xor al, al
jmp 0x414b7e
push ebx
push edi
push 1
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
xor edi, edi
lea eax, [ebp - 0x2c]
push ebx
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
lea edi, [esi + 0x10]
mov dword [ebp - 0x18], 0xc
lea ebx, [esi + 0x80b4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x3e8
push 0x6000
push 0x6000
push 2
push 6
push 0x40000003
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
je 0x414b6d
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx - 4], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add dword [ebp - 4], 2
mov dword [ebx], eax
mov eax, dword [ebx - 4]
mov dword [edi], eax
mov eax, dword [ebx]
add ebx, 8
mov dword [edi + 0x14], eax
add edi, 0x4058
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 2
jb 0x414ab9
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [esi + ecx*4 + 0x80b0], eax
mov dword [esi + 0x80c4], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x414f98
push ebx
push ebx
call fcn.004fe797
add esp, 0x18
mov dword [esi + 0x80c8], eax
test eax, eax
je 0x414b6d
mov al, 1
jmp 0x414b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00414bd0
xor al, al
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x41515e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul edi, dword [ebp + 8], 0x4058
mov ebx, 0x2000
push ebx
push 0
add edi, ecx
lea esi, [edi + 0x38]
push esi
call fcn.004f64a0
add esp, 0xc
lea eax, [edi + 0x30]
push edi
push eax
push ebx
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41519d
mov byte [edi + 0x2c], 0
mov al, 1
jmp 0x4151b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4151b0
mov byte [edi + 0x2c], 1
jmp 0x415199
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4151b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4151e1
xor al, al
jmp 0x4151f2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4151f0
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov al, 1
pop esi
leave
ret 8
Function at 0x41527d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
imul edi, dword [ebp + 8], 0x4058
mov esi, ecx
and dword [ebp - 4], 0
lea eax, [edi + 0x14]
add eax, esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4152b7
mov byte [edi + esi + 0x2d], 0
mov al, 1
jmp 0x4152cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4152cb
mov byte [edi + esi + 0x2d], 1
jmp 0x4152b3
xor al, al
pop edi
pop esi
leave
ret 0xc

Function at 0x4163ef
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x52154a
call fcn.004b3248
mov esi, ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x41640b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00416653
pop ecx
pop ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call fcn.004164b0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.004165f1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41645b
call fcn.00410afd
cmp dword [esi + 0x18], ebx
jne 0x41647a
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x417164
push ebx
push ebx
call fcn.004fe797
add esp, 0x18
mov dword [esi + 0x18], eax
mov bl, 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x416486
call fcn.00410afd
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.004b3211
ret 4