joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039a4
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, qword [rcx + 0xa8]
mov r12, rcx
mov r8, rdx
test rbx, rbx
je 0x4039d6
lea edx, [rax + 1]
cmp dword [r12 + 0xb0], eax
je 0x4039e7
mov rbx, qword [rbx + 0x28]
mov eax, edx
jmp 0x4039bc
mov rax, qword [r12]
xor edx, edx
mov rcx, r12
call qword [rax + 0x28]
jmp 0x403b0a
cmp qword [r12 + 0x78], 0xffffffffffffffff
mov dword [r12 + 0xb0], edx
je 0x403a29
mov rcx, qword [r12 + 0x68]
call method.IWindow.getHandle__
mov rcx, qword [r12 + 0x78]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov rcx, qword [r12 + 0x78]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12 + 0x78], 0xffffffffffffffff
mov ecx, dword [rbx + 4]
mov edx, dword [rbx + 8]
mov r8d, dword [rbx + 0xc]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12 + 0x78], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x403a60
lea r13, [rsp + 0x28]
lea rdx, str.socket_error
mov rcx, r13
call fcn.004cdfee
jmp 0x403af6
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov dword [rsp + 0x24], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [r12 + 0x68]
call method.IWindow.getHandle__
mov rcx, qword [r12 + 0x78]
mov r8d, 0x8001
mov r9d, 0x10
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [r12 + 0x78]
mov r8d, dword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x403b0a
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x2733
jne 0x403ae5
mov rdx, qword [r12 + 0x98]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x2710
call sym.winbox.exe_addTimer_unsigned_int__EventListener__void__bool_
mov dword [r12 + 0xa0], eax
jmp 0x403b0a
call rbx
lea r13, [rsp + 0x28]
mov edx, eax
mov rcx, r13
call fcn.00402c1d
mov rcx, r12
mov rdx, r13
call fcn.004039a4
mov rcx, r13
call fcn.004cddea
nop
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
Function at 0x403c18
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x38
mov rdx, qword [rcx + 0x50]
mov rsi, rdx
mov edx, 0x1000
sub rsi, qword [rcx + 0x48]
lea r15, [rcx + 0x48]
lea r13, [rsp + 0x28]
mov r12, rcx
mov byte [rsp + 0x28], 0
mov r8, r13
mov rcx, r15
call fcn.004cee62
mov rdx, qword [r12 + 0x48]
mov eax, esi
xor r9d, r9d
mov r8, qword [r12 + 0x50]
mov rcx, qword [r12 + 0x78]
sub r8, rdx
add rdx, rax
sub r8d, esi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x403ccd
mov r8, r13
mov edx, esi
mov rcx, r15
mov byte [rsp + 0x28], 0
call fcn.004cee62
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x2733
je 0x403d18
cmp eax, 0x2738
je 0x403cfc
mov rcx, qword [0x0053bb30]
lea rdx, str.error_while_reading_err
call fcn.004d0399
mov edx, r14d
mov rcx, rax
call fcn.004d0482
mov rcx, rax
call fcn.004d075f
jmp 0x403d18
test eax, eax
jne 0x403cfc
mov rax, qword [r12]
mov rcx, r13
lea rdx, str.peer_closed_connection
mov rbx, qword [rax + 0x28]
call fcn.004cdfee
mov rcx, r12
mov r8, r13
xor edx, edx
call rbx
mov rcx, r13
call fcn.004cddea
jmp 0x403d18
mov rcx, r15
lea edx, [rbx + rsi]
mov r8, r13
mov byte [rsp + 0x28], 0
call fcn.004cee62
mov rcx, r12
call fcn.004034f6
nop
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

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

Disassembly:
push r13
push r12
push rbx
add rsp, 0xffffffffffffff80
mov r13, qword [sym.imp.WS2_32.dll_send]
mov r12, rcx
lea rbx, [rcx + 0x58]
mov rdx, qword [r12 + 0x58]
mov r8d, dword [r12 + 0x60]
xor r9d, r9d
mov rcx, qword [r12 + 0x78]
sub r8d, edx
call r13
cmp eax, 0xffffffff
jne 0x403dd3
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x2733
je 0x403e4f
call rbx
lea r8, str.send_error__d
lea rcx, [rsp + 0x30]
mov edx, 0x50
mov r9d, eax
call fcn.0052eb40
mov rcx, qword [0x0053bb30]
lea rdx, str.ERROR:_while_sending_err
call fcn.004d0399
mov r13, rax
call rbx
mov rcx, r13
lea r13, [rsp + 0x28]
mov edx, eax
call fcn.004d0482
mov rcx, rax
call fcn.004d075f
mov rax, qword [r12]
lea rdx, str.peer_closed_connection
mov rcx, r13
mov rbx, qword [rax + 0x28]
call fcn.004cdfee
jmp 0x403e16
mov rdx, qword [r12 + 0x58]
cdqe
mov rcx, rbx
lea r8, [rdx + rax]
call fcn.004cec0c
mov rax, qword [r12 + 0x60]
cmp qword [r12 + 0x58], rax
jne 0x403d3f
cmp byte [r12 + 0x81], 0
je 0x403e2a
mov rax, qword [r12]
lea r13, [rsp + 0x30]
mov rcx, r13
mov rbx, qword [rax + 0x28]
call fcn.004cdf4c
mov rcx, r12
mov r8, r13
xor edx, edx
call rbx
mov rcx, r13
call fcn.004cddea
jmp 0x403e4f
mov rcx, qword [r12 + 0x68]
call method.IWindow.getHandle__
mov rcx, qword [r12 + 0x78]
mov r9d, 0x21
mov r8d, 0x8001
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
nop
sub rsp, 0xffffffffffffff80
pop rbx
pop r12
pop r13
ret
Function at 0x404074
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x70], 0xffffffffffffffff
mov rbx, rcx
je 0x4040b1
mov rcx, qword [rcx + 0x68]
call method.IWindow.getHandle__
mov rcx, qword [rbx + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x70], 0xffffffffffffffff
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov edx, 0xffff
lea r9, [rsp + 0x3c]
mov qword [rbx + 0xb8], 0
mov qword [rbx + 0x70], rax
mov rcx, rax
mov r8d, 0x20
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rdx, str.could_not_make_socket_broadcast
test eax, eax
jne 0x404140
mov rcx, qword [rbx + 0x70]
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov word [rsp + 0x40], 2
call qword [sym.imp.WS2_32.dll_bind]
inc eax
jne 0x404156
lea rdx, str.could_not_bind_socket
mov rcx, qword [0x0053bb30]
call fcn.004d0399
mov rcx, rax
call fcn.004d075f
jmp 0x404179
mov rcx, qword [rbx + 0x68]
call method.IWindow.getHandle__
mov rcx, qword [rbx + 0x70]
mov r9d, 1
mov r8d, 0x8001
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
nop
add rsp, 0x50
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x40
or eax, 0xffffffff
cmp byte [rcx + 0xb0], 0
mov qword [rsp + 0x30], 0
mov rbx, rcx
mov qword [rsp + 0x38], 0
mov word [rsp + 0x30], 2
jne 0x4041be
mov eax, dword [rcx + 0xb4]
imul rax, rax, 0xc
add rax, qword [rcx + 0x78]
mov eax, dword [rax + 8]
mov dword [rsp + 0x60], r8d
mov ecx, 0x5051
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rbx + 0x70]
xor r9d, r9d
mov word [rsp + 0x32], ax
lea rax, [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov r8d, eax
mov al, 1
test r8d, r8d
jg 0x40422c
mov rcx, qword [0x0053bb30]
lea rdx, str.sendto_failed
call fcn.004d0399
mov rcx, rax
call fcn.004d075f
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x404e5e
Capabilities:
Get local ipv4 addresses

Disassembly:
push r13
mov eax, 0x8068
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.004d3790
sub rsp, rax
xor r8d, r8d
mov edx, 0x10
lea rax, [rsp + 0x40]
lea rbx, [rsp + 0x60]
mov rsi, rcx
mov ecx, 2
mov qword [rsp + 0x20], rax
mov r9, rbx
mov dword [rsp + 0x40], 0x8000
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x404fe3
mov rbp, qword [0x0053bb30]
mov ax, word [rbx + 0x54]
mov edx, dword [rbx + 0x50]
lea rcx, [rsp + 0x4a]
mov dword [rsp + 0x4a], edx
mov word [rsp + 0x4e], ax
call fcn.004d1806
test al, al
jne 0x404fd6
cmp qword [rbx + 0xb0], 0
je 0x404fd6
mov edx, dword [rbx + 4]
mov rcx, qword [0x0053bb30]
call fcn.004d03e4
lea rdx, [0x00531292]
mov rcx, rax
call fcn.004d0399
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call fcn.004d0399
mov rcx, rax
call fcn.004d075f
mov rax, qword [rbx + 0xb0]
xor ecx, ecx
mov rdx, qword [rax + 0x10]
mov edx, dword [rdx + 4]
mov dword [rsp + 0x44], edx
mov edx, dword [rax + 0x20]
xor eax, eax
cmp eax, edx
je 0x404f3c
shr ecx, 1
inc eax
or ecx, 0x80000000
jmp 0x404f2c
call qword [sym.imp.WS2_32.dll_htonl]
lea r12, [rsp + 0x50]
lea rdx, [0x00531295]
mov rcx, rbp
not eax
or dword [rsp + 0x44], eax
call fcn.004d0399
lea rdx, [rsp + 0x44]
mov rcx, r12
mov r13, rax
call fcn.004d1866
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
lea rdx, [rax + 4]
mov eax, 0xffffffff
shl rax, 0x20
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x30]
and rdi, rax
or rdi, rcx
mov rcx, r13
mov qword [rsp + 0x38], rdi
call fcn.004d03b8
mov rcx, r12
mov r13, rax
call fcn.004cddea
mov rcx, r13
call fcn.004d075f
mov eax, dword [rsp + 0x4a]
lea rcx, [rsi + 0x78]
mov rdx, r12
mov dword [rsp + 0x50], eax
mov ax, word [rsp + 0x4e]
mov word [rsp + 0x54], ax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x58], eax
call fcn.00518460
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x404eb1
mov rax, qword [rsi + 0x80]
cmp qword [rsi + 0x78], rax
jne 0x405016
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x78]
mov dword [rsp + 0x50], 0xffffffff
mov word [rsp + 0x54], 0xffff
mov dword [rsp + 0x58], 0xffffffff
call fcn.00518460
nop
add rsp, 0x8068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x40569e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x610
mov rax, qword [rdx]
mov rbx, rcx
mov rcx, rdx
call qword [rax + 0x20]
test al, 1
je 0x405765
mov dword [rsp + 0x3c], 0x10
lea rdi, [rsp + 0x50]
lea rbp, [rsp + 0x3c]
mov r12, qword [sym.imp.WS2_32.dll_recvfrom]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx + 0x70]
mov r8d, 0x5c0
call r12
mov esi, eax
cmp eax, 0x15
jle 0x405765
cmp byte [rsp + 0x50], 1
jne 0x405765
lea rdx, [rbx + 0x88]
lea rcx, [rsp + 0x52]
mov r8d, 6
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x405765
mov edx, dword [rbx + 0xb4]
lea rcx, [rsp + 0x58]
mov r8d, 6
imul rdx, rdx, 0xc
add rdx, qword [rbx + 0x78]
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x405765
movzx eax, word [rsp + 0x60]
cmp eax, dword [rbx + 0x90]
jne 0x405765
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call fcn.00405474
jmp 0x4056d8
add rsp, 0x610
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x005300c0], 0xffffffffffffffff
mov ebx, ecx
je 0x421e56
mov word [rsp + 0x2e], 0x400
mov rbp, qword [sym.imp.WS2_32.dll_send]
lea r12, [rsp + 0x2e]
lea rdi, [0x005e9200]
mov r13d, 0xff
test ebx, ebx
je 0x421e56
cmp ebx, 0xff
mov esi, r13d
mov rcx, qword [0x005300c0]
mov rdx, r12
cmovbe esi, ebx
mov r8d, 2
xor r9d, r9d
mov byte [rsp + 0x2e], sil
sub ebx, esi
call rbp
mov rdx, rdi
mov byte [rsp + 0x2f], 0xff
xor r9d, r9d
mov rcx, qword [0x005300c0]
mov r8d, esi
call rbp
mov eax, esi
add rdi, rax
jmp 0x421e0c
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x423406
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
call method.IWindow.getHandle__
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x423572
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x42356b
lea r12, [rsp + 0x48]
lea r14, [0x00531d19]
mov rcx, r12
call fcn.004cdf4c
mov r15d, dword [rdi + 4]
mov r9d, dword [rsi + 4]
cmp r9d, r15d
jl 0x42350e
mov rcx, qword [rbp + 0x10]
mov edx, r15d
xor r13d, r13d
call fcn.00422c36
mov rdx, qword [rax + 8]
sub rdx, qword [rax]
sar rdx, 3
cmp r15d, dword [rdi + 4]
jne 0x42348f
cmp dword [rdi], 0
cmovns r13d, dword [rdi]
mov ebx, edx
cmp r9d, r15d
jne 0x42349b
cmp dword [rsi], edx
cmovle ebx, dword [rsi]
mov r9d, r13d
mov r10d, r13d
shl r9, 3
cmp ebx, r10d
mov dword [rsp + 0x3c], r10d
mov rdx, qword [rax]
jbe 0x4234e1
movsx edx, byte [rdx + r9]
mov rcx, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
call fcn.004ce1be
mov r10d, dword [rsp + 0x3c]
mov r9, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
inc r10d
add r9, 8
jmp 0x4234a5
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 3
cmp r13d, eax
ja 0x423506
cmp r15d, dword [rsi + 4]
jne 0x4234fb
cmp dword [rsi], eax
jle 0x423506
mov rdx, r14
mov rcx, r12
call fcn.004ce17a
inc r15d
jmp 0x42345b
mov rax, qword [rsp + 0x48]
mov ecx, 0x2000
mov eax, dword [rax]
lea edx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r13, rax
test rax, rax
je 0x423563
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x423563
mov rsi, qword [rsp + 0x48]
mov rdi, rax
mov edx, dword [rsi]
add rsi, 4
lea ecx, [rdx + 1]
rep movsb byte [rdi], byte [rsi]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r13
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rcx, r12
call fcn.004cddea
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x423584
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x30
mov rbx, rcx
call method.IWindow.getHandle__
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x423675
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r12, rax
test rax, rax
je 0x42366e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
test rax, rax
je 0x42366e
mov rcx, r12
lea r13, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rdx, r14
mov rcx, r13
lea r14, [rsp + 0x28]
mov r8d, eax
mov eax, 0
dec r8d
cmovs r8d, eax
call fcn.004cdfe2
mov rcx, r12
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x7fff
ja 0x42362a
mov rcx, qword [rbx + 0x10]
mov rdx, r13
call fcn.00422ed6
jmp 0x423666
mov r15, qword [rbx + 0x10]
mov r8d, r12d
mov r9d, 0x4000
mov rdx, r13
mov rcx, r14
add r12d, 0x4000
call fcn.004ce822
mov rdx, r14
mov rcx, r15
call fcn.00422ed6
mov rcx, r14
call fcn.004cddea
mov rax, qword [rsp + 0x20]
cmp dword [rax], r12d
ja 0x42362a
mov rcx, r13
call fcn.004cddea
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x42edb0
Capabilities:
Get graphical window text

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x30
mov r14, rdx
mov rdx, qword [rdx + 8]
mov r12, rcx
test byte [rdx], 0x10
jne 0x42edd3
cmp qword [rdx + 8], 0
jne 0x42ede1
add rdx, 0x20
mov rcx, r12
call fcn.004cdf96
jmp 0x42ee5e
mov rcx, r14
call method.IWindow.getHandle__
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test eax, eax
jne 0x42ee02
mov rcx, r12
call fcn.004cdf4c
jmp 0x42ee5e
lea r13, [rsp + 0x28]
inc ebx
mov rcx, r13
call fcn.004cdf4c
xor r8d, r8d
mov edx, ebx
mov rcx, r13
call fcn.004ce4f0
mov rax, qword [rsp + 0x28]
mov rcx, r14
lea r15, [rax + 4]
call method.IWindow.getHandle__
mov r8d, ebx
mov rdx, r15
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
xor r8d, r8d
mov rcx, r13
mov edx, eax
call fcn.004ce4f0
mov rcx, r12
mov rdx, r13
call fcn.004cdfa8
mov rcx, r13
call fcn.004cddea
mov rax, r12
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x430c58
Capabilities:
Log keystrokes via polling

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
mov rax, qword [rax + 0x100]
mov r12, rcx
test byte [rdx + 1], 1
je 0x430c8a
cmp word [rdx + 4], 0
js 0x430c8a
or r8d, 0xffffffff
or edx, 0xffffffff
jmp 0x430c8f
xor r8d, r8d
xor edx, edx
mov rcx, r12
lea rbx, [rsp + 0x50]
call rax
mov r8d, 0x4000
mov edx, 0x4000
mov rcx, r12
mov rsi, rax
mov rax, qword [r12]
call qword [rax + 0x100]
mov rdx, r12
mov rcx, rbx
mov rdi, rax
call method.IWindow.getBounds__
mov rcx, rbx
call fcn.00529400
mov rcx, rsi
mov rdx, rax
sar rcx, 0x20
sar rdx, 0x20
cmp edx, ecx
cmovle edx, ecx
mov rcx, rdi
sar rcx, 0x20
cmp edx, ecx
cmovg edx, ecx
cmp eax, esi
cmovle eax, esi
lea rsi, [rsp + 0x40]
mov dword [rsp + 0x34], edx
mov rdx, r12
cmp eax, edi
cmovg eax, edi
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x30], eax
call method.IWindow.getBounds__
mov rax, qword [rsp + 0x20]
mov rdx, rbx
mov rcx, rsi
lea r8, [rsp + 0x30]
mov qword [rsp + 0x50], rax
call method.Rect.Rect_Point_const__Point_const_
mov rax, qword [r12 + 8]
mov rdx, qword [rax + 0x30]
test rdx, rdx
je 0x430d67
mov rcx, rbx
call method.IWindow.getClientAreaBounds__
mov rax, qword [r12]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [rax + 0x100]
lea rdx, [rsp + 0x38]
mov r8, rbx
mov rcx, rsi
mov qword [rsp + 0x38], rax
call sym.winbox.exe_fitWindowInTheRect_Rect__Point_const__Rect_const_
mov rax, qword [r12]
xor r9d, r9d
xor edx, edx
mov r8, rsi
mov rcx, r12
call qword [rax + 0x128]
xor edx, edx
mov rcx, r12
call method.IWindow.invalidate_bool_
cmp qword [0x005e9be8], 0
je 0x430e08
mov ecx, 1
mov rsi, qword [sym.imp.USER32.dll_GetKeyState]
xor r13d, r13d
call rsi
mov ecx, 2
test ax, ax
setne r13b
call rsi
test ax, ax
je 0x430db8
or r13d, 2
call qword [sym.imp.USER32.dll_GetMessagePos]
mov rcx, rbx
mov edx, eax
call method.Point.Point_long_
mov rcx, qword [0x005e9be8]
mov rdx, rbx
test rcx, rcx
jne 0x430dda
mov rcx, r12
call method.IWindow.fromScreen_Point_const_
mov r9, rdi
mov r8, rbx
mov edx, r13d
mov rcx, r12
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], 0x51
mov qword [rsp + 0x28], 0
call method.IWindow.processMouseMsg_int__Point_const__bool__IWindow::__int__Point_const__
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x43294e
Capabilities:
Create directory
Delete directory
Delete file
Get common file path
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rax, qword [rdx]
cmp dword [rax], 0
mov rbx, rcx
je 0x43297a
lea rcx, [rcx + 0x48]
cmp rcx, rdx
je 0x43297a
call fcn.004ce252
mov rax, qword [rbx + 0x48]
cmp dword [rax], 0
je 0x432b75
lea r12, [rsp + 0x44]
xor r8d, r8d
lea rdx, [0x00532b7b]
mov r9, r12
lea rcx, [0x00532b7f]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4329ba
mov rax, qword [rbx + 0x48]
mov rcx, r12
lea rdx, [rax + 4]
call sub.msvcrt.dll_strcpy
mov rcx, qword [0x0053bb30]
lea rdx, str.saving_settings_to
call fcn.004d0399
mov rdx, r12
mov rcx, rax
call fcn.004d0399
lea rdx, str...._for
mov rcx, rax
call fcn.004d0399
mov rcx, rax
mov rax, qword [rbx + 0x48]
lea rdx, [rax + 4]
mov eax, dword [rax]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.004d03b8
mov rcx, rax
call fcn.004d075f
lea rdx, [0x00532b9e]
mov rcx, r12
call sub.msvcrt.dll_fopen
mov r13, rax
test rax, rax
je 0x432b75
mov rax, qword [rbx + 0x18]
lea rbp, [rbx + 0x10]
lea rsi, [rsp + 0x38]
lea rdi, [rsp + 0x148]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp rax, rbp
je 0x432aa8
mov r14, qword [rax + 0x28]
mov rcx, rsi
mov rdx, qword [r14]
mov r15, qword [rdx + 0x28]
mov edx, dword [rax + 0x18]
call sym.winbox.exe_packData_unsigned_int_
mov rcx, rdi
lea rdx, [0x00532ba1]
call fcn.004cdfee
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call r15
mov rcx, rdi
call fcn.004cddea
mov rcx, rsi
call fcn.004cddea
mov rax, qword [r14]
mov rcx, r14
mov rdx, r13
call qword [rax + 0x40]
lea rcx, [rsp + 0x30]
call fcn.004cf0aa
jmp 0x432a45
mov rcx, r13
call sub.msvcrt.dll_fclose
cmp byte [rsp + 0x44], 0x2e
jne 0x432b59
mov rax, qword [rbx + 0x48]
lea r13, [rsp + 0x148]
lea rcx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rax, qword [rbx + 0x48]
lea r9, [rsp + 0x38]
mov r8, r13
mov edx, 0x104
lea rcx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
call sym.winbox.exe_getMainWindow__
mov rcx, rax
call method.IWindow.getHandle__
xor r8d, r8d
mov rdx, r13
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov rdx, qword [rbx + 0x48]
mov r8d, 3
mov rcx, r12
add rdx, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x432b59
mov rcx, qword [0x0053bb30]
lea rdx, str.MoveFileEx_failed_error
call fcn.004d0399
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
mov edx, eax
call fcn.004d03e4
mov rcx, rax
call fcn.004d075f
mov rcx, qword [0x0053bb30]
lea rdx, str.settings_saved
call fcn.004d0399
mov rcx, rax
call fcn.004d075f
nop
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
push r12
sub rsp, 0x20
mov r12, rcx
call sym.winbox.exe_storeAllSettings__
call fcn.004330f7
mov rdx, r12
mov rcx, rax
add rsp, 0x20
pop r12
jmp 0x43294e
Function at 0x4331e3
Capabilities:
Create directory
Delete directory
Delete file
Get common file path
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rax, qword [rdx]
cmp dword [rax], 0
mov rbx, rcx
je 0x43297a
lea rcx, [rcx + 0x48]
cmp rcx, rdx
je 0x43297a
call fcn.004ce252
mov rax, qword [rbx + 0x48]
cmp dword [rax], 0
je 0x432b75
lea r12, [rsp + 0x44]
xor r8d, r8d
lea rdx, [0x00532b7b]
mov r9, r12
lea rcx, [0x00532b7f]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4329ba
mov rax, qword [rbx + 0x48]
mov rcx, r12
lea rdx, [rax + 4]
call sub.msvcrt.dll_strcpy
mov rcx, qword [0x0053bb30]
lea rdx, str.saving_settings_to
call fcn.004d0399
mov rdx, r12
mov rcx, rax
call fcn.004d0399
lea rdx, str...._for
mov rcx, rax
call fcn.004d0399
mov rcx, rax
mov rax, qword [rbx + 0x48]
lea rdx, [rax + 4]
mov eax, dword [rax]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.004d03b8
mov rcx, rax
call fcn.004d075f
lea rdx, [0x00532b9e]
mov rcx, r12
call sub.msvcrt.dll_fopen
mov r13, rax
test rax, rax
je 0x432b75
mov rax, qword [rbx + 0x18]
lea rbp, [rbx + 0x10]
lea rsi, [rsp + 0x38]
lea rdi, [rsp + 0x148]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp rax, rbp
je 0x432aa8
mov r14, qword [rax + 0x28]
mov rcx, rsi
mov rdx, qword [r14]
mov r15, qword [rdx + 0x28]
mov edx, dword [rax + 0x18]
call sym.winbox.exe_packData_unsigned_int_
mov rcx, rdi
lea rdx, [0x00532ba1]
call fcn.004cdfee
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call r15
mov rcx, rdi
call fcn.004cddea
mov rcx, rsi
call fcn.004cddea
mov rax, qword [r14]
mov rcx, r14
mov rdx, r13
call qword [rax + 0x40]
lea rcx, [rsp + 0x30]
call fcn.004cf0aa
jmp 0x432a45
mov rcx, r13
call sub.msvcrt.dll_fclose
cmp byte [rsp + 0x44], 0x2e
jne 0x432b59
mov rax, qword [rbx + 0x48]
lea r13, [rsp + 0x148]
lea rcx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rax, qword [rbx + 0x48]
lea r9, [rsp + 0x38]
mov r8, r13
mov edx, 0x104
lea rcx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
call sym.winbox.exe_getMainWindow__
mov rcx, rax
call method.IWindow.getHandle__
xor r8d, r8d
mov rdx, r13
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov rdx, qword [rbx + 0x48]
mov r8d, 3
mov rcx, r12
add rdx, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x432b59
mov rcx, qword [0x0053bb30]
lea rdx, str.MoveFileEx_failed_error
call fcn.004d0399
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
mov edx, eax
call fcn.004d03e4
mov rcx, rax
call fcn.004d075f
mov rcx, qword [0x0053bb30]
lea rdx, str.settings_saved
call fcn.004d0399
mov rcx, rax
call fcn.004d075f
nop
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
push r12
sub rsp, 0x20
mov r12, rcx
call sym.winbox.exe_storeAllSettings__
call fcn.004330f7
mov rdx, r12
mov rcx, rax
add rsp, 0x20
pop r12
jmp 0x43294e