joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434b90
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x4bc928]
mov dword [0x4bc82c], 0
mov dword [0x4bc8e0], 0
test eax, eax
je 0x434c45
mov eax, dword [sym.brltty.exe_AttachConsoleProc]
test eax, eax
je 0x434de0
mov ebx, dword [sym.brltty.exe_GetAltTabInfoAProc]
test ebx, ebx
je 0x434c45
mov dword [esp + 4], 0
mov dword [esp], 0x434780
mov dword [0x4bc900], 0x28
call sub.user32.dll_EnumWindows
mov edx, dword [0x4bc8e0]
sub esp, 8
test edx, edx
je 0x434c45
mov eax, dword [0x4bc914]
xor esi, esi
imul eax, dword [0x4bc908]
add eax, dword [0x4bc910]
mov dword [esp + 0x10], pe_nt_image_headers32
mov dword [esp + 0xc], 0x4bc860
mov dword [esp + 8], 0x4bc900
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.brltty.exe_GetAltTabInfoAProc]
sub esp, 0x14
test eax, eax
jne 0x434c9f
mov dword [0x4bc8e0], 0
call sub.user32.dll_GetForegroundWindow
test eax, eax
mov ebx, eax
je 0x434d55
mov esi, eax
mov eax, dword [sym.brltty.exe_AttachConsoleProc]
test eax, eax
je 0x434d70
cmp ebx, 0xffffffff
je 0x434d90
mov edx, dword [0x4bc928]
test edx, edx
jne 0x434ca8
mov eax, dword [0x4751c4]
cmp eax, 0xffffffff
je 0x434d42
mov dword [esp + 4], 0x4bc830
mov dword [esp], eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
sub esp, 8
test eax, eax
je 0x434da3
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
test eax, eax
je 0x434c76
mov dword [esp + 8], 0x13
mov dword [esp + 4], 0x4751ac
mov dword [esp], ebx
call sub.user32.dll_GetClassNameA
sub esp, 0xc
cmp eax, 0x12
je 0x434ce0
mov dword [0x4bc82c], str.no_attachable_console
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0x12
mov dword [esp + 4], str.ConsoleWindowClass
mov dword [esp], 0x4751ac
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x434ccc
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.user32.dll_GetWindowThreadProcessId
sub esp, 8
test eax, eax
je 0x434ccc
call sub.kernel32.dll_FreeConsole
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.brltty.exe_AttachConsoleProc]
sub esp, 4
test eax, eax
je 0x434ccc
call fcn.00434830
call fcn.00434880
test eax, eax
jne 0x434c76
jmp 0x434ccc
mov dword [0x4bc82c], str.cant_open_console_output
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
mov eax, dword [sym.brltty.exe_AttachConsoleProc]
mov esi, 0xffffffff
mov ebx, 0xffffffff
test eax, eax
jne 0x434c63
lea esi, [esi]
mov ecx, dword [0x4bc92c]
test ecx, ecx
je 0x434c63
mov dword [0x4bc82c], str.root_BRLTTY
jmp 0x434c9f
mov dword [0x4bc82c], str.no_foreground_window
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
mov dword [esp], str.GetConsoleScreenBufferInfo
call sym.brltty.exe_logWindowsSystemError
mov eax, dword [0x4751c4]
mov dword [0x4bc82c], 0x488068
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
mov eax, esi
mov dword [0x4751c4], 0xffffffff
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov esi, dword [0x4bc92c]
test esi, esi
je 0x434c45
jmp 0x434bc6
Function at 0x453190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
movzx edi, byte [ebp + 8]
lea eax, [edi + 0x13]
and eax, 0x1f0
call fcn.0046d550
sub esp, eax
movzx eax, byte [ebp + 8]
mov byte [esp + 0xd], dl
lea ebx, [esp + 0xc]
mov dword [esp + 4], ecx
mov byte [esp + 0xc], 0
movzx edx, al
mov byte [esp + 0xe], al
lea eax, [esp + 0xf]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + edx]
cmp ebx, ecx
jae 0x45326a
mov edx, ebx
xor eax, eax
nop
add edx, 1
xor al, byte [edx - 1]
cmp edx, ecx
jne 0x4531f0
mov byte [ecx], al
add ecx, 1
sub ecx, ebx
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [ebp - 0x1c], ecx
call sym.brltty.exe_logOutputPacket
imul eax, edi, 0x3e8
xor edx, edx
mov edi, dword [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
div dword [0x4be680]
mov dword [esp + 8], ecx
lea eax, [edi + eax + 1]
mov dword [esi], eax
mov eax, dword [0x4be684]
mov dword [esp], eax
call sym.brltty.exe_serialWriteData
mov edx, 1
cmp eax, 0xffffffff
je 0x453252
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.serial_write
call sym.brltty.exe_logSystemError
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x4531fa

Function at 0x456850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x4bed60
push ebx
sub esp, 0x4c
mov ebx, dword [0x4bed5c]
lea edi, [ebp - 0x2c]
test ebx, ebx
jne 0x45688b
jmp 0x456970
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x30]
add esi, eax
sub esp, 4
sub ebx, eax
je 0x456970
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call sub.kernel32.dll_CreateEventA
sub esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [0x4753e4]
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.kernel32.dll_WriteFile
sub esp, 0x14
test eax, eax
jne 0x456904
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x45692f
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov eax, dword [0x4753e4]
mov dword [esp + 0xc], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.kernel32.dll_GetOverlappedResult
sub esp, 0x10
test eax, eax
jne 0x456870
mov dword [esp], 0x496da0
call sym.brltty.exe_logWindowsSocketError
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
mov dword [0x4bed5c], ebx
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 0x4bed60
call fcn.004746f8
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x4bed5c], 0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x457010
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.ws2_32.dll_socket
sub esp, 0xc
leave
ret

Function at 0x457350
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov dword [ebp - 0xc], 1
call sub.ws2_32.dll_setsockopt
mov edx, eax
sub esp, 0x14
cmp edx, 0xffffffff
mov eax, 1
je 0x457398
leave
ret
mov dword [esp], str.setsockopt_REUSEADDR
call sym.brltty.exe_logWindowsSocketError
xor eax, eax
leave
ret
Function at 0x4581f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x13c
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], ecx
call fcn.00457010
cmp eax, 0xffffffff
mov ebx, eax
je 0x458401
mov dword [esp], eax
mov esi, 0xffffffff
call fcn.00457350
test eax, eax
je 0x458397
mov dword [esp + 8], 0x10
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.ws2_32.dll_bind
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4583d7
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.ws2_32.dll_listen
sub esp, 8
cmp eax, 0xffffffff
je 0x4583e5
mov eax, edi
call fcn.004570b0
test eax, eax
mov esi, eax
je 0x458298
mov dword [esp + 8], eax
mov dword [esp + 4], str.listening_on:__s
mov dword [esp], 5
call sym.brltty.exe_logMessage
mov dword [esp], esi
call sub.msvcrt.dll_free
lea eax, [ebx + 1]
xor esi, esi
mov dword [ebp - 0x12c], eax
lea edi, [ebp - 0x124]
lea eax, [ebp - 0x11c]
add esi, 1
mov dword [edi + 4], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x124], 0xa
call sub.ws2_32.dll_select
sub esp, 0x14
cmp eax, 0xffffffff
je 0x4583b6
test eax, eax
jne 0x458323
mov dword [esp + 8], esi
mov dword [esp + 4], str.no_connection_yet__still_waiting___d_.
mov dword [esp], 7
call sym.brltty.exe_logMessage
jmp 0x4582a9
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.ws2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x4582a9
mov eax, dword [ebp - 0x134]
mov edi, dword [ebp - 0x130]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sub.ws2_32.dll_accept
sub esp, 0xc
cmp eax, 0xffffffff
mov esi, eax
je 0x4583f3
mov eax, edi
call fcn.004570b0
test eax, eax
mov edi, eax
je 0x458397
mov dword [esp + 8], eax
mov dword [esp + 4], str.client_is:__s
mov dword [esp], 5
call sym.brltty.exe_logMessage
mov dword [esp], edi
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.kernel32.dll_CloseHandle
sub esp, 4
mov dword [0x4bed10], 0x4971e4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x4582a9
mov dword [esp], str.select
mov esi, 0xffffffff
call sym.brltty.exe_logWindowsSocketError
jmp 0x458397
mov dword [esp], 0x497098
call sym.brltty.exe_logWindowsSocketError
jmp 0x458397
mov dword [esp], 0x497091
call sym.brltty.exe_logWindowsSocketError
jmp 0x458397
mov dword [esp], str.accept
call sym.brltty.exe_logWindowsSocketError
jmp 0x458397
mov dword [esp], str.socket
mov esi, 0xffffffff
call sym.brltty.exe_logWindowsSocketError
jmp 0x4583a2
Function at 0x45a530
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x45a564
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2734
jne 0x45a55b
mov edx, dword [ebp + 0x14]
mov ecx, 0x45a060
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4979ec
mov dword [ebp - 0xc], esi
call fcn.0045a0c0
test eax, eax
je 0x45a5d6
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1007
mov dword [esp + 4], 0xffff
mov dword [esp], esi
mov dword [ebp - 0x10], 4
call sub.ws2_32.dll_getsockopt
sub esp, 0x14
cmp eax, 0xffffffff
je 0x45a5d6
mov eax, dword [ebp - 0x14]
xor ebx, ebx
test eax, eax
je 0x45a55b
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [esp], esi
mov ebx, 0xffffffff
call sub.msvcrt.dll__close
jmp 0x45a55b

