joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61023060
Capabilities:
Set console window title

Disassembly:
push ebx
mov eax, 0x100
sub esp, 0x148
mov dword [esp + 8], eax
mov eax, dword [esp + 0x150]
lea ebx, [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.cygwin1.dll__strncpy
xor eax, eax
mov byte [esp + 0x130], al
mov eax, 0x3a98
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
call sym.lock_ttys::lock_ttys_unsigned_long_
mov dword [esp], ebx
call sub.KERNEL32.dll_SetConsoleTitleA
sub esp, 4
test byte [0x6110c854], 1
jne 0x610230d0
cmp byte [esp + 0x20], 0
jne 0x61023110
add esp, 0x148
pop ebx
ret 4
mov dword [esp + 0x10], ebx
mov eax, str.title__s
mov ebx, 0x40
mov dword [esp + 0xc], eax
mov eax, 0x6111ebe0
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
cmp byte [esp + 0x20], 0
je 0x610230c0
lea esi, [esi]
lea edi, [edi]
call method.lock_ttys.release__
add esp, 0x148
pop ebx
ret 4
Function at 0x6102f6e0
Capabilities:
Create mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
xor edi, edi
mov eax, esi
mov dword [ebp - 0xc], ebx
and eax, 3
mov ebx, dword [ebp + 8]
je 0x6102f738
dec eax
je 0x6102f7b0
test byte [0x6110c854], 1
jne 0x6102f850
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 - 0xc]
mov eax, edi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0x61109448
lea edx, [ebx + 0x90]
mov dword [esp + 0xc], eax
mov eax, esi
shr eax, 0xe
mov dword [esp], edx
and al, 1
cmp al, 1
sbb eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CreateMailslotA
sub esp, 0x10
cmp eax, 0xffffffff
mov edx, 0x57
je 0x6102f83d
mov dword [ebx + 0x10], eax
mov ecx, 0x10000
mov edi, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
call method.fhandler_base.set_flags_int__int_
movzx eax, word [ebx + 4]
mov word [ebx + 8], ax
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp ebx, dword [0x61149bd0]
je 0x6102f7eb
test byte [0x6110c854], 1
jne 0x6102f897
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 1
mov dword [eax], 1
mov ebx, dword [ebp - 0xc]
mov eax, edi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x611650ec]
xor ecx, ecx
lea edx, [ebx + 0x90]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov ecx, 3
mov dword [esp + 0x10], ecx
mov ecx, 0x61109448
mov dword [esp + 8], eax
mov eax, 0x40000000
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x6102f775
mov edx, 0x6d
mov eax, str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygwin_fhandler_mailslot.cc
call sym.__Z8seterrnoPKci_8
jmp 0x6102f79a
mov dword [esp], 0x6110c854
mov eax, 0x76
mov edx, 0x16
mov dword [esp + 0x14], eax
mov eax, str.virtual_int_fhandler_mailslot::open_int__mode_t_
mov dword [esp + 0x10], eax
mov eax, 0x61120b21
mov dword [esp + 0xc], eax
mov eax, 0x61120ab0
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6102f712
mov dword [esp], 0x6110c854
mov eax, 1
mov esi, 0x61120ab0
mov dword [esp + 0x18], eax
mov eax, 0x66
mov ebx, 0x40
mov dword [esp + 0x14], eax
mov eax, str.virtual_int_fhandler_mailslot::open_int__mode_t_
mov dword [esp + 0x10], eax
mov eax, 0x61120b21
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6102f7c5
Function at 0x61043900
Capabilities:
Check mutex on windows

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x13c
lea ebx, [esp + 0x20]
mov dword [esp + 8], eax
mov eax, str.mtinfo_mutex
mov ebp, dword [esp + 0x150]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.__Z11shared_namePcPKci_12
sub esp, 0xc
xor eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x61109424
call sub.KERNEL32.dll_CreateMutexA
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x61043a29
mov dword [esp], edi
mov eax, 0xffffffff
mov dword [esp + 4], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [ebp]
sub esp, 8
test eax, eax
jne 0x610439c2
mov dword [ebp], 0x179b2af0
xor esi, esi
lea ebx, [ebp + 8]
mov dword [ebp + 4], 2
mov dword [esp + 4], esi
mov ebp, 1
inc esi
mov dword [esp], ebx
add ebx, 0x570
mov dword [esp + 8], ebp
call method.mtinfo_drive.initialize_int__bool_
cmp esi, 7
jbe 0x61043980
mov dword [esp], edi
call sub.KERNEL32.dll_ReleaseMutex
sub esp, 4
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sub.KERNEL32.dll_ReleaseMutex
sub esp, 4
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp]
sub esp, 4
cmp eax, 0x179b2af0
jne 0x61043a39
mov eax, dword [ebp + 4]
cmp eax, 2
je 0x610439b7
mov dword [esp + 0x10], eax
mov edi, 2
mov esi, str.MT_version_number_mismatch:__lu__should_be__lu
mov dword [esp + 0x14], edi
mov ebx, 0x61124058
mov ecx, 0x8000
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], str.CreateMutex__s___E.__Terminating.
call sym.___api_fatal
mov dword [esp + 4], eax
mov edx, 0x179b2af0
mov dword [esp + 8], edx
mov dword [esp], str.MT_magic_number_screwed_up:__lu__should_be__lu
call sym.___api_fatal
lea esi, [esi]
lea edi, [edi]
Function at 0x610520a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
movzx eax, byte [esp + 0x34]
test al, al
mov byte [esp + 0x1b], al
jne 0x61052123
cmp byte [0x611421a4], 0
je 0x61052123
mov edx, dword [0x611421a8]
xor ecx, ecx
cmp edx, 0
mov dword [esp + 0x10], edx
jle 0x61052119
mov eax, dword [0x61142010]
mov edx, eax
mov dword [esp + 0x14], eax
lea esi, [esi]
mov ebp, ecx
mov esi, dword [edx]
mov edi, ebx
shl ebp, 4
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x610520fe
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x61052109
test al, al
jne 0x610520ef
mov eax, 1
jmp 0x6105210b
xor eax, eax
test eax, eax
jne 0x61052141
inc ecx
add edx, 0x10
cmp dword [esp + 0x10], ecx
jg 0x610520e0
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0xffffffff
mov eax, 0x61108510
call method.muto.acquire_unsigned_long_
dec eax
je 0x61052151
mov eax, 0x61108510
call method.muto.release__
jmp 0x610520c1
mov edx, dword [esp + 0x14]
add esp, 0x1c
pop ebx
lea eax, [ebp + edx]
pop esi
pop edi
pop ebp
ret
cmp byte [0x611421a4], 0
je 0x61052172
cmp byte [esp + 0x1b], 0
je 0x61052135
mov eax, dword [0x61142038]
mov dword [esp], eax
call method.etc.file_changed_int_
test al, al
je 0x61052135
mov edx, dword [0x61142028]
test dl, 1
jne 0x61052190
mov ecx, dword [0x6114202c]
lea eax, [ecx + 0x61142020]
mov dword [esp], eax
call edx
jmp 0x61052135
mov ecx, dword [0x6114202c]
mov eax, dword [ecx + 0x61142020]
mov edx, dword [eax + edx - 1]
jmp 0x61052183
Function at 0x61058c80
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, eax
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
sub esp, 0x1c
xor ebx, ebx
nop
mov dword [esp + 8], esi
mov eax, dword [esp + 0x30]
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
test eax, eax
jne 0x61058ce1
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xe7
jne 0x61058cd5
cmp ebx, 8
jg 0x61058cd5
mov dword [esp], 0xa
inc ebx
call sub.KERNEL32.dll_Sleep
sub esp, 4
cmp ebx, 9
jle 0x61058c90
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x61060e50
Capabilities:
Get hostname

Disassembly:
push esi
push ebx
sub esp, 0x114
mov ebx, dword [esp + 0x120]
mov dword [esp], 0
mov esi, dword [esp + 0x124]
call sym.__Z20sig_dispatch_pendingb_4
mov edx, dword fs:[4]
sub esp, 4
lea ecx, [esp + 0x30]
sub edx, 0x319c
mov eax, dword [edx + 0xc30]
mov dword [esp + 0x100], eax
mov eax, dword [edx + 0xc34]
mov dword [edx + 0xc30], ecx
mov dword [esp + 0x104], eax
mov eax, 0xe
mov dword [edx + 0xc34], eax
mov dword [esp], ecx
call sym.___sjfault
test eax, eax
jne 0x61060f3a
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.61100948
sub esp, 8
test eax, eax
jne 0x61060f10
test byte [0x6110c854], 1
jne 0x61060f66
mov edx, dword fs:[4]
mov eax, dword [esp + 0x100]
sub edx, 0x319c
mov dword [edx + 0xc30], eax
mov eax, dword [esp + 0x104]
mov dword [edx + 0xc34], eax
xor eax, eax
add esp, 0x114
pop ebx
pop esi
ret
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetComputerNameA
sub esp, 8
test eax, eax
jne 0x61060ed0
mov edx, 0x368
mov eax, str.cygwin_gethostname
call sym.__set_winsock_errno_char_const__int_
mov eax, dword fs:[4]
mov edx, dword [esp + 0x100]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [esp + 0x104]
mov dword [eax + 0xc34], edx
mov eax, 0xffffffff
jmp 0x61060f06
mov dword [esp + 0x10], ebx
mov eax, str.name__s
mov dword [esp + 0xc], eax
mov eax, str.int_cygwin_gethostname_char__size_t_
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__..._
jmp 0x61060edd
Function at 0x61065020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
sub esp, 0x240
mov eax, dword [0x611650ec]
test byte [eax + 0x10], 1
je 0x610650e3
mov ecx, 0x104
lea ebx, [ebp - 0x118]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_GetSystemDirectoryA
sub esp, 8
xor edx, edx
test eax, eax
je 0x6106515d
mov dword [esp], ebx
call sym.cygwin1.dll__strlen
mov edx, 0x6972645c
mov ecx, 0x73726576
mov dword [ebp + eax - 0x118], edx
mov edx, 0x6374655c
mov dword [ebx + eax + 4], ecx
mov dword [ebx + eax + 8], edx
mov word [ebx + eax + 0xc], 0x5c
mov dword [esp + 4], esi
lea esi, [ebp - 0x228]
mov dword [esp], ebx
call sym.cygwin1.dll__strcat
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._cygwin_conv_to_full_posix_path
test byte [0x6110c854], 1
jne 0x61065198
mov dword [esp], esi
mov ebx, 0x61129154
mov dword [esp + 4], ebx
call sym._fopen_1
test byte [0x6110c854], 1
mov ebx, eax
jne 0x61065166
mov edx, ebx
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret
mov ecx, 0x104
lea ebx, [ebp - 0x118]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
sub esp, 8
xor edx, edx
test eax, eax
je 0x6106515d
mov dword [esp], ebx
call sym.cygwin1.dll__strlen
mov edx, 0x5c
mov word [ebp + eax - 0x118], dx
mov dword [esp + 4], esi
lea esi, [ebp - 0x228]
mov dword [esp], ebx
call sym.cygwin1.dll__strcat
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._cygwin_conv_to_full_posix_path
test byte [0x6110c854], 1
jne 0x61065198
mov dword [esp], esi
mov eax, 0x61129154
mov dword [esp + 4], eax
call sym._fopen_1
test byte [0x6110c854], 1
mov ebx, eax
mov edx, eax
jne 0x61065166
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0x10], ebx
mov edx, str.FILE_open_system_file_const_char_
mov ecx, str.handle_to_netdb_file__p
mov dword [esp + 8], edx
mov eax, 0x40
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov edx, ebx
jmp 0x610650da
mov dword [esp + 0x10], ebx
mov eax, str.netdb_file_to_open__s
mov ebx, 0x40
mov dword [esp + 0xc], eax
mov eax, str.FILE_open_system_file_const_char_
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610650b8
Function at 0x61066a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
movzx eax, byte [esp + 0x34]
test al, al
mov byte [esp + 0x1b], al
jne 0x61066ad3
cmp byte [0x611465dc], 0
je 0x61066ad3
mov edx, dword [0x611465e0]
xor ecx, ecx
cmp edx, 0
mov dword [esp + 0x10], edx
jle 0x61066ac9
mov eax, dword [0x61146450]
mov edx, eax
mov dword [esp + 0x14], eax
lea esi, [esi]
mov ebp, ecx
mov edi, dword [edx]
mov esi, ebx
shl ebp, 5
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61066aae
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x61066ab9
test al, al
jne 0x61066a9f
mov eax, 1
jmp 0x61066abb
xor eax, eax
test eax, eax
jne 0x61066af1
inc ecx
add edx, 0x20
cmp dword [esp + 0x10], ecx
jg 0x61066a90
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0xffffffff
mov eax, 0x61108510
call method.muto.acquire_unsigned_long_
dec eax
je 0x61066b01
mov eax, 0x61108510
call method.muto.release__
jmp 0x61066a71
mov edx, dword [esp + 0x14]
add esp, 0x1c
pop ebx
lea eax, [ebp + edx]
pop esi
pop edi
pop ebp
ret
cmp byte [0x611465dc], 0
je 0x61066b22
cmp byte [esp + 0x1b], 0
je 0x61066ae5
mov eax, dword [0x61146470]
mov dword [esp], eax
call method.etc.file_changed_int_
test al, al
je 0x61066ae5
mov edx, dword [0x61146460]
test dl, 1
jne 0x61066b40
mov ecx, dword [0x61146464]
lea eax, [ecx + 0x61146458]
mov dword [esp], eax
call edx
jmp 0x61066ae5
mov ecx, dword [0x61146464]
mov eax, dword [ecx + 0x61146458]
mov edx, dword [eax + edx - 1]
jmp 0x61066b33

Function at 0x61067560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], esi
mov ecx, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 4], edi
mov edi, edx
cmp dword [0x61146c88], 2
je 0x610675b0
cld
and eax, 0xff
dec ecx
js 0x61067598
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61067594
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x6106759f
test al, al
jne 0x61067582
mov eax, 1
jmp 0x610675a1
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.cygwin1.dll__strncmp
test eax, eax
mov esi, dword [ebp - 8]
sete al
mov edi, dword [ebp - 4]
mov esp, ebp
movzx eax, al
pop ebp
ret

Function at 0x610676c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov edi, edx
cmp dword [0x61146c88], 2
je 0x61067705
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x610676ee
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x610676f9
test al, al
jne 0x610676df
mov eax, 1
jmp 0x610676fb
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.cygwin1.dll__strcmp
test eax, eax
mov esi, dword [ebp - 8]
sete al
mov edi, dword [ebp - 4]
mov esp, ebp
movzx eax, al
pop ebp
ret
Function at 0x610687f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], 0
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], eax
cmp edx, 0
mov dword [ebp - 0x20], edx
lea esi, [esi]
jle 0x61068876
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
imul eax, dword [edx + ecx*4 + 0x3f6c], 0x214
lea esi, [eax + edx]
lea ecx, [esi + 8]
mov dword [ebp - 0x1c], ecx
mov eax, 0x2f
lea edi, [esi + 0x110]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.cygwin1.dll__strrchr
test eax, eax
mov edx, eax
je 0x610688c0
cmp edi, eax
je 0x610688d0
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sub eax, 0x108
cmp eax, ebx
je 0x61068881
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
jg 0x61068822
mov eax, dword [ebp - 0x14]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov ecx, ebx
cld
and eax, 0xff
dec ecx
js 0x610688a2
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x6106889e
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x610688a9
test al, al
jne 0x6106888c
mov eax, 1
jmp 0x610688ab
xor eax, eax
test eax, eax
je 0x610688c0
lea eax, [edx + 1]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x14], edx
nop
inc dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x20], edx
jmp 0x61068820
cmp ebx, 1
jne 0x610688c0
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x111]
cmp dword [ecx + 0x20c], 1
jg 0x610688b2
inc dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x20], edx
jmp 0x61068820
Function at 0x61069be0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test eax, eax
js 0x61069cab
cmp dword [edx + 4], eax
jg 0x61069c8c
mov edx, dword fs:[4]
mov esi, 1
mov ebx, 0x61
mov eax, dword [edx - 0x29ec]
test eax, eax
je 0x61069c82
lea edi, [ebp - 0x12c]
lea esi, [esi]
lea edi, [edi]
test esi, eax
jne 0x61069c3c
inc ebx
add esi, esi
cmp ebx, 0x7a
jbe 0x61069c30
mov dword [esp], edi
mov eax, str._c:_
lea edi, [ebp - 0x12c]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sym.___small_sprintf
mov dword [esp], edi
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
inc eax
jne 0x61069ce4
mov edx, dword fs:[4]
mov eax, esi
not eax
mov ecx, dword [edx - 0x29ec]
and eax, ecx
test eax, eax
mov dword [edx - 0x29ec], eax
jne 0x61069cd0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
imul eax, dword [edx + eax*4 + 0x3fe4], 0x214
lea eax, [eax + edx + 8]
mov dword [esp], eax
call method.mount_item.getmntent__
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword fs:[4]
mov esi, 1
mov ebx, 0x61
lea edi, [ebp - 0x12c]
mov eax, dword [edx - 0x29ec]
test eax, eax
je 0x61069c82
lea esi, [esi]
cmp ebx, 0x7a
ja 0x61069c3c
mov eax, dword [edx - 0x29ec]
jmp 0x61069c30
mov byte [ebp - 0x12a], 0
mov dword [esp + 0xc], ebx
mov eax, dword [0x61109534]
lea ebx, [ebp - 0x128]
mov dword [esp], ebx
add eax, 0xa460
mov dword [esp + 8], eax
mov eax, str._s_c
mov dword [esp + 4], eax
call sym.___small_sprintf
mov eax, dword [0x61109534]
mov edx, ebx
mov ecx, dword [eax + 0xa568]
lea eax, [ebp - 0x12c]
call sym.fillout_mntent_char_const__char_const__unsigned_int_
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6106a010
Capabilities:
Get disk information

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword fs:[4]
mov dword [ebx - 0x29f0], ecx
call sub.KERNEL32.dll_GetLogicalDrives
mov dword [ebx - 0x29ec], eax
mov eax, dword fs:[4]
mov eax, dword [eax - 0x29ec]
test al, 1
jne 0x6106a050
test al, 2
jne 0x6106a070
mov eax, dword [ebp + 8]
pop edx
pop ebx
pop ebp
ret
mov dword [esp], 0x61129ae0
call sym.is_floppy_char_const_
test al, al
jne 0x6106a094
mov eax, dword fs:[4]
test byte [eax - 0x29ec], 2
je 0x6106a045
nop
mov dword [esp], 0x61129ae3
call sym.is_floppy_char_const_
test al, al
je 0x6106a045
mov eax, dword fs:[4]
and dword [eax - 0x29ec], 0xfffffffd
mov eax, dword [ebp + 8]
pop edx
pop ebx
pop ebp
ret
mov eax, dword fs:[4]
and dword [eax - 0x29ec], 0xfffffffe
jmp 0x6106a066
Function at 0x6106a140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test byte [eax + 0x114], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
je 0x6106a1e0
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
cmp eax, 0x2000
mov ebx, eax
ja 0x6106a1e0
lea eax, [eax + 0x1e]
and eax, 0xfffffff0
call sym.cygwin1.dll__alloca
mov dword [esp + 8], ebx
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x23]
and ecx, 0xfffffff0
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x6106a305
cmp dword [ebp - 0x10], ebx
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x14], edi
je 0x6106a250
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x110]
test dl, 0x50
jne 0x6106a230
xor ecx, ecx
cmp dword [ebp - 0x10], 1
jle 0x6106a220
movzx eax, byte [ebp - 0x14]
cmp al, 0x23
je 0x6106a2c7
cmp al, 0x3a
je 0x6106a2ff
cmp al, 0x4d
je 0x6106a2db
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x6106a230
mov ecx, dword [ebp - 0x1c]
or edx, 0x10
mov dword [ecx + 0x110], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp], ecx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x20]
xor ebx, ebx
cmp dword [edi], 0x4c
je 0x6106a31e
test bl, bl
je 0x6106a1e0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add edx, 0x4c
test byte [eax + 0x14], 1
jne 0x6106a2f2
movzx eax, word [edx]
test ax, ax
movzx ebx, ax
je 0x6106a1e0
cmp bx, 0x103
ja 0x6106a1e0
mov dword [esp + 8], ebx
add edx, 2
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call sym.cygwin1.dll__strncpy
mov ecx, dword [ebp - 0x1c]
test ebx, ebx
mov byte [ecx + ebx], 0
mov dword [ebp - 0x18], ebx
je 0x6106a230
mov eax, 0x1000001
mov dword [ecx + 0x110], eax
jmp 0x6106a230
cmp byte [ebp - 0x13], 0x21
jne 0x6106a20a
mov ecx, 1
jmp 0x6106a220
lea eax, [ebp - 0x14]
cmp byte [eax + 1], 0x5a
jne 0x6106a220
mov ecx, 1
jmp 0x6106a220
movzx eax, word [eax + 0x4c]
lea edx, [eax + edx + 2]
jmp 0x6106a275
cmp byte [ebp - 0x13], 0xa
jmp 0x6106a2e2
mov esi, dword [ebp - 0x1c]
mov eax, 5
mov dword [esp + 4], eax
mov dword [esp], esi
call method.symlink_info.set_error_int_
jmp 0x6106a230
cld
mov eax, dword [ebp - 0x20]
mov edx, 0x61129790
mov ecx, 0x10
mov edi, edx
add eax, 4
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x6106a25e
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x14]
and eax, 0xfffffffe
cmp eax, 0xc
jne 0x6106a25e
cmp dword [edx + 0x3c], 1
jne 0x6106a25e
mov ebx, 1
jmp 0x6106a25e
Function at 0x61070f30
Capabilities:
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx ecx, byte [0x611025c0]
mov dword [ebp + 8], 0
mov edx, dword [ebp + 0xc]
pop ebp
jmp sym.symlink_worker_char_const__char_const__bool__bool_