joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d349
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
push 0x566be8
call fcn.004b6110
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ecx], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x40d392
cmp dword [ebp - 0x28], ebx
jne 0x40d3c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x40d495
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d495
cmp dword [ebp - 0x28], 0
je 0x40d495
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40d495
cmp dword [ebp - 0x2c], eax
jbe 0x40d495
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40d495
push dword [ebp - 0x2c]
call fcn.005016c4
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40d495
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push esi
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40d495
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x40d495
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40d495
cmp dword [ebp - 0x30], 0
je 0x40d495
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [esi]
jae 0x40d495
push dword [ebp - 0x30]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40d47f
inc ebx
jmp 0x40d464
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [esi + ebx*8 + 8]
shr eax, 2
and eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0040d4b6
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40de4b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5756c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004f92b0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40de9b
cmp dword [ebp - 0x114], 6
jb 0x40de9b
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b5f90
leave
ret
Function at 0x40edf9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
push 0x566ba8
call fcn.004b6110
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
push 0x200
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.004f92b0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eedf
mov dword [ebp - 0x438], ebx
mov edi, 0x210
push edi
push ebx
lea eax, [ebp - 0x22c]
push eax
call fcn.004f92b0
add esp, 0xc
mov dword [ebp - 0x434], edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40eedf
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x10], eax
jle 0x40eedf
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ef05
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f068
Capabilities:
Print debug messages

Disassembly:
push 0x27c
mov eax, 0x526e48
call fcn.004b600c
call fcn.0040de38
test al, al
jne 0x40f30f
push 7
pop ebx
xor eax, eax
mov dword [ebp - 0x224], ebx
xor edi, edi
mov word [ebp - 0x238], ax
push str._autorun
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], edi
call fcn.0040aee9
lea eax, [ebp - 0x238]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.0040fe78
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
mov esi, eax
call fcn.0040ac85
xor eax, eax
push str.tray
test esi, esi
je 0x40f1e9
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x250], ax
call fcn.0040aee9
xor eax, eax
mov dword [ebp - 4], 1
push 0x534840
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x238], ax
call fcn.0040aee9
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.004100f8
lea ecx, [ebp - 0x238]
call fcn.0040ac85
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.0040ac85
xor eax, eax
mov dword [ebp - 0x228], edi
push 0x53472c
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x238], ax
call fcn.0040aee9
xor eax, eax
mov dword [ebp - 4], 3
push str.show
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x250], ax
call fcn.0040aee9
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.004100f8
lea ecx, [ebp - 0x250]
call fcn.0040ac85
lea ecx, [ebp - 0x238]
jmp 0x40f262
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], ebx
mov word [ebp - 0x280], ax
call fcn.0040aee9
xor eax, eax
mov dword [ebp - 4], 5
push 0x534840
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x268], ax
call fcn.0040aee9
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.004100f8
lea ecx, [ebp - 0x268]
call fcn.0040ac85
lea ecx, [ebp - 0x280]
or dword [ebp - 4], 0xffffffff
call fcn.0040ac85
lea eax, [ebp - 0x284]
push eax
call fcn.0040d9b8
mov ecx, eax
call fcn.0041000d
push 0x210
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ebx
push edi
push eax
call fcn.004f92b0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x108
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x53493c
lea eax, [ebp - 0x220]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push 1
push 1
push fcn.00423680
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], edi
push eax
push dword [ebp - 0x284]
lea eax, [ebp - 0x220]
push eax
call fcn.0040c8c6
test eax, eax
jne 0x40f301
push str._n__tWinMain:_CreateProcess_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x284]
lea ecx, [ecx - 0x10]
call fcn.00406ad8
call fcn.004b5fb6
ret 4
Function at 0x4107d9
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x526fb3
call fcn.004b5fd8
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 0x410978
push esi
call fcn.004b621a
mov edi, eax
pop ecx
test edi, edi
je 0x410978
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 0x410971
call fcn.00410a55
mov ebx, dword [ebp + 0xc]
test al, al
je 0x410925
call fcn.004109d3
test al, al
jne 0x410925
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 0x410925
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x410925
call fcn.004065f6
push eax
lea ecx, [ebp - 0x18]
call fcn.00405d79
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.00406501
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 0x4108e9
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406ad8
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x41087b
jmp 0x410925
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00406b64
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.00410b37
push 0x20
mov ecx, ebx
call fcn.00410ab7
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.00406ad8
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x41096e
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x533a1c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41096e
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.00406501
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x410971
mov ebx, dword [ebp - 0x10]
push edi
call fcn.004b6107
pop ecx
mov al, bl
call fcn.004b5fa1
ret
Function at 0x41117e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004b6230
mov eax, dword [0x5756c0]
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.004f92b0
add esp, 0xc
mov dword [ebp - 0x4008], ebx
test esi, esi
je 0x411258
test edi, edi
je 0x411258
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x411258
cmp eax, 0x3fff
ja 0x411258
lea ecx, [ebp - 0x4004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411258
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x533a1c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411258
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004f92b0
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.00410fb6
xor eax, eax
add esp, 0x28
inc eax
jmp 0x41125a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b5f90
leave
ret

Function at 0x41136e
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 0x4113d9
cmp dword [ebp + 0xc], 0
je 0x4113d9
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4113d9
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4113d9
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 0x4113d3
push esi
push dword [ebp + 0xc]
push edi
call fcn.004f87b0
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 0x4113d3
mov al, 1
jmp 0x4113db
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
leave
ret
Function at 0x4117ce
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 0x411839
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x41184d
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 0x411839
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x41184b
cmp dword [edi + 4], ebx
je 0x41184b
cmp dword [edi + 0xc], ebx
je 0x41184b
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x411853
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5756c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x411877
xor eax, eax
inc eax
jmp 0x411904
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f92b0
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 0x4118cb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub edi, 1
jne 0x4118b9
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 0x411904
lea eax, [ebp - 0x20c]
mov dword [esi + 0x1c], 1
push eax
mov ecx, esi
call fcn.004117ce
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b5f90
leave
ret 4
Function at 0x413420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x527205
call fcn.004b607a
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 0x41349d
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 0x41349d
call fcn.004126db
mov esi, eax
jmp 0x413574
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4134c0
call fcn.004126db
jmp 0x413567
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4134b6
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 0x4134f0
mov esi, 0x8007000e
jmp 0x413569
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00412558
jmp 0x413516
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4134e9
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 0x4134b6
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.004132e7
mov esi, eax
test edi, edi
je 0x413574
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41358d
lea ecx, [ebp - 0x418]
call fcn.00412a8b
mov eax, esi
call fcn.004b5fc7
ret 0x10
Function at 0x415c11
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 0x415c59
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x415c59
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x415c77
cmp eax, 0x3e5
je 0x415c71
xor al, al
jmp 0x415c86
mov byte [esi + 0x2c], 1
jmp 0x415c80
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 0x415c8d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
call fcn.00415e63
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 0x415cc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x415d3b
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.0040aee9
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 0x415cf5
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 0x415d39
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x4162df
push edi
push edi
call fcn.00501f06
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x415d39
cmp dword [esi + 4], 0xffffffff
je 0x415cc3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
jmp 0x415cc3
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x415d41
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 0x415d5a
xor al, al
jmp 0x415e5e
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 0x415e4d
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 0x415d99
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 0x416278
push ebx
push ebx
call fcn.00501f06
add esp, 0x18
mov dword [esi + 0x80c8], eax
test eax, eax
je 0x415e4d
mov al, 1
jmp 0x415e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00415eb0
xor al, al
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x41643e
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.004f92b0
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 0x41647d
mov byte [edi + 0x2c], 0
mov al, 1
jmp 0x416492
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416490
mov byte [edi + 0x2c], 1
jmp 0x416479
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x416499
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 0x4164c1
xor al, al
jmp 0x4164d2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4164d0
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov al, 1
pop esi
leave
ret 8
Function at 0x41655d
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 0x416597
mov byte [edi + esi + 0x2d], 0
mov al, 1
jmp 0x4165ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4165ab
mov byte [edi + esi + 0x2d], 1
jmp 0x416593
xor al, al
pop edi
pop esi
leave
ret 0xc

Function at 0x4176cf
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x5274be
call fcn.004b5fd8
mov esi, ecx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4176eb
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.00417933
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.00417790
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.004178d1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41773b
call fcn.00411a90
cmp dword [esi + 0x18], ebx
jne 0x41775a
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x418444
push ebx
push ebx
call fcn.00501f06
add esp, 0x18
mov dword [esi + 0x18], eax
mov bl, 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x417766
call fcn.00411a90
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.004b5fa1
ret 4