joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d4da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi + 0x10], eax
cmp dword [eax], ebx
je 0x45d50d
push ebx
push ebx
push ebx
push ebx
lea esi, [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
call fcn.0040b7a8
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x45d734
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], esi
cmp dword [eax], ebx
je 0x45d561
call fcn.0045d59d
mov ebx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 0xc], edx
call fcn.0044fe1c
add esi, eax
adc dword [ebp - 0xc], edx
mov eax, dword [edi + 0x10]
push dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push esi
call dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
xor ebx, ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x45d58b
mov edi, dword [ebp - 4]
cmp esi, ebx
je 0x45d587
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x45d598
cmp esi, ebx
je 0x45d596
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45d7cd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [ebx + 0x28]
push esi
push edi
push dword [eax]
lea esi, [ebx + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call fcn.0045d95c
mov dword [esp], 0x414
push dword [esi]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x170
push eax
call edi
push esi
call fcn.00409ff8
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x412
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
jle 0x45d8cd
push dword [esp + 0xc]
mov ecx, dword [ebx + 0x24]
call fcn.0044e9d7
movzx eax, word [eax]
push 0
push 0x4b2624
push 2
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [esp + 0x18]
call fcn.004361db
push esi
lea esi, [esp + 0x18]
call fcn.0040794e
push eax
push 2
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [esp + 0x14]
push 0
push 0x143
push dword [esp + 0x1c]
call edi
push dword [esp + 0x1c]
push eax
push 0x151
push dword [esp + 0x1c]
call edi
mov ecx, esi
call fcn.00403833
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x18]
jl 0x45d847
xor esi, esi
cmp dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jle 0x45d8fa
push 0
push esi
push 0x150
push dword [esp + 0x1c]
call edi
movzx ecx, word [ebx + 0x2c]
cmp ecx, eax
jne 0x45d8f3
mov dword [esp + 0x1c], esi
inc esi
cmp esi, dword [esp + 0x18]
jl 0x45d8d9
push 0
push dword [esp + 0x20]
push 0x14e
push dword [esp + 0x1c]
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45e638
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x384
mov eax, dword [0x4d7488]
xor eax, ebp
mov dword [ebp + 0x300], eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xc], 1
jne 0x45e703
push 0x4bc3e4
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x45e68b
xor eax, eax
jmp 0x45e766
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00483240
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xf8]
push eax
push 0x104
push edi
push str.mstask.exe
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x45e6cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45e766
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x210
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x45e6c2
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x45e684
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x45e6c2
push ebx
push 0x14
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
je 0x45e758
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45e755
cmp dword [ebp - 0x38], 4
je 0x45e760
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x45e760
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45e765
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.0048297b
add ebp, 0x304
leave
ret
Function at 0x45ecd9
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push esi
call fcn.00449df0
test eax, eax
je 0x45ed76
lea eax, [esp + 8]
push eax
xor esi, esi
push 0x28
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45ed26
cmp dword [esp + 8], esi
je 0x45ed22
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45ed8d
lea eax, [esp + 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45ed12
cmp dword [esp + 8], esi
je 0x45ed7b
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45ed7b
call fcn.0045ed92
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45ed92
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4d7488]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.CreateToolhelp32Snapshot
push ebx
call esi
test eax, eax
je 0x45eeb5
push 0
push 2
call eax
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
jne 0x45ede8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45eeb5
lea eax, [ebp - 0x23c]
push 0x4da8cc
push eax
call fcn.00453736
pop ecx
pop ecx
push str.Process32FirstW
push ebx
call esi
push str.Process32NextW
push ebx
mov edi, eax
call esi
push 0x228
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00483240
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x244]
mov dword [ebp - 0x238], 0x22c
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45ee95
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0044f1ed
test eax, eax
jne 0x45ee82
push dword [ebp - 0x230]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x45ee82
push esi
call edi
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x244]
call dword [ebp - 0x248]
test eax, eax
jne 0x45ee4a
lea ecx, [ebp - 0x23c]
call fcn.00403833
cmp dword [ebp - 0x244], 0
je 0x45eeb5
push dword [ebp - 0x244]
call edi
test ebx, ebx
je 0x45eec0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048297b
leave
ret
Function at 0x462b87
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.004038ab
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x80]
mov ecx, dword [eax]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
add ecx, 4
call fcn.0044f213
add eax, 0x1c
push eax
lea eax, [ebp - 8]
push eax
call fcn.00418dc7
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x462ca0
push dword [edi + 0x84]
lea eax, [ebp - 4]
push eax
call fcn.00418dc7
lea eax, [ebp - 4]
call fcn.00442ef0
mov eax, dword [ebx + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0043164c
lea eax, [ebp - 4]
call fcn.00442ef0
lea eax, [ebp - 0x10]
push eax
call fcn.0045e858
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0043164c
lea ecx, [ebp - 0x10]
call fcn.00403833
xor bl, bl
mov esi, edi
call fcn.00462d4e
push 0x8a
lea esi, [ebp - 0xc]
call fcn.0045b2d1
pop ecx
push dword [ebp - 0xc]
push 2
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.00424ce5
push 0
lea esi, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00448d20
mov bl, al
pop ecx
test bl, bl
jne 0x462c8c
lea esi, [ebp - 4]
call fcn.0040794e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
call fcn.00431363
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.004313ba
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.00403833
lea ecx, [ebp - 0xc]
call fcn.00403833
lea ecx, [ebp - 4]
call fcn.00403833
test bl, bl
je 0x462cc8
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.004256af
mov ecx, dword [edi + 0x80]
mov ecx, dword [ecx]
add ecx, 4
call fcn.0044f213
mov byte [eax + 0x5c], 1
mov byte [ebp + 0xf], 1
jmp 0x462d22
inc dword [edi + 0x17c]
lea eax, [ebp - 4]
push eax
call fcn.004038ab
push 0x8b
lea esi, [ebp - 0x10]
call fcn.0045b2d1
pop ecx
lea edi, [ebp - 4]
call fcn.00407ece
mov ecx, esi
call fcn.00403833
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push 2
push dword [eax + 0xf4]
push dword [ebp + 0xc]
call fcn.00424ce5
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov dword [eax + 0xc], 1
mov byte [ebp + 0xf], 0
call fcn.00403833
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x462d34
mov bl, 1
mov esi, edi
call fcn.00462d4e
lea ecx, [ebp - 8]
call fcn.00403833
lea ecx, [ebp - 0x14]
call fcn.00403833
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x46527f
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x74]
call fcn.00457325
mov eax, dword [edi + 0x74]
xor esi, esi
push esi
push 0x3025
call fcn.004573be
mov eax, dword [edi + 0x74]
push esi
push 0x3023
call fcn.004573be
mov eax, dword [edi + 0x74]
push esi
push 0x3024
call fcn.004573be
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push dword [edi + 4]
call ebx
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x7f04
push edi
call fcn.00464c8b
push edi
call fcn.00464a4b
mov dword [edi + 0x88], esi
push 0
lea esi, [edi + 0x80]
push dword [esi]
call fcn.00456988
test eax, eax
jne 0x464a14
mov esi, dword [esi]
add esi, 0x28
add edi, 0x7c
mov byte [esi + 0x15], al
mov byte [esi + 0x14], al
mov dword [esi + 0xc], edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x18], eax
lea eax, [esp + 0xc]
push eax
xor eax, eax
push eax
push esi
push 0x45eb33
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x464a44
mov eax, dword [edi + 0x74]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov byte [eax + 0x85], 1
push dword [edi + 4]
call esi
push 2
push eax
call ebx
push dword [edi + 4]
mov ebx, eax
call esi
push ebx
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x465268
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x465268
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd1]
xor eax, eax
cmp ecx, 9
ja case.0x465278.204
jmp dword [ecx*4 + 0x46529f]
mov eax, edi
pop esi
jmp 0x464965
mov eax, 0xca
pop esi
ret
mov ecx, dword [edi + 0x74]
mov byte [ecx + 0x85], al
pop esi
ret
mov dword [ebx], eax
pop esi
ret

Function at 0x4655f3
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x465609
xor al, al
jmp 0x465676
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x46563e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x465642
xor al, al
jmp 0x465674
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.00484b10
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
push ebx
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x46cbbd
Capabilities:
Write file on windows

Disassembly:
push 0x174
mov eax, 0x4a1050
call fcn.00486fc7
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 4], ebx
cmp byte [0x4de3c0], bl
jne 0x46cc17
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46cc52
cmp dword [ebp - 0x138], 2
mov byte [0x4de3c0], 1
sete byte [0x4d93d0]
cmp byte [0x4d93d0], bl
je 0x46cc52
cmp dword [edi + 0x18], 8
jb 0x46cc2a
mov edi, dword [edi + 4]
jmp 0x46cc2d
add edi, 4
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea esi, [ebp - 0x158]
call fcn.0040b7a8
jmp 0x46ccc3
lea eax, [ebp - 0x160]
push eax
mov eax, edi
call fcn.0042fd2e
mov esi, eax
lea eax, [ebp - 0x180]
push eax
mov eax, edi
call fcn.0042fd0e
push dword [esi + 4]
push dword [esi]
lea esi, [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
call fcn.0042f936
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x46cc92
lea eax, [ebp - 0x28]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
lea esi, [ebp - 0x158]
call fcn.0040b7a8
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401bed
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordGetStringW
push ecx
mov edi, eax
mov dword [ebp - 0x15c], esp
lea eax, [ebp - 0x178]
mov dword [ebp - 0x15c], esp
push eax
xor esi, esi
call fcn.00441380
mov byte [ebp - 4], 2
lea eax, [ebp - 0x149]
push eax
lea eax, [ebp - 0x178]
push eax
mov byte [ebp - 0x149], bl
call fcn.0046e6ad
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x150], 0xc800
jne 0x46cd29
call fcn.00482bb3
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x16c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordSetStringA
test eax, eax
jne 0x46cd86
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
jne 0x46cd58
call fcn.00482bb3
push ebx
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
push dword [ebp - 0x16c]
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [ebp - 0x150]
cmp dword [ebp - 0x150], ebx
jne 0x46cd0c
cmp edi, esi
sete byte [ebp - 0x149]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x178]
push eax
call fcn.00440610
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x158], ebx
je 0x46cdbc
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x158], ebx
mov al, byte [ebp - 0x149]
call fcn.0048704a
ret
Function at 0x470b35
Capabilities:
Create pipe

Disassembly:
push 0x20
mov eax, 0x49ec6f
call fcn.00486fc7
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
jne 0x470bd5
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x1d], cl
push eax
lea ecx, [esi + 0x20]
mov byte [esi + 0x1c], 1
call fcn.00403dd9
lea edi, [ebp - 0x2c]
mov ecx, esi
call fcn.00470f54
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x470ba5
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x470b80
lea ecx, [ebp - 0x28]
push ebx
push 0x1388
mov eax, 0x400
push eax
push eax
push 0xff
push 6
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp byte [esi + 0x1d], bl
jne 0x470bc6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x470bb1
lea eax, [ebp - 0x28]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3c], eax
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403ecf
mov al, 1
call fcn.0048704a
ret 4

Function at 0x470d52
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x3c
mov eax, 0x49d911
call fcn.00486fc7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
cmp byte [ebp + 0x10], bl
jne 0x470d98
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x470d85
inc esi
jmp 0x470d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0x217
neg esi
sbb esi, esi
inc esi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00403eb1
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp esi, ebx
jne 0x470dc4
cmp byte [ebp + 0x10], bl
jne 0x470dc4
mov ecx, dword [ebp - 0x30]
call fcn.00405288
jmp 0x470e51
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x40]
push ebx
lea ecx, [ebp - 0x48]
push ecx
push 0x400
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x44], eax
cmp eax, ebx
jne 0x470df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x470e31
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x34], eax
mov ecx, dword [edi + 0x40]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
mov esi, dword [edi + 0x40]
push esi
call fcn.00482f7b
pop ecx
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.004034fb
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x40], ebx
ja 0x470dca
cmp dword [ebp - 0x44], ebx
je 0x470e49
cmp dword [ebp - 0x34], ebx
je 0x470e49
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040529d
jmp 0x470e51
mov ecx, dword [ebp - 0x30]
call fcn.00405288
xor eax, eax
inc eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], bl
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403ecf
mov eax, dword [ebp - 0x30]
call fcn.0048704a
ret 0xc
Function at 0x470e6f
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x49ecd8
call fcn.00486f5e
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x470e94
mov ecx, dword [ebp + 8]
push ebx
call fcn.00403b1e
jmp 0x470ed3
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x470ea2
mov eax, dword [eax + 4]
jmp 0x470ea5
add eax, 4
push ebx
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x470ec6
mov ecx, dword [ebp + 8]
push ebx
call fcn.00403b1e
jmp 0x470ed3
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00470d52
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.00487036
ret 0xc

Function at 0x470ee8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x470ef7
mov eax, dword [eax + 4]
jmp 0x470efa
add eax, 4
push 0
lea edx, [esp + 4]
push edx
add ecx, ecx
push ecx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret

Function at 0x4734e6
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x4a36ab
call fcn.00486fc7
mov eax, dword [ebp + 8]
lea esi, [eax + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0043f7f0
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x473567
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x473516
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x473584
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.00440500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0043f7f0
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403dd9
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
call fcn.0040c1a7
mov byte [ebp - 4], bl
lea eax, [ebp - 0x64]
push eax
call fcn.00473181
cmp dword [ebp - 0x18], ebx
jne 0x47350a
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c1a7
cmp dword [esi + 0x18], 8
jb 0x473595
mov esi, dword [esi + 4]
jmp 0x473598
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c1a7
mov al, 1
jmp 0x4735a5
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
neg eax
sbb eax, eax
neg eax
call fcn.0048704a
ret 4