joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006c9b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1006c94a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1006c968
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1006c9c6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1006c9ad
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1006c9b6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1006c9c0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1006c9a2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1006c92c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1006ca13
dec eax
je 0x1006ca0a
sub eax, 3
je 0x1006ca01
mov dword [ebp - 4], 0x40
jmp 0x1006ca30
mov dword [ebp - 4], 4
jmp 0x1006ca16
mov dword [ebp - 4], 0x20
jmp 0x1006ca16
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1006ca62
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1006c9e2
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1006c273
mov dword [0xff195751], eax
jne 0x1006ca6d
push 1
push esi
call edi
mov eax, esi
jmp 0x1006ca6e
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009f450
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x100d43bc]
sub esp, 0x44
test eax, eax
jne 0x1009f49b
push ebx
push esi
push 4
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1009f47e
push 4
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov dword [esi], 0
mov ebx, 0x100d43bc
mov dword [0x100d43bc], esi
call fcn.100909f0
mov eax, dword [0x100d43bc]
pop esi
pop ebx
mov dword [esp], eax
mov eax, dword [eax]
test eax, eax
je 0x1009f4ab
lea ecx, [esp]
cmp ecx, eax
jae 0x1009f50a
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x1c
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1009f4f6
mov eax, dword [esp]
cmp dword [eax], 0
jne 0x1009f50a
mov edx, dword [esp + 0x24]
dec edx
not edx
lea ecx, [esp]
and edx, ecx
mov dword [eax], edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x48]
mov dword [edx], ecx
mov eax, 1
add esp, 0x44
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
lea ecx, [eax + edx + 0x8000]
mov edx, dword [esp]
mov dword [edx], ecx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x48]
mov dword [edx], ecx
mov eax, 1
add esp, 0x44
ret
Function at 0x1009f520
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x100d43b4]
push edi
call fcn.10041b90
xor ebp, ebp
cmp dword [esp + 0x14], ebp
je 0x1009f66b
push str.unicode
push ebp
mov dword [0x100d4af8], 0x100d12d8
call sym.tcl85.dll_Tcl_GetEncoding
mov dword [0x100d43b4], eax
mov eax, dword [0x100d4af8]
add esp, 8
cmp dword [eax + 0x68], ebp
jne 0x1009f6da
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.kernel32
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x1009f5dd
push str.GetFileAttributesExW
push edi
call esi
mov ecx, dword [0x100d4af8]
push str.CreateHardLinkW
push edi
mov dword [ecx + 0x68], eax
call esi
mov edx, dword [0x100d4af8]
push str.FindFirstFileExW
push edi
mov dword [edx + 0x6c], eax
call esi
mov ecx, dword [0x100d4af8]
push str.GetVolumeNameForVolumeMountPointW
push edi
mov dword [ecx + 0x70], eax
call esi
mov edx, dword [0x100d4af8]
push str.GetLongPathNameW
push edi
mov dword [edx + 0x74], eax
call esi
mov ecx, dword [0x100d4af8]
push edi
mov dword [ecx + 0x78], eax
call ebp
push str.advapi32
call ebx
mov edi, eax
test edi, edi
je 0x1009f6da
push str.GetFileSecurityW
push edi
call esi
mov edx, dword [0x100d4af8]
push str.ImpersonateSelf
push edi
mov dword [edx + 0x7c], eax
call esi
mov ecx, dword [0x100d4af8]
push str.OpenThreadToken
push edi
mov dword [ecx + 0x80], eax
call esi
mov edx, dword [0x100d4af8]
push str.RevertToSelf
push edi
mov dword [edx + 0x84], eax
call esi
mov ecx, dword [0x100d4af8]
push str.MapGenericMask
push edi
mov dword [ecx + 0x88], eax
call esi
mov edx, dword [0x100d4af8]
push str.AccessCheck
push edi
mov dword [edx + 0x8c], eax
call esi
mov ecx, dword [0x100d4af8]
push edi
mov dword [ecx + 0x90], eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [0x100d4af8], 0x100d1238
mov dword [0x100d43b4], ebp
cmp dword [0x100d12a0], ebp
jne 0x1009f6da
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebp
je 0x1009f6da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileAttributesExA
push esi
call edi
mov edx, dword [0x100d4af8]
push str.CreateHardLinkA
push esi
mov dword [edx + 0x68], eax
call edi
mov ecx, dword [0x100d4af8]
push str.GetVolumeNameForVolumeMountPointA
push esi
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x70], ebp
mov dword [ecx + 0x78], ebp
call edi
mov ecx, dword [0x100d4af8]
push esi
mov dword [ecx + 0x74], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100a1730
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
push edi
mov edi, ecx
call fcn.100a0c60
push 0x205c
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100a176e
push 0x205c
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
push 0x205c
push 0
push esi
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x48]
add esp, 0xc
mov dword [esi + 0x10], ebx
mov dword [esi], eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push eax
lea ecx, [esp + 0x1c]
push str.cp_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push str.file_x
push edi
mov dword [esi + 0x1c], eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
push ebx
push esi
push edi
push 0x100d11a8
call sym.tcl85.dll_Tcl_CreateChannel
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x10
mov dword [esi + 0xc], eax
test bl, 2
je 0x100a1854
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp + 0x10]
and eax, 0xffffffe7
or eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
push 1
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2c], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x38], eax
call edi
lea edx, [esp + 0x14]
push edx
push 0
push esi
push 0x100a1530
push 0x100
push 0
mov dword [esi + 0x3c], eax
call ebp
push 2
push eax
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test bl, 4
je 0x100a18a2
push 0
push 1
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x28], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x100a1630
push 0x100
push 0
call ebp
push 2
push eax
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0xc]
push str.auto
push str._translation
push ecx
push 0
call sym.tcl85.dll_Tcl_SetChannelOption
mov edx, dword [esi + 0xc]
push 0x100c89ec
push str._eofchar
push edx
push 0
call sym.tcl85.dll_Tcl_SetChannelOption
mov eax, dword [0x100d4af8]
add esp, 0x20
cmp dword [eax], 0
je 0x100a18e9
mov ecx, dword [esi + 0xc]
push str.unicode
push str._encoding
push ecx
jmp 0x100a18f7
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x18]
push edx
push str._encoding
push eax
push 0
call sym.tcl85.dll_Tcl_SetChannelOption
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x44]
add esp, 0x10
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100b30c8
add esp, 0x2c
ret
Function at 0x100a1ec0
Capabilities:
Read file on windows

Disassembly:
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, dword [ebx]
push esi
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100a1f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100a1efb
xor eax, eax
ret
mov ecx, dword [ebx]
push 1
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x100a1ef8
mov eax, 1
ret

Function at 0x100a1f20
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [edi + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebx, [esi + 0x68]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x14]
sub dword [esi + 0x9c], ebp
mov edx, dword [esp + 0xc]
push edi
push ecx
xor eax, eax
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x100a1f9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
je 0x100a1f86
sub eax, 0x7c
je 0x100a1f9b
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push 1
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x100a1f81
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
sub ecx, ebp
add dword [esi + 0x9c], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100a2580
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, eax
call fcn.100a1950
push 0xa0
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
jne 0x100a25b3
push 0xa0
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
push 0xa0
push ebp
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esi + 0xc], ebx
mov dword [esi], edi
mov dword [esi + 8], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], 1
mov dword [esi + 0x9c], ebp
mov dword [esi + 0x98], ebp
mov dword [esi + 0x20], 0xa
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x38], eax
mov eax, 0x1000
push esi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x18]
push str.file_x
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push esi
push ecx
push 0x100d1160
call sym.tcl85.dll_Tcl_CreateChannel
mov edx, dword [esi + 0x34]
add esp, 0x10
mov dword [esi + 8], eax
mov eax, dword [esi + 0x30]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetupComm]
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0x100d4658
push edi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
lea ecx, [esi + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
test bl, 2
je 0x100a2672
push ebp
push ebp
push 1
push ebp
call edi
mov dword [esi + 0x4c], eax
test bl, 4
je 0x100a26c2
push ebp
push ebp
push 1
push ebp
call edi
push ebp
push 1
push 1
push ebp
mov dword [esi + 0x60], eax
call edi
push ebp
push ebp
push ebp
push ebp
mov dword [esi + 0x80], eax
call edi
push ebp
push ebp
push ebp
push ebp
mov dword [esi + 0x84], eax
call edi
lea edx, [esp + 0xc]
push edx
push ebp
push esi
push 0x100a2420
push 0x100
push ebp
mov dword [esi + 0x88], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 8]
push str.auto
push str._translation
push eax
push ebp
call sym.tcl85.dll_Tcl_SetChannelOption
mov ecx, dword [esi + 8]
push 0x100c89ec
push str._eofchar
push ecx
push ebp
call sym.tcl85.dll_Tcl_SetChannelOption
mov eax, dword [esi + 8]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x100a8380
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
mov dword [0x100d45a8], 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.100b30c8
add esp, 0x19c
ret
Function at 0x100a8510
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x5f8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x5f4], eax
push ebx
push ebp
push esi
mov esi, edx
mov ebx, ecx
mov eax, esi
push edi
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a8535
sub eax, edx
lea ebp, [eax + esi - 1]
cmp ebp, esi
jbe 0x100a857a
cmp byte [ebp], 0x2f
je 0x100a8553
dec ebp
cmp ebp, esi
ja 0x100a8546
jmp 0x100a8578
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a8558
sub eax, edx
mov ecx, ebp
sub ecx, esi
dec eax
cmp ecx, eax
jne 0x100a8577
push str.last_character_in_lib_cannot_be__
call sym.tcl85.dll_Tcl_Panic
add esp, 4
inc ebp
cmp ebp, esi
jne 0x100a8589
push str.no___character_found_in_lib
call sym.tcl85.dll_Tcl_Panic
add esp, 4
push 0x104
lea edx, [esp + 0x400]
push edx
push 0x100c90f8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100a85c6
mov byte [esp + 0xf0], al
push 0x104
lea eax, [esp + 0xf4]
push eax
push str.TCL_LIBRARY
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x100a8601
mov ax, word [esp + 0x3fc]
lea esi, [esp + 0xf0]
lea edi, [esp + 0x3fc]
test ax, ax
je 0x100a85fe
movzx eax, ax
movzx ecx, ax
push esi
push ecx
call sym.tcl85.dll_Tcl_UniCharToUtf
add edi, 2
add esi, eax
movzx eax, word [edi]
add esp, 8
test ax, ax
jne 0x100a85e4
mov byte [esi], 0
cmp byte [esp + 0xf0], 0
je 0x100a871c
lea edx, [esp + 0xf0]
push 0xffffffffffffffff
push edx
call sym.tcl85.dll_Tcl_NewStringObj
push eax
push ebx
push 0
call sym.tcl85.dll_Tcl_ListObjAppendElement
add esp, 0x14
cmp byte [esp + 0xf0], 0
lea eax, [esp + 0xf0]
je 0x100a864e
jmp 0x100a8640
cmp byte [eax], 0x5c
jne 0x100a8648
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x100a8640
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xf8]
push edx
call sym.tcl85.dll_Tcl_SplitPath
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCR90.dll_free]
mov edi, dword [esp + 0x20]
add esp, 0xc
test esi, esi
jle 0x100a86f5
mov eax, dword [edi + esi*4 - 4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100a86f5
mov dword [edi + esi*4 - 4], ebp
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x2c]
push edi
mov ebp, 0xc8
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], ebp
mov byte [esp + 0x34], 0
call sym.tcl85.dll_Tcl_JoinPath
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call sym.tcl85.dll_Tcl_NewStringObj
mov esi, eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
add esp, 0x14
cmp eax, edx
je 0x100a86da
push eax
call ebx
add esp, 4
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
mov byte [esp + 0x28], 0
jmp 0x100a8709
lea ecx, [esp + 0xf0]
push 0xffffffffffffffff
push ecx
call sym.tcl85.dll_Tcl_NewStringObj
add esp, 8
mov esi, eax
mov edx, dword [esp + 0x10]
push esi
push edx
push 0
call sym.tcl85.dll_Tcl_ListObjAppendElement
push edi
call ebx
add esp, 0x10
mov ecx, dword [esp + 0x604]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b30c8
add esp, 0x5f8
ret
Function at 0x100a9ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2e8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2e4], eax
push ebx
mov ebx, dword [esp + 0x2f0]
push esi
lea esi, [esp + 0xe4]
mov dword [esp + 8], ebx
call fcn.100a9c20
test eax, eax
jne 0x100a9f28
pop esi
pop ebx
mov ecx, dword [esp + 0x2e4]
xor ecx, esp
call fcn.100b30c8
add esp, 0x2e8
ret
mov ecx, dword [0x100d4af8]
mov edx, dword [ecx + 0x14]
push ebp
push edi
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x104]
push eax
call edx
mov edi, eax
cmp edi, 0xffffffff
je 0x100aa020
test ebx, ebx
je 0x100aa0b2
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push ebx
push 0
call sym.tcl85.dll_Tcl_UtfToExternalDString
mov ecx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x10
mov ebx, ecx
mov esi, eax
test ecx, ecx
jle 0x100a9fbf
cmp byte [esi], 0xa
jne 0x100a9fb9
mov ecx, esi
sub ecx, eax
je 0x100a9fa1
push 0
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x100aa01c
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x100c92ec
push edi
call ebp
test eax, eax
je 0x100aa01c
lea eax, [esi + 1]
dec ebx
inc esi
test ebx, ebx
jg 0x100a9f86
sub esi, eax
je 0x100a9fd3
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
push edi
call ebp
test eax, eax
je 0x100aa01c
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x100a9fe9
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0
push 0
push 0
lea eax, [esp + 0x30]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0xc8
mov byte [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100aa0b2
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x100aa057
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x100aa03a
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea edx, [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xc8
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10c
jb 0x100aa085
sub eax, 0x2733
cmp eax, 0x25
jb 0x100aa07c
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x16
jmp 0x100aa094
mov esi, dword [eax*4 + 0x100b4be8]
jmp 0x100aa08c
movzx esi, byte [eax + 0x100b4aa8]
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x100d4af8]
mov edx, dword [ecx + 0x1c]
lea eax, [esp + 0xec]
push eax
call edx
xor eax, eax
jmp 0x100aa0dd
push 8
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100aa0d2
push 8
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov dword [esi], 3
mov dword [esi + 4], edi
mov eax, esi
mov ecx, dword [esp + 0x2f4]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.100b30c8
add esp, 0x2e8
ret
Function at 0x100aa160
Capabilities:
Create pipe

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x100aa1ee
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
push esi
push edi
mov edi, dword [esp + 0xc]
push 8
call ebx
mov esi, eax
add esp, 4
test esi, esi
jne 0x100aa1a4
push 8
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov edx, dword [esp + 0x18]
mov dword [esi], 3
mov dword [esi + 4], edi
mov edi, dword [esp + 0x10]
push 8
mov dword [edx], esi
call ebx
mov esi, eax
add esp, 4
test esi, esi
jne 0x100aa1d3
push 8
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edi
mov dword [esi], 3
pop edi
mov dword [eax], esi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.tcl85.dll_TclWinConvertError
add esp, 4
xor eax, eax
add esp, 8
ret
Function at 0x100ab030
Capabilities:
Create thread

Disassembly:
sub esp, 0x30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x100ab064
push 0x64
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
call fcn.100a99c0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x28], eax
je 0x100ab101
push ebx
push 1
push 1
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x38], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x44], eax
call edi
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push 0x100abe60
push 0x100
push ebx
mov dword [esi + 0x48], eax
call ebp
push 2
push eax
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
or dword [esi + 8], 2
jmp 0x100ab104
mov dword [esi + 0x30], ebx
cmp dword [esp + 0x48], ebx
je 0x100ab14f
push ebx
push 1
push 1
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x34], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x3c], eax
call edi
lea edx, [esp + 0x10]
push edx
push ebx
push esi
push 0x100abf60
push 0x100
push ebx
mov dword [esi + 0x40], eax
call ebp
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x30]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
or dword [esi + 8], 4
push esi
lea ecx, [esp + 0x18]
push str.file_x
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esi + 8]
add esp, 0xc
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0x100d10b8
call sym.tcl85.dll_Tcl_CreateChannel
push str.auto
push str._translation
push eax
push ebx
mov dword [esi + 4], eax
call sym.tcl85.dll_Tcl_SetChannelOption
mov ecx, dword [esi + 4]
push 0x100c89ec
push str._eofchar
push ecx
push ebx
call sym.tcl85.dll_Tcl_SetChannelOption
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x6c]
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b30c8
add esp, 0x30
ret