joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61084560
Capabilities:
Get hostname

Disassembly:
push ebp
mov ecx, 0x101
mov ebp, esp
push edi
lea eax, [ebp - 0x22c]
push esi
push ebx
sub esp, 0x23c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x22c], ecx
mov dword [esp + 4], eax
mov edi, dword [ebp + 0xc]
add edi, 2
mov dword [esp], edi
call sub.KERNEL32.dll_GetComputerNameA
sub esp, 8
test eax, eax
je 0x610845f9
mov esi, ebx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x610845b0
xor al, byte [eax + 0x61106b3c]
cmp al, byte [edi - 1]
jne 0x610845bb
test al, al
jne 0x610845a1
mov eax, 1
jmp 0x610845bd
xor eax, eax
test eax, eax
je 0x610845f4
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], 0x5c
mov byte [eax], 0x5c
mov edx, dword [ebp + 0x10]
mov eax, 1
test edx, edx
je 0x610845ec
mov edx, dword [ebp + 0xc]
mov ecx, 0x101
mov eax, dword [ebp + 0x10]
call sym.__Z12sys_mbstowcsPwPKci_12
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebx], 0
je 0x610845c1
lea esi, [ebp - 0x228]
mov ecx, 0x101
mov edx, ebx
mov eax, esi
call sym.__Z12sys_mbstowcsPwPKci_12
mov dword [esp + 4], esi
lea eax, [ebp - 0x230]
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.610fdba0
sub esp, 0xc
test eax, eax
jne 0x61084687
mov ecx, dword [ebp - 0x230]
mov dword [esp], 0xffffffff
mov eax, dword [ebp + 0xc]
mov edx, 0x101
call sym.__Z12sys_wcstombsPciPKwi_16
mov eax, dword [ebp + 0x10]
sub esp, 4
test eax, eax
je 0x610846a2
mov ecx, dword [ebp - 0x230]
mov edx, ecx
lea esi, [esi]
movzx eax, word [edx]
add edx, 2
mov ebx, dword [ebp + 0x10]
mov word [ebx], ax
add ebx, 2
test ax, ax
mov dword [ebp + 0x10], ebx
jne 0x61084660
mov dword [esp], ecx
call fcn.610fdb78
sub esp, 4
jmp 0x610845e7
mov ecx, eax
mov edx, 0xf0
mov eax, str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygwin_security.cc
call sym.__Z23seterrno_from_win_errorPKcim_12
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x230]
jmp 0x61084677
Function at 0x61099fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 0x4030
mov ebp, esp
push esi
push ebx
call sym.cygwin1.dll__alloca
lea eax, [ebp + 0xc]
lea ebx, [ebp - 0x4008]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.___small_vsprintf
mov dword [esp], 0xfffffff4
mov esi, eax
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
xor edx, edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x400c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_FlushFileBuffers
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x6109a9d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [esp], eax
call sym.cygwin1.dll__strlen
mov dword [esp], edi
mov ebx, eax
call sym.cygwin1.dll__strlen
mov edx, ebx
sub edx, eax
cmp edx, 1
jle 0x6109aa18
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx + 1], 0x3a
je 0x6109aa18
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edx, edx
js 0x6109aa70
mov esi, dword [ebp + 8]
add esi, edx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x6109aa38
xor al, byte [eax + 0x61106b3c]
cmp al, byte [edi - 1]
jne 0x6109aa43
test al, al
jne 0x6109aa29
mov eax, 1
jmp 0x6109aa45
xor eax, eax
test eax, eax
je 0x6109aa70
test edx, edx
je 0x6109aa63
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx + edx - 1]
cmp al, 0x2f
sete dl
cmp al, 0x5c
sete al
or dl, al
je 0x6109aa70
mov ecx, 1
nop
lea esi, [esi]
mov ebx, dword [ebp - 0xc]
mov eax, ecx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x6109d1f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
mov edi, esp
add eax, 0x35
and eax, 0xfffffff0
call sym.cygwin1.dll__alloca
mov eax, dword [ebp + 0x10]
lea ebx, [esp + 0x1f]
and ebx, 0xfffffff0
lea esi, [ebx + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 0x6112f022
mov dword [esp + 4], eax
call sym.___small_sprintf
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x6109d240
test edx, 0x8080
jne 0x6109d265
shr edx, 0x10
add ecx, 2
mov dword [esp], ebx
add dl, dl
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 8], eax
mov eax, str.cYg_08x
mov dword [esp + 4], eax
call sym.___small_sprintf
mov byte [ebx + 0xb], 0x20
mov dword [esp], ebx
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
mov esp, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6109d2a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, edx
cmp byte [eax], 3
je 0x6109d2b3
mov ebx, dword [ebp - 4]
leave
ret
call fcn.610ff110
test eax, eax
je 0x6109d2ae
mov eax, 0x7530
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
lea ebx, [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, 0xfffffffd
mov dword [esp + 8], eax
mov eax, str.cYg_8x__x
mov dword [esp + 4], eax
call sym.___small_sprintf
mov dword [esp], ebx
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x6109d310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 0x274c
mov ebp, esp
push edi
push esi
push ebx
call sym.cygwin1.dll__alloca
mov edi, dword [ebp + 8]
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x2730], eax
mov byte [ebp - 0x19], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetLastError
mov eax, dword [ebp + 0x18]
sub esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x2728]
mov dword [esp + 4], eax
call method.strace.vsprntf_char__char_const__char_const__char_
cmp byte [ebp - 0x19], 0
mov esi, eax
jne 0x6109d4e6
test dword [ebp + 0xc], 0x8000
jne 0x6109d3a0
test byte [edi], 1
jne 0x6109d4b0
mov eax, dword [ebp - 0x2730]
mov dword [esp], eax
call sub.KERNEL32.dll_SetLastError
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
xor edx, edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x272c]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x2728]
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov ebx, eax
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileType
sub esp, 4
cmp eax, 3
je 0x6109d404
mov dword [esp], ebx
call sub.KERNEL32.dll_FlushFileBuffers
sub esp, 4
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileType
sub esp, 4
cmp eax, 2
je 0x6109d379
mov dword [esp], str.CONOUT_
xor eax, eax
mov ebx, 3
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, 0x6110742c
mov dword [esp + 0x14], eax
mov edx, 2
mov eax, 0xc0000000
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebx, eax
je 0x6109d496
mov dword [esp + 8], esi
xor eax, eax
lea edx, [ebp - 0x2728]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x272c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
test byte [edi], 1
je 0x6109d382
lea esi, [esi]
mov dword [esp + 0xc], esi
lea eax, [ebp - 0x2728]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0xc]
mov dword [esp], edi
mov dword [esp + 4], edx
call method.strace.write_unsigned_int__char_const__int_
mov eax, dword [ebp - 0x2730]
mov dword [esp], eax
call sub.KERNEL32.dll_SetLastError
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.array_bound_exceeded__d_n
mov ecx, 0xf6
mov dword [esp + 4], ecx
call sym._small_printf
mov dword [esp], 1
call sub.KERNEL32.dll_ExitProcess
nop
nop
lea esi, [esi]
Function at 0x610a3a60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x611463a4]
test eax, eax
je 0x610a3a75
mov eax, dword [0x611463bc]
add esp, 0xc
ret
mov dword [esp], 0x611463a0
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [0x611463bc]
sub esp, 4
add esp, 0xc
ret

Function at 0x610a3a90
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x611463bc]
test eax, eax
je 0x610a3aa5
mov eax, dword [0x611463a4]
add esp, 0xc
ret
mov dword [esp], 0x611463a0
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [0x611463a4]
sub esp, 4
add esp, 0xc
ret
Function at 0x610a5f10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
sub esp, 0x128
mov edx, dword fs:[4]
lea ecx, [esp + 0x40]
mov ebx, dword [esp + 0x134]
sub edx, 0x319c
mov eax, dword [edx + 0xc30]
mov dword [esp + 0x110], eax
mov eax, dword [edx + 0xc34]
mov dword [edx + 0xc30], ecx
mov dword [esp + 0x114], eax
mov eax, 0xe
mov dword [edx + 0xc34], eax
mov dword [esp], ecx
call sym.___sjfault
test eax, eax
jne 0x610a6023
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x130]
mov dword [esp], eax
call sym._statvfs
test eax, eax
je 0x610a5fb4
mov ecx, dword fs:[4]
mov edx, dword [esp + 0x110]
sub ecx, 0x319c
mov dword [ecx + 0xc30], edx
mov edx, dword [esp + 0x114]
mov dword [ecx + 0xc34], edx
add esp, 0x128
pop ebx
ret
mov eax, dword [esp + 0x34]
mov ecx, dword fs:[4]
mov edx, dword [esp + 0x110]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
sub ecx, 0x319c
mov dword [ecx + 0xc30], edx
mov edx, dword [esp + 0x114]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 0xc34], edx
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x14], 0xffffffff
mov dword [ebx + 0x18], 0xffffffff
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x20], eax
add esp, 0x128
xor eax, eax
pop ebx
ret
mov eax, dword fs:[4]
mov edx, dword [esp + 0x110]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [esp + 0x114]
mov dword [eax + 0xc34], edx
mov eax, 0xffffffff
jmp 0x610a5fac
Function at 0x610ae3b0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
lea ebx, [esi + 0x58]
call method.pthread.self__
cmp dword [ebx + 0x1c], 2
mov edi, eax
mov eax, 0xffffffff
je 0x610ae3df
call sym._pthread_self
mov dword [esp + 4], eax
mov dword [esp], ebx
call method.pthread_mutex._lock_pthread_
cmp byte [esi + 0x34], 0
je 0x610ae440
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x610ae470
cmp dword [esi + 0x38], 1
je 0x610ae470
cmp esi, edi
jne 0x610ae4ac
lea ebx, [esi + 0x58]
mov eax, 0xffffffff
cmp dword [ebx + 0x1c], 2
je 0x610ae419
call sym._pthread_self
mov dword [esp], ebx
mov dword [esp + 4], eax
call method.pthread_mutex._unlock_pthread_
mov dword [esp], esi
call method.pthread.cancel_self__
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x58]
mov eax, 0xffffffff
cmp dword [ebx + 0x1c], 2
je 0x610ae453
call sym._pthread_self
mov dword [esp], ebx
mov dword [esp + 4], eax
call method.pthread_mutex._unlock_pthread_
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x58]
mov eax, 0xffffffff
cmp dword [ebx + 0x1c], 2
je 0x610ae483
call sym._pthread_self
mov dword [esp + 4], eax
mov dword [esp], ebx
call method.pthread_mutex._unlock_pthread_
mov eax, dword [esi + 0x44]
mov dword [esp], eax
call sub.KERNEL32.dll_SetEvent
sub esp, 4
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_SuspendThread
sub esp, 4
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
cmp eax, 0x102
je 0x610ae504
lea ebx, [esi + 0x58]
mov eax, 0xffffffff
cmp dword [ebx + 0x1c], 2
je 0x610ae4e8
call sym._pthread_self
mov dword [esp + 4], eax
mov dword [esp], ebx
call method.pthread_mutex._unlock_pthread_
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
jmp 0x610ae49d
mov eax, 0x10001
lea ebx, [ebp - 0x2e8]
mov edi, method.pthread.static_cancel_self__
mov dword [ebp - 0x2e8], eax
mov dword [esp + 4], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_GetThreadContext
mov dword [ebp - 0x230], edi
sub esp, 8
mov dword [esp + 4], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_SetThreadContext
sub esp, 8
jmp 0x610ae4d5
Function at 0x610aeb30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp byte [eax + 0x34], 0
jne 0x610aeb41
leave
ret
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
leave
ret

Function at 0x610afa60
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov edx, eax
mov dword [ebx + 8], eax
je 0x610afa90
mov eax, dword [ebx + 0x14]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], str.pthread_key::recreate_key_from_buffer____failed_to_reallocate_Tls_storage
call sym.___api_fatal
lea esi, [esi]

Function at 0x610b19c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xf4
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x610b1a50
mov edx, dword fs:[4]
lea ecx, [ebp - 0xe8]
sub edx, 0x319c
mov eax, dword [edx + 0xc30]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0xc34]
mov dword [edx + 0xc30], ecx
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edx + 0xc34], eax
mov dword [esp], ecx
call sym.___sjfault
test eax, eax
jne 0x610b1a50
mov eax, dword [ebx]
cmp dword [eax + 4], 0xdf0df045
je 0x610b1a8d
mov eax, dword fs:[4]
mov edx, dword [ebp - 0x18]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc34], edx
xor eax, eax
test al, al
je 0x610b1a6d
mov eax, dword [ebx]
cmp byte [eax + 0x35], 0
je 0x610b1a77
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword fs:[4]
mov edx, dword [ebp - 0x18]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc34], edx
mov ebx, dword [ebp - 4]
mov eax, 3
leave
ret
mov byte [eax + 0x35], 1
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_SuspendThread
sub esp, 4
xor eax, eax
jmp 0x610b1a48
mov eax, dword fs:[4]
mov edx, dword [ebp - 0x18]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc34], edx
mov eax, 1
jmp 0x610b1a3a
Function at 0x610b1ac0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xf4
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x610b1b65
mov edx, dword fs:[4]
lea ecx, [ebp - 0xe8]
sub edx, 0x319c
mov eax, dword [edx + 0xc30]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0xc34]
mov dword [edx + 0xc30], ecx
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edx + 0xc34], eax
mov dword [esp], ecx
call sym.___sjfault
test eax, eax
jne 0x610b1b65
mov eax, dword [ebx]
cmp dword [eax + 4], 0xdf0df045
je 0x610b1b8c
mov eax, dword fs:[4]
mov edx, dword [ebp - 0x18]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc34], edx
xor eax, eax
test al, al
je 0x610b1b82
mov eax, dword [ebx]
cmp byte [eax + 0x35], 1
jne 0x610b1b5a
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
mov eax, dword [ebx]
sub esp, 4
mov byte [eax + 0x35], 0
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret
mov eax, dword fs:[4]
mov edx, dword [ebp - 0x18]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc34], edx
mov ebx, dword [ebp - 4]
mov eax, 3
leave
ret
mov eax, dword fs:[4]
mov edx, dword [ebp - 0x18]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc34], edx
mov eax, 1
jmp 0x610b1b3e

Function at 0x610b4730
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov eax, 0xdf0df047
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.verifyable_object::verifyable_object_long_
mov dword [esi], fcn.610b4b00
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
call sub.KERNEL32.dll_TlsAlloc
mov dword [esi + 8], eax
inc eax
je 0x610b478f
mov ebx, 0x61147e40
test esi, esi
jmp 0x610b4785
mov edi, dword [0x61147e40]
mov ecx, ebx
mov edx, esi
mov dword [esi + 0xc], edi
mov eax, edi
lock cmpxchg dword [ecx], edx
cmp eax, edi
jne 0x610b4770
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esi + 4], 0
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x610b4980
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 0xdf0df047
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], esi
call sym.verifyable_object::verifyable_object_long_
mov dword [esi], fcn.610b4b00
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
call sub.KERNEL32.dll_TlsAlloc
mov dword [esi + 8], eax
inc eax
je 0x610b49df
mov ebx, 0x61147e40
test esi, esi
jmp 0x610b49d5
mov edi, dword [0x61147e40]
mov ecx, ebx
mov edx, esi
mov dword [esi + 0xc], edi
mov eax, edi
lock cmpxchg dword [ecx], edx
cmp eax, edi
jne 0x610b49c0
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esi + 4], 0
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x610bdaf0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
mov edx, dword [0x61100268]
mov edi, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x10]
xor edx, edx
mov dword [esp + 4], edx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
mov word [ebp - 0x34], di
mov dword [esp], eax
call sym.build_fh_dev_device_const__char_const_
mov dword [0x61106528], eax
mov dword [esp], eax
call method.fhandler_tty_master.init__
test eax, eax
jne 0x610bdc76
mov esi, 0x100
xor ecx, ecx
mov ebx, 0x134
mov dword [ebp - 0x17c], esi
lea esi, [ebp - 0x178]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x170]
mov dword [esp], esi
call sym.cygwin1.dll__memset
lea eax, [ebp - 0x15c]
mov dword [esp], eax
call sym._time_1
call sym.cygwin1.dll__getlogin
mov dword [esp + 4], eax
mov edx, 0x10
lea eax, [ebp - 0x158]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.cygwin1.dll__strncpy
lea eax, [ebp - 0x17c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x148]
mov dword [esp], eax
call sub.KERNEL32.dll_GetComputerNameA
sub esp, 8
mov eax, str.tty_d
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.___small_sprintf
mov ecx, ebx
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x610bdbe0
test edx, 0x8080
jne 0x610bdc05
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
cmp ecx, 1
lea eax, [ecx - 2]
ja 0x610bdc16
xor eax, eax
mov dword [ebp - 0x17c], eax
mov eax, esi
mov ecx, dword [ebp - 0x17c]
mov ebx, 2
mov dword [esp + 8], ebx
add eax, ecx
add eax, 8
mov dword [esp + 4], eax
lea eax, [ebp - 0x160]
mov dword [esp], eax
call sym.cygwin1.dll__strncpy
mov edx, 7
mov word [ebp - 0x178], dx
mov edx, dword [0x61107154]
mov eax, dword [edx]
mov dword [ebp - 0x174], eax
mov dword [edx + 0x12c], edi
mov dword [esp], esi
call sym._login
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp], str.Cant_create_master_tty
call sym.___api_fatal
lea esi, [esi]
lea edi, [edi]
Function at 0x610c7150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
test eax, eax
je 0x610c71a7
inc eax
je 0x610c71d0
cmp byte [ebx + 0xd], 0
jne 0x610c7200
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x610c7223
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygserver_transport_pipes.cc
mov eax, str._hPipe
mov dword [esp + 8], eax
mov eax, 0xd7
mov dword [esp + 4], eax
call sym.___assert
mov eax, dword [ebx + 8]
inc eax
jne 0x610c7164
nop
lea esi, [esi]
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygserver_transport_pipes.cc
mov eax, str._hPipe___INVALID_HANDLE_VALUE
mov ecx, 0xd8
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sym.___assert
cmp byte [ebx + 0xd], 0
je 0x610c716e
nop
lea esi, [esi]
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygserver_transport_pipes.cc
mov edx, str.__is_listening_endpoint
mov eax, 0xd9
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym.___assert
jmp 0x610c716e
movzx eax, byte [0x6110a820]
test al, 1
jne 0x610c7253
test al, 1
jne 0x610c728c
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x16
mov dword [eax], 0x16
mov ebx, dword [ebp - 4]
mov eax, 0xffffffff
leave
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x10], eax
mov eax, str.error_reading_from_pipe___lu_
mov dword [esp + 0xc], eax
mov eax, str.virtual_ssize_t_transport_layer_pipes::read_void__size_t_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, byte [0x6110a820]
jmp 0x610c722e
mov dword [esp], 0x6110a820
mov eax, 0x16
mov ebx, 0xdf
mov dword [esp + 0x18], eax
mov eax, str.int___set_errno_const_char__int__int_
mov ecx, str.virtual_ssize_t_transport_layer_pipes::read_void__size_t_
mov dword [esp + 8], eax
mov edx, str._s:_d_val__d
mov eax, 0x40
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610c7232