joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c690
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rdi, r8
movzx r8d, word [r8]
mov ebp, r9d
cmp r8d, 2
mov ebx, edx
mov esi, ecx
je 0x14002c6eb
cmp r8d, 0x17
je 0x14002c6d6
lea rdx, str.__trying_family__d
lea rcx, [0x1400805b0]
call fcn.140013bd0
jmp 0x14002c6fe
lea rdx, str.__trying_IPv6
lea rcx, [0x1400805b0]
call fcn.140013bd0
jmp 0x14002c6fe
lea rdx, str.__trying_IPv4
lea rcx, [0x1400805b0]
call fcn.140013bd0
movzx ecx, word [rdi]
movzx r9d, byte [0x14007e040]
mov r8d, ebx
mov edx, esi
call fcn.14002d030
test eax, eax
movsxd rbx, eax
jns 0x14002c77a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.socket
lea rcx, [rsp + 0x40]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x40], 0
mov ebx, eax
call fcn.14001a500
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.14001ac20
lea rcx, [rsp + 0x144]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x144]
call fcn.140035840
int3
cmp byte [rsp + 0x280], 0
mov qword [rsp + 0x260], r12
je 0x14002c795
xor edx, edx
mov ecx, ebx
call fcn.14002d3b0
mov rsi, rbx
xor r12d, r12d
nop
nop
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x14002c84c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2714
je 0x14002c7a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x14002c84c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_closesocket]
lea r8, str.connect
lea rcx, [rsp + 0x40]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x40], r12b
call fcn.14001a500
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.14001ac20
lea rcx, [rsp + 0x144]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x144]
call fcn.140035840
int3
mov r12, qword [rsp + 0x260]
lea r11, [rsp + 0x250]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002d220
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x3e8
mov rax, qword [0x14007e3c0]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
cmp byte [0x1400805d0], 0
jne 0x14002d2d2
lea rdx, [rsp + 0x230]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14002d2cb
mov qword [rsp + 0x3e0], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.unable_to_initialise_Winsock2
lea rcx, [rsp + 0x20]
or r9d, 0xffffffff
mov edx, 0x100
mov ebx, eax
mov byte [rsp + 0x20], 0
call fcn.14001a500
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.14001ac20
lea rcx, [rsp + 0x124]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x124]
call fcn.140035840
mov rbx, qword [rsp + 0x3e0]
mov byte [0x1400805d0], 1
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1400353d0
add rsp, 0x3e8
ret
Function at 0x14002d3b0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0x238
xor eax, eax
test dl, dl
lea r8, [r11 + 0x10]
sete al
movsxd rcx, ecx
mov edx, 0x8004667e
mov dword [r11 + 0x10], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14002d44a
mov qword [rsp + 0x230], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.setBlocking
lea rcx, [rsp + 0x20]
or r9d, 0xffffffff
mov edx, 0x100
mov ebx, eax
mov byte [rsp + 0x20], 0
call fcn.14001a500
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.14001ac20
lea rcx, [rsp + 0x124]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x124]
call fcn.140035840
mov rbx, qword [rsp + 0x230]
add rsp, 0x238
ret

Function at 0x14002d460
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov ebp, r9d
movzx edi, r8b
mov esi, edx
mov rbx, rcx
cmp dword [rcx + 0x44], 0
jl 0x14002d4b7
mov r9d, 0x53
lea r8, str..FdIo.cxx
lea rdx, str.fd___0
lea rcx, [rsp + 0x140]
call fcn.14001ae10
mov rcx, rax
call fcn.14001ade0
mov byte [rbx + 0x40], dil
mov dword [rbx + 0x44], esi
mov ecx, 0x50
call fcn.1400357a0
mov qword [rsp + 0x280], rax
xor edi, edi
test rax, rax
je 0x14002d4f5
mov byte [rsp + 0x28], dil
mov byte [rsp + 0x20], dil
mov r9d, ebp
or r8d, 0xffffffff
mov edx, dword [rbx + 0x44]
mov rcx, rax
call fcn.140030240
jmp 0x14002d4f8
mov rax, rdi
mov qword [rbx + 8], rax
mov ecx, 0x58
call fcn.1400357a0
mov qword [rsp + 0x280], rax
test rax, rax
je 0x14002d532
mov byte [rsp + 0x20], 0
mov r9d, dword [rsp + 0x2a0]
or r8d, 0xffffffff
mov edx, dword [rbx + 0x44]
mov rcx, rax
call fcn.140030140
mov rdi, rax
mov qword [rbx + 0x10], rdi
lea rax, [rbx + 0x30]
mov qword [rdi + 0x48], rax
movsxd rcx, dword [rbx + 0x44]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14002d5b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x38], 0
or r9d, 0xffffffff
lea r8, str.setInheritable
mov edx, 0x100
lea rcx, [rsp + 0x38]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14001ac20
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x38]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x140]
call fcn.140035840
int3
cmp byte [rsp + 0x2a8], 0
je 0x14002d647
mov dword [rsp + 0x290], 1
movsxd rcx, dword [rbx + 0x44]
lea r8, [rsp + 0x290]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14002d647
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x38], 0
or r9d, 0xffffffff
lea r8, str.setBlocking
mov edx, 0x100
lea rcx, [rsp + 0x38]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14001ac20
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x38]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x140]
call fcn.140035840
int3
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002d6a0
Capabilities:
Initialize winsock library

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x400
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14007e3c0]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
movzx esi, r8b
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rdx
mov dword [rcx + 0x20], edx
lea rax, [rcx + 0x28]
lea rcx, [0x140066148]
mov qword [rbx], rcx
lea rcx, [0x140066130]
mov qword [rax], rcx
lea rcx, [0x140066118]
mov qword [rbx + 0x30], rcx
mov qword [rbx + 0x38], rdx
mov byte [rbx + 0x40], 1
mov byte [rbx + 0x41], r9b
mov dword [rbx + 0x44], 0xffffffff
mov dword [rbx + 0x48], edx
mov qword [rbx + 0x50], rdx
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x60], rdx
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x80], rdx
mov qword [rbx + 0x88], rdx
mov byte [rbx + 0x90], dl
mov byte [rbx + 0x91], dl
mov byte [rbx + 0x92], dl
cmp byte [0x1400805d0], dl
jne 0x14002d7d9
lea rdx, [r11 - 0x1b8]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14002d7d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x40], 0
or r9d, 0xffffffff
lea r8, str.unable_to_initialise_Winsock2
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14001ac20
lea rcx, [rsp + 0x144]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x144]
call fcn.140035840
int3
mov byte [0x1400805d0], 1
test edi, edi
js 0x14002d80b
movzx ecx, byte [rsp + 0x440]
mov byte [rsp + 0x28], cl
mov ecx, dword [rsp + 0x438]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x430]
movzx r8d, sil
mov edx, edi
mov rcx, rbx
call fcn.14002d460
nop
mov rax, rbx
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.1400353d0
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14002e170
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor eax, eax
test dl, dl
mov edx, 6
sete al
lea r9, [rsp + 0x48]
lea r8d, [rdx - 5]
movsxd rcx, ecx
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x48], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14002e1c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.unable_to_setsockopt_TCP_NODELAY:__d
lea rcx, [0x140080650]
mov r8d, eax
call fcn.140013bd0
xor al, al
add rsp, 0x38
ret
mov al, 1
add rsp, 0x38
ret
Function at 0x14002e1d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
movsxd rbx, edx
mov rdi, rcx
mov byte [rsp + 0x30], 1
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
mov edx, ebx
call fcn.14002d6a0
nop
lea rax, [0x140066368]
mov qword [rdi], rax
lea rax, [0x140066350]
mov qword [rdi + 0x28], rax
lea rax, [0x140066338]
mov qword [rdi + 0x30], rax
xor eax, eax
mov qword [rdi + 0x98], rax
mov qword [rdi + 0xa0], rax
mov qword [rdi + 0xa8], rax
mov dword [rsp + 0x68], 1
mov rcx, rbx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x68]
lea edx, [rax + 6]
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14002e293
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.unable_to_setsockopt_TCP_NODELAY:__d
lea rcx, [0x140080650]
call fcn.140013bd0
nop
mov rax, rdi
jmp 0x14002e296
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140030140
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
mov edx, r9d
mov edi, r8d
mov rsi, rcx
call fcn.14002f760
movzx eax, byte [rsp + 0x60]
mov dword [rsi + 0x38], ebx
mov dword [rsi + 0x40], edi
mov qword [rsi + 0x48], 0
mov byte [rsi + 0x3c], al
lea r11, [0x140066a58]
mov dword [rsp + 0x48], 4
mov qword [rsi], r11
mov rax, qword [0x140080708]
mov rbx, qword [rax]
cmp rbx, rax
jne 0x14003019b
call fcn.1400356b0
mov ecx, dword [rbx + 0x1c]
sub ecx, 1
je 0x1400301f3
cmp ecx, 1
jne 0x140030222
movsxd rcx, dword [rsi + 0x38]
lea r9, [rsi + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsi + 0x50], 0x10000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140030222
mov eax, dword [rsi + 0x50]
cdq
sub eax, edx
sar eax, 1
mov dword [rsi + 0x50], eax
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
movsxd rcx, dword [rsi + 0x38]
lea rax, [rsp + 0x48]
lea r9, [rsi + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x1400301d5
mov dword [rsi + 0x50], 0x10000
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400355a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x140080770]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14003c4d0
test rax, rax
je 0x1400355f4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140035689
mov ecx, 2
call fcn.14003c300
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140035400
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140035675
test ebx, ebx
jne 0x140035675
lea ecx, [rax + 2]
call fcn.14003c300
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400356b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x140080770]
call fcn.14003c4d0
test rax, rax
je 0x1400356e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.14003c300
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140035400
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14003576e
test ebx, ebx
jne 0x14003576e
lea ecx, [rax + 2]
call fcn.14003c300
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x14003c257
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14007e3c0]
jne 0x1400353ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400353e6
repz ret
ror rcx, 0x10
jmp 0x14003c1b0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400808d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400809c8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14003c235
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400808d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14003c257
mov rax, qword [rsp + 0x88]
mov qword [0x1400809c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140080968], rax
mov rax, qword [0x1400809c8]
mov qword [0x140080840], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140080950], rax
mov dword [0x140080830], 0xc0000409
mov dword [0x140080834], 1
mov rax, qword [0x14007e3c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14007e3c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400808c8], eax
mov ecx, 1
call fcn.14003c300
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str.0_b_b_
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400808c8], 0
jne 0x14003c2de
mov ecx, 1
call fcn.14003c300
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14003e780
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14003e7be
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14003e7a0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14003e9a5
mov ecx, 3
call fcn.140045120
cmp eax, 1
je 0x14003e95c
mov ecx, 3
call fcn.140045120
test eax, eax
jne 0x14003e7f5
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x14003e95c
cmp edi, 0xfc
je 0x14003e9a5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140080db0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14003aac0
test eax, eax
je 0x14003e839
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140035500
lea rdx, [0x140080dc9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140080ecd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14003e889
lea r8, str._program_name_unknown_
lea rcx, [0x140080dc9]
mov edx, 0x2fb
call fcn.14003aac0
test eax, eax
je 0x14003e889
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140035500
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140080dc9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14003e8d8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x1400810c4]
lea r9d, [rax + 3]
lea r8, [0x140067b08]
sub rdx, rcx
call fcn.14003ad80
test eax, eax
je 0x14003e8d8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140035500
lea r8, [0x140067b04]
mov edx, 0x314
mov rcx, rbp
call fcn.14003aea0
test eax, eax
je 0x14003e904
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140035500
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14003aea0
test eax, eax
je 0x14003e934
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140035500
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140044c00
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14003e9a5
cmp rax, 0xffffffffffffffff
je 0x14003e9a5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140043c00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1400814a8]
test eax, eax
jne 0x140043c53
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140043c33
mov dword [0x1400814a8], 1
jmp 0x140043c6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140043c4d
mov dword [0x1400814a8], 2
jmp 0x140043d49
mov eax, dword [0x1400814a8]
cmp eax, 1
jne 0x140043d40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140043d93
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140043c95
add rbx, 2
cmp word [rbx], 0
jne 0x140043c81
add rbx, 2
cmp word [rbx], 0
jne 0x140043c81
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140043d33
mov rcx, rbp
call fcn.14003eca0
test rax, rax
mov rsi, rax
je 0x140043d33
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140043d0d
mov rcx, rsi
call fcn.14003ad30
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140043d19
cmp eax, 2
je 0x140043d49
test eax, eax
jne 0x140043d93
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140043d93
cmp byte [rax], 0
je 0x140043d72
nop
add rax, 1
cmp byte [rax], 0
jne 0x140043d60
add rax, 1
cmp byte [rax], 0
jne 0x140043d60
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.14003eca0
test rax, rax
mov rdi, rax
jne 0x140043da5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400374a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140044c00
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.14003c3e0
xor ebx, ebx
cmp qword [0x1400814c0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140044d2c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140044e3f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140044e3f
mov rcx, rax
call fcn.14003c310
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400814c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14003c310
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400814c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14003c310
lea rcx, [rsp + 0x98]
mov qword [0x1400814d0], rax
call fcn.140036860
test eax, eax
je 0x140044cdf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140035500
cmp dword [rsp + 0x98], 2
jne 0x140044d2c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14003c310
test rax, rax
mov qword [0x1400814e0], rax
je 0x140044d2c
lea rdx, [0x140068610]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14003c310
mov qword [0x1400814d8], rax
mov rcx, qword [0x1400814d8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140044dd8
cmp qword [0x1400814e0], rbp
je 0x140044dd8
call fcn.14003c4d0
mov rcx, qword [0x1400814e0]
mov rsi, rax
call fcn.14003c4d0
test rsi, rsi
mov r12, rax
je 0x140044dd8
test rax, rax
je 0x140044dd8
call rsi
test rax, rax
je 0x140044da3
lea rcx, [rsp + 0x34]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140044da3
test byte [rsp + 0x40], 1
jne 0x140044dd8
lea rcx, [rsp + 0x30]
call fcn.1400368b0
test eax, eax
je 0x140044dc5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140035500
cmp dword [rsp + 0x30], 4
jb 0x140044dd2
bts edi, 0x15
jmp 0x140044e16
bts edi, 0x12
jmp 0x140044e16
mov rcx, qword [0x1400814c8]
cmp rcx, rbp
je 0x140044e16
call fcn.14003c4d0
test rax, rax
je 0x140044e16
call rax
test rax, rax
mov rbx, rax
je 0x140044e16
mov rcx, qword [0x1400814d0]
cmp rcx, rbp
je 0x140044e16
call fcn.14003c4d0
test rax, rax
je 0x140044e16
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400814c0]
call fcn.14003c4d0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140044e3f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140044e41
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret