joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800171fc
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x478], 0
mov dword [rsp + 0x47c], 0x64
lea ebx, [rax + 0x7530]
jmp 0x1800172df
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x240]
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x478]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x240], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1800172ed
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x240]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800172df
mov rcx, qword [rdi + 0x20]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800172ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800172ed
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x180017240
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180017308
Capabilities:
Get socket status
Resolve dns
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x470
mov esi, r9d
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x30], 0
lea ebx, [rax + 0x7530]
mov dword [rsp + 0x34], 0x64
jmp 0x1800173bd
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x160]
mov qword [rbp + 0x168], rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rbp + 0x160], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x50]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180017429
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp + 0x160]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1800173c9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x180017351
jmp 0x180017429
mov rcx, qword [rbp + 0x3b0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180017429
mov eax, 2
movzx ecx, si
mov word [rsp + 0x38], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbp + 0x3b0]
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [rdi + 0x20]
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180019cd4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov byte [rsp + 0x28], 0x6b
mov byte [rsp + 0x29], 0x65
mov byte [rsp + 0x2a], 0x72
mov byte [rsp + 0x2b], 0x6e
mov byte [rsp + 0x2c], 0x65
mov byte [rsp + 0x2d], 0x6c
mov byte [rsp + 0x2e], 0x33
mov byte [rsp + 0x2f], 0x32
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], 0x4c
mov byte [rsp + 0x39], 0x6f
mov byte [rsp + 0x3a], 0x61
mov byte [rsp + 0x3b], 0x64
mov byte [rsp + 0x3c], 0x4c
mov byte [rsp + 0x3d], 0x69
mov byte [rsp + 0x3e], 0x62
mov byte [rsp + 0x3f], 0x72
mov byte [rsp + 0x40], 0x61
mov byte [rsp + 0x41], 0x72
mov byte [rsp + 0x42], 0x79
mov byte [rsp + 0x43], 0x41
mov byte [rsp + 0x44], 0
mov byte [rsp + 0x58], 0x4c
mov byte [rsp + 0x59], 0x6f
mov byte [rsp + 0x5a], 0x61
mov byte [rsp + 0x5b], 0x64
mov byte [rsp + 0x5c], 0x4c
mov byte [rsp + 0x5d], 0x69
mov byte [rsp + 0x5e], 0x62
mov byte [rsp + 0x5f], 0x72
mov byte [rsp + 0x60], 0x61
mov byte [rsp + 0x61], 0x72
mov byte [rsp + 0x62], 0x79
mov byte [rsp + 0x63], 0x45
mov byte [rsp + 0x64], 0x78
mov byte [rsp + 0x65], 0x41
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x48], 0x56
mov byte [rsp + 0x49], 0x69
mov byte [rsp + 0x4a], 0x72
mov byte [rsp + 0x4b], 0x74
mov byte [rsp + 0x4c], 0x75
mov byte [rsp + 0x4d], 0x61
mov byte [rsp + 0x4e], 0x6c
mov byte [rsp + 0x4f], 0x41
mov byte [rsp + 0x50], 0x6c
mov byte [rsp + 0x51], 0x6c
mov byte [rsp + 0x52], 0x6f
mov byte [rsp + 0x53], 0x63
mov byte [rsp + 0x54], 0
mov byte [rsp + 0x68], 0x56
mov byte [rsp + 0x69], 0x69
mov byte [rsp + 0x6a], 0x72
mov byte [rsp + 0x6b], 0x74
mov byte [rsp + 0x6c], 0x75
mov byte [rsp + 0x6d], 0x61
mov byte [rsp + 0x6e], 0x6c
mov byte [rsp + 0x6f], 0x50
mov byte [rsp + 0x70], 0x72
mov byte [rsp + 0x71], 0x6f
mov byte [rsp + 0x72], 0x74
mov byte [rsp + 0x73], 0x65
mov byte [rsp + 0x74], 0x63
mov byte [rsp + 0x75], 0x74
mov byte [rsp + 0x76], 0
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x90]
call qword [rax]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x10], rax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x18], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x20], rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x28], rax
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 9
rep stosb byte [rdi], al
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0xd
rep stosb byte [rdi], al
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0xf
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0xd
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xf
rep stosb byte [rdi], al
add rsp, 0x80
pop rdi
ret
Function at 0x1800011e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
lea eax, [r8 - 2]
xor r10d, r10d
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov ebx, r8d
movsxd r8, eax
mov rdi, rdx
mov rsi, rcx
mov r9, rcx
test eax, eax
jle 0x1800012b1
lea r11, [rdx + 1]
movabs rax, 0xaaaaaaaaaaaaaaab
lea r10, [r8 - 1]
mul r10
shr rdx, 1
inc rdx
lea r10d, [rdx + rdx*2]
nop dword [rax + rax]
movzx eax, byte [r11 - 1]
lea r11, [r11 + 3]
shr rax, 2
movzx eax, byte [rax + rbp]
mov byte [r9], al
movsx eax, byte [r11 - 4]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [r11 - 3]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + rbp]
mov byte [r9 + 1], al
movsx eax, byte [r11 - 3]
and eax, 0xf
shl eax, 2
movsxd rcx, eax
movzx eax, byte [r11 - 2]
shr eax, 6
or rcx, rax
movzx eax, byte [rcx + rbp]
mov byte [r9 + 2], al
movsx rax, byte [r11 - 2]
and eax, 0x3f
movzx eax, byte [rax + rbp]
mov byte [r9 + 3], al
add r9, 4
sub rdx, 1
jne 0x180001240
cmp r10d, ebx
jge 0x180001334
movsxd r8, r10d
movzx eax, byte [r8 + rdi]
shr rax, 2
movzx eax, byte [rax + rbp]
mov byte [r9], al
lea eax, [rbx - 1]
cmp r10d, eax
jne 0x1800012ed
movsx eax, byte [r8 + rdi]
and eax, 3
shl eax, 4
cdqe
movzx eax, byte [rax + rbp]
mov byte [r9 + 1], al
mov byte [r9 + 2], 0x3d
jmp 0x180001329
lea eax, [r10 + 1]
movsxd rdx, eax
movsx eax, byte [r8 + rdi]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [rdx + rdi]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + rbp]
mov byte [r9 + 1], al
movsx eax, byte [rdx + rdi]
and eax, 0xf
shl eax, 2
cdqe
movzx eax, byte [rax + rbp]
mov byte [r9 + 2], al
add r9, 3
mov byte [r9], 0x3d
inc r9
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
mov byte [r9], 0
sub r9, rsi
mov rsi, qword [rsp + 0x18]
lea rax, [r9 + 1]
ret
Function at 0x1800013d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rcx
xor edi, edi
lea rcx, [0x18001e030]
call fcn.180006530
mov r9, rbx
lea rcx, [rsp + 0x270]
mov r8, rax
mov edx, 0x104
mov rsi, rax
call fcn.180001370
test rsi, rsi
je 0x180001441
mov r8d, dword [rsi - 8]
lea rcx, [rsi - 8]
add r8, 8
xor edx, edx
call fcn.180008180
lea rcx, [rsi - 8]
call fcn.180005370
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001542
lea rcx, [0x18001e048]
mov qword [rsp + 0x4a8], rbp
call fcn.180006530
lea rcx, [0x18001e058]
mov rbp, rax
call fcn.180006530
mov rbx, rax
test byte [rsp + 0x20], 0x10
je 0x1800014db
lea rax, [rsp + 0x4c]
mov r8, rbp
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1800014b4
add rax, 2
test ecx, ecx
jne 0x1800014a0
test edx, edx
je 0x1800014dd
lea rax, [rsp + 0x4c]
mov r8, rbx
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1800014d7
add rax, 2
test ecx, ecx
jne 0x1800014c3
test edx, edx
je 0x1800014dd
inc edi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180001487
test rbx, rbx
je 0x180001510
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008180
lea rcx, [rbx - 8]
call fcn.180005370
test rbp, rbp
je 0x180001531
mov r8d, dword [rbp - 8]
lea rcx, [rbp - 8]
add r8, 8
xor edx, edx
call fcn.180008180
lea rcx, [rbp - 8]
call fcn.180005370
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbp, qword [rsp + 0x4a8]
mov eax, edi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180006d30
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180001570
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x258
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1800015cb
lea rcx, [rsp + 0x30]
call fcn.1800013d0
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180006d30
add rsp, 0x258
ret
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180006d30
add rsp, 0x258
ret
Function at 0x1800015f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x298], r14
lea rcx, [0x18001e070]
xor r14d, r14d
mov edi, r14d
call fcn.180006530
mov rbp, rax
mov r9d, 0x108
lea rax, [rsp + 0x48]
mov rdx, rbp
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180001787
lea rcx, [0x18001e0e0]
mov qword [rsp + 0x290], rsi
call fcn.180006530
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov rsi, rax
mov qword [rsp + 0x20], r14
mov ebx, r14d
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180001753
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180001716
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000170b
inc edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r14
inc ebx
mov qword [rsp + 0x28], r14
mov edx, ebx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1800016c0
test rsi, rsi
je 0x180001774
mov r8d, dword [rsi - 8]
lea rcx, [rsi - 8]
add r8, 8
xor edx, edx
call fcn.180008180
lea rcx, [rsi - 8]
call fcn.180005370
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x290]
mov r14, qword [rsp + 0x298]
test rbp, rbp
je 0x1800017b0
mov r8d, dword [rbp - 8]
lea rcx, [rbp - 8]
add r8, 8
xor edx, edx
call fcn.180008180
lea rcx, [rbp - 8]
call fcn.180005370
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180006d30
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800017e0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rcx, [0x18001e100]
call fcn.180006530
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rbx, rbx
je 0x180001826
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008180
lea rcx, [rbx - 8]
call fcn.180005370
lea rcx, [0x18001e130]
call fcn.1800063c0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rbx, rbx
je 0x180001865
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008180
lea rcx, [rbx - 8]
call fcn.180005370
lea rcx, [rsp + 0x20]
test rdi, rdi
je 0x180001880
call rdi
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180001d60
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x180001e23
cmp dword [rsp + 0x30], 1
jle 0x180001e23
lea rcx, [0x18001e2c0]
mov qword [rsp + 0x38], rsi
call fcn.180006530
mov esi, dword [rsp + 0x30]
mov r9d, 1
mov r11, rax
cmp esi, r9d
jle 0x180001dfb
lea r10, [rbx + 8]
nop
mov rax, qword [r10]
mov r8, r11
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180001de4
add rax, 2
test ecx, ecx
jne 0x180001dd0
test edx, edx
je 0x180001df6
inc r9d
add r10, 8
cmp r9d, esi
jl 0x180001dc0
jmp 0x180001dfb
mov edi, 1
mov rsi, qword [rsp + 0x38]
test r11, r11
je 0x180001e23
mov r8d, dword [r11 - 8]
lea rbx, [r11 - 8]
add r8, 8
xor edx, edx
mov rcx, rbx
call fcn.180008180
mov rcx, rbx
call fcn.180005370
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180001e30
Capabilities:
Hash data with crc32

Disassembly:
mov r9d, edx
mov r10, rcx
not r8d
test edx, edx
je 0x180001efb
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor r8d, eax
mov eax, r8d
and al, 1
neg al
sbb ecx, ecx
shr r8d, 1
and ecx, 0xedb88320
xor ecx, r8d
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb r8d, r8d
shr ecx, 1
and r8d, 0xedb88320
xor r8d, ecx
add r9d, 0xffffffff
jne 0x180001e50
not r8d
mov eax, r8d
ret

Function at 0x180001f30
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001f6d
lea rax, [rsp + 0x48]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x180001f10]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180001f6d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180002cf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r13, qword [rsp + 0x1a0]
mov r15, rcx
lea rcx, [rsp + 0x20]
mov rdi, r8
mov r12d, edx
xor ebx, ebx
call fcn.180005d90
mov r14, rax
test rax, rax
je 0x180002e6c
mov qword [rsp + 0x180], rbp
mov ebp, dword [rsp + 0x20]
mov qword [rsp + 0x188], rsi
lea ecx, [rbp + 0x400]
call fcn.180005300
mov rsi, rax
test rax, rax
je 0x180002e54
mov eax, dword [r15]
lea rcx, [rsi + 0x20]
mov dword [rsi + 4], eax
mov r8d, ebp
mov eax, dword [r15 + 4]
mov rdx, r14
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], 2
mov dword [rsi + 0x10], 2
mov dword [rsi + 0x14], r12d
call fcn.1800156f0
mov dword [rsi + 0x1c], ebp
lea rcx, [rsi + 4]
add ebp, 3
mov dword [rsi + 0x18], 0x20
and ebp, 0xfffffffc
xor r8d, r8d
add ebp, 0x20
lea edx, [rbp - 4]
call fcn.180001e30
mov dword [rsi], eax
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], bl
jne 0x180002dc1
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180005790
mov r10d, ebp
test ebp, ebp
je 0x180002e4d
movzx edx, byte [rsp + 0x31]
mov r9, rsi
movzx r8d, byte [rsp + 0x30]
nop dword [rax]
inc r8b
lea r9, [r9 + 1]
mov byte [rsp + 0x30], r8b
movzx eax, r8b
lea r8, [rsp + 0x32]
add r8, rax
add dl, byte [r8]
mov byte [rsp + 0x31], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rsp + 0x32]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rsp + 0x31]
movzx r8d, byte [rsp + 0x30]
movzx ecx, byte [rsp + rdx + 0x32]
add cl, byte [rsp + r8 + 0x32]
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x32]
xor byte [r9 - 1], cl
sub r10, 1
jne 0x180002df0
mov rbx, rsi
mov dword [r13], ebp
mov rcx, r14
call fcn.180005370
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x180]
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180006d30
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800034b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r13, qword [rsp + 0x1a0]
mov r15, rcx
lea rcx, [rsp + 0x20]
mov rdi, r8
mov r12d, edx
xor ebx, ebx
call fcn.180002ea0
mov r14, rax
test rax, rax
je 0x18000362c
mov qword [rsp + 0x180], rbp
mov ebp, dword [rsp + 0x20]
mov qword [rsp + 0x188], rsi
lea ecx, [rbp + 0x400]
call fcn.180005300
mov rsi, rax
test rax, rax
je 0x180003614
mov eax, dword [r15]
lea rcx, [rsi + 0x20]
mov dword [rsi + 4], eax
mov r8d, ebp
mov eax, dword [r15 + 4]
mov rdx, r14
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], 2
mov dword [rsi + 0x10], 3
mov dword [rsi + 0x14], r12d
call fcn.1800156f0
mov dword [rsi + 0x1c], ebp
lea rcx, [rsi + 4]
add ebp, 3
mov dword [rsi + 0x18], 0x20
and ebp, 0xfffffffc
xor r8d, r8d
add ebp, 0x20
lea edx, [rbp - 4]
call fcn.180001e30
mov dword [rsi], eax
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], bl
jne 0x180003581
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180005790
mov r10d, ebp
test ebp, ebp
je 0x18000360d
movzx edx, byte [rsp + 0x31]
mov r9, rsi
movzx r8d, byte [rsp + 0x30]
nop dword [rax]
inc r8b
lea r9, [r9 + 1]
mov byte [rsp + 0x30], r8b
movzx eax, r8b
lea r8, [rsp + 0x32]
add r8, rax
add dl, byte [r8]
mov byte [rsp + 0x31], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rsp + 0x32]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rsp + 0x31]
movzx r8d, byte [rsp + 0x30]
movzx ecx, byte [rsp + rdx + 0x32]
add cl, byte [rsp + r8 + 0x32]
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x32]
xor byte [r9 - 1], cl
sub r10, 1
jne 0x1800035b0
mov rbx, rsi
mov dword [r13], ebp
mov rcx, r14
call fcn.180005370
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x180]
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180006d30
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180003660
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
mov r15, rdx
xor ebx, ebx
call fcn.180002720
mov rsi, rax
test rax, rax
je 0x180003735
mov rcx, rax
mov qword [rsp + 0x68], rdi
call fcn.1800026a0
mov rdi, rax
test rax, rax
je 0x180003728
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rax
mov qword [rsp + 0x60], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18000371b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, r14d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180003712
cmp dword [rsp + 0x78], r14d
mov eax, 1
cmove ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.180005370
mov rbp, qword [rsp + 0x60]
mov rcx, rsi
call fcn.180005370
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret