joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004bca0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18008a46c], ebp
je 0x18004bcf7
cmp rbx, 0x20
jae 0x18004bce0
xor ecx, ecx
jmp 0x18004bce2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18008a46c], ebp
jne 0x18004bcd6
cmp qword [0x18008a8a0], r15
je 0x18004bdf1
test rdi, rdi
jne 0x18004bd17
mov ecx, esi
call fcn.18004b810
mov ebp, eax
jmp 0x18004bdf6
mov ecx, dword [0x18008b3fc]
mov ebx, r15d
test ecx, ecx
je 0x18004bd3f
mov r8, qword [0x18008b3f0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18004bd49
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18004bd30
mov ebp, 4
jmp 0x18004bdf6
cmp ebx, 0xffffffff
je 0x18004bd3f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18004bde8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18004b530
mov edx, esi
mov ecx, ebx
call fcn.18004b6e0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18004bdf6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004bdd2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004bdc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18004bda0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18008a8a0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18004bdf6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18004bdf6
mov ebp, 2
xchg dword [0x18008a46c], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18004e830
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x180089070]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rdx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x18004e862
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18004e88c
test rbx, rbx
je 0x18004e888
mov dword [rbx], 0
mov byte [rbx + 4], 0
lea rdi, [0x1800569e0]
mov qword [rbx + 8], rdi
mov al, 1
jmp 0x18004e8ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
lea rdi, [0x1800569e0]
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.180050760
cmp dword [rax], 3
jne 0x18004e8d6
test rbx, rbx
je 0x18004e8eb
mov dword [rbx], 0
mov byte [rbx + 4], 0
jmp 0x18004e8e7
test rbx, rbx
je 0x18004e911
mov dword [rbx], r14d
test r14d, r14d
setne al
mov byte [rbx + 4], al
mov qword [rbx + 8], rdi
xor al, al
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180052cf0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x40]
call fcn.180005240
nop
call fcn.18004d480
mov r8, rax
mov edx, r14d
lea rcx, [rsp + 0x30]
call fcn.18004c9d0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.18004e290
lea rdx, [0x180085da8]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x18004fb20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov rsi, rcx
jb 0x18004fb3f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18004fb6e
mov r8, rdi
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.18004fa00
mov eax, dword [rax]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x18004fb88
lea rax, [0x1800569e0]
mov dword [rdi], 0
mov qword [rdi + 8], rax
mov byte [rdi + 4], 0
bt ebx, 0xa
jae 0x18004fbcf
mov rcx, rsi
call fcn.18004f800
test al, al
je 0x18004fbba
test bl, 0x10
mov eax, 4
mov ecx, 0xb
cmovne eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800505a0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x1800505df
test r8, r8
je 0x180050693
xor eax, eax
mov dword [r8], eax
mov byte [r8 + 4], al
lea rax, [0x1800569e0]
mov qword [r8 + 8], rax
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rdx - 3]
test eax, 0xfffffff7
je 0x180050631
cmp qword [rcx + 0x18], 8
jb 0x1800505f3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180050679
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x180050618
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x180050679
cmp eax, 0x7b
je 0x180050679
cmp eax, 0x57
je 0x180050679
cmp eax, 0xa1
je 0x180050679
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18005067b
cmp qword [rcx + 0x18], 8
jb 0x18005063b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180050679
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x180050660
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x180050679
cmp eax, 0x7b
je 0x180050679
cmp eax, 0x57
je 0x180050679
cmp eax, 0xa1
je 0x180050679
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18005067b
xor eax, eax
lea r9, str.boost::filesystem::remove
mov r8, rdi
mov rdx, rbx
mov ecx, eax
call fcn.18004f740
test al, al
je 0x1800506a0
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x180050760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180089070]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x180050795
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x1800507b6
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.18004fa00
jmp 0x18005091d
xor ebp, ebp
bt r15d, 0xa
jae 0x1800508e8
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1800507d0
mov rdx, qword [rdi]
mov qword [rsp + 0x48], rbp
movdqa xmm0, xmmword [0x180056c40]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], bp
jne 0x1800507f0
lea rcx, [rsp + 0x48]
call fcn.18004e700
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180050888
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180050882
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180050882
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180053364
nop
movdqa xmm0, xmmword [0x180056c40]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
cmp rbx, 0xffffffffffffffff
jne 0x1800508b2
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.18004fa00
nop
jmp 0x18005091d
mov rcx, rdi
call fcn.18004f800
test al, al
jne 0x1800508de
mov edx, r15d
mov rcx, rdi
call fcn.18004f8d0
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18005091d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x180050900
mov dword [r14], ebp
mov byte [r14 + 4], 0
lea rax, [0x1800569e0]
mov qword [r14 + 8], rax
mov ebx, r15d
mov edx, r15d
mov rcx, rdi
call fcn.18004f8d0
and ebx, 0x10
setne bpl
add ebp, 2
mov dword [rsi], ebp
mov dword [rsi + 4], eax
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180052cf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x100
mov rax, qword gs:[0x60]
mov ebx, edx
mov r11d, ecx
mov r8, qword [rax + 0x18]
mov r9, qword [r8 + 0x20]
mov r10, qword [r8 + 0x28]
test r9, r9
je 0x1800010ba
mov edi, pe_overlay
nop word [rax + rax]
mov rdx, qword [r9 + 0x50]
movzx r8d, word [r9 + 0x48]
xor eax, eax
test rdx, rdx
je 0x1800011dd
movzx ecx, byte [rdx]
cmp cl, 0x61
jb 0x180001068
sub cl, 0x20
inc rax
mov byte [rsp + rax + 0x1f], cl
jmp 0x18000106f
mov byte [rsp + rax + 0x20], cl
inc rax
add rdx, 2
add r8w, di
jne 0x180001054
mov byte [rsp + rax + 0x20], r8b
movzx eax, byte [rsp + 0x20]
xor ecx, ecx
lea rdx, [rsp + 0x20]
test al, al
je 0x1800010a4
nop
imul ecx, ecx, 0x1003f
movsx eax, al
inc rdx
add ecx, eax
mov al, byte [rdx]
test al, al
jne 0x180001090
btr ecx, 0x1f
cmp ecx, r11d
je 0x1800010cd
cmp r10, r9
je 0x1800010ba
mov r9, qword [r9]
test r9, r9
jne 0x180001040
xor eax, eax
mov rbx, qword [rsp + 0x120]
add rsp, 0x100
pop rdi
ret
mov qword [rsp + 0x110], rbp
mov qword [rsp + 0x118], rsi
mov rsi, qword [r9 + 0x20]
movsxd rax, dword [rsi + 0x3c]
add rax, rsi
mov ebp, dword [rax + 0x88]
mov r11d, dword [rax + 0x8c]
mov r8d, dword [rbp + rsi + 0x20]
mov r9d, dword [rbp + rsi + 0x24]
add r8, rsi
add r9, rsi
nop word [rax + rax]
mov edx, dword [r8]
xor ecx, ecx
add rdx, rsi
movzx eax, byte [rdx]
test al, al
je 0x180001134
nop
imul ecx, ecx, 0x1003f
movsx eax, al
inc rdx
add ecx, eax
mov al, byte [rdx]
test al, al
jne 0x180001120
btr ecx, 0x1f
cmp ecx, ebx
je 0x180001146
add r8, 4
add r9, 2
jmp 0x180001110
mov eax, dword [rbp + rsi + 0x1c]
movzx edx, word [r9]
mov edi, dword [r8]
lea rcx, [rsi + rax]
lea eax, [rsi + rbp]
mov rbp, qword [rsp + 0x110]
mov ebx, dword [rcx + rdx*4]
add rdi, rsi
add rbx, rsi
cmp ebx, eax
jb 0x1800011d2
add eax, r11d
cmp ebx, eax
ja 0x1800011d2
xor edx, edx
lea rcx, [rsp + 0x91]
mov byte [rsp + 0x90], 0
lea r8d, [rdx + 0x63]
call fcn.1800063a0
lea rcx, [rsp + 0x90]
mov r11, rbx
sub rcx, rbx
nop dword [rax]
movzx eax, byte [r11]
inc r11
mov byte [rcx + r11 - 1], al
test al, al
jne 0x1800011a0
movzx eax, byte [rsp + 0x90]
lea rcx, [rsp + 0x90]
test al, al
je 0x1800011d2
cmp al, 0x2e
je 0x1800011ee
mov al, byte [rcx + 1]
inc rcx
test al, al
jne 0x1800011c4
mov rax, rbx
mov rsi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x120]
add rsp, 0x100
pop rdi
ret
mov edx, 0xe96588
mov ecx, 0x536cd652
call section..text
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x1800011d5
Function at 0x180002f94
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180002e08

Function at 0x1800070c8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1800026fc
xor ebx, ebx
mov rdi, rax
cmp qword [0x18000c7c8], rbx
jne 0x1800071ce
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1800072a3
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800072a3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18000c7c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18000c7d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18000c7d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18000c7e8], rax
test rax, rax
je 0x1800071c5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18000c7e0], rax
jmp 0x1800071d5
mov rax, qword [0x18000c7e0]
jmp 0x1800071dc
mov rax, qword [0x18000c7e0]
mov r11, qword [0x18000c7e8]
cmp rax, rdi
je 0x180007244
cmp r11, rdi
je 0x180007244
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18000c7e8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180007244
test rax, rax
je 0x180007244
call rsi
test rax, rax
je 0x18000723e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000723e
test byte [rsp + 0x38], 1
jne 0x180007244
bts ebp, 0x15
jmp 0x180007282
mov rcx, qword [0x18000c7d0]
cmp rcx, rdi
je 0x180007282
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180007282
call rax
mov rbx, rax
test rax, rax
je 0x180007282
mov rcx, qword [0x18000c7d8]
cmp rcx, rdi
je 0x180007282
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180007282
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18000c7c8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800072a3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800072a5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800074c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000bcc0]
jne 0x18000660a
rol rcx, 0x10
test cx, 0xffff
jne 0x180006606
repz ret
ror rcx, 0x10
jmp 0x18000741c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000c950]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18000ca48]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800074a1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000c950]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800074c3
mov rax, qword [rsp + 0x88]
mov qword [0x18000ca48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000c9e8], rax
mov rax, qword [0x18000ca48]
mov qword [0x18000c8c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000c9d0], rax
mov dword [0x18000c8b0], 0xc0000409
mov dword [0x18000c8b4], 1
mov rax, qword [0x18000bcc0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000bcc8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000c948], eax
mov ecx, 1
call fcn.18000730c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800093c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000c948], 0
jne 0x18000754a
mov ecx, 1
call fcn.18000730c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400011e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rdi
mov eax, 0x13c0
call fcn.140003740
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov edi, edx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov r8d, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x24], eax
inc r8
cmp r8, r9
jb 0x140001230
mov dword [rsp + 0x20], r9d
test edi, edi
jne 0x1400012d0
lea r8, [rsp + 0x28]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140001260
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
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
jmp 0x140001322
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x13d0], rbx
call fcn.140002650
mov ecx, eax
mov rbx, rdi
imul rcx, rdi
cmp ecx, edi
jae 0x140001314
mov eax, edi
xor edx, edx
neg eax
div edi
mov edi, edx
cmp ecx, edx
jae 0x140001314
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.140002650
mov ecx, eax
imul rcx, rbx
cmp ecx, edi
jb 0x140001300
mov rbx, qword [rsp + 0x13d0]
shr rcx, 0x20
mov eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140002820
add rsp, 0x13c0
pop rdi
ret
Function at 0x140002650
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400026b1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140002670
mov ecx, dword [r9]
jmp 0x14000279b
cmp ecx, 0x4e0
jb 0x14000279b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
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 0x1400026d0
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 0x140002720
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
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 [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 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, 8
ret

Function at 0x140003270
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100082b00], rdi
je 0x10005c8ec
cmp rax, rdi
jne 0x10005c8df
mov r12d, 1
jmp 0x10005c8ec
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005c8c5
mov eax, dword [0x100082af8]
cmp eax, 1
jne 0x10005c901
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10005c968
mov eax, dword [0x100082af8]
cmp eax, ebx
jne 0x10005c95e
mov dword [0x100082af8], 1
lea r13, [0x100001cb0]
lea rdi, [0x100001c98]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10005c950
cmp eax, ebx
jne 0x10005c950
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10005c945
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10005c92e
cmp eax, ebx
je 0x10005c968
mov eax, 0xff
jmp 0x10005cab0
mov dword [0x100081a4c], 1
mov eax, dword [0x100082af8]
cmp eax, 1
jne 0x10005c990
lea rdx, [0x100001c90]
lea rcx, [0x100001b90]
call sub.msvcrt.dll__initterm
mov dword [0x100082af8], 2
cmp r12d, ebx
jne 0x10005c99f
mov rax, rbx
xchg qword [0x100082b00], rax
cmp qword [0x100082b18], rbx
je 0x10005c9c7
lea rcx, [0x100082b18]
call fcn.10005d32c
cmp eax, ebx
je 0x10005c9c7
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100082b18]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10005c9dd
mov eax, 0xff
jmp 0x10005cab0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10005ca62
cmp word [rcx], bx
je 0x10005c9f8
cmp edx, ebx
jne 0x10005ca62
cmp word [rcx], bx
je 0x10005ca0e
cmp word [rcx], 0x20
ja 0x10005ca0e
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10005c9f8
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100018f40
mov dword [0x100081a48], eax
cmp dword [0x100081a2c], ebx
jne 0x10005ca4c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100081a4c], ebx
jne 0x10005ca60
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100081a48]
jmp 0x10005cab0
cmp word [rcx], 0x22
jne 0x10005ca75
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10005c9e9
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100134000
add rsp, 0x28
jmp 0x10005c88c