joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a7b4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2e0
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rsi, rcx
mov edi, 2
lea rdx, [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14003a89d
lea rcx, [rsp + 0x1d0]
mov edx, 0x100
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x14003a897
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
je 0x14003a897
cmp word [rax + 0x10], di
jne 0x14003a897
mov rcx, qword [rax + 0x18]
xor edi, edi
mov rax, qword [rcx]
jmp 0x14003a892
movsx r8, word [rbx + 0x12]
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.14007e7a0
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rbp, rax
test edi, edi
je 0x14003a87d
lea rcx, [0x1400b6894]
call fcn.140080c38
lea rdx, [0x1400b6894]
mov rcx, rsi
mov r8, rax
call fcn.140031ff4
mov rdx, rbp
mov rcx, rsi
call fcn.140032188
mov rax, qword [rbx + 0x18]
inc edi
mov rax, qword [rax + rdi*8]
test rax, rax
jne 0x14003a83c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14003a920
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x330
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rdi, rcx
mov esi, 2
lea rdx, [rsp + 0x40]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14003aa30
lea rcx, [rsp + 0x220]
mov edx, 0x100
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x14003aa2a
lea rcx, [rsp + 0x220]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
je 0x14003aa2a
cmp word [rax + 0x10], si
jne 0x14003aa2a
lea rdx, [0x1400b7198]
mov rcx, rdi
call fcn.140046494
mov rcx, qword [rbx + 0x18]
xor esi, esi
mov rax, qword [rcx]
jmp 0x14003aa1d
movsx r8, word [rbx + 0x12]
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.14007e7a0
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x1e0]
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rcx
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [rsp + 0x1e0]
lea rdx, [0x1400b71a0]
mov rcx, rdi
call fcn.140045fd0
mov rax, qword [rbx + 0x18]
inc esi
mov rax, qword [rax + rsi*8]
test rax, rax
jne 0x14003a9ba
mov rcx, rdi
call fcn.1400460c0
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003bf14
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
cmp qword [rcx + 0xb80], 0
mov rsi, rdx
mov rbx, rcx
jne 0x14003bf44
xor eax, eax
jmp 0x14003c007
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003bf3d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp qword [rbx + 0x18], 0
mov r14d, eax
je 0x14003bfc6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and qword [rsp + 0x30], 0
mov rcx, qword [rbx + 0x18]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x44], rcx
mov dword [rsp + 0x4c], 1
mov edx, r14d
jmp 0x14003bfda
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, eax
mov r9d, dword [0x1400e50f4]
mov r8, rdi
mov rcx, rbp
call qword [rbx + 0xb80]
mov rcx, rdi
mov ebx, eax
call qword [0x1400b4580]
test ebx, ebx
jne 0x14003c005
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x14003ca18
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r14d, r8d
mov r15, rdx
mov rbp, rcx
test r8d, r8d
jne 0x14003ca3f
xor eax, eax
jmp 0x14003cae2
mov word [rdx], bx
lea rdx, [rsp + 0x90]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x14003ca38
mov ecx, esi
call fcn.140055b1c
mov rdi, rax
test rax, rax
je 0x14003ca38
mov edx, dword [rsp + 0x90]
mov r9, rax
mov r8d, esi
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14003cad8
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea rdx, [0x1400c83e4]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14003cad8
mov rdx, qword [rsp + 0x40]
movzx ecx, word [rdx + 0xe]
movzx r8d, word [rdx + 8]
movzx eax, word [rdx + 0xc]
movzx r9d, word [rdx + 0xa]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r8d
lea r8, str._lu._lu._lu._lu
mov rdx, r14
mov rcx, r15
call fcn.1400807f0
mov ebx, 1
mov rcx, rdi
call fcn.14007efdc
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003cb88
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rcx
lea rcx, [rsp + 0x40]
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov r10, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
shr r9, 0x14
shr r8, 0x14
shr r10, 0x14
shr rax, 0x14
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r9
mov r9d, dword [rsp + 0x44]
mov qword [rsp + 0x28], r8
lea r8, [0x1400b6d30]
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400807f0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x14003cc28
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x14003ccb4
mov rsi, rax
cmp word [rax], r14w
je 0x14003ccab
mov rcx, rsi
call fcn.140080c38
mov rcx, rsi
mov rbx, rax
call fcn.140080c38
mov rdx, rsi
mov r8, rax
mov rcx, rbp
call fcn.140031ff4
lea rcx, [0x1400b53e0]
call fcn.140080c38
lea rdx, [0x1400b53e0]
mov rcx, rbp
mov r8, rax
call fcn.140031ff4
lea rsi, [rsi + rbx*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14003cc5e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14003edc8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rcx
mov rcx, qword [rcx]
mov rbp, rdx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, qword [0x1400ea2f8]
xor edi, edi
mov rdx, qword [rcx + 8]
mov rbx, rax
test rdx, rdx
je 0x14003ee19
mov rcx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdi, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x20]
call fcn.140080c38
lea rdx, [rsp + 0x20]
mov r9, rbp
mov r8, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test rdi, rdi
je 0x14003ee5c
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsi]
mov rdx, rbx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret

Function at 0x14003ef40
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, rbx
mov edx, eax
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rax, qword [0x1400ea2f8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14003efaf
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rbp, rax
jmp 0x14003efb1
xor ebp, ebp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x14003efd8
mov r9, qword [rsi]
mov r8, rbx
mov edx, 0x138
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
jmp 0x14003efda
xor edi, edi
test rdi, rdi
jne 0x14003efef
mov rax, qword [0x1400ea2f8]
mov rdi, qword [rax + 0x60]
test rdi, rdi
je 0x14003f00e
mov rcx, qword [rsi]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x30]
mov r8, rdi
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
mov edx, dword [rsi + 0x218]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
lea rcx, [rsp + 0x40]
call fcn.140080c38
mov edx, 1
lea r9, [rsp + 0x40]
mov r8d, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_TextOutW]
mov ecx, shutdown
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, rbx
mov edx, eax
call qword [sym.imp.GDI32.dll_SetTextColor]
test rbp, rbp
je 0x14003f068
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, qword [rsi]
jne 0x14003f08e
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14003ee94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003f0b8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
cmp word [rcx + 0x10], si
je 0x14003f10d
mov rax, qword [0x1400ea2f8]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14003f0e8
call qword [sym.imp.USER32.dll_SetCursor]
lea r8, [rbx + 0x10]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14003f13c
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetParent]
mov rdi, rax
test rax, rax
je 0x14003f13c
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov r9, qword [rbx]
mov edx, 0x111
movzx r8d, ax
mov rcx, rdi
call qword [sym.imp.USER32.dll_PostMessageW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14003f964
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov qword [rcx + 0x10], rdx
xor edi, edi
mov rbx, rcx
mov r9, rcx
lea r8, [0x14003fa24]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.14008020c
test rax, rax
mov qword [rbx], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14003fcac
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp word [0x1400e9ac0], ax
je 0x14002f8f9
cmp word [0x1400e9278], ax
je 0x14002f8f9
add rsp, 0x28
jmp fcn.14002f7f0
cmp word [0x1400e98b0], ax
je 0x14002f907
call fcn.14002f608
add rsp, 0x28
ret
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x98
call fcn.1400809a0
test byte [0x1400e9488], 1
lea rax, [rbp - 0x30]
mov r9d, 0x104
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0x98
mov qword [rsp + 0x38], rbx
mov dword [rbp - 0x70], 0x806
mov dword [rsp + 0x68], r9d
je 0x14003fd28
lea rax, str.Zip_Archives
lea rdx, [0x1400b78a0]
jmp 0x14003fd56
mov eax, dword [0x1400e50f8]
cmp eax, 2
jne 0x14003fd43
lea rax, str.Log_Files
lea rdx, [0x1400b60b8]
jmp 0x14003fd56
cmp eax, 1
jne 0x14003fdbb
lea rax, str.Xml_Files
lea rdx, [0x1400b7898]
mov rcx, qword [0x1400ea718]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x68], rdx
call fcn.14003c070
lea rcx, [rsp + 0x30]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x14003fdbb
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1400ea2f8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdx, [rbp - 0x30]
lea rcx, [0x1400ea720]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rsp + 0x20]
call fcn.14003fbfc
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x308]
add rsp, 0x2f0
pop rbp
ret
sub rsp, 0x38
sub edx, 2
je 0x140040281
sub edx, 0x3e7
je 0x140040273
dec edx
je 0x14004026a
sub edx, 5
je 0x14004025c
dec edx
je 0x140040235
sub edx, 4
je 0x14004022c
dec edx
jne 0x140040289
add rsp, 0x38
jmp 0x14002f8d8
add rsp, 0x38
jmp fcn.14002f608
lea r9, [0x140048c44]
mov edx, 0x68
and qword [rsp + 0x20], 0
mov r8, rcx
mov rcx, qword [0x1400e9270]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
add rsp, 0x38
ret
lea r9, [0x140049434]
mov edx, 0x67
jmp 0x140040241
add rsp, 0x38
jmp 0x14003fcac
lea r9, [0x140049730]
mov edx, pe_nt_image_headers64
jmp 0x140040241
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
add rsp, 0x38
ret
Function at 0x1400401fc
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp word [0x1400e9ac0], ax
je 0x14002f8f9
cmp word [0x1400e9278], ax
je 0x14002f8f9
add rsp, 0x28
jmp fcn.14002f7f0
cmp word [0x1400e98b0], ax
je 0x14002f907
call fcn.14002f608
add rsp, 0x28
ret
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x98
call fcn.1400809a0
test byte [0x1400e9488], 1
lea rax, [rbp - 0x30]
mov r9d, 0x104
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0x98
mov qword [rsp + 0x38], rbx
mov dword [rbp - 0x70], 0x806
mov dword [rsp + 0x68], r9d
je 0x14003fd28
lea rax, str.Zip_Archives
lea rdx, [0x1400b78a0]
jmp 0x14003fd56
mov eax, dword [0x1400e50f8]
cmp eax, 2
jne 0x14003fd43
lea rax, str.Log_Files
lea rdx, [0x1400b60b8]
jmp 0x14003fd56
cmp eax, 1
jne 0x14003fdbb
lea rax, str.Xml_Files
lea rdx, [0x1400b7898]
mov rcx, qword [0x1400ea718]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x68], rdx
call fcn.14003c070
lea rcx, [rsp + 0x30]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x14003fdbb
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1400ea2f8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdx, [rbp - 0x30]
lea rcx, [0x1400ea720]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rsp + 0x20]
call fcn.14003fbfc
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x308]
add rsp, 0x2f0
pop rbp
ret
sub rsp, 0x38
sub edx, 2
je 0x140040281
sub edx, 0x3e7
je 0x140040273
dec edx
je 0x14004026a
sub edx, 5
je 0x14004025c
dec edx
je 0x140040235
sub edx, 4
je 0x14004022c
dec edx
jne 0x140040289
add rsp, 0x38
jmp 0x14002f8d8
add rsp, 0x38
jmp fcn.14002f608
lea r9, [0x140048c44]
mov edx, 0x68
and qword [rsp + 0x20], 0
mov r8, rcx
mov rcx, qword [0x1400e9270]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
add rsp, 0x38
ret
lea r9, [0x140049434]
mov edx, 0x67
jmp 0x140040241
add rsp, 0x38
jmp 0x14003fcac
lea r9, [0x140049730]
mov edx, pe_nt_image_headers64
jmp 0x140040241
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
add rsp, 0x38
ret

Function at 0x140040774
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x28
sub edx, 2
je 0x1400407a7
sub edx, 0x3f2
je 0x14004079e
dec edx
je 0x140040795
cmp edx, 0xe
jne 0x1400407af
mov edx, 1
jmp 0x1400407a9
add rsp, 0x28
jmp 0x14002f8d8
add rsp, 0x28
jmp fcn.14002f608
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
add rsp, 0x28
ret
Function at 0x140040bb4
Capabilities:
Get graphical window text

Disassembly:
test r9d, r9d
jne 0x140040d61
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x170
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
dec edx
je 0x140040c06
dec edx
jne 0x140040d35
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x140040d35
mov edx, 0x3f8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r12, 0xffffffffffffffff
lea esi, [rax + 1]
mov eax, 2
movsxd rcx, esi
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.140055b1c
mov rdi, rax
test rax, rax
je 0x140040d35
mov r8d, esi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, 0x3fb
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r14, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [rax + 1]
lea eax, [r12 + 3]
movsxd rcx, ebp
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.140055b1c
mov rsi, rax
test rax, rax
jne 0x140040c9d
mov rcx, rdi
jmp 0x140040d30
mov r8d, ebp
mov rdx, rax
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.14002f358
mov rcx, rbx
test eax, eax
jne 0x140040d1a
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [0x1400e9270]
mov r9d, 0x20
lea edx, [r9 + 0x50]
lea r8, [rsp + 0x20]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [0x1400e9270]
mov r9d, pe_nt_image_headers64
lea edx, [r9 + 2]
lea r8, [rsp + 0x60]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x60]
mov r9d, setsockopt
mov rcx, rbx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140040d25
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, rdi
call fcn.14007efdc
mov rcx, rsi
call fcn.14007efdc
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x140040bbd
Capabilities:
Get graphical window text

