joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e4896
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
mov rbx, rcx
mov ecx, dword [0x1400fb148]
test ecx, ecx
je 0x1400e49f0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e48d3
mov r14, rax
cmp qword [rax + 8], 0
je 0x1400e48d3
add r14, 0x10
jmp 0x1400e49e0
mov ecx, dword [0x1400fb148]
test ecx, ecx
je 0x1400e4a03
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e497d
mov r14, rax
test rax, rax
jne 0x1400e4958
mov qword [rsp + 0x30], 0
lea rax, [0x1400fb130]
mov qword [rsp + 0x28], rax
mov al, byte [0x14017e190]
mov ecx, 0x60
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400e4a29
mov r14, rax
lea rsi, [rsp + 0x28]
mov ecx, 0xc
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
mov ecx, dword [0x1400fb148]
test ecx, ecx
je 0x1400e4a16
dec ecx
mov rdx, r14
call sub.kernel32.dll_TlsSetValue
lea rax, [r14 + 8]
test rbx, rbx
je 0x1400e4982
lea rcx, [rbx + 8]
cmp qword [rbx], 0
mov qword [rbx], 0
lea rsi, [0x1401378f8]
cmovne rsi, rcx
jmp 0x1400e4989
xor r14d, r14d
jmp 0x1400e49e0
lea rsi, [0x1401378f8]
lea rdx, [rsp + 0x88]
mov ecx, 0xa
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
lea r8, [rsp + 0x28]
mov ecx, 0xb
mov rdi, r8
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov qword [r14 + 8], 1
add r14, 0x10
mov ecx, 0xa
mov rdi, r14
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
cmp qword [r8], 0
je 0x1400e49e0
cmp dword [rsp + 0x38], 2
je 0x1400e49e0
lea rcx, [rsp + 0x38]
call fcn.140044ba3
mov rax, r14
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400fb130]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e48b5
lea rcx, [0x1400fb130]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e48e3
lea rcx, [0x1400fb130]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e4950
mov ecx, 8
mov edx, 0x60
call fcn.1400051b0
ud2
Function at 0x1400e4a58
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400fb128]
test ecx, ecx
je 0x1400e4b25
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e4a8c
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400e4a8c
add rdi, 8
jmp 0x1400e4b1b
mov ecx, dword [0x1400fb128]
test ecx, ecx
je 0x1400e4b38
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e4b19
mov rsi, rax
test rax, rax
jne 0x1400e4af6
mov al, byte [0x14017e190]
mov ecx, 0x10
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400e4b5b
mov rsi, rax
lea rax, [0x1400fb110]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400fb128]
test ecx, ecx
je 0x1400e4b4b
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 8]
call fcn.1400e3593
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], rax
test rcx, rcx
je 0x1400e4b1b
lock dec qword [rcx]
jne 0x1400e4b1b
call fcn.1400e9e95
jmp 0x1400e4b1b
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400fb110]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e4a6e
lea rcx, [0x1400fb110]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e4a9c
lea rcx, [0x1400fb110]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e4aee
mov ecx, 8
mov edx, 0x10
call fcn.1400051b0
ud2

Function at 0x1400e8a91
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400e8a98
test al, 1
je 0x1400e8ab7
test al, 2
jne 0x1400e8acc
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140137370]
mov edx, 0x23
jmp 0x1400e8adf
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401373b0]
mov edx, 0x25
call fcn.14000c3a0
ud2

