joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8020
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
sub esp, 0x10
test edx, edx
je 0x4e81d0
mov eax, edx
lea esi, [edx + 0xffe]
mov edx, ebx
jmp 0x4e8056
add eax, 2
add edx, 2
mov word [edx - 2], cx
cmp eax, esi
je 0x4e805e
movzx ecx, word [eax]
test cx, cx
jne 0x4e8048
xor ecx, ecx
mov word [edx], cx
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
je 0x4e81a1
mov edx, 0x3b
lea ecx, [eax + 2]
mov word [eax], dx
test edi, edi
je 0x4e81f8
xor edx, edx
lea esi, [esi]
movzx esi, word [edi + edx]
mov word [eax + edx + 2], si
add edx, 2
test si, si
jne 0x4e8098
cmp word [eax + 2], 0
je 0x4e80b9
add ecx, 2
cmp word [ecx], 0
jne 0x4e80b0
cmp word [edi], 0
jne 0x4e81b0
lea esi, [ebx + 0x1000]
mov edx, dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov dword [esp], ecx
mov eax, esi
sub eax, ecx
sar eax, 1
mov dword [esp + 4], eax
mov dword [ebp - 0x10], edx
call edx
mov edx, dword [ebp - 0x10]
mov eax, ebx
sub esp, 8
cmp word [ebx], 0
je 0x4e80f9
nop
add eax, 2
cmp word [eax], 0
jne 0x4e80f0
mov word [eax], 0x3b
lea ecx, [eax + 2]
mov eax, esi
sub eax, ecx
mov dword [esp], ecx
sar eax, 1
mov dword [esp + 4], eax
call edx
sub esp, 8
cmp word [ebx], 0
je 0x4e8218
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x4e8120
sub eax, ebx
sub eax, 4
add eax, ebx
mov ecx, 0x3b
mov word [eax], cx
lea edx, [eax + 2]
mov eax, esi
sub eax, edx
mov dword [esp], edx
sar eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
sub esp, 8
cmp word [ebx], 0
je 0x4e8169
lea esi, [esi]
nop
add ebx, 2
cmp word [ebx], 0
jne 0x4e8160
mov eax, 0x3b
mov word [ebx], ax
test edi, edi
jne 0x4e81c8
test byte [ebp + 8], 1
je 0x4e81c8
mov dword [ebx + 2], 0x3b002e
lea eax, [ebx + 6]
sub esi, eax
mov dword [esp + 4], eax
sar esi, 1
mov dword [esp], 0x5eaa40
mov dword [esp + 8], esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x3b
add ecx, 2
mov word [ecx - 2], si
jmp 0x4e80c3
lea eax, [ebx + 2]
jmp 0x4e8185
mov dword [esp + 8], 0x800
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
jmp 0x4e8063
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4e80c3
mov dword [eax + 2], 0x3b002e
lea ecx, [eax + 6]
jmp 0x4e80c3
mov eax, 0xfffffffc
jmp 0x4e812e
Function at 0x4e88f0
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
lea ebx, [ebp - 0x133]
sub esp, 0x140
mov dword [ebp - 0x138], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 0x10], str.pathtest.pth
mov dword [esp + 0xc], str.shortdir
mov dword [esp + 4], str._s_s_s
call fcn.004e7b60
call fcn.0057d110
mov edi, dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x226
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.DeleteFileA_failed_n
call fcn.004e88d0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0x10], str.Long_File_test.path
mov dword [esp + 0xc], str.shortdir
mov dword [esp + 4], str._s_s_s
call fcn.004e7b60
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x228
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.DeleteFileA_failed_n
call fcn.004e88d0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0x10], str.pathtest.pth
mov dword [esp + 0xc], str.Long_Directory
mov dword [esp + 4], str._s_s_s
call fcn.004e7b60
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x22a
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.DeleteFileA_failed_n
call fcn.004e88d0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0x10], str.Long_File_test.path
mov dword [esp + 0xc], str.Long_Directory
mov dword [esp + 4], str._s_s_s
call fcn.004e7b60
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x22c
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.DeleteFileA_failed_n
call fcn.004e88d0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], str.shortdir
mov dword [esp + 4], 0x5e83f6
call fcn.004e7b60
call fcn.0057d110
mov edi, dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x22e
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.RemoveDirectoryA_failed_n
call fcn.004e88d0
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], str.Long_Directory
mov dword [esp + 4], 0x5e83f6
call fcn.004e7b60
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x230
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.RemoveDirectoryA_failed_n
call fcn.004e88d0
call fcn.0057d110
mov ecx, dword [ebp - 0x138]
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x231
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], str.SetCurrentDirectoryA_failed_n
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x232
mov dword [esp], esi
call edi
sub esp, 4
mov dword [esp + 4], str.RemoveDirectoryA_failed_n
mov dword [esp], eax
call fcn.004e88d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4e8b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x20
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_strlen]
mov dword [ebp - 0x1c], eax
call eax
test eax, eax
je 0x4e8d30
lea ecx, [eax - 1]
mov dword [ebp - 0x10], 0
mov edi, eax
mov edx, eax
mov esi, ecx
jmp 0x4e8b8d
cmp al, 0x5c
je 0x4e8bb0
sub esi, 1
jb 0x4e8d65
movzx eax, byte [ebx + esi]
cmp al, 0x2e
jne 0x4e8b80
cmp edi, edx
je 0x4e8cd0
mov dword [ebp - 0x10], 1
jmp 0x4e8b84
cmp ecx, esi
je 0x4e8b9d
mov dword [ebp - 0x20], edx
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0xde
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Illegal_file_found_in_8.3_path__s_n
mov ecx, dword [ebp - 0x10]
xor ecx, 1
mov dword [esp], ecx
call fcn.004e88d0
mov edx, dword [ebp - 0x20]
cmp edi, edx
je 0x4e8d20
lea eax, [ebx + edx + 1]
mov dword [ebp - 0x10], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strcpy]
mov edx, dword [ebp - 0x10]
cmp edi, esi
je 0x4e8ce0
lea eax, [esi + 1]
sub edx, esi
mov ecx, dword [ebp - 0x14]
lea edi, [ebx + eax]
mov esi, edx
cmp edx, 1
ja 0x4e8c3d
jmp 0x4e8c46
sub esi, 1
add ecx, 1
add edi, 1
mov byte [ecx - 1], dl
cmp esi, 1
je 0x4e8d10
movzx edx, byte [edi]
test dl, dl
jne 0x4e8c28
mov edx, esi
test edx, edx
jne 0x4e8d10
cmp eax, 1
je 0x4e8c7b
mov ecx, dword [ebp - 0x18]
jmp 0x4e8c71
sub eax, 1
add ecx, 1
add ebx, 1
mov byte [ecx - 1], dl
cmp eax, 1
je 0x4e8c78
movzx edx, byte [ebx]
test dl, dl
jne 0x4e8c60
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0xe9
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov edi, dword [ebp - 0x1c]
call edi
mov edx, eax
xor eax, eax
cmp edx, 8
ja 0x4e8cb8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
cmp eax, 3
setbe al
movzx eax, al
mov dword [esp + 4], str.GetShortPathNAmeA_did_not_return_an_8.3_path_n
mov dword [esp], eax
call fcn.004e88d0
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, esi
jmp 0x4e8b84
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + edx + 1]
test edx, edx
jne 0x4e8d01
jmp 0x4e8d60
add ebx, 1
mov byte [eax], dl
mov edx, ecx
add eax, 1
sub edx, ebx
cmp edx, 1
je 0x4e8d08
movzx edx, byte [ebx]
test dl, dl
jne 0x4e8cf0
mov byte [eax], 0
jmp 0x4e8c7b
mov byte [ecx], 0
jmp 0x4e8c4e
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4e8c08
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0xde
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Illegal_file_found_in_8.3_path__s_n
mov dword [esp], 1
call fcn.004e88d0
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
jmp 0x4e8d08
mov esi, edi
jmp 0x4e8bb4
Function at 0x4e8d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x230
mov dword [ebp - 0x218], eax
mov ebx, dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x220], eax
mov dword [esp], esi
call ebx
mov dword [ebp - 0x21c], eax
mov dword [esp], edi
call ebx
mov edx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
lea edx, [ecx + edx + 2]
add edx, eax
cmp edx, 0x103
ja 0x4e8f51
mov dword [esp + 0x10], edi
lea edi, [ebp - 0x214]
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x218]
lea esi, [ebp - 0x110]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s_s
call fcn.004e7b60
mov dword [esp], edi
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_GetShortPathNameA]
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], esi
mov dword [ebp - 0x21c], eax
call eax
sub esp, 0x1c
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x241
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFileA_failed___ld__n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004e88d0
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], edi
xor edi, edi
mov dword [ebp - 0x218], eax
call eax
sub esp, 4
jmp 0x4e8ebb
test edi, 1
je 0x4e8eb8
movsx eax, byte [esi + edi]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_tolower]
mov byte [esi + edi], al
add edi, 1
mov dword [esp], esi
call ebx
cmp edi, eax
jb 0x4e8ea0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp - 0x21c]
call eax
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x248
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFileA_failed___ld__n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004e88d0
mov dword [esp], ebx
mov eax, dword [ebp - 0x218]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x23d
mov dword [esp + 4], str..._dlls_kernel32_tests_path.c
mov dword [esp], str.strlen_tmpdir___strlen_dirname___strlen_filename___2___sizeof_buf_
call dword [sym.imp.msvcrt.dll__assert]
nop
Function at 0x4e9390
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x41c]
lea edi, [ebp - 0x214]
push ebx
mov ebx, edx
sub esp, 0x430
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov edx, edi
sub esp, 8
cmp word [ebp - 0x214], 0
je 0x4e9409
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4e9400
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4e9410
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x69d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], 0x5e85ac
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004e88d0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
lea edx, [ebp - 0x420]
mov dword [esp], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4f5ed0
Capabilities:
Get process heap flags
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
push ebx
mov ebx, eax
sub esp, 0x24
mov dword [ebp - 0x10], 0
mov esi, dword [sym.imp.advapi32.dll_GetTokenInformation]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x4f5f20
mov ecx, dword fs:[0x18]
cmp dword [ecx + 0x34], 0x7a
je 0x4f5f30
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov edx, eax
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x10]
mov edi, edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 3
mov dword [esp], ebx
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0x14
test eax, eax
je 0x4f5ff0
mov ebx, dword [edi]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 0xc]
test ebx, ebx
jne 0x4f5fa2
jmp 0x4f5fe0
add ecx, 1
add eax, 0xc
cmp ecx, ebx
je 0x4f5fe0
test byte [eax], 2
je 0x4f5f98
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x18]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov edx, 1
jmp 0x4f5fa7
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x4f5f20
Function at 0x4f6890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0xdeadbeef
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebx + 0x10], eax
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], edi
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], esi
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test edi, edi
jne 0x4f6947
xor eax, eax
cmp ecx, 0x3e5
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.WriteFile_returned__x__lu__n
call fcn.004f6800
call fcn.0057d110
mov dword [eax + 4], esi
mov dword [eax], 0x5ead94
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str.written_bytes___lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov edx, dword [ebx + 0x10]
mov eax, esi
call fcn.004f6820
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4f6ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0xdeadbeef
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebx + 0x10], eax
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], edi
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], esi
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test edi, edi
jne 0x4f6b87
xor eax, eax
cmp ecx, 0x3e5
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.ReadFile_returned__x__lu__n
call fcn.004f6800
call fcn.0057d110
mov dword [eax + 4], esi
mov dword [eax], 0x5ead94
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str.read_bytes__lu_expected_0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov edx, dword [ebx + 0x10]
mov eax, esi
call fcn.004f6820
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4f75f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x1c
mov dword [0x7efa00], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x4f8520
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
call fcn.0057d110
mov dword [eax + 4], esi
mov dword [eax], 0x5ead94
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateThread_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], 0x32
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, esi
mov edx, ebx
sub esp, 4
call fcn.004f6820
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x4f7690
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x1770
mov dword [esp + 0x10], 0x1388
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000003
mov dword [esp], str..PiPe_tests_pipe.c
call dword [sym.imp.kernel32.dll_CreateNamedPipeA]
sub esp, 0x20
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xd56
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5eb036
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xd58
xor eax, eax
mov edx, dword [edi + 0x34]
test esi, esi
jne 0x4f7755
xor eax, eax
cmp edx, 0x3e5
sete al
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0x5eb036
call fcn.004f6800
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4f9300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp - 0x20]
push ebx
mov ebx, eax
sub esp, 0x34
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
lea ecx, [ebp - 0x24]
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov esi, eax
call fcn.0057d110
mov dword [eax + 4], ebx
mov edx, dword fs:[0x18]
mov dword [eax], 0x5ead94
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x2c], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], esi
mov dword [esp + 4], str.WriteFile_returned__x__lu__n
call fcn.004f6800
call fcn.0057d110
mov dword [eax + 4], ebx
mov dword [eax], 0x5ead94
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.WriteFile_returned_written_bytes___lu_n
mov dword [esp + 8], eax
cmp eax, dword [ebp + 8]
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov edx, dword [ebp - 0x2c]
mov dword [eax + 4], ebx
mov dword [eax], 0x5ead94
mov eax, dword [edx + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetOverlappedResult_failed:__lu_n
call fcn.004f6800
call fcn.0057d110
mov edi, dword [ebp + 8]
mov dword [eax + 4], ebx
mov dword [eax], 0x5ead94
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], edi
cmp eax, edi
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.GetOverlappedResult_returned_written_bytes__lu_expected__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4fa220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4fa300
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xf19
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.CreateThread_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp + 4], 1
mov dword [esp], str..PiPe_tests_pipe.c
call dword [sym.imp.kernel32.dll_WaitNamedPipeA]
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xf1c
xor eax, eax
mov edx, dword [edi + 0x34]
test esi, esi
jne 0x4fa2d7
xor eax, eax
cmp edx, 0x79
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.WaitNamedPipe_failed__x__lu__n
call fcn.004f6800
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4fa360
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x18]
push ebx
mov ebx, ecx
sub esp, 0x20
mov dword [ebp - 0x18], 0x11111111
mov dword [esp + 8], eax
lea eax, [ebp - 0x14]
mov dword [esp], edx
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 4
mov dword [esp + 4], eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax + 4], esi
mov dword [eax], 0x5ead94
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x5eba9c
call fcn.004f6800
call fcn.0057d110
mov dword [eax + 4], esi
mov dword [eax], 0x5ead94
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.got_access__08lx_expected__08lx_n
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret