joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114380
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x1401143c5
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140114410
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140114472
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140114430
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1401144b3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1401798c8]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401798c9]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140114480
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1401144d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1400cbf00
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
je 0x140114676
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140114560
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1401145c2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140114580
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140114603
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1401798c8]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401798c9]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401145d0
mov rcx, qword [rsp + 0x70]
call fcn.1400cbf00
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x140114632
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.140146e34]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, reloc.WLDAP32.dll_Ordinal_27
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x140114b20
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140114b85
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x140114b30
ret
Function at 0x14011fc90
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x1c]
test ecx, ecx
je 0x14011fcd2
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
sub r8d, ecx
add rcx, qword [rbx + 0x48]
call fcn.140133600
mov rdx, qword [rbx + 0x48]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov dword [rbx + 0x1c], 0
add rsp, 0x20
pop rbx
jmp fcn.14011f030
add rsp, 0x20
pop rbx
ret
Function at 0x14012ee54
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14012eed8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14012eed8
dec r8
sub rdx, 1
jne 0x14012eebe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140131b70
Capabilities:
Parse pe header

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

Function at 0x140147ac0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140147af7
call fcn.140146b68
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1401465e8
xor eax, eax
jmp 0x140147b85
mov rdx, r9
mov rcx, r8
call fcn.140147a5c
mov rbx, rax
test rax, rax
je 0x140147b82
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140147988]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140147b6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140146adc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140147b56
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140147b65
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14015cb9c
jmp 0x140147b82
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140147b7f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14014a9d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1401b26d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14017fa58]
mov rbp, rcx
call fcn.1401617b8
xor edi, edi
test rax, rax
je 0x14014aab6
mov ebx, edi
call fcn.140146b68
mov r14d, dword [rax]
call fcn.140146b68
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140161704
mov rsi, rax
test rax, rax
je 0x14014aa47
call fcn.140146b68
mov dword [rax], r14d
jmp 0x14014aa71
call fcn.140146b68
cmp dword [rax], 0x22
jne 0x14014aaae
call fcn.140146b68
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140161704
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14014aaae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14014aa75
cmp rax, 3
je 0x14014aa90
mov rcx, rsi
call fcn.14014a92c
test al, al
je 0x14014aaa1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14014aaa1
mov dil, 1
mov rcx, rbx
call fcn.140146e34
mov al, dil
jmp 0x14014aab8
mov rcx, rbx
call fcn.140146e34
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140130cf0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14015729c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140157098
Function at 0x140159b70
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, [0x1401ba120]
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 0x140159bc7
cmp word [rdx], r13w
jne 0x140159bc7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140159bcc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140159cf1
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140159d12
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140159c05
mov rdx, r9
mov word [rbx], cx
jmp 0x140159c2c
cmp r9, r8
jae 0x140159c3c
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 0x140159be6
jmp 0x140159cf1
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 0x140159ce6
cmp dword [rsp + 0x80], esi
je 0x140159ce6
lea r8, [0x1401ba120]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140159cbe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140159c8e
mov word [rbx], r13w
jmp 0x140159cee
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 0x140159c9b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140159cee
cmp word [rsp + 0x70], r13w
jne 0x140159ccb
cmp rbx, r14
je 0x140159c88
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14015260c
cmp word [rsp + 0x70], r13w
je 0x140159cf1
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, [0x1401ba120]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140159ceb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140159cf1
Function at 0x14015bfc4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14015bfda
mov al, 1
jmp 0x14015c03a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14015bfeb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14015c038
mov ecx, dword [rcx + 0x18]
nop
call fcn.140161138
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14015c038
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14015c038
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14015c038
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14015c03a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14015f7bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140131730
sub rsp, rax
mov rax, qword [0x1401b26d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14015b9e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14015f80b
mov rax, rbp
jmp 0x14015f913
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1ba120]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140152604
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1ba120]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14015f90f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14015f90f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140152604
test rax, rax
js 0x14015f90f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14015f90f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14015f901
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14015f901
cmp byte [rcx], 0xd
jne 0x14015f8e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14015f8f6
cmp byte [rcx + 1], 0xa
jne 0x14015f8f6
inc rcx
jmp 0x14015f8f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1b2910]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14015f8c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14015f913
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140130cf0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140161248
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.14015260c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14015260c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140161398
cmp rax, 0xffffffffffffffff
je 0x140161398
xor edi, edi
test rbp, rbp
jle 0x140161343
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14015cb24
mov rbx, rax
test rax, rax
jne 0x1401612d0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140161339
mov edx, 0x8000
mov ecx, r14d
call fcn.1401580ec
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.14015af28
cmp eax, 0xffffffff
je 0x140161319
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401612e0
mov edx, r15d
mov ecx, r14d
call fcn.1401580ec
jmp 0x140161339
cmp byte [rsi + 0x38], dil
je 0x140161330
cmp dword [rsi + 0x34], 5
jne 0x140161330
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140161339
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14015cb9c
jmp 0x1401613ac
jns 0x1401613ac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14015260c
cmp rax, 0xffffffffffffffff
jne 0x140161364
cmp byte [rsi + 0x30], dil
je 0x1401613ac
mov edi, dword [rsi + 0x2c]
jmp 0x1401613ac
mov ecx, r14d
call fcn.140161138
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401613ac
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 0x1401613ac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401613a5
mov eax, dword [rsi + 0x2c]
jmp 0x1401613aa
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14015260c
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 0x140164428
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 0x1401644af
mov rsi, rbx
cmp word [rax], bp
je 0x14016446e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140164458
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140164454
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14015de1c
mov rdi, rax
test rax, rax
je 0x14016449c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140132f60
mov rbp, rdi
xor ecx, ecx
call fcn.14015cb9c
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 0x1401670b0
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.14015c550
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 0x140167151
cmp ebx, dword [rsp + 0x30]
je 0x14016714a
test esi, esi
je 0x14016714a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140167125
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140167132
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14016710f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140167136
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140167153
mov eax, 1
jmp 0x140167153
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401676e8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140167708
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140146adc
or eax, 0xffffffff
jmp 0x14016770a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140169478
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401b26d0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401694c2
call fcn.140146b48
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140146b68
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1401465e8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140130cf0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401694cd
lea eax, [rbx + 1]
jmp 0x1401694af
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 0x1401694ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401694af
Function at 0x18088dc26
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap edx
jmp 0x1809030d5
bswap edx
test bx, bp
stc
cmc
neg edx
jmp 0x18086634a
dec edx
jmp 0x1808bf9a7
not edx
neg edx
clc
cmc
jmp 0x1809088f5
dec edx
clc
stc
jmp 0x1807f4b02
dec edx
stc
jmp 0x18082ae74
push rdi
movzx rdi, di
mov di, 0x6a86
push rax
not ah
push r10
mov edi, esi
push rsi
not edi
cbw
push rcx
not rax
cdqe
push r8
movzx eax, r12w
mov ax, 0x38d0
push rbp
mov bpl, dil
push r15
push r13
movzx r8, r14w
push r11
movsx r8w, dl
xchg dil, bpl
push r9
cmovl di, si
pushfq
setae dil
movsx r11w, al
xchg dil, al
push rbx
cwde
push rdx
xchg dx, ax
mov r11b, 0xc
push r14
bswap r8d
push r12
sets ah
rdtsc
inc bp
movabs r9, 0
cmove r11d, r10d
push r9
inc r11b
mov rdi, qword [rsp + 0x90]
movzx r8, r10w
bswap edi
movzx r11d, bx
rdtsc
dec edi
neg edi
stc
bt rdx, 0x22
sub edi, 0x65cc42d0
add dx, 0x6f9f
add rdi, r9
movabs rax, 0x100000000
xor r8b, r11b
ror dh, cl
lea rdi, [rdi + rax]
movzx r11d, r14w
mov r8, rsp
rol bpl, cl
rol bpl, 0x2c
sub bpl, 0xea
sub rsp, 0x180
cmovno r11w, r8w
not r11d
and rsp, 0xfffffffffffffff0
movsx r11w, r10b
cwd
mov rbp, rdi
movabs rdx, 0
sub rbp, rdx
lea r11, [0x18088dd1c]
rol dh, cl
not dh
rcr dx, cl
mov edx, dword [rdi]
cmc
add rdi, 4
xor edx, ebp
ror edx, 2
xor edx, 0x567b2982
ror edx, 1
test bx, 0x4269
stc
xor edx, 0x56176f56
cmp sil, r13b
cmp bpl, 0x6d
test r9b, 0x34
add edx, 0x305705a3
jmp 0x180864e7b
add r11, rdx
jmp 0x1808eae81
bswap edx
jmp 0x18086958f
push r11
ret
ror edx, 2
cmp r14, 0x70206b4a
stc
xor edx, 0x48c16131
stc
test dh, al
push rbp
xor dword [rsp], edx
btc bp, 0x2e
sal ebp, cl
mov bp, dx
pop rbp
movsxd rdx, edx
clc
stc
jmp 0x1808b42f9
rol edx, 1
jmp 0x180832504
Function at 0x140001b92
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x140014870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400148ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400148e0
cmp r10, r11
jb 0x140014983
cmp r10, rdx
ja 0x140014997
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400148e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400148c0
jmp 0x140014957
ja 0x1400148ea
mov r11, r10
cmp rax, r8
jne 0x140014892
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001495b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140014930
mov r8, r10
sub ecx, r9d
jns 0x14001494e
jmp 0x14001495d
cmp r10, rdx
je 0x140014969
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001495d
xor al, 1
cmp r8, rdx
jne 0x140014910
jmp 0x14001495d
xor eax, eax
jmp 0x14001495d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14010fa89]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14000e4c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140013350
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400132d0
ud2