Function at 0x1400ee052
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x1400ee09a
movzx eax, dl
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400ee088
xor eax, eax
jmp 0x1400ee095
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._Users_Vadym_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_io_poll_evented.rs
mov edx, 0x2b
call fcn.14000c3a0
ud2
Function at 0x1400ee323
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbp, r9
mov rbx, r8
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xd0]
lea r13, [rsp + 0x42]
lea r14, [rsp + 0x52]
mov r12, qword [rdx + 0x10]
mov r15, qword [rdx + 0x18]
mov edi, 0x7fffffff
cmp rax, rdi
cmovb rdi, rax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x58], rax
lea rax, [r12 + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x38]
mov rdx, r12
mov r8, rbx
mov r9b, 1
call fcn.1400e7bf6
mov al, byte [rsp + 0x41]
cmp al, 3
je 0x1400ee496
mov rcx, qword [rsp + 0x38]
cmp al, 2
je 0x1400ee4a4
mov dl, byte [rsp + 0x40]
movzx r8d, word [r13 + 4]
mov word [r14 + 4], r8w
mov r8d, dword [r13]
mov dword [r14], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
cmp r15, 0xffffffffffffffff
je 0x1400ee4eb
mov rcx, r15
mov rdx, rbp
mov r8d, edi
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400ee4b6
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14003f87f
cmp al, 0xd
jne 0x1400ee46e
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400ee46e
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400ee505
mov rdi, r15
mov r15, r14
mov r14, rbx
mov rbx, r13
mov r13, rbp
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14003f6cb
mov rbp, rax
test rax, rax
je 0x1400ee45a
mov rcx, rsi
call fcn.1400a1fe8
mov rsi, rbp
mov rbp, r13
mov r13, rbx
mov rbx, r14
mov r14, r15
mov r15, rdi
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.14003f87f
cmp al, 0xd
jne 0x1400ee4ca
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x48]
call fcn.1400eed95
mov rcx, rsi
call fcn.1400a1fe8
jmp 0x1400ee37f
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400ee4da
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1400ee4da
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400ee4da
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._Users_Vadym_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_io_poll_evented.rs
mov edx, 0x2b
call fcn.14000c3a0
ud2
ud2

Function at 0x1400f9370
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400fa130
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400fa130
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400f93e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14017e224]
mov rbx, rcx
test esi, esi
jle 0x1400f9510
mov rax, qword [0x14017e228]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400f942b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400f94b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400f9410
mov rcx, rbx
call fcn.1400f9e50
mov rdi, rax
test rax, rax
je 0x1400f9532
mov rax, qword [0x14017e228]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400f9f90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14017e228]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400f9517
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400f94ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400f94c0
add dword [0x14017e224], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14017e228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400f94ae
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400f9370
nop dword [rax]
xor esi, esi
jmp 0x1400f9438
mov rax, qword [0x14017e228]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400f9370
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400f9370
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400f9ac0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14017e280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14017e260]
test rbx, rbx
je 0x1400f9b1c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400f9b13
test eax, eax
jne 0x1400f9b13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400f9af8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400f9e50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14015dcf0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400f9e70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400f9e78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400f9e70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400f9ecd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400f9ec4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400f9e70
add rax, 0x28
cmp rax, r9
jne 0x1400f9eb0
xor eax, eax
ret

Function at 0x1400f9ed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14015dcf0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400f9eef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400f9ef8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400f9eef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400f9f90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14015dcf0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400f9faf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400f9fb8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400012f0
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebp, ebp
lea rsi, [0x1400110fc]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rsi]
xor bl, bl
mov edi, dword [rsi + 4]
xor cl, cl
cmp dword [0x1400110d0], eax
jne 0x14000133c
mov bl, 1
call qword [0x1400110d8]
movzx ecx, al
test bl, bl
je 0x14000138a
test cl, cl
je 0x14000138a
test edi, edi
jne 0x14000134c
mov al, 1
jmp 0x14000138c
xor bl, bl
xor al, al
cmp dword [0x1400110c0], edi
jne 0x140001365
mov bl, 1
call qword [0x1400110c8]
test al, al
sete al
cmp dword [0x1400110d0], edi
jne 0x14000137a
mov bl, 1
call qword [0x1400110d8]
test al, al
sete al
test bl, bl
jne 0x14000138c
lea rcx, str.ERROR:_Removed_version_value_was_invalid._n
call fcn.140001010
xor al, al
mov rcx, qword [rsi - 0x14]
mov byte [rsi + 9], al
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
jne 0x1400013a9
mov byte [rsi + 8], al
jmp 0x140001469
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140001437
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140001437
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xbb788554
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140001432
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140001410
cmp r8d, 0x7d020318
je 0x14000143c
test r9d, r9d
jne 0x1400013f0
mov rax, qword [rax]
jmp 0x1400013c0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, r14
mov rdx, qword [rsi - 0xc]
add rax, r10
call rax
test rax, rax
mov qword [rsi + 0xc], rax
setne al
mov byte [rsi + 8], al
inc ebp
add rsi, 0x30
cmp ebp, 2
jb 0x140001320
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400014a0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebp, ebp
lea rsi, [0x1400110e0]
mov eax, ebp
mov rcx, rsi
cmp dword [rcx], 1
je 0x140001589
inc eax
add rcx, 0x30
cmp eax, 2
jb 0x1400014d1
mov rsi, rbp
xor eax, eax
lea rdi, [rsp + 0x30]
mov ecx, 0x30
rep stosb byte [rdi], al
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r9, qword [rax + 0x30]
movsxd rcx, dword [r9 + 0x3c]
mov r11d, dword [rcx + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x140001584
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x140001584
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edi, 0xa7e25dee
lea rcx, [rbx + r8*4]
mov ecx, dword [rcx + r9]
add rcx, r9
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14000157f
nop dword [rax]
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, edi
imul edi, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140001560
cmp edi, 0x678821d0
je 0x1400015a7
test r8d, r8d
jne 0x140001540
mov rax, qword [rax]
jmp 0x140001510
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [rsi + rcx*8 + 0x24], bpl
je 0x1400014e5
mov rsi, qword [rsi + rcx*8 + 0x28]
jmp 0x1400014e8
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
call rax
mov r9d, 0x30
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rax
call rsi
mov ecx, dword [rsp + 0x58]
test eax, eax
cmovne ecx, ebp
mov eax, ecx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000bb50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000afe0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r8d, edx
lea r9, [r9 + 4]
shr r8d, 0x1e
xor r8d, edx
imul edx, r8d, 0x6c078965
add edx, eax
inc rax
mov dword [r9 - 4], edx
cmp rax, 0x270
jb 0x14000aff0
mov dword [rcx], 0x270
ret

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

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000ba11
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000b9d0
mov ecx, dword [r9]
jmp 0x14000baf8
cmp ecx, 0x4e0
jb 0x14000baf8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000ba30
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000ba80
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14000c574
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c5be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c5be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c5be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c5be
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c5be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c5c0
xor al, al
add rsp, 0x28
ret
Function at 0x140001020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x1400155c0]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.140001e14
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x140001126
nop
test rbx, rbx
jne 0x140001126
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rdi, rax
jne 0x140001093
mov rbx, r13
jmp 0x140001109
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400010a9
mov rbx, r13
jmp 0x140001104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x1400010bf
mov rbx, r13
jmp 0x140001104
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x1400010f2
nop
nop
cmp rbx, r11
jae 0x1400010f7
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400010e0
cmp rbx, r11
jb 0x1400010fc
mov rbx, r13
jmp 0x140001104
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x140001141
lea rcx, [0x1400155c0]
mov edx, ebp
call fcn.140001e14
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140001060
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140001128
Function at 0x1400016a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140001811
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001811
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140001811
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140001746
nop
cmp rdi, r11
jae 0x140001811
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140001730
cmp rdi, r11
jae 0x140001811
movzx eax, word [rdi]
test ax, ax
je 0x140001811
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14000177c
mov edx, ebx
mov rcx, rsi
call fcn.1400019a0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140001799
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.1400021d0
test eax, eax
je 0x1400017e7
cmp eax, 0xc
je 0x1400017dc
cmp eax, 0x16
je 0x1400017d1
cmp eax, 0x22
je 0x1400017d1
cmp eax, 0x50
je 0x1400017e7
mov ecx, 0x80004005
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x8007000e
call fcn.140001000
int3
test ebx, ebx
js 0x140001806
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140001806
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140001813
mov ecx, 0x80070057
call fcn.140001000
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140001e94
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140014060]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140002760
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140002760
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x140001f27
cmp dword [rsp + 0x24], 5
jb 0x140001f41
jmp 0x140001f3d
cmp dword [rsp + 0x30], esi
jne 0x140001f41
cmp dword [rsp + 0x24], 4
ja 0x140001f3d
jne 0x140001f41
cmp dword [rsp + 0x28], 0
jbe 0x140001f41
mov byte [rbx + 0x18], sil
lea rax, [0x14000f3f8]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140001cd4
movzx ecx, byte [0x14001662c]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14001662c], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400020b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret