joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088542
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bcea8]
test eax, eax
je 0x1400885da
lea rax, [0x1400bce80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bceb0]
mov qword [rbp - 8], rax
jmp 0x1400885be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400885b2
cmp qword [rbp - 0x10], 0
je 0x1400885b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140088578
lea rax, [0x1400bce80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400885db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400886e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140088708
mov eax, 0
jmp 0x140088756
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140088731
mov eax, 0
jmp 0x140088756
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140088751
mov eax, 0
jmp 0x140088756
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008875c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400887da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400887d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400887d1
mov rax, qword [rbp - 8]
jmp 0x1400887ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400887a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7230
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d7c32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d7cca
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d7cae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d7ca2
cmp qword [rbp - 0x10], 0
je 0x2fc4d7ca2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d7c68
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d7ccb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7dd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7df8
mov eax, 0
jmp 0x2fc4d7e46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7e21
mov eax, 0
jmp 0x2fc4d7e46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d7e41
mov eax, 0
jmp 0x2fc4d7e46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x180001190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180001208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180001208
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1800011f5
nop
cmp rbx, rcx
jae 0x180001208
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1800011e0
cmp rbx, rcx
jae 0x180001208
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18000120a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180001220
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [0x180095940]
test rcx, rcx
jne 0x18000127e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800012a3
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180095940], rax
jmp 0x180001287
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x1800012a3
xor edx, edx
lea rcx, [0x180083080]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x18000130d
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x18000130b
dec eax
cmp word [rsp + rax*2 + 0x20], 0x5c
je 0x1800012e3
lea r8, [0x18008307c]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x18000130b
lea r8, [0x180083080]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x18000130b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18000130d
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180026150
add rsp, 0x240
pop rbx
ret
Function at 0x180004650
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x180083228]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, str.kernel32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfd0
lea rdx, str.NtClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfd0
lea rdx, str.NtCreateSection
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfd0
lea rdx, str.NtQueryAttributesFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfd0
lea rdx, [0x180083280]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfd0
lea rdx, [0x180083290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18001bfd0

Function at 0x180006970
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180006a43
cmp byte [rcx + 0x71], 0
je 0x180006a43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x180006a3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180006a04
sub eax, 1
je 0x180006a08
cmp eax, 2
jne 0x180006a3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180026150
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180006a36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180006a3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800069ec
xor al, al
jmp 0x1800069ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180026150
add rsp, 0x60
pop rbx
ret
Function at 0x180009080
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
mov esi, edx
mov r14, rcx
xor edx, edx
lea rcx, [0x180094ed0]
call fcn.1800260b8
mov r15d, 1
mov rdi, rax
mov ebx, r15d
test rax, rax
je 0x180009113
mov ebp, esi
shr ebp, 4
lea eax, [rbp + 1]
movzx r12d, ax
nop
xor r9d, r9d
mov r8, r12
mov rcx, rdi
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1800090fb
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call fcn.180001190
test rax, rax
jne 0x180009134
mov edx, ebx
lea rcx, [0x180094ed0]
inc ebx
call fcn.1800260b8
mov rdi, rax
test rax, rax
jne 0x1800090d0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
test rdi, rdi
je 0x180009113
inc bp
mov r8d, 6
movzx edx, bp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x18000922b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000922b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000922b
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and esi, 0xf
jbe 0x1800091b9
nop word [rax + rax]
cmp rbx, rcx
jae 0x18000922b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add esi, 0xffffffff
jne 0x1800091a0
cmp rbx, rcx
jae 0x18000922b
cmp word [rbx], 0
je 0x18000922b
mov rax, qword [r14]
mov edx, r15d
movzx edi, word [rbx]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x1800091e3
mov edx, edi
mov rcx, r14
call fcn.180006ff0
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wmemcpy_s]
test eax, eax
je 0x18000920f
cmp eax, 0xc
je 0x18000924d
cmp eax, 0x16
je 0x180009237
cmp eax, 0x22
je 0x180009237
cmp eax, 0x50
jne 0x180009242
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x180009237
mov dword [rax - 0x10], edi
xor ecx, ecx
mov rax, qword [r14]
mov word [rax + rdi*2], cx
mov eax, r15d
jmp 0x180009115
xor ecx, ecx
mov r15d, ecx
mov eax, ecx
jmp 0x180009115
mov ecx, 0x80070057
call fcn.180001130
int3
mov ecx, 0x80004005
call fcn.180001130
int3
mov ecx, 0x8007000e
call fcn.180001130
int3
Function at 0x1800121e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
lea r8, [rcx + 9]
mov rdx, rcx
mov rax, rcx
jne 0x180012215
cmp rcx, r8
je 0x18001220e
nop word [rax + rax]
movzx ecx, byte [rdx + 0xa]
xor byte [rax], cl
inc rax
cmp rax, r8
jne 0x180012200
mov byte [r8], 1
mov rax, rdx
ret

