joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400081e0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdx, [rsp + 0x38]
mov rsi, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x140008267
mov rcx, qword [0x1400356a8]
mov r8d, edi
mov edx, 4
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, edi
xor edx, edx
mov r9, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140008254
mov rcx, qword [0x1400356a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140008650
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
lea rcx, str.WindowsApps_
call fcn.140006850
mov rbx, qword [0x1400356b0]
mov rsi, rax
add rsi, rsi
mov rcx, rbx
lea rdi, [rsi + 0x208]
lea rdx, [rdi + 0x12]
call fcn.1400060d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor r9d, r9d
movzx ecx, byte [rbx + 2]
xor r8d, r8d
mov word [rax], cx
lea rbx, [rax + 0x10]
lea rax, [rbx + 0x10]
mov qword [rbx], rdi
xor ecx, ecx
mov qword [rbx + 8], rax
mov word [rax + rdi], cx
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
lea edx, [rcx + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000870e
mov rcx, qword [rbx + 8]
call fcn.140006850
mov rcx, qword [rbx + 8]
lea r8, [rsi + 2]
add rax, rax
lea rdx, str.WindowsApps_
mov qword [rbx], rax
shr rax, 1
lea rcx, [rcx + rax*2]
call fcn.1400109c0
add qword [rbx], rsi
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140008724
call fcn.1400061b0
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400094a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov ecx, 2
add rdx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, qword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
mov rbx, rax
call fcn.1400109c0
mov rcx, qword [rdi]
xor eax, eax
mov word [rbx + rcx], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14000952e
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x14000952e
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14000952e
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140009537
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000a1c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov ecx, 0x1002
mov r9d, 0x100000
mov qword [rsp + 0x20], rbx
mov r8d, 0x200000
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [0x1400356a8], rax
test rax, rax
jne 0x14000a202
mov eax, 0xc000009a
add rsp, 0x30
pop rbx
ret
call fcn.14000a280
xor r9d, r9d
lea rdx, [0x140035660]
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor r9d, r9d
lea rcx, [0x140035278]
xor r8d, r8d
mov edx, 0xf0003
call qword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x14000a270
cmp byte [0x140035698], 1
mov eax, ebx
mov ecx, 0xfa0
cmova eax, ecx
mov dword [0x140033b10], eax
call fcn.140005f30
test eax, eax
js 0x14000a270
call fcn.140006440
test al, al
mov ecx, 0xc0000001
cmove ebx, ecx
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov eax, 0xc0000001
add rsp, 0x30
pop rbx
ret
Function at 0x14000a280
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x14000a401
lea rcx, [0x140035540]
mov eax, 2
lea rdx, [rsp + 0x20]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x14000a2c0
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x14000a368
mov eax, dword [rsp + 0x28]
cmp eax, 1
jb 0x14000a36a
jne 0x14000a34d
mov dword [0x1400356a0], 0x33
add rsp, 0x148
ret
cmp eax, 2
jne 0x14000a40b
mov dword [0x1400356a0], 0x34
add rsp, 0x148
ret
jae 0x14000a37c
mov dword [0x1400356a0], 0
add rsp, 0x148
ret
cmp eax, 6
jne 0x14000a3e0
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14000a39b
mov dword [0x1400356a0], 0x3c
add rsp, 0x148
ret
cmp eax, 1
jne 0x14000a3b2
mov dword [0x1400356a0], 0x3d
add rsp, 0x148
ret
cmp eax, 2
jne 0x14000a3c9
mov dword [0x1400356a0], 0x3e
add rsp, 0x148
ret
cmp eax, 3
jne 0x14000a40b
mov dword [0x1400356a0], 0x3f
add rsp, 0x148
ret
cmp eax, 0xa
jne 0x14000a3ff
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14000a401
mov dword [0x1400356a0], 0x64
add rsp, 0x148
ret
jbe 0x14000a40b
mov dword [0x1400356a0], 0x7fffffff
add rsp, 0x148
ret
Function at 0x14000a8f0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, str.wintrust.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.crypt32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle2
mov rcx, rbx
mov qword [0x140035528], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
mov qword [0x1400354d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext2
mov rcx, rbx
mov qword [0x1400354e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
mov qword [0x140035518], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
mov qword [0x1400354f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
mov qword [0x1400354d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
mov qword [0x1400354c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
mov qword [0x1400354c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
mov qword [0x140035520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WinVerifyTrust
mov rcx, rbx
mov qword [0x1400354e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertNameToStrW
mov rcx, rdi
mov qword [0x140035510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertDuplicateCertificateContext
mov rcx, rdi
mov qword [0x1400354f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [0x140035500], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov qword [0x140035508], rax
add rsp, 0x20
pop rdi
ret
Function at 0x14000bb80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
mov r8d, 0x40
call fcn.140007780
nop
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x14000bbbf
mov eax, 0xc000012f
jmp 0x14000bc57
mov eax, dword [rdi + 0x3c]
test eax, eax
jne 0x14000bbd0
mov eax, 0xc000007b
jmp 0x14000bc57
cmp eax, 0x10000000
jae 0x14000bbc6
cmp rax, rsi
jae 0x14000bbc6
lea rdx, [rax + rdi]
mov qword [rbx + 0x10], rdx
mov r8d, 0x18
mov rcx, rbx
call fcn.140007780
mov rdx, qword [rbx + 0x10]
movzx eax, word [rdx + 0x14]
add eax, 0x18
movsxd r8, eax
movzx eax, word [rdx + 6]
lea rcx, [rax + rax*4]
lea r8, [r8 + rcx*8]
mov rcx, rbx
call fcn.140007780
nop
mov rcx, qword [rbx + 0x10]
cmp dword [rcx], 0x4550
jne 0x14000bbc6
movzx eax, word [rcx + 0x18]
mov word [rbx + 0x28], ax
mov edx, 0x10b
sub ax, dx
mov edx, 0xfeff
test dx, ax
jne 0x14000bbc6
movzx eax, word [rcx + 6]
mov dword [rbx + 0x18], eax
movzx eax, word [rcx + 0x14]
add rcx, 0x18
add rcx, rax
mov qword [rbx + 0x20], rcx
xor eax, eax
jmp 0x14000bc57
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000bc70
Capabilities:
Get file attributes
Map section object

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
sub rsp, 0x98
xor ebp, ebp
mov rsi, r9
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0xb0], rbp
test rcx, rcx
jne 0x14000bca4
mov eax, 0xc0000030
add rsp, 0x98
pop rsi
pop rbp
ret
mov rdx, rcx
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
mov r8d, 0x1000a1
call fcn.14000fb00
test eax, eax
js 0x14000bdf9
mov qword [rsp + 0xc0], rbx
lea r8, [rsp + 0x78]
mov qword [rsp + 0x90], rdi
lea rdx, [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov r9d, 0x18
mov rcx, rdi
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
mov ebx, eax
test eax, eax
js 0x14000bd15
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb8], rax
test ecx, ecx
js 0x14000bdcb
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0xb8]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0xb0]
xor r8d, r8d
mov dword [rsp + 0x20], 0x20
mov edx, 0xf001f
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x14000bdcb
mov rax, qword [rsp + 0xb8]
lea r8, [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
xor r9d, r9d
mov dword [rsp + 0x48], 0x20
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x14000bdcb
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xd0]
mov qword [rsi], rax
mov rax, qword [rsp + 0xb8]
mov qword [rdx], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x14000bdde
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rdi, qword [rsp + 0x90]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x98
pop rsi
pop rbp
ret
Function at 0x1400102a4
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140010335
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140010335
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010335
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140010319
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140010313
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14001031b
add rdx, 0x28
jmp 0x1400102f8
xor edx, edx
test rdx, rdx
jne 0x140010324
xor al, al
jmp 0x14001033b
test dword [rdx + 0x24], 0x80000000
je 0x140010331
xor al, al
jmp 0x14001033b
mov al, 1
jmp 0x14001033b
xor al, al
jmp 0x14001033b
add rsp, 0x18
ret

Function at 0x14001c90c
Capabilities:
Get geographical location

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, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, str.GetLocaleInfoEx
mov r14, rcx
lea r8, [0x140027b98]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xc
call fcn.14001c554
mov rbx, rax
test rax, rax
je 0x14001c96f
mov rcx, rax
call qword [fcn.1400109a4]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x14001c989
xor edx, edx
mov rcx, r14
call fcn.14001cc74
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
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 0x180001140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x30
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x18], rcx
mov rcx, qword [rsp + 0x18]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x18]
movzx r8d, byte [rcx + 0x100]
mov dword [rsp + 0xc], r8d
mov rcx, qword [rsp + 0x18]
movzx r8d, byte [rcx + 0x101]
mov dword [rsp + 8], r8d
mov eax, dword [rsp + 0x2c]
mov ecx, eax
add ecx, 0xffffffff
mov dword [rsp + 0x2c], ecx
cmp eax, 0
je 0x180001244
mov eax, dword [rsp + 0xc]
add eax, 1
and eax, 0xff
mov dword [rsp + 0xc], eax
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 0xc]
mov edx, eax
movzx eax, byte [rcx + rdx]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 8]
add eax, dword [rsp + 4]
and eax, 0xff
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 8]
mov edx, eax
movzx eax, byte [rcx + rdx]
mov dword [rsp], eax
mov eax, dword [rsp]
mov r8b, al
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 0xc]
mov edx, eax
mov byte [rcx + rdx], r8b
mov eax, dword [rsp + 4]
mov r8b, al
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 8]
mov edx, eax
mov byte [rcx + rdx], r8b
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 4]
add eax, dword [rsp]
and eax, 0xff
mov eax, eax
mov edx, eax
movzx eax, byte [rcx + rdx]
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
add rdx, 1
mov qword [rsp + 0x20], rdx
movzx r9d, byte [rcx]
xor r9d, eax
mov r8b, r9b
mov byte [rcx], r8b
jmp 0x180001181
mov eax, dword [rsp + 0xc]
mov cl, al
mov rdx, qword [rsp + 0x18]
mov byte [rdx + 0x100], cl
mov eax, dword [rsp + 8]
mov cl, al
mov rdx, qword [rsp + 0x18]
mov byte [rdx + 0x101], cl
add rsp, 0x30
ret
Function at 0x140004610
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, dl
xor eax, ecx
imul eax, eax, 0x1000193
ret

Function at 0x14001cd60
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 0x14001cd70
mov dword [rcx], 0x270
ret

Function at 0x14001f6d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
test r8, r8
je 0x14001a7b4
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc r9
xor rcx, rax
imul rcx, r10
cmp r9, r8
jb 0x14001a7a0
mov rax, rcx
ret
jmp 0x1400209b0
mov rcx, rdx
jmp 0x1400209f0
jmp 0x140020c00
mov rdx, rcx
jmp 0x140020f60
movabs rcx, 0xcbf29ce484222325
mov r8d, 2
jmp 0x14001a780

Function at 0x140020d20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov rcx, qword [rcx]
jmp 0x140020d30
jmp 0x140020d40
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x140020d59
call fcn.140020db0
jmp 0x140020d6c
nop dword [rax]
cmp eax, 0x4e0
jb 0x140020d6c
call fcn.140020e00
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret

Function at 0x140020d40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov rcx, qword [rcx]
jmp 0x140020d30
jmp 0x140020d40
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x140020d59
call fcn.140020db0
jmp 0x140020d6c
nop dword [rax]
cmp eax, 0x4e0
jb 0x140020d6c
call fcn.140020e00
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret

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

Disassembly:
lea rax, [rcx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140020dc0
ret
Function at 0x140020e00
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
nop word [rax + rax]
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140020e20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140020e70
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
mov dword [r9], ebx
mov rbx, qword [rsp + 8]
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
ret

Function at 0x140048be4
Capabilities:
Parse pe header

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

Function at 0x140050be8
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 0x140050c1f
call fcn.14004f924
mov dword [rax], 0x16
call fcn.140050a18
xor eax, eax
jmp 0x140050cad
mov rdx, r9
mov rcx, r8
call fcn.140050b84
mov rbx, rax
test rax, rax
je 0x140050caa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140050ab0]
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 0x140050c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004f898
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140050c7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140050c8d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400564c8
jmp 0x140050caa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140050ca7
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 0x140051fb8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140052027
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140052027
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140052027
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140052027
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140052027
cmp dword [rcx + 0x84], 0xe
jbe 0x140052027
cmp dword [rcx + 0xf8], 0
je 0x140052027
mov ecx, ebx
call fcn.1400520d8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140051eb4
nop
cmp dword [rbp + 0x20], 0
je 0x140052075
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140052080
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140051fb8

Function at 0x1400521bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140051fb8

Function at 0x140054c3c
Capabilities:
Get file size

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