Disassembly:
test r9d, r9d
jne 0x140040d61
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x170
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
dec edx
je 0x140040c06
dec edx
jne 0x140040d35
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x140040d35
mov edx, 0x3f8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r12, 0xffffffffffffffff
lea esi, [rax + 1]
mov eax, 2
movsxd rcx, esi
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.140055b1c
mov rdi, rax
test rax, rax
je 0x140040d35
mov r8d, esi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, 0x3fb
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r14, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [rax + 1]
lea eax, [r12 + 3]
movsxd rcx, ebp
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.140055b1c
mov rsi, rax
test rax, rax
jne 0x140040c9d
mov rcx, rdi
jmp 0x140040d30
mov r8d, ebp
mov rdx, rax
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.14002f358
mov rcx, rbx
test eax, eax
jne 0x140040d1a
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [0x1400e9270]
mov r9d, 0x20
lea edx, [r9 + 0x50]
lea r8, [rsp + 0x20]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [0x1400e9270]
mov r9d, pe_nt_image_headers64
lea edx, [r9 + 2]
lea r8, [rsp + 0x60]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x60]
mov r9d, setsockopt
mov rcx, rbx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140040d25
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, rdi
call fcn.14007efdc
mov rcx, rsi
call fcn.14007efdc
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x140040f90
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
test r9d, r9d
jne 0x1400411c9
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor r12d, r12d
mov rdi, rcx
dec edx
je 0x140040fea
dec edx
jne 0x14004119f
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x14004119f
mov rcx, qword [0x1400ea2f8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x41b
mov rcx, rdi
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r14, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, 0xffffffffffffffff
lea esi, [rax + 1]
mov eax, 2
movsxd r15, esi
mul r15
cmovo rax, rcx
mov rcx, rax
call fcn.140055b1c
mov rbx, rax
test rax, rax
je 0x140041195
mov r8d, esi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rbx], r12w
je 0x14004117f
lea r8, str.message.txt
lea rdx, [0x1400ea510]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov qword [rsp + 0x30], r12
lea rcx, [rbp - 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004117f
lea r9, [rsp + 0x40]
lea rdx, [0x1400b7ae4]
mov r8d, 3
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x60]
mov r8d, 1
mov rdx, r15
call fcn.14002cd54
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x58], rax
call fcn.14003d56c
mov r8d, dword [rbp - 0x80]
mov rdx, qword [rbp - 0x68]
lea r9, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [0x1400b4580]
lea rdx, [rbp - 0x50]
lea rcx, [0x1400ea720]
call fcn.14003bc0c
lea rax, [0x1400b4f60]
mov qword [rsp + 0x60], rax
lea rax, [0x1400b4f78]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400b4fa0]
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x40]
mov dword [rsp + rcx + 0x64], r8d
mov rcx, qword [rbp - 0x68]
call fcn.14007efdc
mov rcx, rbx
call fcn.14007efdc
mov edx, 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_EndDialog]
lea rcx, [rsp + 0x48]
call fcn.14003fbfc
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret