joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4105b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x54e758]
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.004e4f00
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.004e42d4
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.004e5833
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.0049b6ec
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.0049b994
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.0049b994
mov esp, ebp
pop ebp
ret 4
call fcn.004e0859
int3
Function at 0x410a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506b87
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54e758]
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], 0x510b88
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.0049b9c8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410b54
push 1
mov byte [ebp - 4], 3
call fcn.00424099
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 0x506d96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x54e758]
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.0049b994
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 0x506ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x54e758]
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.0049b9c8
mov edi, eax
add esp, 4
test edi, edi
je 0x413b5d
push 1
mov dword [ebp - 4], 0
call fcn.00424099
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.00423888
mov eax, dword [0x55411c]
mov ebx, dword [0x554b3c]
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.00423888
cmp dword [0x554b3c], ebx
jne 0x413bd1
mov eax, dword [0x554b28]
inc eax
mov dword [0x554b28], eax
mov dword [0x554b3c], eax
lea ecx, [ebp - 0x14]
call fcn.004238e0
mov ebx, dword [0x554b3c]
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.00424093
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.00424067
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 4]
mov dword [0x55411c], edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004238e0
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.00424547
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 0x542294
lea eax, [ebp - 0x30]
push eax
call fcn.004dc59c
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.004e5e61
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.004e5e61
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.004dd4c0
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
Function at 0x418230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5071d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54e758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x418268
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
call fcn.0049b9c8
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4182b8
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__V___Binder_U_Unforced_std__P8CPluginMgr__AEXXZPAV3__2___V_std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x4182ba
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4182cb
lock inc dword [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x4182ed
push 1
lea ecx, [edi + 0x20]
call fcn.004199a0
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x41832a
push 0x28
call fcn.0049b9c8
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_7bf46d6d2cfed262ad4f012bdb85772d___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x418369
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x419690
push 0
push 0
call fcn.004e5e61
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x41836d
mov byte [ebp + 0xb], 0
test esi, esi
je 0x418392
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x418392
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x418392
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418be0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5072b1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x54e758]
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 edi, ecx
mov dword [ebp - 0x220], edi
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x418dbc
lea eax, [ebp - 0x22c]
push eax
call fcn.0040faf0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x228]
mov byte [ebp - 0x219], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x418c85
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x418c7f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x418c79
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x219]
mov edi, dword [ebp - 0x220]
test al, al
je 0x418d07
push 1
push 2
lea ecx, [ebp - 0x2cc]
call fcn.004061c0
lea eax, [ebp - 0x2cc]
mov dword [ebp - 4], 1
push str._Load_plugin_item:
push eax
call fcn.00407680
mov eax, dword [ebx]
mov ecx, 0x510b98
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x2cc]
push ecx
push eax
call fcn.004058d0
lea eax, [ebp - 0x234]
push eax
call fcn.0040faf0
add esp, 0x14
mov ecx, dword [eax]
lea edx, [ebp - 0x2cc]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x234]
call fcn.00407190
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 4], 0xffffffff
call fcn.00407850
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dd4c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418dbc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x418dbc
push dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418dbc
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push ecx
push 1
call eax
mov ecx, eax
mov dword [ebp - 0x220], ecx
test ecx, ecx
je 0x418dbc
push dword [edi + 0xc]
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00418920
mov eax, 1
jmp 0x418dbe
xor eax, eax
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.0049b994
mov esp, ebp
pop ebp
ret 4