joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004300
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180014240]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180014b00]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180004373
mov eax, 0xa
jmp 0x180004406
test esi, esi
je 0x180004395
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800043b8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800043b8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800043b1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800043b8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180006370
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180004430
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180014240]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000455a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180004551
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180004534
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180004534
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180004534
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800044f2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180014488]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180004551
jmp 0x180004527
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180004527
mov rcx, qword [0x180014488]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180004551
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800044a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800045b3
cmp dword [rbx + 0xc], esi
jbe 0x1800045b3
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800045ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180004920
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180004570
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180006370
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180004ae0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x180004b4f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180004b38
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180004b2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180004b00
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180014488]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180004c10
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180014240]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180004c5f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180014af8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180004c9d
cmp rsi, r14
jb 0x180004c95
cmp rsi, r15
jae 0x180004c95
cmp qword [rsi + 8], 0
jne 0x180004e67
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180004c80
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180004d32
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180004d29
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180004d29
cmp dword [rsp + 0x40], 0x10000
je 0x180004dab
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180004d29
sub rbx, rbp
cmp rbx, r14
jae 0x180004cf0
test rsi, rsi
jne 0x180004e10
cmp rdi, r15
ja 0x180004e4f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180004e4f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180004e4f
cmp dword [rsp + 0x40], 0x10000
je 0x180004de1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180004d62
jmp 0x180004e4f
test rbx, rbx
je 0x180004d29
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180004e10
cmp rbx, r14
jae 0x180004cd0
jmp 0x180004d32
test rdi, rdi
je 0x180004e4f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180004e10
cmp rdi, r15
jbe 0x180004d40
jmp 0x180004e4f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180004e20
mov rax, qword [0x180014af8]
mov qword [rsi], rax
mov qword [0x180014af8], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180006370
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x140001238
Capabilities:
Create directory

Disassembly:
ror dword [rax - 0x2d], 1
loop 0x140001281
invalid
mov dword [rsp + 0x48], edx
mov rdx, qword [rsp + 0x40]
adc byte [rax - 0x75], cl
add eax, 0x4da7

Function at 0x140001240
Capabilities:
Create directory

Disassembly:
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
and al, 0x40
invalid
invalid

Function at 0x140001280
Capabilities:
Terminate process

Disassembly:
rol byte [rbx + 0x107304f8], 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
invalid
invalid
invalid

Function at 0x1400012a4
Capabilities:
Terminate process

Disassembly:
in al, dx
test al, 2
add byte [rax], al
add byte [rcx], dh
ror byte [rcx - 0x6b72b73f], 0x24
and al, 0x80
add byte [rax], al
add byte [rbp + rcx*4 + 0x44], cl
and al, 0x7c
mov dword [rsp + 0x2a4], 0x5610dee9
push rsi

Function at 0x1400012b0
Capabilities:
Terminate process

Disassembly:
in al, dx
test al, 2
add byte [rax], al
add byte [rcx], dh
ror byte [rcx - 0x6b72b73f], 0x24
and al, 0x80
add byte [rax], al
add byte [rbp + rcx*4 + 0x44], cl
and al, 0x7c
mov dword [rsp + 0x2a4], 0x5610dee9
push rsi

Function at 0x1400012c4
Capabilities:
Terminate process

Disassembly:
push rsi
invalid
invalid
test byte [rax + rcx*4], ah
and al, 0x88
add al, byte [rax]

Function at 0x1400012f4
Capabilities:
Terminate process

Disassembly:
add byte [r8], r8b
xor eax, eax
mov esi, eax
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x70], ecx
mov rcx, rsi
mov qword [rsp + 0x68], r10

Function at 0x140001308
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], r9
and al, 0x58

Function at 0x140001310
Capabilities:
Terminate process

Disassembly:
and al, 0x58
mov qword [rsp + 0x50], r8
call r11
mov edi, 0x200
add al, byte [rax]
add byte [rax - 0x75], cl
or eax, 0x4d22

Function at 0x14000131c
Capabilities:
Terminate process

Disassembly:
add al, byte [rax]
add byte [rax - 0x75], cl
or eax, 0x4d22
mov r8d, 0x200

Function at 0x140001334
Capabilities:
Terminate process

Disassembly:
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x44], edi
call rax

Function at 0x140001344
Capabilities:
Terminate process

Disassembly:
lea rcx, [rsp + 0x7c]
mov rdx, qword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
lea r9, [rsp + 0x7c]
mov r10, qword [rsp + 0x60]
mov qword [rsp + 0x38], rcx
mov rcx, r10
mov ecx, edx

Function at 0x1400013e0
Capabilities:
Terminate process

Disassembly:
mov ecx, 0x58b483d
add byte [rax], r8b
mov ecx, 7
call rax
ud2
Function at 0x1400037f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x80
xor eax, eax
mov dword [rsp + 0x6c], 0x6669cab2
mov r9d, dword [rsp + 0x6c]
xor r9d, 0x6669cab2
mov r10d, r8d
xor r10d, 0xffffffff
mov dword [rsp + 0x7c], r10d
cmp r8d, r9d
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x4c], eax
je 0x1400038a4
mov eax, dword [rsp + 0x4c]
lea rcx, [0x1400252c0]
mov edx, eax
and edx, 0xf
mov edx, edx
mov r8d, edx
mov edx, dword [rsp + 0x6c]
xor edx, 0x6669cab3
mov r9, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, r9
mov r10, qword [rsp + 0x60]
mov dword [rsp + 0x3c], edx
mov rdx, r10
mov qword [rsp + 0x30], r8
mov r8d, eax
mov r11, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
movzx r9d, byte [r11 + rsi]
mov dword [rsp + 0x2c], eax
call sym.TAPI32.dll_lineGetAddressIDA
mov eax, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x3c]
add eax, r8d
mov r8d, dword [rsp + 0x5c]
cmp eax, r8d
mov dword [rsp + 0x4c], eax
jne 0x140003832
add rsp, 0x80
pop rsi
ret

Function at 0x140003980
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
mov eax, 0x173a69d7
mov edx, 0x4223d576
mov dword [rsp + 0x3c], 0x25b1be8b
sub edx, dword [rsp + 0x3c]
mov dword [rsp + 0x38], edx
mov edx, dword [rsp + 0x38]
add edx, 0x496e9615
mov r8d, dword [rcx + 0x3c]
mov qword [rsp + 0x40], 0x3a880ee1
movsxd r9, r8d
mov r10, rcx
add r10, r9
mov r8d, dword [rcx + r9]
cmp eax, edx
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x2c], r8d
jae 0x1400039f3
xor eax, eax
mov ecx, dword [rsp + 0x2c]
sub ecx, 0x4550
mov edx, eax
mov r8, qword [rsp + 0x30]
cmove rdx, r8
mov rax, rdx
mov dword [rsp + 0x28], ecx
add rsp, 0x48
ret
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x3a59ad19
call rax
xor ecx, ecx
mov eax, ecx
add rsp, 0x48
ret
Function at 0x1400dc260
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0xc8
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x4363
je 0x1400dc291
jmp 0x1400dc320
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0xd0]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0xd8]
jge 0x1400dc31b
mov dword [rsp + 0x20], 0xa8
mov r9w, 0x91
mov r8, qword [section..data]
mov dx, 0x45
mov ecx, reloc.SHELL32.dll_ILFindLastID
call fcn.1400dc430
mov eax, dword [rsp + 0xd8]
mov ecx, dword [rsp + 0xd0]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xd8]
mov ecx, dword [rsp + 0xd0]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x44]
call fcn.1400dc260
mov eax, dword [rsp + 0xd8]
movzx ecx, al
mov eax, dword [rsp + 0xd0]
sar eax, cl
mov dword [rsp + 0x44], eax
jmp 0x1400dc3b4
mov byte [rsp + 0x40], 0x7c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 2
mov edx, 0x80000000
lea rcx, str.swapsunctuouslegalisticcrosses
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
movzx eax, byte [rsp + 0x40]
cmp eax, 0x43
jne 0x1400dc3af
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x44]
call fcn.1400dc260
mov eax, dword [rsp + 0xd8]
mov ecx, dword [rsp + 0xd0]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0xd0], eax
jmp 0x1400dc3b4
mov byte [rsp + 0x48], reloc.SHELL32.dll_ILCombine
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x54], al
cmp byte [rsp + 0x54], 0x67
je 0x1400dc3c6
jmp 0x1400dc40f
lea rcx, [rsp + 0x70]
call qword [sym.imp.COMDLG32.dll_FindTextW]
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0x40]
xor eax, 0x2a
mov byte [rsp + 0x40], al
mov dword [rsp + 0x20], 0x6f
mov r9w, 0xef
mov r8, qword [section..data]
mov dx, 9
mov ecx, 0xcc
call fcn.1400dc430
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0xd0], eax
mov eax, 0xf8
add rsp, 0xc8
ret
Function at 0x1400de040
Capabilities:
Parse pe header

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

Function at 0x1400e2684
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400e2480
Function at 0x1400e50e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400e5167
mov rsi, rbx
cmp word [rax], bp
je 0x1400e5126
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e5110
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e510c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e5b00
mov rdi, rax
test rax, rax
je 0x1400e5154
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400eaa50
mov rbp, rdi
xor ecx, ecx
call fcn.1400e3da8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ea2b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ea2d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ea2d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x180004040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword gs:[0x60]
mov edi, ecx
mov rdx, qword [rax + 0x18]
mov rbx, qword [rdx + 0x10]
mov r11, rbx
nop word [rax + rax]
mov r11, qword [r11]
cmp qword [r11 + 0x30], 0
je 0x180001117
mov rdx, qword [r11 + 0x60]
xor ecx, ecx
cmp word [rdx], cx
je 0x180001088
nop dword [rax]
cmp rcx, 0x103
jae 0x18000107b
movzx eax, byte [rdx + rcx*2]
mov byte [rsp + rcx + 0x20], al
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x180001060
cmp rcx, 0x104
jae 0x180001145
mov byte [rsp + rcx + 0x20], 0
lea r9, [rsp + 0x20]
movzx r8d, byte [rsp + 0x20]
test r8b, r8b
je 0x1800010d0
nop dword [rax]
movsx r8d, r8b
lea r9, [r9 + 1]
lea eax, [r8 + 0x20]
lea edx, [r8 - 0x41]
movzx ecx, al
cmp edx, 0x19
movzx eax, r8b
cmova ecx, eax
mov byte [r9 - 1], cl
movzx r8d, byte [r9]
test r8b, r8b
jne 0x1800010a0
movzx r8d, byte [rsp + 0x20]
mov edx, 0x9c
lea r10, [rsp + 0x20]
xor r9d, r9d
nop dword [rax]
xor eax, eax
test r8b, r8b
je 0x1800010fa
nop word [rax + rax]
inc rax
cmp byte [rsp + rax + 0x20], 0
jne 0x1800010f0
movsxd rcx, r9d
cmp rcx, rax
jae 0x180001113
movsx eax, byte [r10]
lea edx, [rdx + rdx*2]
add edx, eax
inc r9d
inc r10
jmp 0x1800010e0
cmp edx, edi
je 0x180001120
cmp rbx, r11
jne 0x180001040
mov rax, qword [r11 + 0x30]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180001880
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
call fcn.1800019a8
int3

Function at 0x180001150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r14d, edx
mov rsi, rcx
mov r8d, dword [rax + rcx + 0x88]
mov ebp, dword [r8 + rcx + 0x1c]
mov edi, dword [r8 + rcx + 0x20]
mov r12d, dword [r8 + rcx + 0x24]
add rdi, rcx
add r12, rcx
lea r15, [rcx + rbp]
test ebp, ebp
je 0x1800011f3
nop dword [rax + rax]
mov edx, dword [rdi]
mov r8d, 0x9c
add rdx, rsi
xor r9d, r9d
mov r10, rdx
movzx r11d, byte [rdx]
xor eax, eax
test r11b, r11b
je 0x1800011c9
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1800011c0
movsxd rcx, r9d
cmp rcx, rax
jae 0x1800011e4
movsx eax, byte [r10]
lea r8d, [r8 + r8*2]
add r8d, eax
inc r9d
inc r10
jmp 0x1800011b5
cmp r8d, r14d
je 0x180001210
inc ebx
add rdi, 4
cmp ebx, ebp
jb 0x1800011a0
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
movzx ecx, word [r12 + rbx*2]
mov eax, dword [r15 + rcx*4]
add rax, rsi
jmp 0x1800011f5
Function at 0x140001d4b
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001d6a
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000c4d8
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140005c1b
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
sub rsp, 0x388
xor eax, eax
mov r11d, 0xa
lea rsi, [rsp + 3]
mov r9, rcx
mov ecx, 0x37d
mov r10, rdx
mov rdi, rsi
rep stosb byte [rdi], al
mov rax, rcx
cqo
idiv r11
mov al, byte [r10 + rdx]
xor al, byte [r9 + rcx]
mov byte [rsi + rcx], al
inc rcx
cmp rcx, 0x37d
jne 0x140005c41
mov rdi, r8
rep movsb byte [rdi], byte [rsi]
add rsp, 0x388
pop rsi
pop rdi
ret

Function at 0x140006180
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000bf00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000bf00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001280
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rsi, [0x140045750]
mov ebx, 0x270
mov eax, dword [rcx + rax]
cmp dword [0x140045740], eax
jle 0x14000131f
lea rcx, [0x140045740]
call fcn.1400360d8
cmp dword [0x140045740], 0xffffffff
jne 0x14000131f
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x140046ad4], 0xffffffff
mov dword [0x140045754], eax
mov r8d, 1
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rsi + r8*4 + 4], eax
inc r8
cmp r8, rbx
jb 0x1400012f0
mov dword [0x140045750], ebx
lea rcx, [0x140045740]
call fcn.14003606c
cmp edi, 0xffffffff
jne 0x1400014a4
mov eax, dword [0x140045750]
cmp eax, ebx
jne 0x140001384
lea r8, [0x140045758]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub rbx, 1
jne 0x140001340
mov eax, dword [0x140045750]
jmp 0x14000145c
cmp eax, 0x4e0
jb 0x14000145c
mov r9d, 0x9c4
mov r8d, 0xd50
nop dword [rax + rax]
mov edx, dword [r9 + rsi]
xor edx, dword [r9 + rsi + 4]
btr edx, 0x1f
xor edx, dword [r9 + rsi]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r9 + rsi + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r9 + rsi - 0x9c0], ecx
add r9, 4
cmp r9, r8
jb 0x1400013a0
nop dword [rax]
mov edx, dword [r8 + rsi]
xor edx, dword [r8 + rsi + 4]
btr edx, 0x1f
xor edx, dword [r8 + rsi]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + rsi - 0xd4c]
shr edx, 1
xor ecx, edx
mov dword [r8 + rsi - 0x9c0], ecx
add r8, 4
cmp r8, 0x1380
jb 0x1400013e0
mov edx, dword [0x140046ad0]
xor edx, dword [0x140045754]
btr edx, 0x1f
xor edx, dword [0x140046ad0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [0x140045d84]
mov dword [0x140046110], ecx
xor eax, eax
mov dword [0x140045750], eax
mov ecx, dword [rsi + rax*4 + 4]
inc eax
mov dword [0x140045750], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x140046ad4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea ebx, [rdi + 1]
mov rcx, rsi
call fcn.140001b30
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x1400014e2
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x1400014e2
nop dword [rax]
mov rcx, rsi
call fcn.140001b30
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x1400014d0
shr rcx, 0x20
mov eax, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret