joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f81c
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x1002753c
call fcn.10015ab5
mov ebx, ecx
mov eax, dword [ebx]
xor esi, esi
xor edi, edi
call dword [eax + 0x18]
cmp eax, esi
jne 0x1000f8a0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x44], esi
je 0x1000f8e0
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.10002c29
test al, al
je 0x1000f8b8
push 0xb
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x18], ax
mov eax, dword [ebx + 0x44]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
push 1
movsd dword es:[edi], dword [esi]
push str.Close
push eax
movsd dword es:[edi], dword [esi]
push 0
push 1
push ebx
mov byte [ebp - 4], 1
movsd dword es:[edi], dword [esi]
call fcn.10002c29
mov edi, eax
add esp, 0x28
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor esi, esi
jmp 0x1000f8d0
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x1000f83a
push 0x8007000e
call fcn.10002c29
mov eax, dword [ebx + 0x44]
push esi
push str.Close
push eax
push esi
push 1
push ebx
call fcn.10002c29
add esp, 0x18
mov edi, eax
mov eax, dword [ebx + 0x44]
cmp eax, esi
je 0x1000f8e0
mov dword [ebx + 0x44], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebx + 0x24], esi
je 0x1000f8ff
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.10002c29
test al, al
je 0x1000f8ff
push dword [ebx + 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.10015b8d
ret
Function at 0x1000f910
Capabilities:
Terminate process

Disassembly:
push 0x820
mov eax, 0x10027562
call fcn.10015b1e
xor edi, edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x814], edi
cmp dword [esi + 0x40], edi
je 0x1000fa39
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esi + 0x40]
push edi
push str.Caption
push eax
lea eax, [ebp - 0x82c]
push eax
push 2
push esi
mov dword [ebp - 4], edi
call fcn.10002c29
add esp, 0x18
test eax, eax
jne 0x1000f99f
push dword [ebp - 0x824]
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.10002c29
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x814], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x818]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ebx, eax
cmp ebx, edi
jl 0x1000f9d3
cmp dword [ebp - 0x818], edi
jne 0x1000f9d3
mov eax, dword [esi + 0x40]
push edi
push str.Quit
push eax
push edi
push 1
push esi
call fcn.10002c29
add esp, 0x18
mov ebx, eax
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x1000f9e3
mov dword [esi + 0x40], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x814], edi
je 0x1000fa39
cmp dword [ebp - 0x818], edi
jne 0x1000fa39
cmp ebx, edi
jge 0x1000fa39
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x814]
mov dword [ebp - 0x81c], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x81c]
push 1
push 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, ebx
call fcn.10015ba1
ret
Function at 0x100102b6
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x214
mov eax, 0x1002769c
call fcn.10015b1e
mov ebx, dword [ebp + 8]
cmp dword [ebx + 8], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
je 0x100102e1
mov eax, reloc.OLEAUT32.dll_VariantCopyInd
jmp 0x10010485
lea ecx, [ebx - 0xc]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x100102fa
mov eax, 0x80004005
jmp 0x10010485
mov eax, dword [ebp + 0x10]
mov edx, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
and edx, ecx
cmp edx, ecx
sete cl
mov byte [esi + 0x31], cl
mov edx, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocStringLen
and edx, ecx
cmp edx, ecx
mov edx, dword [ebx + 0x14]
sete cl
mov byte [edx + 0x32], cl
mov ecx, reloc.OLEAUT32.dll_VariantClear
and eax, ecx
cmp eax, ecx
mov ecx, dword [ebx + 0x14]
sete al
mov byte [ecx + 0x33], al
mov ecx, dword [ebx + 0x14]
push edi
add ecx, 0x28
call fcn.10002c29
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x18]
xor esi, esi
cmp eax, esi
jne 0x10010424
mov dword [ebp - 0x21c], esi
push str.Excel.Application
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], esi
call fcn.10002c29
test al, al
je 0x10010462
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.10015d40
push 0x5c
push edi
call fcn.10002c29
add esp, 0x14
cmp eax, esi
jne 0x100103ab
push 0x2f
push edi
call fcn.10002c29
pop ecx
pop ecx
cmp eax, esi
je 0x100103d3
add eax, 2
push 0x2e
push eax
call fcn.10002c29
push 0x104
mov edi, eax
lea esi, [ebp - 0x218]
call fcn.10002c29
mov edi, dword [ebp - 0x220]
add esp, 0xc
xor esi, esi
cmp word [ebp - 0x218], si
je 0x10010451
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10002c29
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
add ecx, 0x24
test eax, eax
jne 0x10010443
lea eax, [ebp - 0x218]
push eax
call fcn.10002c29
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x10010449
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x21c], eax
cmp eax, esi
jne 0x10010358
push 0x8007000e
call fcn.10002c29
push edi
call fcn.10002c29
mov eax, dword [ebx + 0x14]
add eax, 0x24
jmp 0x1001046e
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x100102f0
mov ecx, dword [ebx + 0x14]
push edi
add ecx, 0x24
call fcn.10002c29
push eax
lea ecx, [ebx + 0x10]
call fcn.10002c29
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
call fcn.10015ba1
ret 0xc
Function at 0x1001212a
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x10027950
call fcn.10015b1e
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x10012149
xor eax, eax
jmp 0x1001221e
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x1001221c
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.kernel32.dll_Process32FirstW
jmp 0x100121f2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.100120e9
and dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x244]
call fcn.100120e9
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.10011f97
lea ecx, [ebp - 0x244]
call fcn.10011f97
push dword [ebp - 0x240]
lea ecx, [ebp - 0x244]
call fcn.10002c29
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
test eax, eax
je 0x100121fc
call fcn.10011b75
mov ecx, dword [ebp - 0x240]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10011b75
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10012174
jmp 0x10012215
mov edi, dword [ebp - 0x234]
call fcn.10011b75
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.10011b75
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10015ba1
ret

Function at 0x10013c76
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10039078], 0
push esi
push edi
jne 0x10013bec
call fcn.10013b58
test eax, eax
je 0x10013c31
mov eax, dword [0x10039078]
cmp eax, 1
jne 0x10013c0d
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10013c31
jmp 0x10013c73
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10013c73
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10013c35
xor eax, eax
jmp 0x10013c73
mov eax, dword [esi]
push dword [0x10039078]
call edi
mov edi, eax
test edi, edi
je 0x10013c57
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x10013c73
lea edi, [esi + 0xff0]
push esi
push dword [0x10039078]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10013c5d
mov eax, esi
pop edi
pop esi
ret
jmp 0x10013bd8

Function at 0x100155f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10037a70]
jne 0x10015600
repz ret
jmp fcn.10017fba
Function at 0x410c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x410c7f
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x410c83
xor al, al
jmp 0x410c85
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x411070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425880
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp - 0x7c]
add eax, 0x20
push eax
lea ecx, [ebp - 0x14]
call fcn.004104e0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x7c]
sub eax, dword [ecx]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0x4e20
jb 0x4110d9
mov ecx, dword [ebp - 0x7c]
call fcn.004114a0
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 4], 0
je 0x411214
lea eax, [ebp - 0x78]
push eax
call fcn.00410ac0
add esp, 4
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.00410aa0
add esp, 8
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x84], 0
jne 0x4111d2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx ecx, word [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x58]
add eax, 1
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x76c
push ecx
push str.__04d__02d__02d__02d:_02d:_02d:_03d__PID__d__TID__d___s_r_n
lea edx, [ebp - 0x44]
push edx
call fcn.00410eb0
add esp, 0x30
mov byte [ebp - 4], 1
push 0
push 0xfde9
lea ecx, [ebp - 0x44]
call fcn.00404280
push eax
lea ecx, [ebp - 0x44]
call fcn.00411f10
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00410c90
add esp, 0x14
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404280
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404500
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x38], 1
lea ecx, [ebp - 0x2c]
call fcn.00404690
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00412120
jmp 0x4111f4
mov ecx, dword [ebp - 0x84]
push ecx
push str.log_failed_for_get_loacl_time_error_:_d
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
push eax
call fcn.00410580
add esp, 0xc
mov dword [ebp - 0x80], 0xffffffff
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410510
mov eax, dword [ebp - 0x8c]
jmp 0x411233
mov dword [ebp - 0x90], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410510
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423460
mov esp, ebp
pop ebp
ret 4
Function at 0x411250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4258c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
add eax, 0x20
push eax
lea ecx, [ebp - 0x14]
call fcn.004104e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 4], 0
je 0x4112b5
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410510
mov al, byte [ebp - 0x31]
jmp 0x4113db
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00410ae0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00411f10
push eax
call fcn.00410c60
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x41131d
lea ecx, [ebp - 0x2c]
call fcn.00411f10
push eax
call fcn.00410c40
add esp, 4
test eax, eax
je 0x41131d
mov byte [ebp - 0x32], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00412120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410510
mov al, byte [ebp - 0x32]
jmp 0x4113db
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30]
add ecx, 8
call fcn.00412100
push 0x428958
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0
jne 0x411371
mov byte [ebp - 0x33], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00412120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410510
mov al, byte [ebp - 0x33]
jmp 0x4113db
push 2
push 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
call fcn.004114a0
mov byte [ebp - 0x34], al
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0x411540
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebp - 0x34]
mov byte [ebp - 0x35], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00412120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410510
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423460
mov esp, ebp
pop ebp
ret 4
Function at 0x416340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4309a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x430940], 0
je 0x416373
push 0x4309a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x4163ed
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x430938], eax
mov eax, dword [ebp + 8]
mov dword [0x43093c], eax
mov dword [0x430940], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx], 0xc00000fd
jne 0x4163cf
lea eax, [ebp - 8]
push eax
push 0
push 0
push fcn.00416320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4163d6
push 0
call fcn.00416320
mov dword [0x430940], 0
push 0x4309a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423460
mov esp, ebp
pop ebp
ret 4
Function at 0x41a320
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425e16
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x41a389
xor al, al
jmp 0x41a4e0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004122e0
mov dword [ebp - 4], 0
mov edx, dword [0x429e98]
push edx
push 0x428c44
lea ecx, [ebp - 0x230]
call fcn.00411ec0
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
cmp eax, dword [0x429e98]
jne 0x41a3fe
mov byte [ebp - 0x249], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00412120
mov al, byte [ebp - 0x249]
jmp 0x41a4e0
mov ecx, dword [ebp - 0x250]
push ecx
push 0
lea edx, [ebp - 0x270]
push edx
lea ecx, [ebp - 0x230]
call fcn.0041bd40
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x230]
call fcn.00412170
lea ecx, [ebp - 0x270]
call fcn.00412120
lea ecx, [ebp - 0x230]
call fcn.00411f10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x248]
call fcn.0041bd90
mov byte [ebp - 4], 1
push 0x428c48
lea ecx, [ebp - 0x248]
call fcn.004120d0
lea ecx, [ebp - 0x248]
call fcn.00411f10
push eax
push 0
push 0x428c64
push 0x428c6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x41a4a3
mov dword [ebp - 0x254], 1
jmp 0x41a4ad
mov dword [ebp - 0x254], 0
mov dl, byte [ebp - 0x254]
mov byte [ebp - 0x24a], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00412120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00412120
mov al, byte [ebp - 0x24a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423460
mov esp, ebp
pop ebp
ret

Function at 0x41a540
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x41a551
jmp 0x41a56b
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x41a830
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x41a570
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425e61
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x43000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x41a5aa
xor al, al
jmp 0x41a73a
mov byte [ebp - 0xe], 0
mov ecx, 1
test ecx, ecx
je 0x41a737
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x41a5d3
mov byte [ebp - 0xd], 1
jmp 0x41a5d7
mov byte [ebp - 0xd], 0
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xf], cl
movzx edx, byte [ebp - 0xf]
test edx, edx
je 0x41a63f
push 0x3e
push 0x428c74
push 0x428c90
push 0
lea ecx, [ebp - 0x118]
call fcn.00411a10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
push str.ConnectNamedPipe_pipe_connected__handle:
mov ecx, dword [ebp - 0x20]
call fcn.00411e70
mov ecx, eax
call fcn.0041bf20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.00411b00
jmp 0x41a737
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0xd]
test ecx, ecx
je 0x41a6a4
push 0x43
push 0x428cf4
push 0x428d10
push 0
lea ecx, [ebp - 0x200]
call fcn.00411a10
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
push str.stopConnecting__handle:
mov ecx, dword [ebp - 0x28]
call fcn.00411e70
mov ecx, eax
call fcn.0041bf20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x200]
call fcn.00411b00
jmp 0x41a737
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x217
je 0x41a6bf
cmp dword [ebp - 0x18], 0xe8
jne 0x41a71a
push 0x4a
push str.PipeConnect::waitConnecting
push 0x428d6c
push 0
lea ecx, [ebp - 0x2e8]
call fcn.00411a10
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
push str.pipe_connect_suc_or_closing__will_go_to_read_pipe_data__handle:
mov ecx, dword [ebp - 0x30]
call fcn.00411e70
mov ecx, eax
call fcn.0041bf20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e8]
call fcn.00411b00
mov byte [ebp - 0xe], 1
jmp 0x41a737
cmp dword [ebp - 0x18], 0x218
jne 0x41a730
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41a5ae
jmp 0x41a737
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41c800
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4261bb
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x40], 0
push 1
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0x1000
push 0x1000
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
mov dword [ebp - 0x3c], 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0x19000
push 0
push 0xff
push 1
push 1
mov edx, dword [str..pipeyyldrsvr_4dba87eeac28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x41c919
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push 0x69
push str.PipeSvr::createNewConnect
push str.pipesvr.cpp
push 0
lea ecx, [ebp - 0x13c]
call fcn.00411a10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
push ecx
push str.CreateNamedPipe_failed__errorCode:
mov ecx, dword [ebp - 0x4c]
call fcn.00411e70
mov ecx, eax
call fcn.0041bf40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00411b00
push 0
mov ecx, dword [ebp + 8]
call fcn.0041d3d0
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
jmp 0x41c95d
push 8
lea ecx, [ebp - 0x18]
call fcn.004020d0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0041d880
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041d330
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0x18]
call fcn.0041d2b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423460
mov esp, ebp
pop ebp
ret 4