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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b6078]
mov ebp, dword [esp + 0x1c]
xor edi, edi
xor eax, esp
mov dword [esp + 4], eax
push edi
push 0x1028
push 1
call fcn.00410b8c
add esp, 0xc
mov dword [eax], edi
mov dword [eax + 4], ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov esi, eax
lea ebx, [eax + 4]
push edi
push edi
push edi
push edi
call ebp
mov dword [esi + 8], eax
push edi
push edi
push edi
push edi
call ebp
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1024], eax
mov eax, dword [esp + 0x24]
mov byte [esi + 0x12], 0
mov word [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [0x4b9328]
test eax, eax
jne 0x465ca7
push 0x420921
call fcn.00454bc0
add esp, 4
mov dword [0x4b9328], eax
push esi
push eax
call fcn.00454c6d
add esp, 8
mov eax, esp
push eax
push edi
push ebx
push 0x465cdc
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov byte [esi + 0x13], 1
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046fa9a
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x465e1a
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b6078]
mov ebp, dword [esp + 0x1c]
xor edi, edi
xor eax, esp
xor ebx, ebx
inc ebx
mov dword [esp + 4], eax
push edi
push 0x1028
push ebx
call fcn.00410b8c
add esp, 0xc
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov esi, eax
lea ebx, [eax + 4]
push edi
push edi
push edi
push edi
call ebp
mov dword [esi + 8], eax
push edi
push edi
push edi
push edi
call ebp
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
lea eax, [esi + 0x2c]
push eax
call fcn.0045672f
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [0x4b9328]
test eax, eax
jne 0x465ea8
push 0x420921
call fcn.00454bc0
add esp, 4
mov dword [0x4b9328], eax
push esi
push eax
call fcn.00454c6d
add esp, 8
mov eax, esp
push eax
push edi
push ebx
push 0x465ed9
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046fa9a
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4664a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
cmp byte [0x4b9334], 0
jne 0x46659d
mov byte [0x4b9334], 1
push str.hhctrl.ocx
call fcn.004675ca
add esp, 4
mov esi, eax
test eax, eax
je 0x4664fd
push str.HtmlHelpA
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x4b9338], eax
je 0x466507
cmp byte [0x4b9349], 0
jne 0x466564
mov al, 1
cmp byte [0x4b932c], al
mov byte [0x4b9349], al
jne 0x466513
mov eax, dword [0x4b9330]
jmp 0x46652e
mov dword [0x4b9338], 0
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x46659d
mov eax, 0x7d0
mov byte [0x4b932c], 1
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [0x4b9330], eax
test eax, eax
je 0x466564
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
test eax, eax
mov dword [0x4b934c], eax
je 0x466564
push dword [0x4b9330]
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x466564
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [0x4b9344], eax
jmp 0x466569
mov eax, dword [0x4b9344]
test eax, eax
jne 0x46659d
xor esi, esi
push 0
push dword [esi*4 + 0x498b08]
push 0x80000002
call fcn.00467b2a
add esp, 0xc
test eax, eax
jne 0x466591
inc esi
cmp esi, 1
jbe 0x46656f
jmp 0x46659d
mov dword [0x4b933c], eax
mov byte [0x4b9340], 0
pop esi
ret

Function at 0x46659f
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4b933c]
test eax, eax
je 0x4665d1
cmp byte [0x4b9340], 1
jne 0x4665d3
xor eax, eax
push eax
push 0x12
push eax
push eax
call dword [0x4b9338]
push dword [0x4b933c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [0x4b933c]
jmp 0x4665d3
xor eax, eax
push eax
call fcn.00410c0e
add esp, 4
mov dword [0x4b933c], 0
mov byte [0x4b9340], 0
ret
Function at 0x4665fd
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
mov eax, dword [0x4b6078]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [0x4b933c]
test eax, eax
jne 0x466760
mov ecx, dword [0x4b9344]
test ecx, ecx
je 0x466760
cmp byte [0x4b9350], 0
jne 0x466751
lea esi, [esp + 0xa]
mov byte [0x4b9350], 1
push esi
push 0x106
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x466751
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov edi, eax
xor ebx, ebx
push ebx
push ebx
push eax
push esi
push str._sputty__lu__llu.chm
call fcn.004560a0
add esp, 0x14
mov esi, eax
xor eax, eax
inc eax
push ebx
push 0x80
push eax
push ebx
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
jne 0x4666f7
mov dword [esp], edi
xor ebp, ebp
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.00410c0e
add esp, 4
cmp ebx, 0x50
jne 0x46675b
xor esi, esi
mov ebx, 0
inc esi
add ebp, esi
adc edi, ebx
push edi
push ebp
push dword [esp + 8]
lea eax, [esp + 0x16]
push eax
push str._sputty__lu__llu.chm
call fcn.004560a0
add esp, 0x14
push ebx
push 0x80
push esi
push ebx
push esi
mov esi, eax
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
je 0x46669d
mov ebx, eax
mov eax, dword [0x4b934c]
test eax, eax
je 0x46673d
mov edi, dword [0x4b9344]
xor ebp, ebp
xor edx, edx
sub eax, ebp
lea ecx, [edi + ebp]
mov dword [esp + 4], edx
push edx
lea edx, [esp + 8]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4667ca
mov eax, dword [esp + 4]
lea ebp, [ebp + eax + 1]
mov eax, dword [0x4b934c]
cmp eax, ebp
ja 0x46670a
mov dword [0x4b933c], esi
mov byte [0x4b9340], 1
xor esi, esi
jmp 0x4667d1
push 0
call fcn.00410c0e
add esp, 4
mov eax, dword [0x4b933c]
test eax, eax
je 0x4667b1
mov ecx, dword [esp + 0x12c]
mov edi, dword [esp + 0x128]
test ecx, ecx
je 0x46679e
push ecx
push eax
push str._s::__s.html_main
call fcn.004560a0
add esp, 0xc
mov esi, eax
xor eax, eax
push eax
push eax
push esi
push edi
call dword [0x4b9338]
push esi
call fcn.00410c0e
add esp, 4
jmp 0x4667aa
xor ecx, ecx
push ecx
push ecx
push eax
push edi
call dword [0x4b9338]
mov byte [0x4b9348], 1
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0046fa9a
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call fcn.00410c0e
add esp, 4
cmp ebx, 0xffffffff
je 0x46675b
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x46675b
Function at 0x4674bf
Capabilities:
Get session user name

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4b6078]
xor eax, esp
mov dword [esp + 4], eax
cmp byte [0x4b9b6c], 0
je 0x4674e1
mov ecx, dword [0x4b9b68]
jmp 0x467520
push str.secur32.dll
call fcn.004675ca
add esp, 4
mov esi, eax
push str.sspicli.dll
call fcn.004675ca
add esp, 4
test esi, esi
je 0x467511
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
jmp 0x467513
xor ecx, ecx
mov dword [0x4b9b68], ecx
mov byte [0x4b9b6c], 1
test ecx, ecx
je 0x46756d
xor esi, esi
mov edi, esp
mov ebx, 8
mov dword [edi], esi
push edi
push esi
push ebx
call ecx
push esi
push 1
push dword [edi]
call fcn.00410b8c
add esp, 0xc
mov esi, eax
push edi
push eax
push ebx
call dword [0x4b9b68]
test al, al
je 0x467564
push 0x40
push esi
call fcn.00472d10
add esp, 8
test eax, eax
je 0x4675b6
mov byte [eax], 0
jmp 0x4675b6
push esi
call fcn.00410c0e
add esp, 4
mov edi, esp
xor eax, eax
mov dword [edi], eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x467584
mov eax, dword [esp]
jmp 0x467590
mov eax, 0x100
mov dword [esp], 0x100
push 0
push 1
push eax
call fcn.00410b8c
add esp, 0xc
mov esi, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4675b6
push esi
call fcn.00410c0e
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046fa9a
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x4675ca
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
cmp dword [0x4b9b80], 0
jne 0x467627
push dword [0x4b9b84]
push 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
cmp eax, dword [0x4b9b84]
jb 0x467627
mov ebx, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
xor edi, edi
inc edi
push 0
push edi
push eax
push edi
push 0x4b9b84
push dword [0x4b9b80]
call fcn.00410c1b
add esp, 0x18
mov dword [0x4b9b80], eax
push dword [0x4b9b84]
push eax
call ebx
cmp eax, dword [0x4b9b84]
jae 0x4675f9
push 0
push esi
push 0x4a690d
push dword [0x4b9b80]
call fcn.00456122
add esp, 0x10
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
push esi
call fcn.00410c0e
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x467b2a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edx, dword [0x4b6078]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
xor edi, edi
xor edx, esp
test ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
je 0x467b74
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov esi, 0
jne 0x467c02
mov al, 1
mov dword [esp], eax
mov eax, dword [esp + 0x10]
jmp 0x467b7b
mov dword [esp], 0
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 8]
xor esi, esi
lea ebx, [esp + 0xc]
push ecx
push esi
push ebx
push esi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x467bf0
cmp dword [esp + 0xc], 1
mov edi, 0
jne 0x467bf2
mov eax, dword [esp + 8]
xor esi, esi
inc eax
xor ecx, ecx
inc ecx
push esi
push ecx
push eax
call fcn.00410b8c
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
mov dword [ecx], eax
push ecx
push edi
push ebx
push esi
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x467bf2
cmp dword [esp + 0xc], 1
jne 0x467bf2
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
ja 0x467bf2
mov esi, edi
mov byte [edi + eax], 0
xor edi, edi
cmp byte [esp], 0
je 0x467c02
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00410c0e
add esp, 4
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046fa9a
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x469f21
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x270
mov eax, dword [0x4b6078]
mov edi, dword [esp + 0x284]
lea esi, [esp + 0x25]
xor eax, esp
mov dword [esp + 0x26c], eax
push 0x107
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push esi
call fcn.0047f0f0
add esp, 4
lea ebx, [esp + 0x12c]
mov byte [esp + eax + 0x27], 0
mov word [esp + eax + 0x25], 0x2a5c
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x469f9b
mov ebp, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov esi, eax
push 0x140
push ebx
call edi
add esp, 8
push ebx
push esi
call ebp
test eax, eax
jne 0x469f81
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, esp
mov dword [ecx], eax
push 4
push ecx
call edi
add esp, 8
lea esi, [esp + 5]
push 0x20
push esi
call fcn.00469e14
add esp, 8
test al, al
je 0x469fd6
mov ebx, 0x20
push ebx
push esi
call edi
add esp, 8
push ebx
push esi
call fcn.00467c20
add esp, 8
push edi
call fcn.0046c848
add esp, 4
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0046fa9a
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x469ff8
Capabilities:
Get memory capacity

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x4b6078]
xor eax, esp
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edi, [esp + 0x2c]
mov esi, 4
mov dword [edi], eax
push esi
push edi
push 9
call fcn.0043f574
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [edi], eax
push esi
push edi
push 0xa
call fcn.0043f574
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [edi], eax
push esi
push edi
push 0xb
call fcn.0043f574
add esp, 0xc
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
lea ecx, [esp + 0x28]
mov dword [ecx], eax
push esi
push ecx
push 0xc
call fcn.0043f574
add esp, 0xc
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, 8
push eax
push esi
push 0xd
call fcn.0043f574
add esp, 0xc
mov edi, esp
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov eax, 0x20
push eax
push edi
push 6
call fcn.0043f574
add esp, 0xc
lea ebx, [esp + 0x48]
lea ebp, [esp + 0x40]
lea esi, [esp + 0x38]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
lea edi, [esp + 0x30]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetThreadTimes]
mov eax, 0x20
push eax
push edi
push 0xe
call fcn.0043f574
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
mov eax, 0x20
push eax
push edi
push 0xf
call fcn.0043f574
add esp, 0xc
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046fa9a
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46a1bc
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x4b6078]
mov esi, dword [esp + 0x20]
xor eax, esp
mov dword [esp + 8], eax
push 9
push str..pipe_
push esi
call fcn.0047f180
add esp, 0xc
test eax, eax
je 0x46a1fa
push 0x18
push str..._windows_winnpc.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047bdbf
add esp, 0xc
lea eax, [esi + 9]
push 0x5c
push eax
call fcn.00472d10
add esp, 8
test eax, eax
je 0x46a220
push 0x19
push str..._windows_winnpc.c
push str.strchr_pipename__9_____NULL
call fcn.0047bdbf
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
xor edi, edi
push edi
push 0x40000000
push 3
push edi
push edi
push 0xc0000000
mov ebp, esi
push esi
call ebx
cmp eax, 0xffffffff
jne 0x46a275
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xe7
jne 0x46a2bf
push 0
mov esi, ebp
push ebp
call dword [sym.imp.KERNEL32.DLL_WaitNamedPipeA]
test eax, eax
jne 0x46a228
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00467767
add esp, 4
push eax
push esi
push str.Error_waiting_for_named_pipe__s:__s
jmp 0x46a2d5
mov esi, eax
call fcn.0046af9b
test eax, eax
je 0x46a2e3
mov edi, eax
mov eax, esp
xor ecx, ecx
lea edx, [esp + 4]
push eax
push ecx
push ecx
push ecx
push edx
push 1
push 6
push esi
call dword [0x4ba2cc]
test eax, eax
je 0x46a301
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00467767
add esp, 4
push eax
push str.Unable_to_get_named_pipe_security_information:__s
jmp 0x46a343
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00467767
add esp, 4
push eax
push ebp
push str.Unable_to_open_named_pipe__s:__s
push dword [esp + 0x30]
call fcn.0040e4e8
add esp, 0x10
jmp 0x46a34f
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00467767
add esp, 4
push eax
push str.Unable_to_get_user_SID:__s
jmp 0x46a343
push edi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x46a32d
push dword [esp]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push 1
push dword [esp + 0x28]
push 0
push esi
push esi
call fcn.00466820
add esp, 0x14
jmp 0x46a34f
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esp]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push ebp
push str.Owner_of_named_pipe__s_is_not_us
push dword [esp + 0x2c]
call fcn.0040e4e8
add esp, 0xc
mov ecx, dword [esp + 8]
mov esi, eax
xor ecx, esp
call fcn.0046fa9a
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46a368
Capabilities:
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4b6078]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
xor ebx, ebx
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push 0x34
push 1
call fcn.00410b8c
add esp, 0xc
mov esi, eax
mov dword [eax + 0x30], 0x498d34
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], ebx
mov dword [eax], ebx
push ebp
call fcn.004560ea
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x24], ebx
push 9
push str..pipe_
push ebp
call fcn.0047f180
add esp, 0xc
test eax, eax
je 0x46a3df
push 0xdb
push str..._windows_winnps.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047bdbf
add esp, 0xc
mov eax, dword [esp + 0x24]
lea ebp, [esi + 0x2c]
lea ebx, [esi + 4]
lea eax, [eax + 9]
push 0x5c
push eax
call fcn.00472d10
add esp, 8
test eax, eax
je 0x46a412
push 0xdc
push str..._windows_winnps.c
push str.strchr_pipename__9_____NULL
call fcn.0047bdbf
add esp, 0xc
mov edi, esi
add edi, 0x30
push ebp
push ebx
push esi
push 0xc0000000
call fcn.0046b20d
add esp, 0x10
test al, al
je 0x46a4c9
mov eax, esp
xor ebx, ebx
mov edx, 8
mov dword [eax], 0xc
mov ecx, dword [esi]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov ecx, 0x1000
push eax
push ebx
push ecx
push ecx
push 0xff
push edx
push 0x40080003
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x46a4a5
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [esi + 0x20], eax
push esi
push 0x46a4de
push eax
call fcn.00465ffd
add esp, 0xc
xor edx, edx
mov ecx, esi
mov dword [esi + 0x24], eax
call fcn.0046a4ea
jmp 0x46a4c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00467767
add esp, 4
push eax
push dword [esp + 0x28]
push str.unable_to_create_named_pipe__s:__s
call fcn.004560a0
add esp, 0xc
mov dword [ebp], eax
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0046fa9a
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46a4ea
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x4b6078]
mov esi, ecx
mov ebx, edx
mov ebp, 0x1000
lea ecx, [ecx + 0x10]
xor eax, esp
mov dword [esp + 0x10], eax
mov dword [esp], ecx
test bl, 1
jne 0x46a538
push dword [esp]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
jne 0x46a53a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x46a53a
mov edi, eax
cmp eax, 0x217
je 0x46a53a
jmp 0x46a5fd
xor ebx, ebx
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x28]
mov dword [esp + 4], edi
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push 0x46a688
push eax
call dword [ecx + 0x10]
add esp, 0xc
test eax, eax
je 0x46a562
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 4], 0xc
lea ecx, [esp + 4]
mov eax, dword [esi]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
push ecx
push eax
push ebp
push ebp
push 0xff
mov eax, 8
push eax
push 0x40000003
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x46a50b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
push edi
call fcn.00467767
add esp, 4
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.004560a0
add esp, 8
mov ebx, eax
push dword [esi + 8]
call fcn.00468779
add esp, 4
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx]
push edi
push ebx
push 0
push eax
push 1
push ecx
call dword [edx]
add esp, 0x18
push ebx
call fcn.00410c0e
add esp, 4
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0046fa9a
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, 0x3e5
jne 0x46a5ab
jmp 0x46a5ea

Function at 0x46aace
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x4ba2b4], 0
jne 0x46ab9b
push edi
push esi
push str.winspool.drv
call fcn.004675ca
add esp, 4
mov esi, eax
push str.spoolss.dll
call fcn.004675ca
add esp, 4
test esi, esi
je 0x46ab68
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.EnumPrintersA
push esi
call edi
mov dword [0x4ba2b0], eax
push str.OpenPrinterA
push esi
call edi
mov dword [0x4ba294], eax
push str.ClosePrinter
push esi
call edi
mov dword [0x4ba2a8], eax
push str.StartDocPrinterA
push esi
call edi
mov dword [0x4ba298], eax
push str.EndDocPrinter
push esi
call edi
mov dword [0x4ba2a4], eax
push str.StartPagePrinter
push esi
call edi
mov dword [0x4ba29c], eax
push str.EndPagePrinter
push esi
call edi
mov dword [0x4ba2a0], eax
push str.WritePrinter
push esi
call edi
jmp 0x46ab8d
xor eax, eax
mov dword [0x4ba2b0], eax
mov dword [0x4ba294], eax
mov dword [0x4ba2a8], eax
mov dword [0x4ba298], eax
mov dword [0x4ba2a4], eax
mov dword [0x4ba29c], eax
mov dword [0x4ba2a0], eax
mov dword [0x4ba2ac], eax
mov byte [0x4ba2b4], 1
pop esi
pop edi
ret
Function at 0x46ae3c
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x4ba2b8], 1
jne 0x46ae4b
mov al, byte [0x4ba2b9]
ret
mov byte [0x4ba2b8], 1
push str.advapi32.dll
call fcn.004675ca
add esp, 4
test eax, eax
mov dword [0x4ba2bc], eax
je 0x46af93
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x4ba2cc], eax
je 0x46af93
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46af59
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x4ba2d0], eax
je 0x46af93
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46af65
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x4ba2d4], eax
je 0x46af93
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46af71
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x4ba2d8], eax
je 0x46af93
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46af7d
push 0x4a133d
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x4ba2dc], eax
je 0x46af93
mov eax, dword [0x4ba2bc]
test eax, eax
je 0x46af89
push 0x4a1698
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
mov dword [0x4ba2e0], eax
xor eax, eax
test ecx, ecx
je 0x46af95
mov ecx, dword [0x4ba2bc]
test ecx, ecx
je 0x46af4d
push str.SetEntriesInAclA
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x4ba2e4], eax
setne al
jmp 0x46af95
mov dword [0x4ba2d0], 0
jmp 0x46af93
mov dword [0x4ba2d4], 0
jmp 0x46af93
mov dword [0x4ba2d8], 0
jmp 0x46af93
mov dword [0x4ba2dc], 0
jmp 0x46af93
mov dword [0x4ba2e0], 0
xor eax, eax
mov byte [0x4ba2b9], al
ret