Function at 0x45bfd0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov eax, esi
call fcn.0045bd70
test eax, eax
je 0x45c026
test ebx, ebx
jne 0x45c008
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
add esp, 0x10
pop ebx
pop esi
pop edi
jmp sym.brltty.exe_serialPutData
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x497e1a
mov dword [esp], 0x8b
call sym.brltty.exe_logBytes
jmp 0x45bff1
add esp, 0x10
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
Function at 0x45d030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, 1
sub esp, 0x40
mov esi, dword [ebp + 8]
cmp dword [esi + 0x78], 0xffffffff
je 0x45d050
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0xc], 0
mov dword [esp], eax
call sub.kernel32.dll_SetCommTimeouts
sub esp, 8
test eax, eax
mov ebx, eax
jne 0x45d0b8
mov dword [esp], str.SetCommTimeouts_serialAwaitInput
call sym.brltty.exe_logWindowsSystemError
call sub.msvcrt.dll__errno
mov esi, eax
call sub.kernel32.dll_GetLastError
mov dword [esp], eax
call sym.brltty.exe_win_toErrno
mov dword [esi], eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x21]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esi + 0x74]
mov dword [esp], eax
call sub.kernel32.dll_ReadFile
sub esp, 0x14
test eax, eax
mov ebx, eax
je 0x45d102
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x45d110
movzx eax, byte [ebp - 0x21]
mov ebx, 1
mov dword [esi + 0x78], eax
jmp 0x45d046
mov dword [esp], 0x4980ed
jmp 0x45d094
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xb
jmp 0x45d046
Function at 0x45d170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x78]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp eax, 0xffffffff
je 0x45d270
mov edx, dword [ebp + 0xc]
mov esi, 1
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x2c]
mov byte [edx], al
mov dword [edi + 0x78], 0xffffffff
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], ecx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x74]
sub ebx, esi
mov dword [esp], eax
call sub.kernel32.dll_SetCommTimeouts
sub esp, 8
test eax, eax
je 0x45d2d8
test ebx, ebx
je 0x45d260
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
jmp 0x45d203
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x45d260
add esi, eax
sub ebx, eax
je 0x45d260
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [esp + 4], eax
mov eax, dword [edi + 0x74]
mov dword [esp], eax
call sub.kernel32.dll_ReadFile
sub esp, 0x14
test eax, eax
jne 0x45d1f6
mov dword [esp], 0x4980ed
call sym.brltty.exe_logWindowsSystemError
call sub.msvcrt.dll__errno
mov ebx, eax
call sub.kernel32.dll_GetLastError
mov dword [esp], eax
call sym.brltty.exe_win_toErrno
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x2c]
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call sub.kernel32.dll_SetCommTimeouts
mov ecx, dword [ebp - 0x3c]
sub esp, 8
test eax, eax
je 0x45d2e4
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x3c], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x74]
mov dword [esp], eax
call sub.kernel32.dll_ReadFile
mov ecx, dword [ebp - 0x3c]
sub esp, 0x14
test eax, eax
je 0x45d231
mov edx, dword [ebp - 0x30]
xor eax, eax
test edx, edx
je 0x45d262
mov esi, edx
jmp 0x45d1c5
mov dword [esp], str.SetCommTimeouts_serialReadChunk2
jmp 0x45d238
mov dword [esp], str.SetCommTimeouts_serialReadChunk1
jmp 0x45d238
Function at 0x45d2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [esp], eax
mov dword [ebp - 0x1c], 0x3a98
call sub.kernel32.dll_SetCommTimeouts
sub esp, 8
test eax, eax
je 0x45d3a1
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x45d396
mov edi, dword [ebp + 0x10]
jmp 0x45d354
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x45d37d
add esi, eax
sub edi, eax
je 0x45d396
lea eax, [ebp - 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x74]
mov dword [esp], eax
call sub.kernel32.dll_WriteFile
sub esp, 0x14
test eax, eax
jne 0x45d347
mov dword [esp], str.WriteFile
call sym.brltty.exe_logWindowsSystemError
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.SetCommTimeouts_serialWriteData
call sym.brltty.exe_logWindowsSystemError
call sub.msvcrt.dll__errno
mov ebx, eax
call sub.kernel32.dll_GetLastError
mov dword [esp], eax
call sym.brltty.exe_win_toErrno
mov dword [ebx], eax
mov eax, 0xffffffff
jmp 0x45d38e

Function at 0x45e680
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
or dl, byte [esp + 0xc]
or dl, byte [esp + 8]
mov byte [eax], dl
mov edx, dword [esp + 0x14]
mov byte [eax + 1], dl
mov edx, dword [esp + 0x18]
mov word [eax + 2], dx
mov edx, dword [esp + 0x1c]
mov word [eax + 4], dx
mov edx, dword [esp + 0x20]
mov word [eax + 6], dx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x45de50
mov dword [esp + 4], 0x8c
jmp sym.brltty.exe_logData

Function at 0x4642b0
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jmp sym.brltty.exe_bthPollInput

Function at 0x464320
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
test ebx, ebx
je 0x464352
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.output
mov dword [esp], 0x8d
call sym.brltty.exe_logBytes
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0xc]
mov dword [esp + 0x20], eax
add esp, 0x10
pop ebx
pop esi
pop edi
jmp sym.brltty.exe_bthPutData
Function at 0x464810
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
movzx eax, byte [ebp + 0xc]
mov dword [ebx + 0x3c], eax
call fcn.004644c0
test eax, eax
jne 0x464830
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x20
call sub.ws2_32.dll_socket
sub esp, 0xc
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x464900
lea edx, [ebx + 4]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ws2_32.dll_bind
sub esp, 0xc
cmp eax, 0xffffffff
je 0x464918
lea eax, [ebx + 0x22]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4648d0
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov eax, dword [ebx]
mov dword [ebp - 0xc], 1
mov dword [esp], eax
call sub.ws2_32.dll_ioctlsocket
sub esp, 0xc
cmp eax, 0xffffffff
je 0x464930
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 0x49a3a0
mov edx, str.RFCOMM_connect
call fcn.00464470
mov eax, dword [ebx]
mov dword [esp], eax
call sub.ws2_32.dll_closesocket
xor eax, eax
mov dword [ebx], 0xffffffff
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov edx, str.RFCOMM_socket
call fcn.00464470
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov edx, str.RFCOMM_bind
call fcn.00464470
jmp 0x4648e4
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov edx, str.RFCOMM_nonblocking
call fcn.00464470
jmp 0x4648e4

Function at 0x464a70
Capabilities:
Get socket status

Disassembly:
push ebp
mov edx, 0x10624dd3
mov ebp, esp
push esi
push ebx
sub esp, 0x130
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
mov ebx, dword [eax]
mov eax, ecx
imul edx
mov eax, ecx
sar eax, 0x1f
mov dword [esp + 0x10], esi
mov dword [ebp - 0x108], ebx
add ebx, 1
sar edx, 6
sub edx, eax
mov dword [ebp - 0x114], edx
imul edx, edx, 0x3e8
lea eax, [ebp - 0x10c]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
sub ecx, edx
imul ecx, ecx, 0x3e8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x110], ecx
call sub.ws2_32.dll_select
sub esp, 0x14
cmp eax, 0xffffffff
mov ebx, eax
je 0x464b24
test eax, eax
je 0x464b10
lea esp, [ebp - 8]
mov ebx, 1
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xb
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov edx, str.RFCOMM_wait
xor ebx, ebx
call fcn.00464470
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x464b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
je 0x464bd3
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
jmp 0x464b84
add ebx, eax
sub edi, eax
je 0x464be0
mov eax, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0xc]
cmovne eax, dword [ebp + 0x18]
test eax, eax
je 0x464bf0
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.brltty.exe_bthPollInput
test eax, eax
je 0x464bc6
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [esi]
mov dword [esp], eax
call sub.ws2_32.dll_recv
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x464b60
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 0x49a38c
mov edx, str.RFCOMM_read
mov dword [ebp - 0x1c], eax
call fcn.00464470
cmp dword [ebp - 0x1c], 0x2733
je 0x464b66
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
call sub.msvcrt.dll__errno
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
sub eax, edi
pop edi
pop ebp
ret
cmp edi, dword [ebp + 0x10]
jne 0x464be0
jmp 0x464bd5

Function at 0x464c00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x464c1e
jmp 0x464c60
add esi, eax
sub edi, eax
je 0x464c60
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call sub.ws2_32.dll_send
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x464c18
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov edx, str.RFCOMM_write
call fcn.00464470
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4655b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x4c
test ecx, ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], 0
je 0x4656da
mov edi, eax
xor ebx, ebx
jmp 0x4655ec
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
add ebx, dword [ebp - 0x30]
sub esp, 4
cmp esi, ebx
jbe 0x4656d0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call sub.kernel32.dll_CreateEventA
sub esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], edi
add eax, ebx
mov dword [esp + 4], eax
call sub.kernel32.dll_WriteFile
sub esp, 0x14
test eax, eax
jne 0x46566c
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x465695
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.kernel32.dll_GetOverlappedResult
sub esp, 0x10
test eax, eax
jne 0x4655d3
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
sub esp, 4
call sub.msvcrt.dll__errno
mov ebx, eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym.brltty.exe_win_toErrno
mov dword [ebx], eax
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x4656c4