joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x49e044]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x402661
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40267b
mov ecx, edi
mov edx, esi
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.004026a5
add esp, 8
test al, al
je 0x40268b
mov eax, dword [esi]
test eax, eax
je 0x4026a1
push 0xa
push 0
push eax
call fcn.0045fcf1
add esp, 0xc
cmp eax, 1
jmp 0x40267f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004528ff
mov ecx, edi
mov edx, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004026a5
cmp dword [ebp - 0x14], 1
sete al
movzx eax, al
mov dword [ebx], eax
mov bl, 1
jmp 0x40268d
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004528ff
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x402682

Function at 0x4026a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov edi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [0x49e044]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x218]
push 0x208
push ebx
push esi
call fcn.004549a0
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], 0x104
push eax
push esi
push ebx
push 2
push edi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x40271c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.00401f12
mov ecx, edi
call fcn.004020b6
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004528ff
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4027c4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x49e044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x402822
mov edi, eax
push str.CreateWebViewEnvironmentWithOptionsInternal
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402894
mov ecx, eax
mov esi, dword [ebp + 0x1c]
mov bl, byte [ebp + 0xc]
call dword [0x47e330]
movzx eax, bl
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call ecx
mov esi, eax
mov dword [ebp - 0x14], eax
jmp 0x4028ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea ebx, [ebp - 0x14]
mov dword [ebx], esi
xor eax, eax
dec eax
lea edi, [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.00401e28
push edi
push 1
push 4
push ebx
call fcn.00402738
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.WebView2:_CoreWebView2Environment_failed_when_trying_to_LoadLibrary:_hr0x
call ebx
mov ecx, edi
call fcn.004020b6
push eax
call ebx
push str._path
call ebx
push dword [ebp + 8]
call ebx
push 0x47eb3a
call ebx
mov ecx, edi
call fcn.00401e3a
jmp 0x402916
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], esi
xor eax, eax
dec eax
lea ebx, [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.00401e28
push ebx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00402738
add esp, 0x10
push str.WebView2:_CoreWebView2Environment_failed_when_trying_to_call_into_EmbeddedBrowserWebView.dll._hr0x
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call fcn.004020b6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x47eb3a
call eax
mov ecx, ebx
call fcn.00401e3a
push str.DllCanUnloadNow
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402916
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004528ff
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4168f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475dc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49e044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00452b1d
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push 1
mov dword [ebp - 4], eax
call fcn.004401c0
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
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 0x418e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475dc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49e044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00452b1d
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push 1
mov dword [ebp - 4], eax
call fcn.004401c0
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x419d20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f670

Function at 0x419e10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x49e044]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
push ecx
mov eax, edx
xor ebx, ebx
push ecx
push ecx
mov edx, 0x104
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x2c]
mov dword [eax], 0
mov dword [esp + 0x20], ebx
call fcn.004065a0
push 0x48bb38
lea ecx, [esp + 0x24]
call fcn.004064b0
lea eax, [esp + 0x20]
push eax
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x419ec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x419f12
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00407d00
mov edi, eax
add esp, 4
test edi, edi
jns 0x419f12
mov ecx, dword [ebp + 4]
mov edx, 0x62
push edi
push 0x48b9ec
call fcn.00407ce0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004528ff
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov ecx, esi
call fcn.00407e30
mov edi, eax
test edi, edi
jns 0x419f00
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push edi
push 0x48b9ec
call fcn.00407ce0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x419f2f
jmp 0x419e9b
mov eax, dword [esp + 0x10]
cdq
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x419f3d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
xor ecx, esp
call fcn.004528ff
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x937
call fcn.00407d20
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x937
call fcn.00407d20
int3
Function at 0x422230
Capabilities:
Get disk information
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x49e044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [edi + 4], eax
lea esi, [edi + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
test edx, edx
je 0x422261
mov byte [edx], al
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x42227f
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4222a6
push str.UuidCreateSequential
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4222a6
lea ecx, [ebp - 0x1c]
push ecx
call eax
test eax, eax
jne 0x4222a6
mov eax, dword [ebp - 0x12]
mov dword [esi], eax
mov ax, word [ebp - 0xe]
mov word [esi + 4], ax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [edi + 0xa]
push eax
push 0
push 0
push 0x48d720
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0xe
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf0], 0x67452301
push edi
push eax
mov dword [ebp - 0xec], 0xefcdab89
mov dword [ebp - 0xe8], 0x98badcfe
mov dword [ebp - 0xe4], 0x10325476
mov dword [ebp - 0xe0], 0xc3d2e1f0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
call fcn.0043ddc0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0043de60
push 0xa
lea eax, [ebp - 0x110]
mov dword [ebp - 0x78], 0x67452301
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x74], 0xefcdab89
push eax
mov dword [ebp - 0x70], 0x98badcfe
mov dword [ebp - 0x6c], 0x10325476
mov dword [ebp - 0x68], 0xc3d2e1f0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.0043ddc0
add esp, 0x14
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0043de60
lea eax, [ebp - 0x98]
add esp, 8
cmp esi, eax
je 0x4223d0
mov eax, dword [ebp - 0x98]
mov dword [esi], eax
mov eax, dword [ebp - 0x94]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x90]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x88]
mov dword [esi + 0x10], eax
push 4
lea eax, [ebp - 0x170]
mov dword [ebp - 0x168], 0x67452301
push edi
push eax
mov dword [ebp - 0x164], 0xefcdab89
mov dword [ebp - 0x160], 0x98badcfe
mov dword [ebp - 0x15c], 0x10325476
mov dword [ebp - 0x158], 0xc3d2e1f0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
call fcn.0043ddc0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.0043de60
add esp, 8
lea ecx, [ebp - 0x188]
mov edx, 5
mov eax, dword [ecx]
lea ecx, [ecx + 4]
add dword [esi], eax
lea esi, [esi + 4]
sub edx, 1
jne 0x422453
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004528ff
mov esp, ebp
pop ebp
ret
Function at 0x422500
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476e97
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x49e044]
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, edx
mov esi, ecx
mov dword [ebp - 0x428], esi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x42c], esi
push 0
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x48d724
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, eax
mov dword [esi], 0
mov ecx, edx
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4225b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00416e00
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x424], 1
jb 0x4225e3
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
setne cl
test eax, eax
jne 0x422615
push 4
push str..old
mov ecx, esi
call fcn.0041e150
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42260d
mov eax, dword [esi]
push eax
call edi
test eax, eax
setne cl
test cl, cl
jne 0x4226c0
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4226bb
cmp dword [0x49ef94], 8
mov eax, 0x49ef80
jb 0x42264b
mov eax, dword [0x49ef80]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422667
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00416e00
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x422689
mov eax, dword [esi]
push 0x48d724
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4226a3
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00416e00
mov byte [ebx], 0
jmp 0x4226d9
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4226ca
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
sete al
or byte [ebx], al
mov eax, esi
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.004528ff
mov esp, ebp
pop ebp
ret
Function at 0x42b580
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4780b5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x49e044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
lea ebx, [edi + 0x6c]
mov dword [ebp - 0x10], 0
push ebx
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xa0], eax
lea ecx, [edi + 0xa0]
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x42b70b
cmp eax, 0x217
je 0x42b70b
cmp eax, 0x3e5
jne 0x42b694
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
cmp dword [ebx], 0x103
jne 0x42b70b
push 0x64
call edi
add esi, 0x64
cmp esi, 0x2710
jb 0x42b600
push 0x20
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
push str.waiting_for_send_pipe_connection
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00417240
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x30]
push eax
push 1
call fcn.0042d2f0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x42b70b
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42b701
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b720
jmp 0x42b701
push 0x17
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
push str.connecting_to_send_pipe
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00417240
lea eax, [edi + 0xa0]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x48]
push eax
push 1
call fcn.0042d2f0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x42b70b
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42b701
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b725
push edx
push ecx
call fcn.00452f08
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045e090
call fcn.0045e090
int3
Function at 0x42de50
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47856d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49e044]
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 - 0x30], ebx
lea ecx, [ebx + 0x7c]
mov al, 1
mov dword [ebp - 0x34], ecx
xchg byte [ecx], al
cmp byte [ebx + 0x1c], 0
je 0x42ded0
lea eax, [ebx + 0x54]
mov dword [ebx + 0x5c], 0
push eax
push dword [ebx + 0x4c]
mov dword [ebx + 0x60], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x42ded0
cmp eax, 0x217
je 0x42ded0
cmp eax, 0x3e5
jne 0x42ded0
push 0xffffffffffffffff
push dword [ebx + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esp, [esp]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0x1001
mov dword [ebp - 4], 0
call fcn.00452f39
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x1000
push edi
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x42df6e
cmp eax, 6
je 0x42df6e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42df75
mov bl, byte [eax + edi - 1]
lea ecx, [ebp - 0x2c]
push edi
mov byte [edi + 0x1000], 0
call fcn.004147b0
test bl, bl
mov ebx, dword [ebp - 0x30]
je 0x42df75
jmp 0x42df24
mov dword [ebp - 0x14], 0
push edi
call fcn.0045290d
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x42dfd3
push dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
lea ecx, [ebp - 0x2c]
push ecx
call eax
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x42dee0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42dfc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e026
push edx
push ecx
call fcn.00452f08
add esp, 8
jmp 0x42dee0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x42e003
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42dff9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e026
push edx
push ecx
call fcn.00452f08
add esp, 8
mov ecx, dword [ebp - 0x34]
xor al, al
xchg byte [ecx], al
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.004528ff
mov esp, ebp
pop ebp
ret
call fcn.0045e090
int3
Function at 0x42f000
Capabilities:
Check if file exists
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478697
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x49e044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebx + 0x20], 0
lea edi, [ebx + 0x20]
mov dword [ebp - 0x10], edi
jne 0x42f1e6
push 0x80
call fcn.00452b1d
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x80
push 0
push esi
mov dword [ebp - 4], 0
call fcn.004549a0
add esp, 0xc
lea eax, [ebx + 4]
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push ecx
push eax
mov ecx, esi
call fcn.0042db70
lea eax, [ebp - 0x18]
mov dword [esi], vtable.NamedPipeClient.0
cmp edi, eax
je 0x42f092
mov ecx, dword [edi]
mov dword [edi], esi
test ecx, ecx
je 0x42f09b
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x42f09b
push 1
mov ecx, esi
call fcn.0042dcc0
mov esi, dword [edi]
test esi, esi
jne 0x42f0b6
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x50], eax
test eax, eax
je 0x42f1af
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x64], eax
test eax, eax
je 0x42f1af
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x78], eax
test eax, eax
je 0x42f1af
cmp byte [esi + 0x1c], bl
je 0x42f130
cmp dword [esi + 0x40], 8
lea eax, [esi + 0x2c]
jb 0x42f108
mov eax, dword [eax]
push dword [esi + 0x28]
push 0
push 0x2000
push 0x2000
push 0xff
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x4c], eax
jmp 0x42f178
cmp ebx, 2
jne 0x42f140
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x40], 8
lea eax, [esi + 0x2c]
jb 0x42f14c
mov eax, dword [esi + 0x2c]
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x42f135
mov edi, dword [ebp - 0x10]
cmp dword [esi + 0x4c], 0xffffffff
je 0x42f1af
lea eax, [esi + 0x44]
push eax
push 0
push esi
push 0x42db50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x48], eax
test eax, eax
je 0x42f1af
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov esi, eax
mov dword [edi], 0
test ecx, ecx
je 0x42f1c9
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], esi
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret