joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c5e0
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x14009c960]
call fcn.140001a70
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x14001c720
cmp dword [0x14009c920], 0
jne 0x14001c720
mov qword [rsp + 0x30], rbx
lea rcx, [0x14009c928]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1400847d8], 0
je 0x14001c656
lea rcx, [0x1400862a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140086260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140086220]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x14009c958]
xor r9d, r9d
xor r8d, r8d
mov qword [0x14009c970], rsi
xor edx, edx
mov dword [0x14009c920], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x14009c950]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x14001c6d3
cmp rbx, rsi
je 0x14001c6cb
cmp dword [rbx + 0x38], 0
jne 0x14001c6cb
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14001c6bb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x14001c6a0
cmp dword [rbx + 0x38], 0
jne 0x14001c6cb
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001c693
cmp dword [0x1400847d8], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14001c70d
lea rcx, [0x140086220]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140086260]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400862a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14009c928]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret

Function at 0x14001c730
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x14009c960]
call fcn.140001a70
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x14001c7a7
cmp qword [0x14009c970], rdi
jne 0x14001c7a7
cmp dword [0x14009c920], 0
je 0x14001c7a7
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14009c950]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14001c797
cmp rbx, rdi
je 0x14001c78c
cmp dword [rbx + 0x38], esi
jne 0x14001c78c
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rbx + 0x38], esi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001c778
mov rbx, qword [rsp + 0x30]
mov dword [0x14009c920], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f8a0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov ecx, 0xfffffff5
mov word [rsp + 0x22], ax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140046640
mov ecx, eax
lea rdx, [0x140071d5c]
call fcn.140045b08
xor r9d, r9d
mov qword [0x14009c998], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.140046308
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140046640
mov ecx, eax
lea rdx, [0x140071c0c]
call fcn.140045b08
xor r9d, r9d
mov qword [0x14009c9a0], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.140046308
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140046640
mov ecx, eax
lea rdx, [0x140071c0c]
call fcn.140045b08
xor r9d, r9d
mov qword [0x14009c9a8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.140046308
mov rax, qword [0x14009c9a0]
mov qword [0x14009cba8], rax
call fcn.140021050
add rsp, 0x48
ret
Function at 0x14003aa10
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, edx
mov rbp, rcx
test edx, edx
jle 0x14003aa6b
nop
mov rcx, qword [0x1400a0778]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14003aa65
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x14003aa85
add ebx, esi
cmp ebx, edi
jl 0x14003aa30
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14003aa70

Function at 0x140046d80
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140083900]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140046dca
call fcn.140035100
mov dword [rax], recv
call fcn.1400350e0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140024ba4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140038010
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140046dd5
lea eax, [rbx + 1]
jmp 0x140046db7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140046db5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140046db7

Function at 0x14004c298
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400259d4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14004c339
cmp ebx, dword [rsp + 0x30]
je 0x14004c332
test esi, esi
je 0x14004c332
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004c30d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004c31a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004c2f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004c31e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004c33b
mov eax, 1
jmp 0x14004c33b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004cd60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x1400826f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x14004cd90
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x14004cdb1
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x14004cdc3
mov eax, 0x100000
cmp r8, rax
jle 0x14004cde0
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x1400847d0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004d1e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x1400826f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rbx, qword [rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140052364
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005237a
mov al, 1
jmp 0x1400523da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005238b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400523d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400465c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400523d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400523d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400523d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400523da
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400533c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140052650
mov r11d, eax
lea edx, [rax*4]
movsxd r9, edx
test edx, edx
jle 0x14005343d
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rcx, [rbx + 8]
nop
mov edx, dword [rcx - 8]
add r10, 4
mov eax, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rcx - 8], eax
lea rcx, [rcx + 0x10]
mov eax, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rcx - 0x14]
mov dword [rcx - 0x14], eax
mov eax, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rcx - 0x10]
mov dword [rcx - 0x10], eax
mov eax, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rcx - 0xc]
mov dword [rcx - 0xc], eax
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x1400533f0
cmp r11d, 1
jle 0x1400535f9
mov qword [rsp + 0x30], rdi
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
add rbx, 4
nop dword [rax + rax]
mov r9d, dword [rbx + 0x10]
lea rbx, [rbx + 0x10]
mov edx, dword [rbx - 4]
movzx eax, byte [rbx - 3]
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x702b0]
movzx eax, byte [rdi + rax*4 + 0x6f6b0]
xor r8d, dword [rdi + rax*4 + 0x6fab0]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
movzx eax, byte [rbx - 2]
xor r8d, dword [rdi + rcx*4 + 0x706b0]
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x6feb0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x6f6b0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x6feb0]
movzx eax, byte [rdi + rcx*4 + 0x6f6b0]
xor r8d, dword [rdi + rax*4 + 0x702b0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
movzx eax, r9b
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0x6fab0]
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x706b0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx], r8d
movzx edx, byte [rdi + rcx*4 + 0x6f6b0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x6feb0]
movzx eax, byte [rdi + rcx*4 + 0x6f6b0]
xor r8d, dword [rdi + rax*4 + 0x702b0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
movzx eax, r9b
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0x6fab0]
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x706b0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x6f6b0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x6feb0]
movzx eax, byte [rdi + rcx*4 + 0x6f6b0]
xor r8d, dword [rdi + rax*4 + 0x702b0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x6fab0]
movzx ecx, byte [rdi + rax*4 + 0x6f6b0]
xor r8d, dword [rdi + rcx*4 + 0x706b0]
mov dword [rbx + 8], r8d
sub r10, 1
jne 0x140053460
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x14005aca8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400a02d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005acff
cmp word [rdx], r13w
jne 0x14005acff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005ad04
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005ae29
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005ae4a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005ad3d
mov rdx, r9
mov word [rbx], cx
jmp 0x14005ad64
cmp r9, r8
jae 0x14005ad74
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005ad1e
jmp 0x14005ae29
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005ae1e
cmp dword [rsp + 0x80], esi
je 0x14005ae1e
lea r8, [0x1400a02d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005adf6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005adc6
mov word [rbx], r13w
jmp 0x14005ae26
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14005add3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005ae26
cmp word [rsp + 0x70], r13w
jne 0x14005ae03
cmp rbx, r14
je 0x14005adc0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005a1c4
cmp word [rsp + 0x70], r13w
je 0x14005ae29
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400a02d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005ae23
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005ae29
Function at 0x14005b8a4
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14005b8d4
xor eax, eax
jmp 0x14005b997
mov rbp, rbx
cmp word [rax], si
je 0x14005b8f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005b8e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005b8dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140047de4
movsxd r14, eax
test eax, eax
jne 0x14005b937
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005b8cd
mov rcx, r14
call fcn.140025044
mov rdi, rax
test rax, rax
jne 0x14005b950
xor ecx, ecx
call fcn.140025008
jmp 0x14005b92c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140047de4
test eax, eax
jne 0x14005b981
mov rcx, rdi
call fcn.140025008
jmp 0x14005b98b
xor ecx, ecx
call fcn.140025008
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14005b9b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005ba3b
mov rsi, rbx
cmp word [rax], bp
je 0x14005b9fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005b9e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005b9e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140025044
mov rdi, rax
test rax, rax
je 0x14005ba28
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003570
mov rbp, rdi
xor ecx, ecx
call fcn.140025008
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005ed74
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140028744
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005edfe
cmp byte [rbp - 0x21], r15b
je 0x14005edf9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005ee34
call fcn.14002616c
test eax, eax
jne 0x14005ee20
cmp byte [rbp - 0x21], r15b
je 0x14005ee18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005ee34
cmp byte [rbp - 0x21], r15b
je 0x14005ee31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140047338
test eax, eax
jne 0x14005eed4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140028744
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005ee73
cmp byte [rbp - 0x21], r15b
je 0x14005eea8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005eea8
call fcn.14002616c
test eax, eax
jne 0x14005ee94
cmp byte [rbp - 0x21], r15b
je 0x14005ee8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005eea8
cmp byte [rbp - 0x21], r15b
je 0x14005eea5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140047338
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005eed4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005eed7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005eee5
mov rcx, rdi
call fcn.140025008
cmp byte [rbp + 0x3f], r15b
je 0x14005eef4
mov rcx, qword [rbp + 0x27]
call fcn.140025008
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14005f100
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005a1c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005a1c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005f250
cmp rax, 0xffffffffffffffff
je 0x14005f250
xor edi, edi
test rbp, rbp
jle 0x14005f1fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140024f90
mov rbx, rax
test rax, rax
jne 0x14005f188
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005f1f1
mov edx, 0x8000
mov ecx, r14d
call fcn.14005ef84
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14004fb9c
cmp eax, 0xffffffff
je 0x14005f1d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005f198
mov edx, r15d
mov ecx, r14d
call fcn.14005ef84
jmp 0x14005f1f1
cmp byte [rsi + 0x38], dil
je 0x14005f1e8
cmp dword [rsi + 0x34], 5
jne 0x14005f1e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14005f1f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140025008
jmp 0x14005f264
jns 0x14005f264
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005a1c4
cmp rax, 0xffffffffffffffff
jne 0x14005f21c
cmp byte [rsi + 0x30], dil
je 0x14005f264
mov edi, dword [rsi + 0x2c]
jmp 0x14005f264
mov ecx, r14d
call fcn.1400465c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005f264
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14005f264
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005f25d
mov eax, dword [rsi + 0x2c]
jmp 0x14005f262
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005a1c4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400a6000
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r8, gethostbyname
xor rdx, rdx
movabs rcx, 0x1400846f8
call fcn.140001100
xor rcx, rcx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [0x140084700], rax
xor r8, r8
mov rdx, 0x1000
xor rcx, rcx
call sub.KERNEL32.dll_HeapCreate
mov qword [0x1400846f8], rax
call fcn.140001000
call fcn.140001f60
mov rdx, 0
mov rcx, rsp
call fcn.140002510
call fcn.140001e90
call fcn.140001e38
call fcn.140001988
call fcn.14000194c
call fcn.140001850
call fcn.1400016e0
call fcn.14000153c
call fcn.140001488
call fcn.14000108c
mov qword [rsp + 0x20], rax
mov rcx, 2
call fcn.1400a63aa
movabs rax, str.user64.dll
push rax
push 0
pop rcx
pop rdx
movabs r10, 0x14000199c
mov r11, 0
call fcn.1400a65a4
call fcn.1400019c8
mov rcx, 5
call fcn.1400a63aa
movabs rax, str.Window_Title_Here
push rax
push 0
pop rcx
pop rdx
call sub.USER32.dll_FindWindowW
mov rcx, 5
call fcn.1400a6586
mov qword [0x140084720], rax
mov rcx, 7
call fcn.1400a63aa
cmp qword [0x140084720], 0
je 0x1400a62db
mov rcx, 9
call fcn.1400a63aa
movabs rax, 0x1400821a2
push rax
movabs rax, str.Button
push rax
push 0
push qword [0x140084720]
pop rcx
pop rdx
pop r8
pop r9
call sub.USER32.dll_FindWindowExW
mov rcx, 9
call fcn.1400a6586
mov qword [0x140084718], rax
mov rcx, reloc.WS2_32.dll_inet_addr
call fcn.1400a63aa
cmp qword [0x140084718], 0
je 0x1400a626f
mov rcx, reloc.WS2_32.dll_listen
call fcn.1400a63aa
push 0
push 0
push 0x201
push qword [0x140084718]
pop rcx
pop rdx
pop r8
pop r9
call sub.USER32.dll_SendMessageW
mov rcx, reloc.WS2_32.dll_listen
call fcn.1400a6586
mov rcx, recv
call fcn.1400a63aa
push 0x64
pop rcx
movabs r10, fcn.140001538
mov r11, 0
call fcn.1400a65a4
call fcn.140001814
mov rcx, recv
call fcn.1400a63aa
push 0
push 0
push 0x202
push qword [0x140084718]
pop rcx
pop rdx
pop r8
pop r9
call sub.USER32.dll_SendMessageW
mov rcx, recv
call fcn.1400a6586
mov rcx, setsockopt
call fcn.1400a63aa
push 0
movabs rax, str.The_OK_button_has_been_clicked_
push rax
movabs rax, str.Success
push rax
pop rcx
pop rdx
pop r8
movabs r10, fcn.140001538
mov r11, 0
call fcn.1400a65a4
call fcn.140001530
mov rcx, setsockopt
call fcn.1400a63aa
jmp 0x1400a62c1
mov rcx, setsockopt
call fcn.1400a63aa
mov rcx, reloc.WS2_32.dll_send
call fcn.1400a63aa
push 0
movabs rax, str.OK_button_not_found_
push rax
movabs rax, str.Error
push rax
pop rcx
pop rdx
pop r8
movabs r10, fcn.140001538
mov r11, 0
call fcn.1400a65a4
call fcn.140001530
mov rcx, setsockopt
call fcn.1400a63aa
mov rcx, reloc.WS2_32.dll_setsockopt
call fcn.1400a63aa
jmp 0x1400a632d
mov rcx, reloc.WS2_32.dll_setsockopt
call fcn.1400a63aa
mov rcx, socket
call fcn.1400a63aa
push 0
movabs rax, str.Window_not_found_
push rax
movabs rax, str.Error
push rax
pop rcx
pop rdx
pop r8
movabs r10, fcn.140001538
mov r11, 0
call fcn.1400a65a4
call fcn.140001530
mov rcx, reloc.WS2_32.dll_socket
call fcn.1400a63aa
mov rcx, 0x19
call fcn.1400a63aa
push 0
pop rcx
call fcn.1400018f4
mov rcx, 0x1b
call fcn.1400a63aa
call fcn.1400a6383
call fcn.140002930
call fcn.140001f90
mov rcx, qword [0x1400846f8]
call sub.KERNEL32.dll_HeapDestroy
mov rcx, qword [0x140084708]
call sub.KERNEL32.dll_ExitProcess