Function at 0x180012220
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x50], 0
lea r8, [rcx + 0x50]
mov rdx, rcx
mov rax, rcx
jne 0x1800122c7
xor r10d, r10d
cmp rcx, r8
ja 0x1800122a0
lea r9, [rcx + 0x52]
movsx ecx, word [rcx + 0x52]
movd xmm1, ecx
lea rcx, [rax + 0x4e]
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
cmp rax, r9
ja 0x18001225f
cmp rcx, r9
jae 0x1800122a0
nop
movdqu xmm0, xmmword [rax]
add r10, 0x20
xorps xmm0, xmm1
movdqu xmmword [rax], xmm0
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x20], xmm0
movdqu xmm0, xmmword [rax + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x30], xmm0
add rax, 0x40
cmp r10, 0x20
jne 0x180012260
cmp rax, r8
je 0x1800122c0
nop word [rax + rax]
movzx ecx, word [rdx + 0x52]
xor word [rax], cx
add rax, 2
cmp rax, r8
jne 0x1800122b0
mov byte [r8], 1
mov rax, rdx
ret

Function at 0x1800122d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x58], 0
lea r8, [rcx + 0x58]
mov rdx, rcx
mov rax, rcx
jne 0x180012377
xor r10d, r10d
cmp rcx, r8
ja 0x180012350
lea r9, [rcx + 0x5a]
movsx ecx, word [rcx + 0x5a]
movd xmm1, ecx
lea rcx, [rax + 0x56]
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
cmp rax, r9
ja 0x18001230f
cmp rcx, r9
jae 0x180012350
nop
movdqu xmm0, xmmword [rax]
add r10, 0x20
xorps xmm0, xmm1
movdqu xmmword [rax], xmm0
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x20], xmm0
movdqu xmm0, xmmword [rax + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x30], xmm0
add rax, 0x40
cmp r10, 0x20
jne 0x180012310
cmp rax, r8
je 0x180012370
nop word [rax + rax]
movzx ecx, word [rdx + 0x5a]
xor word [rax], cx
add rax, 2
cmp rax, r8
jne 0x180012360
mov byte [r8], 1
mov rax, rdx
ret

Function at 0x1800125f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x4a], 0
lea r8, [rcx + 0x4a]
mov rdx, rcx
mov rax, rcx
jne 0x180012697
xor r10d, r10d
cmp rcx, r8
ja 0x180012670
lea r9, [rcx + 0x4c]
movsx ecx, word [rcx + 0x4c]
movd xmm1, ecx
lea rcx, [rax + 0x48]
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
cmp rax, r9
ja 0x18001262f
cmp rcx, r9
jae 0x180012670
nop
movdqu xmm0, xmmword [rax]
add r10, 0x20
xorps xmm0, xmm1
movdqu xmmword [rax], xmm0
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x20], xmm0
movdqu xmm0, xmmword [rax + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x30], xmm0
add rax, 0x40
cmp r10, 0x20
jne 0x180012630
cmp rax, r8
je 0x180012690
nop word [rax + rax]
movzx ecx, word [rdx + 0x4c]
xor word [rax], cx
add rax, 2
cmp rax, r8
jne 0x180012680
mov byte [r8], 1
mov rax, rdx
ret
Function at 0x1800126a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x3a], 0
lea r8, [rcx + 0x3a]
mov rdx, rcx
mov rax, rcx
jne 0x1800126d7
cmp rcx, r8
je 0x1800126d0
nop word [rax + rax]
movzx ecx, word [rdx + 0x3c]
xor word [rax], cx
add rax, 2
cmp rax, r8
jne 0x1800126c0
mov byte [r8], 1
mov rax, rdx
ret

Function at 0x18001aaa0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180094010]
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 0x18001aaef
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180095a70]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18001ab2d
cmp rsi, r14
jb 0x18001ab25
cmp rsi, r15
jae 0x18001ab25
cmp qword [rsi + 8], 0
jne 0x18001acf7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18001ab10
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 0x18001abc2
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 0x18001abb9
nop word [rax + rax]
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001abb9
cmp dword [rsp + 0x40], 0x10000
je 0x18001ac3b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18001abb9
sub rbx, rbp
cmp rbx, r14
jae 0x18001ab80
test rsi, rsi
jne 0x18001aca0
cmp rdi, r15
ja 0x18001acdf
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 0x18001acdf
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001acdf
cmp dword [rsp + 0x40], 0x10000
je 0x18001ac71
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 0x18001abf2
jmp 0x18001acdf
test rbx, rbx
je 0x18001abb9
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 0x18001aca0
cmp rbx, r14
jae 0x18001ab60
jmp 0x18001abc2
test rdi, rdi
je 0x18001acdf
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 0x18001aca0
cmp rdi, r15
jbe 0x18001abd0
jmp 0x18001acdf
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 0x18001acb0
mov rax, qword [0x180095a70]
mov qword [rsi], rax
mov qword [0x180095a70], 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.180026150
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18001b710
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18001b85f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18001b856
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x18001b80c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18001b80c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18001b80c
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18001b7cd
mov rcx, qword [0x1800958d0]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x18001b835
lea rbx, [rdi + 0xc]
jmp 0x18001b801
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x18001b801
mov rcx, qword [0x1800958d0]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18001b835
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_32
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001b773
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18001b851
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x18001b851
mov rcx, qword [0x1800958d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180026150
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x18001b880
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.18001b710
test eax, eax
jne 0x18001b8c7
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x18001b93e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18001b926
mov qword [rsp + 0x38], rsi
nop
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 0x18001b91a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18001b560
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18001b8e0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18001b960
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 [0x180094010]
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 [0x180095a60]
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 0x18001b9d3
mov eax, 0xa
jmp 0x18001ba66
test esi, esi
je 0x18001b9f5
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 0x18001ba18
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18001ba18
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18001ba11
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18001ba18
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.180026150
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret