joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ccd0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx], 0
jne 0x14000cd10
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400193c0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rdi, rdx
mov rsi, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, qword [rcx]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.140016e70
mov rbx, qword [rsp + 0x28]
mov r14, qword [rsi]
call fcn.1400020c0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov r8, rdi
xor r9d, r9d
call fcn.140010964
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140016e70
jmp 0x14000ccf8
Function at 0x14000d110
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, section..rdata
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000d166
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.1400174c8
cmp rax, 0x105
jb 0x14000d17d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400193c0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140017990
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.14000e140
test eax, eax
je 0x14000d166
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000d1ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000d166
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.14000e140
test eax, eax
je 0x14000d166
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000d1ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000d166
mov esi, 1
jmp 0x14000d166
Function at 0x14000d9c0
Capabilities:
Query service status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rdi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x14000dad1
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14000daf4
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x14000db1b
xor esi, esi
lea r15, [rsp + 0x34]
lea r12, [rsp + 0x38]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000da6e
cmp dword [rsp + 0x3c], 1
je 0x14000db3c
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jae 0x14000db36
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, r12
mov r9d, 0x24
call rbx
test eax, eax
jne 0x14000da50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x14000daa4
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x14000da5b
jmp 0x14000dbb7
cmp eax, 0x79
jle 0x14000db87
cmp eax, 0x41c
je 0x14000da5b
cmp eax, 0x7a
je 0x14000dbda
cmp eax, 0x7c
jne 0x14000dbcc
mov ebx, 0xdd
mov dword [rsp + 0x3c], ebx
jmp 0x14000db41
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov ebx, 0xfd
cmovne ebx, ecx
jmp 0x14000db52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x14000db22
cmp edi, 5
je 0x14000db72
cmp edi, 6
jne 0x14000db80
mov ebx, 0xec
jmp 0x14000db52
mov ebx, 0xcf
jmp 0x14000db41
cmp edi, 0x7b
je 0x14000db79
cmp edi, 0x424
jne 0x14000db80
mov ebx, 0xee
jmp 0x14000db52
mov ebx, dword [rsp + 0x3c]
jmp 0x14000db41
mov ebx, 1
mov rsi, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call rsi
mov rcx, r14
call rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400193c0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebx, 0xeb
jmp 0x14000db52
mov ebx, 0xed
jmp 0x14000db52
mov ebx, 0xef
jmp 0x14000db52
cmp eax, 5
je 0x14000dba1
cmp eax, 6
je 0x14000dbac
cmp eax, 0x57
jne 0x14000dbcc
mov ebx, 0xdc
mov dword [rsp + 0x3c], ebx
jmp 0x14000db41
mov ebx, 0xda
mov dword [rsp + 0x3c], ebx
jmp 0x14000db41
mov ebx, 0xd9
mov dword [rsp + 0x3c], ebx
jmp 0x14000db41
cmp eax, 0x45b
jne 0x14000dbcc
mov ebx, 0xde
mov dword [rsp + 0x3c], ebx
jmp 0x14000db41
mov ebx, 0xdf
mov dword [rsp + 0x3c], ebx
jmp 0x14000db41
mov ebx, 0xdb
mov dword [rsp + 0x3c], ebx
jmp 0x14000db41
Function at 0x14000dbf0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov ebp, edx
mov rbx, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea rsi, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000ff90
mov rcx, rsi
call fcn.14000d110
test eax, eax
je 0x14000dc65
xor edi, edi
lea rsi, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000ff90
lea rdx, str..status
mov rcx, rbx
mov r8, rsi
call fcn.14000d210
test eax, eax
jne 0x14000dc83
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400193c0
mov eax, edi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.14000e140
test eax, eax
je 0x14000dc65
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edi, edi
lea rcx, [rsp + 0x40]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000dc65
mov rbx, rax
lea rsi, [rsp + 0x250]
mov rcx, rsi
mov r8d, ebp
call fcn.14000dd30
mov rcx, rsi
call fcn.140017230
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne al
cmp dword [rsp + 0x3c], edi
sete cl
and cl, al
movzx edi, cl
jmp 0x14000dc65

Function at 0x14000ddb0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, 0x102
test edx, edx
je 0x14000dec0
mov r15d, edx
mov rbx, rcx
xor ebp, ebp
lea r12, [rsp + 0x54]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
lea r13, [rsp + 0x28]
nop dword [rax + rax]
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x14000de60
mov rdi, rax
mov dword [rsp + 0x28], 0x238
mov rcx, rax
mov rdx, r13
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000de80
nop dword [rax]
mov rcx, rbx
mov rdx, r12
call fcn.140015758
test eax, eax
je 0x14000de90
mov rcx, rdi
mov rdx, r13
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000de30
mov esi, 0x490
jmp 0x14000de92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x490
jne 0x14000dea3
jmp 0x14000debe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000de92
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x490
je 0x14000debe
mov ecx, 0x3e8
call r14
add ebp, 1
cmp ebp, r15d
jne 0x14000de00
mov esi, 0x102
jmp 0x14000dec0
xor esi, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400193c0
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000df60
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.14000ff90
mov rcx, rdi
call fcn.1400174c8
cmp rax, 0x104
ja 0x14000dfdd
lea rbx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rdi
call fcn.140017990
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [rsi], ecx
mov ebx, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1400193c0
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret

Function at 0x14000e070
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14000e0e4
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000e11a
lea rdx, [rsp + 0x54]
lea rsi, [0x14003a1cc]
mov r8d, 0x105
mov rcx, rsi
call fcn.140017990
mov word [0x14003a3d4], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400193c0
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14000e0a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.140014984
cmp esi, 2
mov ecx, 9
cmove ecx, esi
mov dword [rax], ecx
xor esi, esi
jmp 0x14000e0c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14000e129
xor esi, esi
jmp 0x14000e0c8
call fcn.140014984
mov dword [rax], 2
xor esi, esi
jmp 0x14000e0c8

