joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012bd4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140012c0e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140012c13
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140012c5c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400155c0]
cmp byte [rcx + rax], 0
je 0x140012c5c
dec r8
sub rdx, 1
jne 0x140012c42
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140013f94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013fde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013fde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013fde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013fde
cmp dword [rcx + 0x84], 0xe
jbe 0x140013fde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013fe0
xor al, al
add rsp, 0x28
ret
Function at 0x1400112a8
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011370
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400162a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400162c0
xor al, al
jmp 0x140016341
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400162d3
xor al, al
jmp 0x140016341
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400162fd
xor al, al
jmp 0x140016341
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016311
xor al, al
jmp 0x140016341
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016323
xor al, al
jmp 0x140016341
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001633f
xor al, al
jmp 0x140016341
mov al, 1
add rsp, 0x38
ret
Function at 0x140014180
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400114f1
movzx eax, al
test eax, eax
jne 0x1400141a0
mov ecx, 7
call fcn.140011447
nop
mov byte [rsp + 0x20], 0
call fcn.14001145b
mov byte [rsp + 0x21], al
cmp dword [0x140020868], 1
jne 0x1400141c4
mov ecx, 7
call fcn.140011447
nop
jmp 0x14001421c
cmp dword [0x140020868], 0
jne 0x140014217
mov dword [0x140020868], 1
lea rdx, [0x14001c660]
lea rcx, [0x14001c330]
call fcn.140011249
test eax, eax
je 0x1400141f8
mov eax, 0xff
jmp 0x140014321
lea rdx, [0x14001c220]
lea rcx, [section..rdata]
call fcn.140011451
mov dword [0x140020868], 2
jmp 0x14001421c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001142e
call fcn.14001139d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140014279
mov rcx, qword [rsp + 0x30]
call fcn.1400111e5
movzx eax, al
test eax, eax
je 0x140014279
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140027020]
nop
call fcn.1400113e3
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400142ad
mov rcx, qword [rsp + 0x38]
call fcn.1400111e5
movzx eax, al
test eax, eax
je 0x1400142ad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400114a6
nop
call fcn.1400143d0
mov dword [rsp + 0x28], eax
call fcn.140011370
movzx eax, al
test eax, eax
jne 0x1400142cc
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400142db
call fcn.1400114b0
nop
xor edx, edx
mov cl, 1
call fcn.1400111d1
mov eax, dword [rsp + 0x28]
jmp 0x140014321
add rsp, 0x68
ret
Function at 0x14021e890
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14021e89d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14021e8ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14021e895
lea eax, [rcx + 1]
jmp 0x14021e8bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14021e8ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14021e8b4
sub eax, 3
jb 0x14021e8ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14021e93d
sar eax, 1
movsxd rbp, eax
jb 0x14021e924
jmp 0x14021e8fc
add ebx, ebx
jne 0x14021e8fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14021e924
inc ecx
add ebx, ebx
jne 0x14021e90a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14021e924
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14021e91d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14021e90c
add ecx, 2
jmp 0x14021e929
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14021e852
jmp 0x14021e89d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x114800
mov dl, 0x1c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14021e98d
cmp rsi, rcx
jae 0x14021e995
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14021e974
cmp al, 0x8f
ja 0x14021e974
cmp byte [rsi - 2], 0xf
je 0x14021e97a
sub al, 0xe8
cmp al, 1
ja 0x14021e95e
cmp rsi, rcx
jae 0x14021e995
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14021e964
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14021e995
lodsb al, byte [rsi]
jmp 0x14021e974
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x21a000]
mov eax, dword [rdi]
or eax, eax
je 0x14021e9fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x256578]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14021e9a2
jns 0x14021e9d7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14021e9e1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14021e9f8
mov qword [rbx], rax
add rbx, 8
jmp 0x14021e9c2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14021ea42
cmp al, 0xef
ja 0x14021ea2a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14021ea0a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14021ea19
mov eax, dword [rdi]
add rdi, 4
jmp 0x14021ea19
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14021ea96
sub rsp, 0xffffffffffffff80
jmp 0x14010bfc8
Function at 0x14015e977
Capabilities:
Encode data using xor

Disassembly:
push 0x12ad04b6
xor edx, edx
test rcx, rcx
jmp 0x140169b41
mov r9, qword [rsp + 8]
lea rsp, [rsp + 0x10]
jmp 0x14015743c
push 0x491f423b
jmp 0x1401619b6
mov r8, qword [rsi]
mov rcx, qword [rsi + 8]
inc word [rsp + 0xa]
add rsi, 0xc
jmp 0x14013ce58
lea rsp, [rsp + 0x18]
je 0x140152d0e
mov edi, 0x5397c534
push r9
lea r9, [rdi*2 - 0x624d5251]
lea r9, [rdi - 0x45fdc9f5]
lea r9, [0x14015f980]
mov edi, 0xf436db11
bswap rdi
inc rdi
movzx edi, byte [r8]
xor edi, edx
push 0xffffffffe581c78d
and edi, 0xff
mov edi, dword [r9 + rdi*4]
shr edx, 8
sal word [rsp + 3], 0xeb
xor edx, edi
inc r8
xor edx, 0x4a8975a1
dec rcx
push 0xffffffff9597052c
lea rsp, [rsp + 0x10]
jne 0x140169b69
push 0xffffffffcc3b20ae
jmp 0x140152d04
Function at 0x2fc4c4d10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c5dd0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5712
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c57aa
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c578e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5782
cmp qword [rbp - 0x10], 0
je 0x2fc4c5782
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5748
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c57ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c58b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c58d8
mov eax, 0
jmp 0x2fc4c5926
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5901
mov eax, 0
jmp 0x2fc4c5926
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5921
mov eax, 0
jmp 0x2fc4c5926
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c592c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c59aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c59a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c59a1
mov rax, qword [rbp - 8]
jmp 0x2fc4c59bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c5974
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140006820
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1401f7030]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rbp - 0x15], 1
mov r8d, 4
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x15]
call fcn.1400068b0
mov esi, dword [rax]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x19]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx]
or edi, edi
adc eax, 0x199aab
test eax, eax
je 0x140078f54
cmp dword [rbp - 0x19], esi
jne 0x140078f7e
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14005a600
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1401d1480]
lea rcx, [rbp - 9]
call fcn.14014a7e8
lea rdx, [0x1401f2a40]
lea rcx, [rbp - 9]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.WriteFile_returned_incorrect_message_length:
lea rcx, [rbp + 0x17]
call fcn.1400b22a4
nop
mov edx, dword [rbp - 0x19]
lea rcx, [rbp - 9]
call fcn.1401493f4
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdx, qword [rbp - 9]
mov r8, qword [rbp + 7]
lea rcx, [rbp + 0x17]
call fcn.1400c0bdc
nop
lea rcx, [rbp - 9]
call fcn.1400b8ed0
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae rdx, qword [rbp + 0x17]
lea rcx, [rbp - 9]
call fcn.1400d5934
lea rdx, [0x1401f2a40]
lea rcx, [rbp - 9]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140007598
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x30
mov rsi, r8
mov rbx, rdx
xor ebp, ebp
mov dword [rax - 0x18], ebp
mov qword [rdx], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], 7
mov word [rdx], bp
mov dword [rax - 0x18], 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x140079252
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea edx, [rax - 1]
mov rcx, rbx
cmp rdx, qword [rbx + 0x10]
ja 0x140079272
cmp qword [rbx + 0x18], 8
jb 0x140079268
mov rcx, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rcx + rdx*2], bp
jmp 0x14007927b
sub rdx, qword [rbx + 0x10]
call fcn.14014aee4
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140079288
mov rdx, qword [rbx]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop
jmp 0x1400075ec
Function at 0x1400153f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rsi
sub rsp, 0x460
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
cmp edx, dword [rcx + 0xc]
jg 0x1400154ee
mov edx, 0x400
mov qword [r11 - 0x10], rbx
lea rax, [r11 + 0x20]
mov r9, r8
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8d, [rdx - 1]
call fcn.140015260
cmp byte [rsi + 9], 0
je 0x140015455
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [rsi + 0xa], 0
mov rbx, 0xffffffffffffffff
je 0x1400154ad
mov qword [rsp + 0x450], rdi
lea rax, [rsp + 0x40]
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], 0
jne 0x140015472
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rdi, qword [rsp + 0x450]
cmp byte [rsi + 8], 0
je 0x1400154e6
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400154e6
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400154c1
mov r8, rbx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x458]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14011b0c0
add rsp, 0x460
pop rsi
ret
Function at 0x14001ff50
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd748]
mov rbx, rcx
mov ecx, dword [rax + 0x328]
test ecx, ecx
je 0x14001ffdf
dec ecx
cmp ecx, 5
ja case.default.0x14001ff85
movsxd rax, ecx
lea rcx, [0x140000000]
mov edx, dword [rcx + rax*4 + 0x20030]
add rdx, rcx
jmp rdx
movups xmm0, xmmword [0x140188460]
jmp 0x14001ffbb
movups xmm0, xmmword [0x140188420]
jmp 0x14001ffbb
movups xmm0, xmmword [0x140188430]
jmp 0x14001ffbb
movups xmm0, xmmword [0x140188440]
jmp 0x14001ffbb
movups xmm0, xmmword [0x140188450]
jmp 0x14001ffbb
movups xmm0, xmmword [0x140188410]
movups xmmword [rbx + 0x5210], xmm0
lea r8, str.Requesting_8_bit_truecolour_n
mov edx, 2
lea rcx, vtable.Log.0
add rsp, 0x20
pop rbx
jmp fcn.1400153f0
cmp byte [rbx + 0x2d3], 0
jne 0x140020014
lea r8, str.Requesting_16_bit_truecolour_n
mov edx, 2
lea rcx, vtable.Log.0
call fcn.1400153f0
movups xmm0, xmmword [0x140188400]
movups xmmword [rbx + 0x5210], xmm0
add rsp, 0x20
pop rbx
ret
movups xmm0, xmmword [rbx + 0x2d0]
movups xmmword [rbx + 0x5210], xmm0
mov byte [rbx + 0x5212], 0
add rsp, 0x20
pop rbx
ret
Function at 0x140023240
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 0x4d38]
mov rbx, rcx
test rax, rax
je 0x140023281
cmp byte [rax + 0x71], 0
je 0x140023281
cmp byte [rax + 0x72], 0
jne 0x140023371
cmp dword [rax + 0xb54], 1
je 0x140023371
mov rax, qword [rcx + 0x4d40]
cmp byte [rax + 0x28], 0
je 0x140023298
cmp byte [rax + 0x29], 0
jne 0x140023371
cmp byte [rcx + 0xd770], 0
mov qword [rsp + 0x68], rdi
mov byte [rsp + 0x30], 3
je 0x1400232b9
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0x31], al
jmp 0x1400232d6
cmp byte [rsp + 0x88], 0
jne 0x1400232d1
cmp byte [rcx + 0xd700], 0
mov byte [rsp + 0x31], 0
je 0x1400232d6
mov byte [rsp + 0x31], 1
mov byte [rcx + 0xd700], 0
mov eax, r9d
inc dword [rbx + 0x704]
mov edx, 0xff
sar eax, 8
xor edi, edi
and ax, dx
shl r9w, 8
or ax, r9w
mov dword [rsp + 0x32], edi
mov word [rsp + 0x36], ax
mov eax, dword [rsp + 0x80]
mov ecx, eax
sar ecx, 8
and cx, dx
shl ax, 8
or cx, ax
mov word [rsp + 0x38], cx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x710]
cmp eax, 0x3e8
jbe 0x140023351
mov eax, dword [rbx + 0x704]
mov dword [rbx + 0x700], eax
mov dword [rbx + 0x704], edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x710], eax
mov r9b, 3
mov byte [rsp + 0x28], dil
mov r8d, 0xa
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140026230
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14011b0c0
add rsp, 0x50
pop rbx
ret

Function at 0x140026070
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov eax, dword [rcx + 0x748]
mov rbx, rcx
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov rsi, rdx
mov dword [rsp + 0x30], r9d
xor edi, edi
mov dword [rsp + 0x40], 1
lea ecx, [rax + 1]
mov dword [rsp + 0x34], edi
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x14002611d
cmp eax, 1
ja 0x140026118
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rbx + 0x748]
lea rdx, [rsp + 0x40]
mov dword [rbx + 0x12b0], eax
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140026114
mov rcx, qword [rbx + 0x748]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov eax, edi
jmp 0x14002611d
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14011b0c0
add rsp, 0x268
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002ed50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbx, rdx
mov r13, rcx
mov rax, qword [rcx + 0xd748]
cmp byte [rax + 0x357], 0
jne 0x14002ef07
cmp byte [rax + 0x31e], 0
jne 0x14002ef07
lea eax, [r8 + r8]
movsxd rcx, eax
inc rcx
call fcn.14011b4c0
mov r15, rax
xor r8d, r8d
movzx edx, byte [rbx]
test dl, dl
je 0x14002edd7
mov rcx, rax
cmp dl, 0xa
jne 0x14002edc5
mov byte [rcx], reloc.WS2_32.dll_listen
inc r8d
inc rcx
movzx edx, byte [rbx]
mov byte [rcx], dl
inc rbx
inc r8d
inc rcx
movzx edx, byte [rbx]
test dl, dl
jne 0x14002edb4
movsxd rax, r8d
mov byte [rax + r15], 0
lea rdi, [r13 + 0x15e8]
mov qword [rsp + 0x28], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [r13 + 0x12b8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rsp + 0x70], bl
test eax, eax
jne 0x14002ee1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.UpdateLocalClipboard:_Failed_to_open_clipboard__Last_error_0x_08x
jmp 0x14002ee35
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x14002ee4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.UpdateLocalClipboard:_Failed_to_empty_clipboard__Last_error_0x_08x
mov r9d, eax
mov edx, 2
lea rcx, vtable.Log.0
call fcn.1400153f0
jmp 0x14002eeea
mov rbp, 0xffffffffffffffff
mov r14, rbp
nop dword [rax + rax]
inc r14
cmp byte [r15 + r14], 0
jne 0x14002ee60
movsxd r12, r14d
lea rdx, [r12 + 1]
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14002eeea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
lea r8, [r12 + 1]
mov rdx, r15
mov rcx, rax
call fcn.14011fbe0
movsxd rcx, r14d
mov byte [rcx + rsi], 0
mov rsi, qword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
inc rbp
cmp byte [r15 + rbp], 0
jne 0x14002eec0
lea rcx, [r13 + 0x14f0]
mov r8, rbp
mov rdx, r15
call fcn.14002d450
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rcx, r15
call fcn.14011b120
nop
test bl, bl
je 0x14002eefe
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003b4f0
Capabilities:
Inspect load icon resource

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [reloc.WS2_32.dll_accept], 0
mov rbx, rcx
mov rax, qword [rcx + 0x10]
mov ebp, edx
mov qword [rcx + 0x30], rax
mov edx, reloc.WS2_32.dll_WSAAsyncSelect
mov dword [rcx + 0x28], 0x210
mov dword [rcx + 0x38], reloc.WS2_32.dll_WSAAsyncSelect
mov rcx, qword [0x1402bb178]
mov rcx, qword [rcx + 0xb98]
jne 0x14003b547
mov edx, 0xb1
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbx + 0x48], rax
mov r9d, 0x80
mov rcx, qword [0x1402bb178]
lea r8, [rbx + 0x50]
mov dword [rbx + 0x3c], 3
mov dword [rbx + 0x40], 0x8002
mov byte [rbx + 0x50], 0
lea edx, [r9 - 0x1b]
mov rcx, qword [rcx + 0xb98]
call qword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x14003b58d
or dword [rbx + 0x3c], 4
mov r8d, dword [rbx + 0x238]
lea rdx, str.___Port:_ld
lea rcx, [rsp + 0x20]
call fcn.14003b910
lea r8, [rsp + 0x20]
mov edx, 0x80
lea rcx, [rbx + 0x50]
call fcn.1401220fc
lea rdx, [rbx + 0x28]
mov ecx, ebp
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
test eax, eax
setne al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14011b0c0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003c160
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x310]
test rcx, rcx
je 0x14003c17b
call qword [rbx + 0x2e8]
mov rcx, qword [rbx + 0x318]
test rcx, rcx
je 0x14003c18d
call qword [rbx + 0x2e8]
xor eax, eax
mov qword [rbx + 0x310], rax
mov qword [rbx + 0x318], rax
mov byte [rbx + 0x38], al
call qword [rbx + 0x2b8]
test eax, eax
je 0x14003c1e3
mov rcx, qword [rbx + 0x1a0]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
lea rcx, [rbx + 0x1a8]
setne dil
cmp byte [rcx], 0
je 0x14003c1d4
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret