joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011a44
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
mov rbx, rcx
mov ecx, r9d
mov edi, r9d
mov rbp, r8
mov r12, rdx
call fcn.140075b98
mov r8d, edi
xor edx, edx
mov rcx, rbx
mov r9, rax
mov r13, rax
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rbp
call fcn.140075704
mov rcx, 0xffffffffffffffff
lea r11, [rax + 0x1a]
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.140075b98
lea r15, [0x140095dac]
mov rdx, r15
mov rcx, rax
mov rsi, rax
call fcn.140075b0c
mov rdx, r15
mov rcx, rbp
call fcn.140076450
xor edi, edi
cmp eax, edi
je 0x140011b60
lea rdx, str.StringFileInfo_
mov rcx, rsi
call fcn.140075ae0
mov rdx, r15
mov rcx, rbp
call fcn.140076834
cmp rax, rdi
jne 0x140011b55
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x140011b3b
mov rax, qword [rsp + 0x38]
lea rdx, [rsi + 0x20]
lea r8d, [rdi + 4]
mov ebx, dword [rax]
mov ecx, ebx
call fcn.1400135f4
shr ebx, 0x10
lea rdx, [rsi + 0x28]
lea r8d, [rdi + 4]
mov ecx, ebx
call fcn.1400135f4
jmp 0x140011b4a
lea rdx, str.04090000
mov rcx, rsi
call fcn.140075ae0
mov rdx, r15
mov rcx, rsi
call fcn.140075ae0
mov rdx, rbp
mov rcx, rsi
call fcn.140075ae0
lea rdx, str.DefaultLangCodepage
mov rcx, rbp
call fcn.140075a4c
cmp eax, edi
jne 0x140011ba2
lea rdx, [rsi + 0x20]
mov r8d, 8
mov rcx, r12
call fcn.1400762cc
mov rcx, r13
mov word [r12 + 0x10], di
call fcn.140075884
mov rcx, rsi
call fcn.140075884
mov al, 1
jmp 0x140011c32
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x140011c1f
mov rdx, r15
mov rcx, rbp
call fcn.140076450
cmp eax, edi
jne 0x140011c00
mov rax, qword [rsp + 0x30]
lea rdx, str._u._u._u._u
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, r12
shr r8d, 0x10
call fcn.14007659c
jmp 0x140011c1c
mov rdx, qword [rsp + 0x30]
mov r8d, 0x200
mov rcx, r12
call fcn.1400762cc
mov word [r12 + 0x400], di
mov dil, 1
mov rcx, r13
call fcn.140075884
mov rcx, rsi
call fcn.140075884
mov al, dil
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140011c4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140011c89
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140011c7c
or eax, 0xffffffff
jmp 0x140011c89
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret
Function at 0x1400123f4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x230
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x103
call fcn.1400762cc
lea rcx, [rsp + 0x20]
xor esi, esi
mov word [rsp + 0x226], si
call fcn.140075704
lea ebx, [rsi + 0x5c]
cmp rax, rsi
je 0x140012441
cmp word [rsp + rax*2 + 0x1e], bx
jne 0x140012441
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400124c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140012471
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x140012476
mov al, 1
jmp 0x1400124cf
cmp eax, 3
jne 0x1400124cd
lea rcx, [rsp + 0x20]
call fcn.140013048
mov edx, ebx
mov rcx, rax
mov rdi, rax
call fcn.1400788d4
mov rcx, rdi
cmp rax, rsi
jne 0x14001249c
call fcn.140075884
jmp 0x1400124cd
mov word [rax], si
call fcn.1400123f4
mov rcx, rdi
mov bl, al
call fcn.140075884
cmp bl, sil
je 0x1400124c5
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
setne bl
mov al, bl
jmp 0x1400124cf
test al, 0x10
jne 0x14001246d
xor al, al
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400124e4
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x480
mov rbx, rdx
lea rdx, [rsp + 0x270]
mov dil, r8b
call fcn.140011c94
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140011c94
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
cmp eax, ebx
jne 0x14001255c
cmp dil, bl
je 0x14001258c
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call fcn.140076450
cmp eax, ebx
je 0x140012558
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x14001258e
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001258c
test al, 0x10
je 0x14001258c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001259f
test al, 0x10
je 0x14001259f
cmp dil, bl
jne 0x1400125c1
xor al, al
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret
lea rcx, [rsp + 0x60]
call fcn.1400123f4
cmp al, bl
je 0x14001258c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001258c
test al, 0x10
je 0x14001258c
lea rdx, [0x140097ff8]
lea rcx, [rsp + 0x270]
call fcn.140075ae0
lea rcx, [rsp + 0x270]
call fcn.140075704
lea rcx, [rsp + 0x60]
mov word [rsp + rax*2 + 0x272], bx
call fcn.140075704
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
lea rax, [rsp + 0x270]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 2
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
jmp 0x14001258e
Function at 0x14001264c
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xac0
mov rbx, rdx
lea rdx, [rsp + 0x280]
mov dil, r8b
call fcn.140011c94
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140011c94
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001283d
test al, 0x10
je 0x14001283d
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x140012779
test al, 0x10
je 0x140012779
cmp dil, bl
je 0x14001283d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea rcx, [rsp + 0x280]
cmp eax, ebx
jne 0x140012710
lea rdx, [rsp + 0x70]
call fcn.140076450
cmp eax, ebx
je 0x140012709
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebx
setne al
jmp 0x14001283f
mov al, 1
jmp 0x14001283f
lea rax, [rsp + 0x490]
lea r9, [rsp + 0x6a0]
lea r8, [rsp + 0x8b0]
lea rdx, [rsp + 0xae8]
mov qword [rsp + 0x20], rax
call fcn.140076efc
lea rdx, [0x140095dac]
lea rcx, [rsp + 0x70]
call fcn.140075ae0
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x70]
call fcn.140075ae0
cmp word [rsp + 0x490], bx
je 0x140012779
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x70]
call fcn.140075ae0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x280]
call fcn.140011dd8
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x280]
cmp al, bl
je 0x1400127c2
mov r8b, 1
call fcn.1400124e4
cmp al, bl
je 0x14001283d
lea rcx, [rsp + 0x280]
mov dl, 1
call fcn.140012850
cmp al, bl
jmp 0x140012701
call fcn.140076450
cmp eax, ebx
je 0x14001283d
lea rcx, [rsp + 0x280]
call fcn.140075704
lea rcx, [rsp + 0x70]
mov word [rsp + rax*2 + 0x282], bx
call fcn.140075704
lea rcx, [rsp + 0x30]
mov word [rsp + rax*2 + 0x72], bx
lea rax, [rsp + 0x280]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x48], rax
mov eax, 0x614
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], 1
mov word [rsp + 0x50], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
jmp 0x14001283f
xor al, al
mov rbx, qword [rsp + 0xad0]
add rsp, 0xac0
pop rdi
ret
Function at 0x140012850
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov bl, dl
lea rdx, [rsp + 0x60]
call fcn.140011c94
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400128e6
test al, 0x10
je 0x1400128e6
xor edi, edi
lea rcx, [rsp + 0x60]
cmp bl, dil
jne 0x140012896
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, edi
setne al
jmp 0x1400128e8
call fcn.140075704
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rdi
mov word [rsp + rax*2 + 0x62], di
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rax
mov eax, 0x614
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, edi
sete al
jmp 0x1400128e8
xor al, al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x140012a5c
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
movsxd rbx, ecx
mov rdi, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x100
call sub.WSOCK32.dll_gethostname
lea rcx, [rsp + 0x20]
call sub.WSOCK32.dll_gethostbyname
test rax, rax
je 0x140012b1e
mov r9, qword [rax + 0x18]
xor r8d, r8d
cmp qword [r9], r8
je 0x140012aad
mov rax, r9
add rax, 8
inc r8d
cmp qword [rax], 0
jne 0x140012aa0
cmp ebx, r8d
jle 0x140012ac3
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140075b0c
jmp 0x140012b17
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x140]
mov r8d, 4
call fcn.1400753d0
mov ecx, dword [rsp + 0x140]
call sub.WSOCK32.dll_inet_ntoa
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140076ad0
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140013a64
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140075b0c
mov rcx, rbx
call fcn.140075884
call sub.WSOCK32.dll_WSACleanup
jmp 0x140012b2d
lea rdx, [0x1400956d0]
mov rcx, rdi
call fcn.140075b0c
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret

Function at 0x140012cc0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp dl, 1
jne 0x140012d16
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], 0x1388
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x140012d33
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x140012d29
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x40
pop rbx
ret
Function at 0x140012fc4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x140013047
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x14001303c
cmp ecx, 0xf
jae 0x14001303a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14001303a
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x38]
sub r11, qword [rsp + 0x40]
pxor xmm1, xmm1
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, r11
divsd xmm1, xmm0
mulsd xmm1, qword [0x14009da78]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x140012ff2
jmp 0x140013042
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret

Function at 0x140013364
Capabilities:
Print debug messages
Write file on windows

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
sub rsp, 0x40
mov r12b, byte [0x1400aa617]
mov rsi, rdx
mov rdi, rcx
call fcn.140078c14
mov edx, 0x8000
mov ecx, eax
call fcn.140078abc
cmp dword [rsi + 8], 0xb
mov ebp, eax
jne 0x1400133ce
mov rcx, rsi
call fcn.14001744c
mov rcx, rsi
movsxd rbx, eax
call fcn.140017530
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140077844
mov rbx, rax
jmp 0x140013424
lea rcx, [rsp + 0x20]
call fcn.140009ee4
mov rcx, rsi
call fcn.1400174d4
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.14001123c
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400981ec]
mov rcx, rdi
call fcn.140078c4c
movsxd rbx, eax
test r12b, r12b
je 0x14001341a
mov rcx, rsi
call fcn.1400174a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x20]
call fcn.140001e50
mov rcx, rdi
call fcn.1400781d0
mov rcx, rdi
call fcn.140078c14
mov edx, 0x4000
mov ecx, eax
cmp ebp, 0xffffffff
je 0x140013442
mov edx, ebp
call fcn.140078abc
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x140015fa0
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x60
and dword [rax - 0x18], 0
and qword [rax - 0x20], 0
test byte [rcx], 0x10
lea rbx, [rcx + 0x30]
mov dword [rax - 0x28], 0x18
je 0x140015ff1
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rdi, 0xffffffffffffffff
mov qword [rbx], rax
cmp rax, rdi
jne 0x140016039
and qword [rbx], 0
mov rdi, qword [rbx]
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
test byte [rcx], 1
je 0x14001601d
mov rdi, qword [rbx]
test rdi, rdi
jne 0x140015fe3
lea rdx, [rcx + 0x28]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140016094
or rdi, 0xffffffffffffffff
jmp 0x140015fe3
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rdi, 0xffffffffffffffff
mov qword [rbx], rax
test rax, rax
je 0x14001604c
cmp rax, rdi
je 0x14001604c
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.1400160e0
jmp 0x140015fe0
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x1400984f8]
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, rdi
je 0x140015fdc
test rax, rax
je 0x140015fdc
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.1400160e0
mov rcx, rbx
call fcn.1400160bc
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x140015fe0

Function at 0x14001614c
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14001618d
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400161d3
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x1400161bc
mov rax, qword [r9]
test rax, rax
jne 0x140016187
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14001622f
or rax, 0xffffffffffffffff
jmp 0x140016187
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x1400161e6
cmp rax, 0xffffffffffffffff
je 0x1400161e6
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.1400160e0
jmp 0x140016184
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x1400984f8]
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140016180
test rax, rax
je 0x140016180
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.1400160e0
mov rcx, rbx
call fcn.1400160bc
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x140016184
Function at 0x1400163a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x58], 0
mov rbx, rcx
jne 0x1400163d7
lea rax, [rsp + 0x40]
mov r9, rcx
lea r8, [0x140016634]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x58], rax
add rsp, 0x30
pop rbx
ret

Function at 0x1400163e0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
mov rdi, rcx
je 0x140016448
mov eax, dword [rcx + 0x60]
mov ebp, 0x1f6
xchg dword [rcx + 0x60], eax
cmp eax, ebp
je 0x140016448
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x58]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x58]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rdi + 0x58]
call fcn.1400160bc
xchg dword [rdi + 0x60], ebp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140016650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x10030
call fcn.140090020
sub rsp, rax
mov eax, 0x1f5
mov r12d, 0xffff
mov rbx, rcx
xchg dword [rcx + 0x60], eax
mov qword [rcx + 0x20], r12
mov rcx, r12
call fcn.140075b98
mov qword [rbx + 0x10], rax
jmp 0x1400167a2
cmp dword [rsp + 0x10040], 0
jbe 0x1400167ca
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x18]
mov ecx, dword [rsp + 0x10040]
add rcx, rax
cmp qword [rbx + 0x20], rcx
jae 0x14001676b
mov rcx, qword [rbx + 0x18]
call fcn.140075b98
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
mov rsi, rax
call fcn.1400753d0
mov rcx, qword [rbx + 0x10]
call fcn.140075884
mov r11d, dword [rsp + 0x10040]
mov rcx, qword [rbx + 0x18]
pxor xmm0, xmm0
add r11, rcx
cvtsi2sd xmm0, r11
jns 0x14001670b
addsd xmm0, qword [0x14009da70]
mulsd xmm0, qword [0x14009da68]
xor eax, eax
comisd xmm0, xmmword [0x14009da60]
jbe 0x14001673e
subsd xmm0, qword [0x14009da60]
comisd xmm0, xmmword [0x14009da60]
jae 0x14001673e
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov qword [rbx + 0x20], rcx
call fcn.140075b98
mov r8, qword [rbx + 0x18]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
call fcn.1400753d0
mov rcx, rsi
call fcn.140075884
mov rcx, qword [rbx + 0x18]
mov r8d, dword [rsp + 0x10040]
lea rdx, [rsp + 0x30]
add rcx, qword [rbx + 0x10]
call fcn.1400753d0
mov r11d, dword [rsp + 0x10040]
mov rax, qword [rbx + 0x18]
add r11, rax
lea rcx, [rbx + 0x28]
mov qword [rbx + 0x18], r11
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x50]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x10040]
lea rdx, [rsp + 0x30]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140016694
lea r11, [rsp + 0x10030]
mov eax, 0x1f6
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov ecx, eax
xchg dword [rbx + 0x60], ecx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret

Function at 0x140019e7c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r9d, 1
mov dword [0x1400ba6b0], ecx
lea rdx, [0x1400ba6b0]
mov r8d, r9d
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
lea rax, [0x1400bb06c]
imul ecx, ecx, 0x6c078965
add ecx, r8d
add r8d, r9d
cmp rdx, rax
mov dword [rdx], ecx
jl 0x140019e92
mov dword [reloc.WSOCK32.dll_accept], r9d
mov dword [0x1400bb084], r9d
ret
Function at 0x140019ec8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400bb084], 0
lea rbx, [0x1400ba6b0]
jne 0x140019eed
xor ecx, ecx
call fcn.14007911c
mov rcx, rax
call fcn.140019e7c
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400ba6a0], rbx
mov r8d, 0xe3
mov r9d, 0x7ffffffe
mov r10d, 0x9908b0df
mov eax, dword [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, r9d
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, r10d
xor ecx, eax
xor ecx, dword [rbx + 0x634]
mov dword [rbx], ecx
add rbx, 4
sub r8d, 1
jne 0x140019f10
mov r8d, 0x18c
lea rdx, [rbx + 4]
mov eax, dword [rdx]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, r9d
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, r10d
xor ecx, eax
xor ecx, dword [rbx - 0x38c]
sub r8d, 1
mov dword [rbx], ecx
mov rbx, rdx
jne 0x140019f41
mov eax, dword [0x1400ba6b0]
mov ecx, dword [rdx]
xor ecx, eax
and al, 1
and ecx, r9d
xor ecx, dword [rdx]
shr ecx, 1
neg al
sbb eax, eax
and eax, r10d
xor ecx, eax
xor ecx, dword [rdx - 0x38c]
mov dword [rdx], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140019f98
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [reloc.WSOCK32.dll_accept], 1
jne 0x140019faa
call fcn.140019ec8
mov rax, qword [0x1400ba6a0]
pxor xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400ba6a0], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x14009da50]
add rsp, 0x28
ret

Function at 0x14001a248
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x14001a279
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400753d0
jmp 0x14001a287
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140077d08
movzx ecx, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, str.EA06
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x34], bl
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.140077180
cmp eax, ebx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret