joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486940
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
sub rsp, 0xd8
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.0049d090
mov esi, 0x3e8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x30]
mov r8d, 4
mov dword [rsp + 0xe0], eax
call fcn.0049d610
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x30]
mov r8d, 4
mov dword [rsp + 0xe0], eax
call fcn.0049d610
lea rcx, [rsp + 0xb0]
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4869df
mov esi, 0x64
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
lea r8d, [rsi - 0x44]
call fcn.0049d610
mov qword [rsp + 0xe8], rbx
nop
nop
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x486a14
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r8d, 8
call fcn.0049d610
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x30]
mov r8d, 4
mov dword [rsp + 0xe0], eax
call fcn.0049d610
mov ebx, 0x64
nop
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.0049d6c0
lea rcx, [rsp + 0x30]
call fcn.0049d090
lea rcx, [rsp + 0x30]
mov r8d, 0x20
mov rdx, rdi
call fcn.0049d610
dec rbx
jne 0x486a40
add esi, 0xffffffff
jne 0x4869f0
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.0049d6c0
mov rbx, qword [rsp + 0xe8]
mov byte [rdi + 0x20], sil
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
add rsp, 0xd8
ret

Function at 0x4888d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
cmp dword [rcx + 0x1c], edi
mov rbx, rcx
je 0x48891a
cmp dword [rcx + 0x24], edi
je 0x4888f7
lea ecx, [rdi + 1]
call qword [sym.imp.msvcrt.dll_exit]
int3
mov dword [rcx], 1
mov dword [rcx + 0x1c], edi
mov dword [rcx + 0x2c], edi
mov dword [rcx + 0x28], edi
add rcx, 0x38
call fcn.00495400
lea rcx, [rbx + 0x30]
call fcn.004953d0
jmp 0x488948
cmp dword [rcx + 0x24], edi
jne 0x48892b
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
int3
add rcx, 0x50
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rbx + 0x24], edi
mov edi, dword [rbx]
lea eax, [rdi + 1]
lea rcx, [rbx + 0x40]
mov dword [rbx], eax
call fcn.004955c0
mov rcx, qword [rbx + 0x48]
call fcn.00495220
cmp dword [rbx + 0x24], 0
je 0x488963
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
int3
lea rcx, [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
ret
Function at 0x4897a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
xor esi, esi
mov qword [rsp + 0x48], rdi
mov rbx, rcx
nop
nop
mov rcx, qword [rbx + 0x80]
mov edi, esi
call fcn.00495220
nop
cmp dword [rbx + 0x78], esi
jne 0x489889
mov rcx, qword [rbx + 0x90]
call fcn.00495220
cmp dword [rbx + 0x7c], esi
jne 0x489854
cmp dword [rbx + 0x1b4], esi
jne 0x489871
cmp dword [rbx + 0x1ac], esi
jne 0x489811
lea rcx, [rbx + 0x1e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rbx + 0x1b4], 1
mov edx, edi
mov rcx, rbx
and edx, 0xf
shl rdx, 0x12
add rdx, qword [rbx + 8]
call fcn.004894b0
cmp dword [rbx + 0x1b4], esi
je 0x48987d
lea rcx, [rbx + 0x1e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0x98]
mov dword [rbx + 0x1b4], esi
inc edi
call fcn.004955c0
jmp 0x4897d0
lea rcx, [rbx + 0x190]
call fcn.00488990
lea rcx, [rbx + 0x88]
call fcn.004953d0
jmp 0x4897c0
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
int3
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
int3
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x4919e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
sub rsp, 0x78
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax - 8], r12
lea rbx, [rcx + 0x318]
xor r12d, r12d
mov qword [rcx + 0xa0], r12
mov qword [rcx + 0x98], r12
mov rbp, rcx
mov rcx, rbx
call fcn.0049fa50
lea rcx, [rbp + 0x100]
mov qword [rbp + 0x310], rbx
call fcn.004898a0
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov dword [rsp + 0x20], 5
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x24], r12d
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x34], 0xffffffff
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x2c], 0xffffffff
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0x60], r12
call fcn.0048e730
lea rsi, [rbp + 0x2d70]
mov ebx, 2
mov byte [rsi], r12b
mov byte [rsi + 1], 1
add rsi, 2
mov qword [rsp + 0x98], rdi
nop
nop
nop
nop
mov ecx, ebx
mov edi, 1
shr ecx, 1
add ecx, 0xffffffff
shl rdi, cl
test rdi, rdi
je 0x491af2
mov r8, rdi
movzx edx, bl
mov rcx, rsi
call sub.msvcrt.dll_memset
inc ebx
add rsi, rdi
cmp ebx, 0x1c
jb 0x491ad0
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov r8d, 8
lea r9, [rbp + 0x820]
nop
nop
nop
nop
mov eax, r8d
mov ecx, r12d
mov edx, 4
nop
nop
imul eax, eax
add ecx, ecx
cmp eax, 0x10000
jb 0x491b5b
nop
shr eax, 1
inc ecx
cmp eax, 0x10000
jae 0x491b50
dec rdx
jne 0x491b40
mov eax, 0xa1
add r8d, 0x10
add r9, 4
sub eax, ecx
cmp r8d, 0x808
mov dword [r9 - 4], eax
jb 0x491b30
mov qword [rbp + 0x68], r12
mov qword [rbp + 0x1f578], r12
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x78
ret

