joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61073710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], al
cmp dword [ebx + 0x1e0], 0xffffffff
je 0x61073750
mov eax, dword [0x61109170]
mov eax, dword [eax + 0x1e0]
test eax, eax
je 0x61073750
mov eax, dword [0x61148184]
test eax, eax
je 0x61073760
nop
lea esi, [esi]
xor eax, eax
cmp dword [ebp - 8], 0
mov ebx, dword [ebp - 4]
leave
setne al
ret
mov dword [esp], ebx
call method._pinfo.sync_proc_pipe__
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
lea eax, [ebp - 9]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1e0]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
jne 0x61073750
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x610737e1
test byte [0x6110c854], 1
je 0x61073750
movsx eax, byte [ebp - 9]
mov ebx, str.bool__pinfo::alert_parent_char_
mov dword [esp], 0x6110c854
mov ecx, 0x40
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp + 0x10], eax
mov eax, str.sending__d_notification_to_parent_failed___E
mov dword [esp + 0xc], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61073750
mov dword [ebx + 0x10], 1
mov eax, dword [ebx + 0x1e0]
mov edx, 0xffffffff
mov dword [ebx + 0x1e0], edx
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x61073750
Function at 0x6107e020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
sete dl
test esi, esi
sete al
xor ecx, ecx
or dl, al
jne 0x6107e124
mov eax, dword [0x611650ec]
test byte [eax + 0x10], 1
jne 0x6107e130
mov eax, 0x6112c2b1
mov dword [esp + 8], eax
lea edi, [ebp - 0x118]
mov eax, str.SOFTWAREMicrosoftWindows_sCurrentVersionProfileList_
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.___small_sprintf
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], edi
call sym.cygwin1.dll__strcat
mov dword [esp + 8], ebx
lea eax, [ebp - 0x21c]
mov dword [esp + 0x10], eax
mov eax, 0x20019
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp], 0x80000002
call fcn.610ff910
sub esp, 0x14
test eax, eax
jne 0x6107e119
mov byte [esi], 0
mov ecx, 0x100
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ecx
xor edx, edx
lea ebx, [ebp - 0x218]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x224]
mov dword [esp + 0xc], eax
mov eax, str.ProfileImagePath
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call fcn.610ff960
sub esp, 0x18
test eax, eax
je 0x6107e140
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp byte [esi], 0
mov ecx, esi
jne 0x6107e124
xor ecx, ecx
test byte [0x6110c854], 1
jne 0x6107e160
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, 0x6112c2fe
jmp 0x6107e05a
mov dword [esp + 4], esi
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
sub esp, 0xc
jmp 0x6107e101
mov dword [esp + 0x10], edi
mov eax, str.HKLM_s_not_found
mov dword [esp + 0xc], eax
mov eax, str.char_get_registry_hive_path_const_char__char_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
lea esp, [ebp - 0xc]
xor ecx, ecx
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x61084ad0
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 0x61084b69
mov esi, ebx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61084b20
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x61084b2b
test al, al
jne 0x61084b11
mov eax, 1
jmp 0x61084b2d
xor eax, eax
test eax, eax
je 0x61084b64
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 0x61084b5c
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 0x61084b31
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.610ffba0
sub esp, 0xc
test eax, eax
jne 0x61084bf7
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 0x61084c12
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 0x61084bd0
mov dword [esp], ecx
call fcn.610ffb78
sub esp, 4
jmp 0x61084b57
mov ecx, eax
mov edx, 0xf0
mov eax, str._ext_build_netrel_src_cygwin_1.5.25_7_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 0x61084be7
Function at 0x6109a590
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 0x6109afa0
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 0x6109afe8
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx + 1], 0x3a
je 0x6109afe8
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 0x6109b040
mov esi, dword [ebp + 8]
add esi, edx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x6109b008
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x6109b013
test al, al
jne 0x6109aff9
mov eax, 1
jmp 0x6109b015
xor eax, eax
test eax, eax
je 0x6109b040
test edx, edx
je 0x6109b033
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 0x6109b040
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 0x6109d7d0
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, 0x61131122
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 0x6109d820
test edx, 0x8080
jne 0x6109d845
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 0x6109d880
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, edx
cmp byte [eax], 3
je 0x6109d893
mov ebx, dword [ebp - 4]
leave
ret
call fcn.61101110
test eax, eax
je 0x6109d88e
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 0x6109d8f0
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 0x6109dac6
test dword [ebp + 0xc], 0x8000
jne 0x6109d980
test byte [edi], 1
jne 0x6109da90
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 0x6109d9e4
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 0x6109d959
mov dword [esp], str.CONOUT_
xor eax, eax
mov ebx, 3
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, 0x61109448
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 0x6109da76
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 0x6109d962
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 0x610a4040
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x611481f4]
test eax, eax
je 0x610a4055
mov eax, dword [0x6114820c]
add esp, 0xc
ret
mov dword [esp], 0x611481f0
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [0x6114820c]
sub esp, 4
add esp, 0xc
ret

Function at 0x610a4070
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x6114820c]
test eax, eax
je 0x610a4085
mov eax, dword [0x611481f4]
add esp, 0xc
ret
mov dword [esp], 0x611481f0
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [0x611481f4]
sub esp, 4
add esp, 0xc
ret
Function at 0x610a64f0
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 0x610a6603
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 0x610a6594
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 0x610a658c
Function at 0x610ae870
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 0x610ae89f
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 0x610ae900
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x610ae930
cmp dword [esi + 0x38], 1
je 0x610ae930
cmp esi, edi
jne 0x610ae96c
lea ebx, [esi + 0x58]
mov eax, 0xffffffff
cmp dword [ebx + 0x1c], 2
je 0x610ae8d9
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 0x610ae913
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 0x610ae943
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 0x610ae9c4
lea ebx, [esi + 0x58]
mov eax, 0xffffffff
cmp dword [ebx + 0x1c], 2
je 0x610ae9a8
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 0x610ae95d
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 0x610ae995
Function at 0x610aeff0
Capabilities:
Resume thread

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

Function at 0x610aff20
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 0x610aff50
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 0x610b1e80
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xf4
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x610b1f10
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 0x610b1f10
mov eax, dword [ebx]
cmp dword [eax + 4], 0xdf0df045
je 0x610b1f4d
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 0x610b1f2d
mov eax, dword [ebx]
cmp byte [eax + 0x35], 0
je 0x610b1f37
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 0x610b1f08
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 0x610b1efa
Function at 0x610b1f80
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xf4
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x610b2025
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 0x610b2025
mov eax, dword [ebx]
cmp dword [eax + 4], 0xdf0df045
je 0x610b204c
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 0x610b2042
mov eax, dword [ebx]
cmp byte [eax + 0x35], 1
jne 0x610b201a
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 0x610b1ffe

Function at 0x610b4bf0
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.610b4ef0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
call sub.KERNEL32.dll_TlsAlloc
mov dword [esi + 8], eax
inc eax
je 0x610b4c4f
mov ebx, 0x61149c90
test esi, esi
jmp 0x610b4c45
mov edi, dword [0x61149c90]
mov ecx, ebx
mov edx, esi
mov dword [esi + 0xc], edi
mov eax, edi
lock cmpxchg dword [ecx], edx
cmp eax, edi
jne 0x610b4c30
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 0x610bdee0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
mov edx, dword [0x61102268]
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 [0x6110850c], eax
mov dword [esp], eax
call method.fhandler_tty_master.init__
test eax, eax
jne 0x610be066
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 0x610bdfd0
test edx, 0x8080
jne 0x610bdff5
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
cmp ecx, 1
lea eax, [ecx - 2]
ja 0x610be006
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 [0x61109170]
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]