joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, ecx
call fcn.00401450
test eax, eax
je 0x4014fb
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004351a6
add esp, 0x108
ret
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edi, [esp + 8]
call fcn.00401620
push 0
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.004351a6
add esp, 0x108
ret

Function at 0x401ba0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4664
call fcn.00435f20
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x4660], eax
push ebx
push esi
push edi
push 0x1c
push 0x44befc
mov esi, ecx
push 0x44befc
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x401bf3
mov eax, dword [0x44bf00]
push 0x104
push 0x44bf18
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x44bf18
call dword [sym.imp.MSVCR80.dll__mbsrchr]
push eax
push esi
push str._s_s.log
push 0
mov edi, 0x104
lea esi, [esp + 0x4470]
call fcn.00401330
add esp, 0x18
test eax, eax
je 0x401d14
lea ecx, [esp + 0x18]
push ecx
mov edx, esi
push edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
lea esi, [esp + 0x158]
mov edi, edi
test byte [esp + 0x18], 0x10
jne 0x401ca5
test esi, esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
je 0x401c8c
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401c66
sub eax, edx
cmp eax, 0x104
jae 0x401c8c
lea edx, [esp + 0x44]
push edx
push 0x104
push esi
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
push edi
lea ecx, [esp + 0x15c]
call fcn.00401d30
add esp, 4
add edi, 1
add esi, 0x10c
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401cba
cmp edi, 0x40
jb 0x401c40
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 8
ja 0x401ccb
mov edi, 8
lea eax, [edi - 8]
test eax, eax
jbe 0x401d14
lea ebx, [esp + 0x158]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push str._s_s
push 1
mov edi, 0x104
lea esi, [esp + 0x4570]
call fcn.00401330
add esp, 0x10
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add ebx, 0x10c
sub dword [esp + 0x10], 1
jne 0x401cdd
mov ecx, dword [esp + 0x466c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004351a6
mov esp, ebp
pop ebp
ret
Function at 0x401fb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x128
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x120], eax
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x2c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.LogConfig.ini
call fcn.00401720
push eax
push 0x43f39c
push 0x103
lea ecx, [esp + 0x30]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll__snprintf_s]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x18
lea edx, [esp + 0x20]
push edx
xor eax, eax
push 0x10
lea edi, [esi + 0x28]
push edi
push eax
push str.OutputDebugString
push str.Default
mov byte [esp + 0x13b], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
mov byte [esp + 0x37], al
call ebp
lea eax, [esp + 0x20]
push eax
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edi
push str.OutputDebugString
push ebx
call ebp
mov ecx, esi
lea edi, [esp + 0x10]
call fcn.00401f10
lea edx, [esp + 0x20]
push edx
push 0x10
lea edi, [esi + 0x38]
push edi
push 0
push str.WriteToLogFile
push str.Default
call ebp
lea eax, [esp + 0x20]
push eax
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edi
push str.WriteToLogFile
push ebx
call ebp
add esi, 4
mov ecx, esi
lea edi, [esp + 0x10]
call fcn.00401f10
cmp dword [esi], 0
je 0x4020c6
cmp dword [0x44c14c], 0
jne 0x4020c6
call fcn.00401970
push 0x44bde0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004351a6
add esp, 0x128
ret

Function at 0x4020e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x414
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x424]
push ebx
mov ebx, dword [esp + 0x424]
push ebp
mov ebp, dword [esp + 0x420]
test ebp, ebp
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x14], eax
jne 0x402122
cmp dword [esp + 0x42c], ebp
je 0x40216d
push 0x3ff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
push esi
lea esi, [esp + 0x20]
call fcn.004021f0
add esp, 8
test ebp, ebp
mov esi, eax
je 0x40215a
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x42c], 0
je 0x40216d
push esi
call fcn.00402350
add esp, 4
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004351a6
add esp, 0x414
ret
Function at 0x402350
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x40c
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x44b078]
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
mov ebp, dword [esp + 0x418]
je 0x40237f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44b07c]
cmp eax, 0xffffffff
je 0x402446
push esi
push edi
push 2
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
mov esi, eax
jne 0x4023f4
cmp esi, ebx
je 0x4023f4
push 0x3ff
lea edx, [esp + 0x1d]
push ebx
push edx
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
push esi
push str.Set_log_file_pointer_at_end_fail___error_id___d___n
push 0x3ff
lea eax, [esp + 0x30]
push 0x400
push eax
call dword [sym.imp.MSVCR80.dll__snprintf_s]
add esp, 0x20
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x402444
push 0x3ff
lea edx, [esp + 0x1d]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.004022c0
lea eax, [esp + 0x2c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402421
push ebx
sub eax, edx
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [0x44b07c]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov eax, dword [0x44b078]
pop ebp
cmp eax, ebx
pop ebx
je 0x402458
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004351a6
add esp, 0x40c
ret
Function at 0x403020
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push eax
mov dword [ebp + 0x144], eax
push ebx
push str.OnInitRequest__u___u_
lea eax, [ebp + 0xc]
call fcn.00402190
lea esi, [ebp + 0x84]
add esp, 0xc
cmp dword [esi + 8], 0
lea eax, [ebp + 4]
jne 0x403092
cmp dword [esi + 4], 0
jne 0x403092
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xefffffff
push str.CallBackWindow
push 0x44e730
push 0
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp eax, str.udp:__p2pupdate.gamedl.qq.com:8000
lea esi, [ebp + 0x98]
je 0x4030b6
push str.udp:__p2pupdate.gamedl.qq.com:8000
lea ecx, [esi + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov dword [esi + 0x40], 0x3e8
mov edi, dword [sym.imp.MSVCR80.dll_printf]
push ebx
push str.OnInitRequest__d__n
call edi
push 0x43f5c4
call edi
mov ecx, dword [ebp + 0x80]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [ebp + 0x13c], 1
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x1c]
push eax
call edx
mov ecx, dword [esp + 0x1c]
lea edi, [ebp + 8]
call fcn.004108b0
mov ecx, dword [ebp + 0x80]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push ebp
call edx
mov ecx, dword [ebp + 0x80]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test eax, eax
jne 0x403141
push 0xc
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x43f840
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ebx, ebp
call fcn.004042e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x406c60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x438739
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x447724]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x28], 0
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x406ca1
lea eax, [esp + 0x34]
push ebp
push eax
push str.GetTaskInfo__s___p_
mov eax, edi
call fcn.00402190
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [edi + 0x48], 0
mov dword [esp + 0x14], eax
jne 0x406ceb
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x20
lea eax, [esp + 0x18]
lea esi, [edi + 0x54]
push eax
lea ebx, [esp + 0x34]
call fcn.00408030
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [esi + 4]
je 0x406d0b
cmp eax, esi
je 0x406d11
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x1c], ebx
je 0x406cc2
mov ecx, dword [esp + 0x34]
mov esi, 0x10
cmp dword [esp + 0x48], esi
jae 0x406d2a
lea ecx, [esp + 0x34]
mov eax, dword [edi + 0x48]
mov edx, dword [eax]
push ebp
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x406d45
lea eax, [esp + 0x34]
push eax
push str.GetTaskInfo__s__end
mov eax, edi
call fcn.00402190
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, 0x3e8
jbe 0x406d85
cmp dword [esp + 0x48], esi
mov ecx, dword [esp + 0x34]
jae 0x406d74
lea ecx, [esp + 0x34]
push eax
push ecx
push str.GetTaskInfo__s__using_time:__d_ms
mov eax, edi
call fcn.00405e70
add esp, 0xc
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x20

Function at 0x4071c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x18], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407217
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 0xc]
push ecx
push str._sTenioDL_vodcache_
push 1
add esi, 0x14
mov edi, 0x104
call fcn.00401330
mov ecx, dword [esp + 0x11c]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.004351a6
add esp, 0x10c
ret
Function at 0x40a100
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x324
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x129]
push ebx
push eax
mov byte [esp + 0x130], bl
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x31]
push ebx
push ecx
mov byte [esp + 0x38], bl
call sub.MSVCR80.dll_memset
add esp, 0x18
call fcn.00401720
cmp eax, ebx
mov edi, dword [sym.imp.MSVCR80.dll_strcpy_s]
je 0x40a186
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x40a160
sub ecx, esi
cmp ecx, 0x104
jae 0x40a186
push eax
lea edx, [esp + 0x128]
push 0x104
push edx
call edi
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
jne 0x40a1d3
call fcn.00401720
cmp eax, ebx
je 0x40a1d3
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x40a1b0
sub ecx, esi
cmp ecx, 0x104
jae 0x40a1d3
push eax
lea edx, [esp + 0x24]
push 0x104
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x20]
mov ecx, eax
call fcn.0040a550
mov byte [esp + 0xc], bl
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [sym.imp.MSVCR80.dll_tolower]
push eax
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
lea edx, [esp + 0x140]
mov dword [eax + 4], edx
xor edi, edi
mov dword [eax + 8], edi
mov esi, 0x104
lea ecx, [esp + 0x140]
mov dword [eax + 0xc], esi
push ecx
lea eax, [esp + 0x40]
lea edi, [esp + 0x30]
call fcn.0040a700
push 0x103
lea edx, [esp + 0x24d]
push ebx
push edx
mov byte [esp + 0x254], bl
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x150]
push eax
push str.Global_s
mov edi, esi
push 1
lea esi, [esp + 0x260]
call fcn.00401330
add esp, 0x38
mov ecx, esi
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x44e238], eax
je 0x40a29e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40a29e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.004351a6
add esp, 0x324
ret
push 0x43fb80
call dword [sym.imp.MSVCR80.dll_printf]
mov ecx, dword [esp + 0x330]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004351a6
add esp, 0x324
ret

Function at 0x40a2d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call fcn.00435074
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x43f844
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x1c]
push esi
mov dword [ecx], eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
add esp, 0xc
ret
Function at 0x40c7e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
cmp esi, 1
push edi
mov edi, eax
jb 0x40c90a
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00435074
mov ebp, eax
add esp, 4
xor eax, eax
test esi, esi
jbe 0x40c831
lea ecx, [esp + 0x2c]
lea ecx, [ecx]
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [ebp + eax*4], edx
add eax, 1
cmp eax, esi
jb 0x40c820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 1
push edi
push 0
push 0
push 0
push 0
push 0x50000100
push 0x43fffc
push str.msctls_statusbar32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, dword [esp + 0x28]
push 1
push eax
mov dword [ebx + 0x34], eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esi*4]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
mov eax, dword [esp + 0x18]
xor edx, edx
div esi
xor ecx, ecx
test esi, esi
jbe 0x40c8b1
mov dword [edi + ecx*4], eax
add ecx, 1
add eax, eax
cmp ecx, esi
jb 0x40c8a5
mov edx, dword [ebx + 0x34]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push esi
push 0x404
push edx
call ebx
xor edi, edi
test esi, esi
jbe 0x40c8ef
lea ebx, [ebx]
mov eax, dword [ebp + edi*4]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [edx + 0x34]
movzx ecx, di
push ecx
push 0x401
push eax
call ebx
add edi, 1
cmp edi, esi
jb 0x40c8d0
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov esi, dword [esp + 0x30]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4108b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
xor eax, eax
test edi, edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
je 0x410949
push ebx
call fcn.004109e0
test eax, eax
je 0x4108e4
mov edx, dword [edi]
mov eax, dword [edx]
push ebx
mov ecx, edi
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
push edi
push ebx
call fcn.00410a40
test eax, eax
jne 0x4108db
mov eax, dword [esi + 0x44]
cmp eax, 0xffffffff
je 0x410911
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x410911
cmp dword [esp + 4], 0x103
je 0x410947
push edi
push ebx
mov dword [esi + 0x44], 0xffffffff
call fcn.00410cb0
push 0
push 0
push esi
push 0x410e70
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
xor edx, edx
add esp, 0x18
cmp eax, 0xffffffff
setne dl
mov dword [esi + 0x44], eax
mov eax, edx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4182f0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xa8]
test al, 2
je 0x418303
xor eax, eax
pop esi
ret 8
test al, 4
jne 0x4182fd
test al, 1
jne 0x4182fd
push ebx
push edi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, dword [esp + 0x10]
mov dword [esi + 0x58], eax
xor ebx, ebx
call fcn.00418690
cmp eax, 0xffffffff
mov dword [esi + 0x50], eax
je 0x41837e
or dword [esi + 0xa8], 4
lea eax, [esi + 0x74]
push eax
push ebx
push esi
push 0x417ca0
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x54], eax
je 0x41836e
test eax, eax
je 0x41836e
or dword [esi + 0xa8], 1
mov ebx, 1
pop edi
mov eax, ebx
pop ebx
pop esi
ret 8
push str._beginthreadex_ReceiveThread_Error
lea eax, [esi + 4]
call fcn.004021c0
add esp, 4
pop edi
mov eax, ebx
pop ebx
pop esi
ret 8

Function at 0x418410
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xa8]
test al, 1
je 0x418423
xor eax, eax
pop esi
ret 0xc
test al, 2
jne 0x41841d
test al, 4
jne 0x41841d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call edi
mov dword [esi + 0x58], eax
xor eax, eax
push eax
mov dword [esi + 0xac], eax
push eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
push 1
mov dword [esi + 0xb8], eax
push eax
mov dword [esi + 0xbc], eax
call edi
mov ecx, dword [esp + 0xc]
push 0
push 0xea60
push 0x100000
push 0x100000
mov dword [esi + 0xbc], eax
mov eax, dword [esp + 0x20]
push eax
push 6
push 0x40000003
push ecx
mov dword [esi + 0xc0], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [esi + 0x50], eax
pop edi
je 0x4184ae
or dword [esi + 0xa8], 2
mov eax, 1
pop esi
ret 0xc
Function at 0x4184f0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, str.CPipeSys
lea esi, [esp + 0x18]
mov dword [esp + 0xc], eax
call fcn.00401eb0
mov ecx, dword [ebx + 0xbc]
xor edi, edi
cmp dword [ebx + 0xc0], edi
mov dword [esp + 0x10], ecx
jne 0x418574
mov edx, dword [esp + 0xc]
lea esi, [ebx + 0xac]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41856a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x418560
cmp eax, 0x3e5
jne 0x41856c
mov edi, 1
jmp 0x41856c
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
mov dword [ebx + 0xc0], edi
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
push 1
push ecx
push edx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
ja 0x418625
je 0x41859a
cmp eax, edi
je 0x4185b2
mov eax, 5
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004351a6
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 0xc0], edi
je 0x4185dc
mov edx, dword [esp + 0xc]
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 0xac]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x418600
mov dword [ebx + 0xc0], edi
xor esi, esi
mov eax, dword [ebx + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004351a6
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HelperListenPipe_error__code___d
lea eax, [esp + 0x20]
call fcn.004021c0
add esp, 8
mov esi, 5
mov dword [ebx + 0xc0], edi
jmp 0x4185de
cmp eax, 0x102
jne 0x41859a
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 4
call fcn.004351a6
mov esp, ebp
pop ebp
ret 8