Function at 0x4952d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x49530b
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret
Function at 0x495330
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rsi
mov rsi, r9
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
mov rbx, qword [rsp + 0x58]
mov rdi, rax
je 0x495395
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4953b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
add rsp, 0x48
ret
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x48
ret

Function at 0x495710
Capabilities:
Hash data using sha256

Disassembly:
mov dword [rcx], edx
dec edx
je 0x495732
sub edx, 3
je 0x495729
cmp edx, 6
jne 0x495739
add rcx, 0x10
jmp fcn.0049d090
mov qword [rcx + 8], 0xffffffffffffffff
ret
mov dword [rcx + 4], 0xffffffff
ret 0

Function at 0x49bc20
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x49bc59
lea rcx, [0x004a4c90]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x49bc59
mov ecx, 0xc00
call rax
add rsp, 0x28
ret
Function at 0x49bc60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub rsp, 8
mov r11d, r8d
mov qword [rsp + 0x20], rsi
lea r9, [rcx + 0x10]
shr r11d, 2
mov esi, 1
mov eax, r11d
shr eax, 1
add eax, 3
test r11d, r11d
mov dword [rcx], eax
je 0x49bca2
mov rcx, r9
mov r8d, r11d
nop
mov eax, dword [rdx]
add rcx, 4
add rdx, 4
dec r8
mov dword [rcx - 4], eax
jne 0x49bc90
mov r8d, dword [r9 + r11*4 - 4]
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
lea rax, [r11 + r11*2]
xor r10d, r10d
mov qword [rsp + 0x28], rdi
mov qword [rsp], r12
lea rbp, str.cw
lea rbx, [r9 + rax*4 + 0x70]
lea r12d, [r10 + 0x1b]
test r10d, r10d
jne 0x49bd2c
mov edx, r8d
movzx eax, r8b
mov r10d, r11d
movzx r8d, byte [rax + rbp]
mov rax, rdx
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + rbp]
or r8d, eax
mov rax, rdx
shr rdx, 8
shr rax, 0x10
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + rbp]
or r8d, eax
movzx eax, dl
movzx ecx, byte [rax + rbp]
shl r8d, 8
xor ecx, esi
add esi, esi
or r8d, ecx
bt esi, 8
cmovb esi, r12d
jmp 0x49bd7e
cmp r10d, 4
jne 0x49bd7e
cmp r11d, 6
jbe 0x49bd7e
mov edx, r8d
mov eax, r8d
shr rax, 0x10
movzx ecx, al
mov rax, rdx
movzx r8d, byte [rcx + rbp]
shr rax, 0x18
movzx eax, byte [rax + rbp]
shl eax, 8
or r8d, eax
mov rax, rdx
shr rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + rbp]
or r8d, eax
movzx eax, dl
movzx eax, byte [rax + rbp]
shl r8d, 8
or r8d, eax
xor r8d, dword [r9]
add r9, 4
add r10d, 0xffffffff
cmp r9, rbx
mov dword [r9 + r11*4 - 4], r8d
jne 0x49bcd1
mov r12, qword [rsp]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
add rsp, 8
ret

Function at 0x49d6c0
Capabilities:
Hash data using sha256

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rdi
mov rdi, rdx
mov edx, dword [rcx + 8]
mov rbx, rcx
and edx, 0x3f
mov byte [rdx + rcx + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x49d715
cmp edx, 0x40
movsxd rax, edx
je 0x49d703
mov r8d, 0x40
lea rcx, [rax + rcx + 0x40]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
lea rdx, [rbx + 0x40]
lea rcx, [rbx + 0x20]
mov r8d, 1
call qword [rbx]
xor edx, edx
mov r8d, 0x38
lea rcx, [rdx + rbx + 0x40]
mov qword [rsp + 0x40], rsi
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
mov r11, qword [rbx + 8]
lea rdx, [rbx + 0x40]
shl r11, 3
lea rcx, [rbx + 0x20]
mov r8d, 1
mov rax, r11
bswap r11d
shr rax, 0x20
mov dword [rbx + 0x7c], r11d
bswap eax
mov dword [rbx + 0x78], eax
call qword [rbx]
lea r11, [rbx + 0x20]
mov edx, 4
nop
nop
nop
nop
mov ecx, dword [r11 + 4]
mov eax, dword [r11]
add rdi, 8
bswap eax
bswap ecx
add r11, 8
dec rdx
mov dword [rdi - 8], eax
mov dword [rdi - 4], ecx
jne 0x49d770
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 8], rdx
mov dword [rbx + 0x20], 0x6a09e667
mov dword [rbx + 0x24], 0xbb67ae85
mov dword [rbx + 0x28], 0x3c6ef372
mov dword [rbx + 0x2c], 0xa54ff53a
mov dword [rbx + 0x30], 0x510e527f
mov dword [rbx + 0x34], 0x9b05688c
mov dword [rbx + 0x38], 0x1f83d9ab
mov dword [rbx + 0x3c], 0x5be0cd19
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x49db90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x49dbb1
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x49dc2d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x49dbd2
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x49dc2d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x49dc10
cmp ecx, 0x20b
je 0x49dbee
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x49dc2d
cmp dword [rax + 0x84], 0xe
ja 0x49dbff
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x49dc2d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x49dc2d
cmp dword [rax + 0x74], 0xe
ja 0x49dc1e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x49dc2d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004d9090], 0xffffffffffffffff
mov qword [0x004d9098], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004d502c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004d5028]
mov dword [rcx], eax
call fcn.004817f0
cmp dword [0x004d28b0], 0
jne 0x49dc87
lea rcx, [fcn.004817f0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004a4590]
lea rcx, [0x004a4588]
call fcn.00574000
mov r11d, dword [0x004d5024]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004d5020]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004a4580]
lea rcx, [0x004a4450]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.004596b4
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x49dd13
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x49dd34
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x49fa50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov qword [rcx + 0x480], 0xffffffffffffffff
mov qword [rcx], rax
lea r8, [rcx + 0x78]
mov qword [rcx + 0x40], rax
mov word [rcx + 0x22], ax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x28], rax
mov dword [rcx + 0x3c], 0x20
mov byte [rcx + 0x21], 1
mov dword [rcx + 0x5c], 4
mov word [rcx + 0x70], 2
nop dword [rax]
mov edx, eax
lea r8, [r8 + 4]
and edx, 1
mov ecx, eax
shr ecx, 1
neg edx
and edx, 0xedb88320
inc eax
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x49fa90
ret
Function at 0x18013a3cc
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 0x18013a3fc
xor eax, eax
jmp 0x18013a4bf
mov rbp, rbx
cmp word [rax], si
je 0x18013a421
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18013a408
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18013a404
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.18013a2ec
movsxd r14, eax
test eax, eax
jne 0x18013a45f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18013a3f5
mov rcx, r14
call fcn.180137b70
mov rdi, rax
test rax, rax
jne 0x18013a478
xor ecx, ecx
call fcn.180137b34
jmp 0x18013a454
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.18013a2ec
test eax, eax
jne 0x18013a4a9
mov rcx, rdi
call fcn.180137b34
jmp 0x18013a4b3
xor ecx, ecx
call fcn.180137b34
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 0x18013fbb0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100004758], rdi
je 0x1000024a2
cmp rax, rdi
jne 0x100002495
mov edi, 1
mov r12d, edi
jmp 0x1000024a7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100002479
mov edi, 1
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x1000024bd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x10000251a
mov eax, dword [0x100004750]
test eax, eax
jne 0x100002514
mov dword [0x100004750], edi
lea r13, [0x100001290]
lea rsi, [0x100001278]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100002506
test eax, eax
jne 0x100002506
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000024fb
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000024e4
test eax, eax
je 0x10000251a
mov eax, 0xff
jmp 0x1000025ec
mov dword [0x100004184], edi
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x100002541
lea rdx, [0x100001270]
lea rcx, [0x100001260]
call sub.msvcrt.dll__initterm
mov dword [0x100004750], 2
test r12d, r12d
jne 0x10000254f
xor eax, eax
xchg qword [0x100004758], rax
cmp qword [0x100004760], 0
je 0x100002578
lea rcx, [0x100004760]
call fcn.10000284c
test eax, eax
je 0x100002578
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100004760]
mov r8, qword [0x100004168]
mov rdx, qword [0x100004170]
mov ecx, dword [0x100004160]
call fcn.100001b54
mov dword [0x100004180], eax
cmp dword [0x100004164], 0
jne 0x1000025a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100004184], 0
jne 0x1000025bd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100004180]
jmp 0x1000025ec
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100149000
add rsp, 0x28
jmp 0x100002454
Function at 0x140001a50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001b43
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140001aad
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001ad4
add rax, 2
test ecx, ecx
jne 0x140001ac0
test edx, edx
je 0x140001b47
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140001b3a
nop word [rax + rax]
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140001afd
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001b24
add rax, 2
test ecx, ecx
jne 0x140001b10
test edx, edx
je 0x140001b47
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001af0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001b54
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002320
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x140002300
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret

Function at 0x140002cd4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002d1e
mov ecx, memset
cmp word [rax], cx
jne 0x140002d1e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002d1e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002d1e
cmp dword [rcx + 0x84], 0xe
jbe 0x140002d1e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002d20
xor al, al
add rsp, 0x28
ret
Function at 0x1400036a0
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 0x1400036fd
lea rbx, [0x140060500]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400036e4
cmp r10, 2
jb 0x1400036e4
cmp byte [r9], r8b
jne 0x1400036e4
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 0x1400036c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000373f
lea rbx, [0x140060500]
cmp r8b, 0x23
jne 0x140003723
cmp byte [r9], r8b
jne 0x140003723
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 0x140003710
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003900
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, r8
mov rbx, rcx
test rcx, rcx
jne 0x14000392f
mov r8d, 0x78f
lea rdx, [0x14005ac10]
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rsi, rsi
je 0x14000393b
mov qword [rsi], 0
lea rdx, [0x14005fd48]
mov rcx, rbx
call fcn.140003750
mov rbx, rax
test rax, rax
jne 0x14000395d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003a48
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003a48
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003a48
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003a48
cmp rdi, 0xffffffffffffffff
je 0x140003a48
mov rax, qword [0x1404268b8]
test rax, rax
je 0x1400039d9
inc dword [rax + 0xf4]
mov rdx, qword [0x1404268a8]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbp, rax
test rax, rax
je 0x140003a48
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140003a35
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1404268b8]
test rax, rax
je 0x140003a24
dec dword [rax + 0xf4]
mov rdx, qword [0x1404268a8]
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140003a51
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140003a43
mov qword [rsi], rdi
mov rax, rbp
jmp 0x140003a53
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140006ee0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xe8]
mov rbx, rcx
movsxd rdi, edx
test eax, eax
jg 0x140006f1e
mov r8d, 0x711
lea rdx, [0x14005aa10]
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [rbx + 0xe8]
movsxd rcx, eax
lea rdx, [0x140060500]
mov rax, qword [rbx + 0xf0]
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [0x1404268b8]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x140006f98
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001e220
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret