joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f9f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000fa18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000fa18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400029d0
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp qword [0x14002bc88], 0
lea rax, [rbp + 0x1f]
mov r14, qword [rcx + 8]
mov rdi, rcx
mov qword [rbp - 0x61], rax
mov dword [rbp - 0x69], 0x10
mov dword [rbp - 0x65], 0x10
je 0x140002bd8
cmp dword [0x14002bc80], 0
je 0x140002bd8
cmp dword [rcx], 0x14
jb 0x140002bc8
test r14, r14
je 0x140002bc8
lea rcx, [rbp - 0x39]
mov qword [rsp + 0x118], r15
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [0x14002bc80]
lea rcx, [rbp - 0x39]
mov rdx, qword [0x14002bc88]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 0x10
lea rcx, [rbp - 0x39]
mov rdx, r14
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [rdi]
lea r15, [r14 + 0x10]
sub eax, 0x10
mov qword [rbp - 0x51], r15
lea rdx, [rbp - 0x69]
mov dword [rbp - 0x55], eax
lea rcx, [rbp - 0x59]
mov dword [rbp - 0x59], eax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x140002bb8
mov qword [rsp + 0x108], rbx
lea rdx, [rbp - 0x79]
mov qword [rsp + 0x110], rsi
mov ecx, 0xffffff7c
mov esi, dword [rdi]
sub esi, 0x14
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x140002baa
mov rax, qword [rbp - 0x79]
lea rdx, [rbp - 0x71]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x140002baa
mov rax, qword [rbp - 0x79]
lea r8, [r14 + 0x14]
mov rcx, qword [rbp - 0x71]
mov edx, esi
call qword [rax + 0x18]
mov rax, qword [rbp - 0x79]
lea rdx, [rbp - 0x49]
mov rcx, qword [rbp - 0x71]
call qword [rax + 0x20]
xor ebx, ebx
lea rcx, [rbp - 0x71]
test eax, eax
mov rax, qword [rbp - 0x79]
setns bl
call qword [rax + 0x28]
test ebx, ebx
je 0x140002baa
mov r8d, dword [r15]
mov edx, dword [rbp - 0x49]
cmp edx, r8d
jne 0x140002b6c
mov r15, qword [rdi + 8]
mov ecx, 0x40
mov edx, esi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi + 8], rax
test rax, rax
je 0x140002b78
lea rdx, [r14 + 0x14]
mov r8d, ebx
mov rcx, rax
call fcn.140005530
mov rcx, r15
mov dword [rdi], esi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x140002b7a
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.140002ec0
xor eax, eax
mov rsi, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x108]
mov r15, qword [rsp + 0x118]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140003430
add rsp, 0xe0
pop r14
pop rdi
pop rbp
ret
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_Unable_to_calculate_CRC32_n
call fcn.140002ec0
jmp 0x140002b78
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_RtlEncryptDecryptRC4_n
call fcn.140002ec0
xor eax, eax
jmp 0x140002b8a
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_No_valid_data_n
call fcn.140002ec0
xor eax, eax
jmp 0x140002b92
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_No_Session_Key_n
call fcn.140002ec0
xor eax, eax
jmp 0x140002b92
Function at 0x140002fd0
Capabilities:
Get user security identifier

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rsp + 0xb0]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
xor ebx, ebx
lea rax, [rsp + 0x40]
mov rdi, rdx
mov qword [rsp + 0x28], rax
mov rsi, r8
mov qword [rsp + 0x20], rbx
mov rbp, rcx
mov dword [rsp + 0x44], ebx
mov rdx, rcx
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400030c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400030c0
mov edx, dword [rsp + 0x44]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x1400030c0
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x1400030b4
mov r8, qword [rdi]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x30], rdx
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov rcx, r14
mov qword [rsp + 0x28], rdx
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test eax, eax
jne 0x1400030c2
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsi], rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140003430
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140003e24
Capabilities:
Parse pe header

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

Function at 0x14000d280
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d07c
Function at 0x1400133a4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400133d4
xor eax, eax
jmp 0x140013497
mov rbp, rbx
cmp word [rax], si
je 0x1400133f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400133e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400133dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400132c4
movsxd r14, eax
test eax, eax
jne 0x140013437
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400133cd
mov rcx, r14
call fcn.140010240
mov rdi, rax
test rax, rax
jne 0x140013450
xor ecx, ecx
call fcn.14000eae0
jmp 0x14001342c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400132c4
test eax, eax
jne 0x140013481
mov rcx, rdi
call fcn.14000eae0
jmp 0x14001348b
xor ecx, ecx
call fcn.14000eae0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140016e40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140016e56
mov al, 1
jmp 0x140016eb6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140016e67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140016eb4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140013c0c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016eb4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140016eb4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140016eb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140016eb6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140017f60
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007440
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140017fea
cmp byte [rbp - 0x21], r15b
je 0x140017fe5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018020
call fcn.14000ed30
test eax, eax
jne 0x14001800c
cmp byte [rbp - 0x21], r15b
je 0x140018004
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018020
cmp byte [rbp - 0x21], r15b
je 0x14001801d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140011a10
test eax, eax
jne 0x1400180c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007440
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001805f
cmp byte [rbp - 0x21], r15b
je 0x140018094
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018094
call fcn.14000ed30
test eax, eax
jne 0x140018080
cmp byte [rbp - 0x21], r15b
je 0x140018079
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018094
cmp byte [rbp - 0x21], r15b
je 0x140018091
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140011a10
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400180c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400180c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400180d1
mov rcx, rdi
call fcn.14000eae0
cmp byte [rbp + 0x3f], r15b
je 0x1400180e0
mov rcx, qword [rbp + 0x27]
call fcn.14000eae0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001a3b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001a3d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001a3d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140016270
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]
add rsp, 0x28
ret

Function at 0x140011262
Capabilities:
Parse pe header

Disassembly:
jmp 0x140013f80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140013fa0
xor al, al
jmp 0x140014021
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013fb3
xor al, al
jmp 0x140014021
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 0x140013fdd
xor al, al
jmp 0x140014021
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140013ff1
xor al, al
jmp 0x140014021
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014003
xor al, al
jmp 0x140014021
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001401f
xor al, al
jmp 0x140014021
mov al, 1
add rsp, 0x38
ret
Function at 0x1406df058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406df1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406df089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406df06f
add dl, dl
jne 0x1406df096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406df0f6
xor eax, eax
add dl, dl
jne 0x1406df0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406df1ad
add dl, dl
jne 0x1406df0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406df0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406df0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406df0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406df0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406df07e
mov eax, 1
add dl, dl
jne 0x1406df106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406df113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406df0fb
sub eax, ebx
mov ebx, 1
jne 0x1406df14c
mov ecx, 1
add dl, dl
jne 0x1406df12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406df13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406df123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406df07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406df168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406df175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406df15d
cmp eax, 0x7d00
jae 0x1406df19b
cmp eax, 0x500
jb 0x1406df196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406df07e
cmp eax, 0x7f
ja 0x1406df19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406df07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406df1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406df07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x100001e98
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x70
and qword [rax - 0x18], 0
and qword [rax - 0x10], 0
and qword [rax - 0x58], 0
mov rdi, r9
lea r9, [rax - 0x18]
mov eax, 1
mov rsi, r8
mov edx, ecx
mov r8d, eax
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_SaferCreateLevel]
mov ebx, eax
test eax, eax
je 0x100001f47
mov rcx, qword [rsp + 0x60]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x68]
xor r9d, r9d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_SaferComputeTokenFromLevel]
mov ebx, eax
test eax, eax
je 0x100001f47
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa0]
mov r8, rsi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x10
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x100001f57
call qword [sym.imp.ADVAPI32.dll_SaferCloseLevel]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100001f67
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x100003760
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov dword [rsp + 0x30], 0x10
test rcx, rcx
jne 0x100003781
lea eax, [rcx + 0x57]
jmp 0x1000037c5
mov rdx, rcx
mov ecx, 0x20
call sub.netutils.dll_NetApiBufferAllocate
test eax, eax
jne 0x1000037c5
mov rdx, qword [rdi]
neg ebx
lea r8, [rsp + 0x30]
sbb ecx, ecx
and ecx, 4
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1000037c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
mov ebx, eax
call sub.netutils.dll_NetApiBufferFree
and qword [rdi], 0
mov eax, ebx
jmp 0x1000037c5
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
jmp 0x100003760

Function at 0x1000037d8
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov dword [rsp + 0x30], 0x10
test rcx, rcx
jne 0x100003781
lea eax, [rcx + 0x57]
jmp 0x1000037c5
mov rdx, rcx
mov ecx, 0x20
call sub.netutils.dll_NetApiBufferAllocate
test eax, eax
jne 0x1000037c5
mov rdx, qword [rdi]
neg ebx
lea r8, [rsp + 0x30]
sbb ecx, ecx
and ecx, 4
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1000037c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
mov ebx, eax
call sub.netutils.dll_NetApiBufferFree
and qword [rdi], 0
mov eax, ebx
jmp 0x1000037c5
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
jmp 0x100003760
Function at 0x140010790
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1400107f7
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1400107b2
mov ecx, dword [r10]
jmp 0x140010906
cmp ecx, 0x270
jb 0x140010906
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
lea rbx, [rbx + 8]
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4d8]
xor rcx, rdx
mov qword [rbx - 0x9c8], rcx
sub rdi, 1
jne 0x140010830
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
lea rbx, [rbx + 8]
xor r9, r8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rbx - 0xea8]
xor rcx, r9
mov r9, r8
mov qword [rbx - 0x9c8], rcx
sub rdi, 1
jne 0x140010881
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x140010d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14075e080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140811d30]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x140010e67
mov rax, qword [rdi]
test rax, rax
je 0x140010e25
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140010e25
test rsi, rsi
je 0x140010e25
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140010e25
cmp dword [rsp + 0x30], ebx
je 0x140010e67
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140010e44
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x140010e44
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
jmp 0x140010e69
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140648cc0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14003e8d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x30
mov rax, qword [0x14075e080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r14, rcx
lea r8, [0x14074a1c0]
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rbp, qword [rsp + 0x20]
test rbp, rbp
jne 0x14003e916
lea eax, [rbx - 3]
jmp 0x14003e9dd
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x14003e933
mov ebx, 0xfffffffd
jmp 0x14003e9d0
mov rcx, rbp
mov qword [rsp + 0x60], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
test eax, eax
jns 0x14003e94f
mov ebx, 0xfffffffd
jmp 0x14003e9cb
je 0x14003e9cb
lea eax, [rsi + 1]
mov qword [rsp + 0x68], rdi
movsxd rcx, eax
lea rdx, [0x14065c304]
call fcn.140649398
mov rdi, rax
test rax, rax
jne 0x14003e975
lea ebx, [rax - 2]
jmp 0x14003e9c6
xor r8d, r8d
mov byte [rsi + rax], bl
xor edx, edx
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rsi
je 0x14003e9ae
mov rcx, rdi
call fcn.140648ce0
mov ebx, 0xfffffffd
jmp 0x14003e9c6
mov r8, rax
mov rdx, rdi
mov rcx, r14
call fcn.140040990
mov rcx, rdi
mov ebx, eax
call fcn.140648ce0
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140648cc0
add rsp, 0x30
pop r14
pop rbp
pop rbx
ret

Function at 0x140044490
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400444ed
lea rbx, [0x1406efba0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400444d4
cmp r10, 2
jb 0x1400444d4
cmp byte [r9], r8b
jne 0x1400444d4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400444b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14004452f
lea rbx, [0x1406efba0]
cmp r8b, 0x23
jne 0x140044513
cmp byte [r9], r8b
jne 0x140044513
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140044500
mov rbx, qword [rsp + 8]
not eax
ret