Function at 0x140013d0c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013e44
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140013eab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013eab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013eab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013eab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013eab
cmp dword [rcx + 0x84], 0xe
jbe 0x140013eab
cmp dword [rcx + 0xf8], 0
je 0x140013eab
mov ecx, ebx
call fcn.140013d90
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140013fd8
cmp dword [rbp + 0x20], 0
je 0x140013ef8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013dec
int3
Function at 0x140015e44
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140015e64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400149c4
or eax, 0xffffffff
jmp 0x140015e66
xor eax, eax
add rsp, 0x28
ret
Function at 0x180001860
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov edi, 1
mov rax, rdx
test rdx, rdx
je 0x180001a49
mov qword [rsp + 0x50], rbp
xor ebp, ebp
mov edx, ebp
cmp byte [rax], dl
je 0x180001a3a
lea rax, [rax + 1]
inc edx
cmp byte [rax], bpl
jne 0x180001890
test edx, edx
je 0x180001a3a
lea rax, [rdx + 1]
mov ecx, 0xffffffff
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r15d, edx
cmp rax, rcx
ja 0x180001a1a
mov r9d, edi
mov r8d, eax
xor edx, edx
mov rcx, rsi
call fcn.180002420
mov r14, rax
test rax, rax
je 0x180001a33
mov qword [rsp + 0x58], r12
mov rcx, rax
mov qword [rsp + 0x60], r13
nop dword [rax + rax]
movzx eax, byte [rbx]
lea rcx, [rcx + 1]
lea rbx, [rbx + 1]
mov byte [rcx - 1], al
test al, al
jne 0x1800018f0
lea r12, [r15 + r14]
mov rdx, rbp
mov rbx, r14
lea r13, [0x180000000]
cmp rbx, r12
jae 0x180001990
movsx r15, byte [rbx]
mov rax, r15
cmp r15d, 0x7c
ja case.0x180001939.3
movzx eax, byte [r13 + rax + 0x1a64]
mov ecx, dword [r13 + rax*4 + 0x1a54]
add rcx, r13
jmp rcx
test rdx, rdx
je 0x18000194e
lea rax, [r14 - 1]
cmp rdx, rax
jb 0x18000194e
mov rdx, rbp
jmp 0x180001985
mov edi, ebp
jmp 0x180001985
test rdx, rdx
je 0x180001979
xor edx, edx
mov rcx, r14
mov byte [rbx], bpl
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x180001976
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne case.0x180001939.0
mov byte [rbx], r15b
mov rdx, rbp
jmp 0x180001985
test rdx, rdx
cmove rdx, rbx
inc rbx
test edi, edi
jne 0x180001913
jmp 0x180001990
mov edi, ebp
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
test rsi, rsi
jne 0x1800019cc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov ebx, dword [rsi + 0x30]
and ebx, 1
je 0x1800019dc
mov ebp, dword [r14 - 8]
add r14, 0xfffffffffffffff8
mov rcx, qword [rsi + 0x28]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x1800019b3
test byte [rsi + 0x30], 2
je 0x1800019fe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add qword [rsi + 0x60], 0xfffffffffffffff8
mov eax, ebp
sub qword [rsi + 0x58], rax
test byte [rsi + 0x30], 2
je 0x1800019b3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1800019b3
test byte [rsi + 0x30], 4
je 0x180001a33
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, ebp
jmp 0x1800019b5
mov eax, edi
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x180001e90
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, r8d
cmp rcx, 0xffffffffffffffff
je 0x180001ec8
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180001ec8
cmp ebx, dword [rsp + 0x40]
jne 0x180001ec8
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x180001ef0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, r9
mov rbx, r8
mov rax, rdx
mov rdi, rcx
test rdx, rdx
je 0x18000204b
xor ecx, ecx
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
lea r8d, [rcx + 1]
mov rcx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
je 0x18000204b
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18000203a
mov rcx, qword [rsp + 0x40]
mov edx, 0xfffffffe
lea rax, [rcx - 1]
cmp rax, rdx
ja 0x18000203a
test rsi, rsi
je 0x180001f7f
mov dword [rsi], ecx
test rdi, rdi
je 0x180001f91
mov r8, rcx
mov rcx, rdi
call fcn.180002500
jmp 0x180001fa5
mov edx, ecx
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18000203a
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
call fcn.180001e90
test eax, eax
je 0x180002017
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x180001ff1
mov rax, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x180002002
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
test rdi, rdi
je 0x180002029
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.180002740
jmp 0x18000203a
mov rcx, qword [rbx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x18000204b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x1800047b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x18
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp], 0
mov qword [rsp + 8], rax
mov eax, dword [rcx]
cmp eax, 0x138
jl 0x1800048df
cmp eax, 0x139
jne 0x180004825
mov qword [rcx + 8], 0x1571
mov qword [rsp + 0x20], 0x1571
movabs r9, 0x5851f42d4c957f2d
mov dword [rcx], 1
movsxd r8, dword [rcx]
mov rdx, qword [rcx + r8*8]
shr rdx, 0x3e
xor rdx, qword [rcx + r8*8]
imul rdx, r9
add rdx, r8
mov qword [rcx + r8*8 + 8], rdx
inc dword [rcx]
cmp dword [rcx], 0x138
jl 0x180004800
lea r9, [rcx + 8]
mov r10d, 0x9c
nop
mov r8d, dword [r9 + 8]
lea r9, [r9 + 8]
xor r8d, dword [r9 - 8]
btr r8d, 0x1f
xor r8, qword [r9 - 8]
mov rax, r8
shr r8, 1
and eax, 1
mov rdx, qword [rsp + rax*8]
xor rdx, r8
xor rdx, qword [r9 + 0x4d8]
mov qword [r9 - 8], rdx
dec r10
jne 0x180004830
lea r9, [rcx + 0x4e8]
mov r10d, 0x9b
mov r8d, dword [r9 + 8]
lea r9, [r9 + 8]
xor r8d, dword [r9 - 8]
btr r8d, 0x1f
xor r8, qword [r9 - 8]
mov rax, r8
shr r8, 1
and eax, 1
mov rdx, qword [rsp + rax*8]
xor rdx, r8
xor rdx, qword [r9 - 0x4e8]
mov qword [r9 - 8], rdx
dec r10
jne 0x180004872
mov r8d, dword [rcx + 8]
xor r8d, dword [rcx + 0x9c0]
btr r8d, 0x1f
xor r8, qword [rcx + 0x9c0]
mov rax, r8
shr r8, 1
and eax, 1
mov rdx, qword [rsp + rax*8]
xor rdx, r8
xor rdx, qword [rcx + 0x4e0]
mov qword [rcx + 0x9c0], rdx
mov dword [rcx], r10d
movsxd rdx, dword [rcx]
mov r8, qword [rcx + rdx*8 + 8]
lea eax, [rdx + 1]
mov dword [rcx], eax
mov rax, r8
movabs rcx, 0x555555555
shr rax, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor r8, rax
mov rax, r8
and rax, rcx
shl rax, 0x11
xor r8, rax
mov rax, r8
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor r8, rax
mov rax, r8
shr rax, 0x2b
xor rax, r8
add rsp, 0x18
ret
Function at 0x180004f60
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

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
mov r11d, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, rdx
mov ebx, ebp
test rdx, rdx
je 0x18000518c
movzx r9d, byte [rdx]
mov r10d, ebp
test r9b, r9b
je 0x18000518c
lea rax, [rax + 1]
inc r10d
cmp byte [rax], bl
jne 0x180004fa3
test r10d, r10d
je 0x18000518c
mov rcx, rdx
mov r8d, 0x811c9dc5
lea eax, [r9 - 0x41]
cmp al, 0x19
movsx eax, r9b
ja 0x180004fcf
add eax, 0x20
movzx r9d, byte [rcx + 1]
inc rcx
movzx eax, al
xor eax, r8d
imul r8d, eax, 0x1000193
test r9b, r9b
jne 0x180004fc0
mov eax, 0xba2e8ba3
mul r8d
shr edx, 3
imul eax, edx, 0xb
sub r8d, eax
lea r14, [r8 + r8*2]
add r14, r14
mov rax, qword [rsi + r14*8 + 0x48]
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x180005071
nop
mov r8, qword [rbx + 0x38]
test r8, r8
je 0x180005065
cmp rdi, r8
je 0x18000518c
mov r9, rdi
sub r9, r8
nop dword [rax + rax]
movzx eax, byte [r9 + r8]
movzx edx, byte [r8]
lea r8, [r8 + 1]
cmp al, dl
je 0x18000505c
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x18000504b
add al, 0xe0
lea ecx, [rdx - 0x61]
cmp cl, 0x19
ja 0x180005056
add dl, 0xe0
cmp al, dl
jb 0x180005065
ja 0x180005065
test al, al
jne 0x180005030
jmp 0x18000518c
mov rax, qword [rbx]
mov rbx, qword [rax + 0x10]
test rbx, rbx
jne 0x180005010
test r11d, r11d
je 0x18000518c
mov rcx, qword [rsi]
xor edx, edx
mov r8d, 0x25c0
lea r9d, [rdx + 1]
call fcn.180002420
mov rbx, rax
test rax, rax
je 0x18000518c
mov edx, ebp
mov rax, rdi
cmp byte [rdi], dl
je 0x1800050ae
lea rax, [rax + 1]
inc edx
cmp byte [rax], bpl
jne 0x1800050a3
mov rcx, qword [rsi]
lea eax, [rdx + 1]
mov rdx, rdi
mov r8d, eax
mov r9d, eax
call fcn.180002610
mov qword [rbx + 0x38], rax
test rax, rax
je 0x180005178
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbx
lea rcx, [rbx + 0x40]
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbx
mov qword [rbx + 0x30], rsi
lea r8, [rbx + 0x18]
lea rax, [rcx + 0x18]
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x20], rcx
mov qword [rcx + 0x28], rbp
mov qword [rcx], rax
mov qword [rax], rbp
lea rcx, [rbx + 0x70]
mov edx, 0xc7
nop word [rax + rax]
lea rax, [rcx + 0x18]
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x20], rcx
mov qword [rcx + 0x28], rbp
mov qword [rcx], rax
add rcx, 0x30
mov qword [rax], rbp
dec edx
jne 0x180005120
mov rcx, qword [rsi + r14*8 + 0x68]
mov rax, qword [rcx]
mov qword [rax + 8], rbx
mov rax, qword [rcx]
mov qword [rbx + 8], rcx
mov qword [rbx], rax
mov qword [rcx], rbx
mov rcx, qword [rsi + 0x38]
mov rax, qword [rcx]
mov qword [rax + 8], r8
mov rax, qword [rcx]
mov qword [r8 + 8], rcx
mov qword [r8], rax
mov qword [rcx], r8
inc dword [rsi + 8]
jmp 0x18000518c
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
call fcn.1800027c0
mov rbx, rbp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x1800051b0
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov r11d, r8d
mov rdi, rdx
mov rbp, rcx
mov rax, rdx
mov ebx, r15d
test rdx, rdx
je 0x18000538a
movzx r9d, byte [rdx]
mov r10d, r15d
test r9b, r9b
je 0x18000538a
lea rax, [rax + 1]
inc r10d
cmp byte [rax], bl
jne 0x1800051f3
test r10d, r10d
je 0x18000538a
mov rsi, qword [rcx + 0x30]
mov r8d, 0x811c9dc5
mov rcx, rdx
lea eax, [r9 - 0x41]
cmp al, 0x19
movsx eax, r9b
ja 0x180005223
add eax, 0x20
movzx r9d, byte [rcx + 1]
inc rcx
movzx eax, al
xor eax, r8d
imul r8d, eax, 0x1000193
test r9b, r9b
jne 0x180005214
mov eax, 0x5254e78f
mul r8d
shr edx, 6
imul eax, edx, 0xc7
sub r8d, eax
lea r14, [r8 + r8*2]
add r14, r14
mov rax, qword [rbp + r14*8 + 0x70]
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x1800052c1
mov r8, qword [rbx + 0x38]
test r8, r8
je 0x1800052b5
cmp rdi, r8
je 0x18000538a
mov r9, rdi
sub r9, r8
nop
movzx eax, byte [r9 + r8]
movzx edx, byte [r8]
lea r8, [r8 + 1]
cmp al, dl
je 0x1800052ac
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x18000529b
add al, 0xe0
lea ecx, [rdx - 0x61]
cmp cl, 0x19
ja 0x1800052a6
add dl, 0xe0
cmp al, dl
jb 0x1800052b5
ja 0x1800052b5
test al, al
jne 0x180005280
jmp 0x18000538a
mov rax, qword [rbx]
mov rbx, qword [rax + 0x10]
test rbx, rbx
jne 0x180005266
test r11d, r11d
je 0x18000538a
mov rcx, qword [rsi]
xor edx, edx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x48]
call fcn.180002420
mov rbx, rax
test rax, rax
je 0x18000538a
mov edx, r15d
mov rax, rdi
cmp byte [rdi], dl
je 0x1800052fd
lea rax, [rax + 1]
inc edx
cmp byte [rax], r15b
jne 0x1800052f2
mov rcx, qword [rsi]
lea eax, [rdx + 1]
mov rdx, rdi
mov r8d, eax
mov r9d, eax
call fcn.180002610
mov qword [rbx + 0x38], rax
test rax, rax
je 0x180005376
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], rbx
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], rbx
mov qword [rbx + 0x30], rbp
mov qword [rbx + 0x40], r15
mov rcx, qword [rbp + r14*8 + 0x90]
mov rax, qword [rcx]
lea rdx, [rbx + 0x18]
mov qword [rax + 8], rbx
mov rax, qword [rcx]
mov qword [rbx + 8], rcx
mov qword [rbx], rax
mov qword [rcx], rbx
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
mov qword [rax + 8], rdx
mov rax, qword [rcx]
mov qword [rdx + 8], rcx
mov qword [rdx], rax
mov qword [rcx], rdx
inc dword [rsi + 8]
jmp 0x18000538a
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
call fcn.1800027c0
mov rbx, r15
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret