joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509417
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x551758]
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 ebx, ecx
mov dword [ebp - 0x6c], ebx
sub esp, 8
mov eax, esp
mov dword [eax], 0x514558
mov dword [eax + 4], 6
lea eax, [ebp - 0x28]
push eax
call fcn.00422fb0
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.0040d210
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.ADBlockMaster_tray.log
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push str._s_s
push eax
call fcn.00404dd0
add esp, 0x10
lea ecx, [ebp - 0x60]
call fcn.0040d210
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
push esi
push str._s.on
push eax
mov byte [ebp - 4], 2
call fcn.00404dd0
mov edi, dword [ebp - 0x60]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fe1a
mov byte [ebx + 4], al
jmp 0x40fed4
push 0x28
mov byte [ebx + 4], 1
call fcn.0049e3a8
mov ebx, eax
mov dword [ebp - 0x64], eax
add esp, 4
mov dword [ebp - 0x70], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x40fe88
mov dword [ebx], vtable.Utils::LogAppender.0
mov ecx, esi
mov dword [ebx + 4], 0
xor eax, eax
mov byte [ebx + 8], 1
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 7
mov word [ebx + 0xc], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x68], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe65
sub ecx, dword [ebp - 0x68]
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0xc]
call fcn.0040e940
mov dword [ebx + 0x24], 0xffffffff
jmp 0x40fe8d
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 2
mov dword [ecx + 0x20], ebx
mov eax, dword [ebx]
mov ebx, dword [eax]
lea eax, [ebp - 0x58]
push eax
call fcn.0040fc50
push str._____________________log_start_____________________________r_n
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.0040f3e0
add esp, 0xc
mov ecx, dword [ebp - 0x64]
push eax
mov byte [ebp - 4], 5
call ebx
lea ecx, [ebp - 0x40]
call fcn.00407010
lea ecx, [ebp - 0x58]
call fcn.00407010
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40feee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40ff03
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40ff39
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ff2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff55
push edx
push ecx
call fcn.0049e0cc
add esp, 8
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.0049e374
mov esp, ebp
pop ebp
ret
call fcn.004e31f9
int3
Function at 0x4101a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50944b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x551758]
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
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
lea ebx, [esi + 0x24]
jb 0x4101de
mov edi, dword [edi]
push 0x180
push 0x40
push 0x8101
push edi
push ebx
call fcn.004e7569
add esp, 0x14
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x410291
push 1
push 2
lea ecx, [ebp - 0xc4]
call fcn.004061c0
push str._error.__
push edi
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push str.open
push eax
call fcn.004058d0
add esp, 8
push eax
call fcn.004058d0
add esp, 8
push eax
call fcn.004058d0
add esp, 8
mov ecx, eax
push 0x51484c
push dword [ebp - 0x2c]
call fcn.00407420
push eax
call fcn.004058d0
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xc4]
push eax
call fcn.00410340
cmp dword [eax + 0x14], 8
jb 0x410270
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
call fcn.00407010
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407850
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4102a7
push 2
push 0
push eax
call fcn.004e7c0c
add esp, 0xc
jmp 0x4102aa
or eax, 0xffffffff
mov dword [esi + 4], eax
test eax, eax
jne 0x410319
push 0x51487c
lea ecx, [ebp - 0x28]
call fcn.00406430
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4102c9
mov eax, dword [eax]
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x4102df
push edx
push eax
push ecx
call fcn.004e81d3
add esp, 0xc
mov edi, eax
jmp 0x4102e2
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x410312
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410308
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410335
push edx
push ecx
call fcn.0049e0cc
add esp, 8
test edi, edi
jle 0x410319
add dword [esi + 4], edi
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.0049e374
mov esp, ebp
pop ebp
ret
call fcn.004e31f9
int3
Function at 0x4105b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x551758]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 8], 0
je 0x4105d7
call fcn.004101a0
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x410613
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x4105f8
push eax
call fcn.004e78a0
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x410603
mov eax, dword [eax]
push eax
call fcn.004e6c74
add esp, 4
mov ecx, esi
call fcn.004101a0
push 0xfde9
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00410400
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x410630
mov eax, dword [eax]
mov ecx, dword [esi + 0x24]
cmp ecx, 0xffffffff
je 0x410647
push edx
push eax
push ecx
call fcn.004e81d3
add esp, 0xc
mov ebx, eax
jmp 0x41064a
or ebx, 0xffffffff
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x41067a
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410670
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106b6
push edx
push ecx
call fcn.0049e0cc
add esp, 8
test ebx, ebx
jle 0x410694
add dword [esi + 4], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049e374
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x14], 8
jb 0x41069c
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e374
mov esp, ebp
pop ebp
ret 4
call fcn.004e31f9
int3
Function at 0x410a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509527
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x551758]
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 - 0x10], 0
mov dword [edi], 0x513ba8
mov dword [ebp - 0x14], edi
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00413ac0
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0049e3a8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410b54
push 1
mov byte [ebp - 4], 3
call fcn.00424a29
add esp, 4
mov dword [ebx + 4], eax
jmp 0x410b56
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509736
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x551758]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x4126bc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x4126bc
call fcn.004115f0
mov edi, eax
jmp 0x4127db
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4126df
call fcn.004115f0
jmp 0x4127ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4126fd
call fcn.004115f0
jmp 0x4127ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41271e
mov edi, 0x8007000e
jmp 0x4127d0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x412814
jb 0x41273c
cmp eax, 0xffffffff
ja 0x412814
cmp eax, 0x400
jbe 0x412751
push eax
lea ecx, [ebp - 0x418]
call fcn.00411510
jmp 0x412777
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x412777
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41278e
mov edi, 0x8007000e
jmp 0x4127d0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4127ae
call fcn.004115f0
jmp 0x4127ce
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.00412470
mov edi, eax
test esi, esi
je 0x4127db
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4127f4
lea ecx, [ebp - 0x418]
call fcn.004118d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049e374
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00404b90
int3
Function at 0x413ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509888
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x551758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0049e3a8
mov edi, eax
add esp, 4
test edi, edi
je 0x413b5d
push 1
mov dword [ebp - 4], 0
call fcn.00424a29
add esp, 4
mov dword [edi + 4], eax
jmp 0x413b5f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
mov eax, dword [edi]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.00424218
mov eax, dword [0x55713c]
mov ebx, dword [0x557b5c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x413bdf
push ebx
lea ecx, [ebp - 0x14]
call fcn.00424218
cmp dword [0x557b5c], ebx
jne 0x413bd1
mov eax, dword [0x557b48]
inc eax
mov dword [0x557b48], eax
mov dword [0x557b5c], eax
lea ecx, [ebp - 0x14]
call fcn.00424270
mov ebx, dword [0x557b5c]
cmp ebx, dword [edi + 0xc]
jae 0x413bf0
mov eax, dword [edi + 8]
mov edi, dword [eax + ebx*4]
test edi, edi
jne 0x413c4f
jmp 0x413bf2
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x14], 0
je 0x413c0b
call fcn.00424a23
cmp ebx, dword [eax + 0xc]
jae 0x413c0f
mov eax, dword [eax + 8]
mov edi, dword [eax + ebx*4]
test edi, edi
jne 0x413c4f
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x413c4f
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004138a0
add esp, 8
cmp eax, 0xffffffff
je 0x413cc8
mov edi, dword [ebp + 8]
mov dword [ebp + 8], edi
push edi
mov byte [ebp - 4], 4
call fcn.004249f7
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 4]
mov dword [0x55713c], edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00424270
mov eax, dword [edi]
mov ecx, edi
push 0x20
call dword [eax + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x413c84
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x413ca5
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.0040ab10
cmp byte [ebp + 0xc], 0
je 0x413cb4
push esi
call fcn.00424ed7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x30]
call fcn.00410be0
push 0x545544
lea eax, [ebp - 0x30]
push eax
call fcn.004def3c
int3
Function at 0x415760
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]
mov dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4157ab
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x4157ab
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4157d9
cmp eax, 0x3e5
je 0x4157c8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop edi
mov byte [esi + 0x2c], 1
mov al, 1
mov byte [esi + 0x2d], 0
pop esi
pop ebx
pop ebp
ret 4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov byte [esi + 0x2d], 0
mov al, 1
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4157f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 4], 0xffffffff
je 0x41584e
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41582a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
call edi
mov dword [esi], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41583c
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41584e
push eax
call edi
mov dword [esi + 8], 0xffffffff
mov ebx, dword [ebp + 8]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x415883
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415890
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esi + 0x10]
call fcn.0040e940
push 0
push 0
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 0x4158cf
mov eax, dword [ecx]
push 0
push esi
call dword [eax]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x415921
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x416120
push 0
push 0
call fcn.004e8801
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x415921
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x415916
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415930
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
cmp dword [esi + 0x80c8], 0xffffffff
je 0x41594e
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 1
lea eax, [ebp - 0x34]
xor ecx, ecx
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], eax
lea edi, [esi + 0x80b4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0
mov ebx, edi
mov dword [ebp - 4], eax
nop word [eax + eax]
lea eax, [ebp - 0x20]
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 ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
cmp eax, 0xffffffff
je 0x415a69
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [ebx - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
add dword [ebp - 8], 2
mov dword [ebx], eax
mov eax, dword [ebx - 4]
mov dword [ecx], eax
mov eax, dword [ebx]
add ebx, 8
mov dword [ecx + 0x14], eax
add ecx, 0x4058
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
cmp eax, 2
jb 0x4159a0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 8]
mov dword [esi + ecx*4 + 0x80b0], eax
mov dword [esi + 0x80c4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x416000
push 0
push 0
call fcn.004e8801
add esp, 0x18
mov dword [esi + 0x80c8], eax
test eax, eax
je 0x415a69
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x80c4]
cmp eax, 0xffffffff
je 0x415a81
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x80c8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x415aa3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x80c8]
call ebx
push dword [esi + 0x80c4]
call ebx
mov dword [esi + 0x80c4], 0xffffffff
mov dword [esi + 0x80c0], 0xffffffff
add esi, 0x28
mov dword [ebp + 8], 2
nop dword [eax]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x415ae8
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [esi]
call ebx
mov dword [esi], 0xffffffff
mov eax, dword [edi - 4]
cmp eax, 0xffffffff
je 0x415afa
push eax
call ebx
mov dword [edi - 4], 0xffffffff
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x415b0a
push eax
call ebx
mov dword [edi], 0xffffffff
mov dword [esi - 0x18], 0xffffffff
add edi, 8
mov dword [esi - 4], 0xffffffff
mov dword [esi + 0x4010], 0
add esi, 0x4058
sub dword [ebp + 8], 1
jne 0x415ad0
mov ecx, dword [ebp - 0x10]
call fcn.00415c90
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul edi, ebx, 0x4058
mov esi, ecx
mov dword [ebp + 8], 0
add edi, esi
cmp byte [edi + 0x2c], 0
je 0x415de1
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [edi + 0x4038]
sub ecx, 0
je 0x415dbd
sub ecx, 1
jne 0x415de1
test eax, eax
je 0x415d8c
mov eax, dword [ebp + 8]
test eax, eax
je 0x415d8c
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x415de1
mov edx, dword [ecx]
push 0
push eax
lea eax, [edi + 0x38]
push eax
push ebx
push esi
call dword [edx + 8]
jmp 0x415de1
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
mov ecx, esi
call fcn.00415760
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x415e43
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 4]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
test eax, eax
je 0x415e70
mov dword [edi + 0x4038], 1
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x415de1
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax]
push 0x2000
lea eax, [edi + 0x38]
push 0
push eax
call fcn.004dfe60
add esp, 0xc
lea eax, [edi + 0x30]
push edi
push eax
push 0x2000
lea eax, [edi + 0x38]
push eax
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415e13
xor al, al
jmp 0x415e22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x415e4c
mov al, 1
mov byte [edi + 0x2c], al
test al, al
jne 0x415e43
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x415e43
mov eax, dword [ecx]
lea edx, [edi + 0x38]
push 0
push dword [edi + 0x30]
push edx
push ebx
push esi
call dword [eax + 8]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
mov ecx, esi
call fcn.00415760
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x415e70
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 4]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x4162b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x4162e0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4162ef
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8