joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011c800
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rdi, qword [rsp + 0xa0]
xor eax, eax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
test rdi, rdi
je 0x14011ca52
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x38]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x14011ca52
mov eax, 0x5a4d
mov qword [rsp + 0x80], r15
mov r15d, dword [rsp + 0x40]
cmp word [rdi], ax
jne 0x14011ca4a
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x14011ca4a
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0xb0], rbp
lea rbp, [rcx + rdi]
jne 0x14011ca42
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x88], r14
cmp cx, ax
jne 0x14011c8bf
xor r14d, r14d
jmp 0x14011c8f1
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x14011c8e3
mov ecx, 0x8664
cmp cx, ax
je 0x14011c8e3
cmp r8w, ax
jne 0x14011ca32
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0xa8], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x14011ca2a
cmp rbx, rdi
jbe 0x14011ca2a
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x14011ca2a
xorps xmm0, xmm0
lea rdx, [rsp + 0x50]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14011ca2a
test dword [rsp + 0x70], 0x1000
je 0x14011ca2a
test dword [rsp + 0x78], 0x1000000
je 0x14011ca2a
mov eax, dword [rsp + 0x74]
xor ecx, ecx
test al, 0x10
jne 0x14011c97c
test al, 0x20
jne 0x14011c97c
test al, 0x40
jne 0x14011c97c
test al, al
jns 0x14011c981
mov ecx, 1
test ecx, ecx
je 0x14011ca2a
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.14011d0b0
mov edx, 0x14
mov dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14011ca2a
test r14d, r14d
jne 0x14011c9da
mov eax, dword [0x1401b21e0]
mov dword [rbx], eax
movzx eax, byte [0x1401b21e4]
mov byte [rbx + 4], al
jmp 0x14011c9fe
test esi, esi
je 0x14011c9ea
mov rax, qword [0x1401b21d8]
mov qword [rbx], rax
jmp 0x14011c9fe
movzx eax, word [0x1401b21e8]
mov word [rbx], ax
movzx eax, byte [0x1401b21ea]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov edx, 0x14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret
Function at 0x14011e9f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1401b2190]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401c289c], eax
jle 0x14011eb2d
lea rcx, [0x1401c289c]
call fcn.140126518
cmp dword [0x1401c289c], 0xffffffff
jne 0x14011eb2d
xor edi, edi
mov qword [0x1401c28c8], rdi
mov qword [0x1401c28d8], rdi
mov qword [0x1401c28e0], rdi
mov qword [0x1401c28d8], rdi
mov qword [0x1401c28e0], 7
mov word [0x1401c28c8], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14018b850]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x1401c28c8]
test eax, eax
js 0x14011eac3
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14011ead8
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14011eab0
mov rcx, rbx
call fcn.1400692d0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14011ead8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x1401c28d8]
test rcx, rcx
je 0x14011eb10
mov rax, rbx
cmp qword [0x1401c28e0], 8
cmovae rax, qword [0x1401c28c8]
movzx edx, word [rax + rcx*2 - 2]
cmp dx, 0x5c
je 0x14011eb10
cmp dx, 0x2f
je 0x14011eb10
mov rcx, rbx
call fcn.14011f450
lea rcx, [0x14013c480]
call fcn.14012689c
lea rcx, [0x1401c289c]
call fcn.1401264b8
mov rax, rbx
jmp 0x14011eb34
lea rax, [0x1401c28c8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140126360
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14011eb50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1401b2190]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401c2898], eax
jle 0x14011ec8d
lea rcx, [0x1401c2898]
call fcn.140126518
cmp dword [0x1401c2898], 0xffffffff
jne 0x14011ec8d
xor edi, edi
mov qword [0x1401c2878], rdi
mov qword [0x1401c2888], rdi
mov qword [0x1401c2890], rdi
mov qword [0x1401c2888], rdi
mov qword [0x1401c2890], 7
mov word [0x1401c2878], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14018b860]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x1401c2878]
test eax, eax
js 0x14011ec23
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14011ec38
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14011ec10
mov rcx, rbx
call fcn.1400692d0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14011ec38
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x1401c2888]
test rcx, rcx
je 0x14011ec70
mov rax, rbx
cmp qword [0x1401c2890], 8
cmovae rax, qword [0x1401c2878]
movzx edx, word [rax + rcx*2 - 2]
cmp dx, 0x5c
je 0x14011ec70
cmp dx, 0x2f
je 0x14011ec70
mov rcx, rbx
call fcn.14011f450
lea rcx, [0x14013c4a0]
call fcn.14012689c
lea rcx, [0x1401c2898]
call fcn.1401264b8
mov rax, rbx
jmp 0x14011ec94
lea rax, [0x1401c2878]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140126360
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140123600
Capabilities:
Get process image filename

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x50
test rdx, rdx
jne 0x140123623
xor al, al
jmp 0x140123716
xor dil, dil
cmp dword [rsp + 0x60], 0
mov byte [rsp + 0x40], dil
je 0x140123713
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14012366e
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140123713
and dword [rsp + 0x44], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, str.QueryFullProcessImageNameW
lea rax, [rsp + 0x44]
lea rcx, str.kernel32.dll
mov qword [rsp + 0x20], rax
call fcn.140122204
mov dil, byte [rsp + 0x40]
test dil, dil
jne 0x14012370a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, dword [rsp + 0x70]
xor edx, edx
mov r8, qword [rsp + 0x68]
mov rcx, rax
mov rbx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
setne dil
test eax, eax
jne 0x14012370a
mov r8d, dword [rsp + 0x70]
mov rcx, rbx
mov rdx, qword [rsp + 0x68]
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
setne dil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140123724
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.dwmapi.dll
call fcn.1401239b4
lea rcx, str.uxtheme.dll
mov qword [0x1401b8880], rax
call fcn.1401239b4
mov rcx, qword [0x1401b8880]
mov qword [0x1401b8888], rax
test rcx, rcx
je 0x140123790
lea rdx, str.DwmIsCompositionEnabled
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401b8880]
lea rdx, str.DwmGetWindowAttribute
mov qword [0x1401b8898], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b88a0], rax
mov rax, qword [0x1401b8888]
test rax, rax
je 0x1401237fd
lea rdx, str.DrawThemeTextEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401b8888]
lea rdx, str.OpenThemeData
mov qword [0x1401b88a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401b8888]
lea rdx, str.CloseThemeData
mov qword [0x1401b88b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401b8888]
lea rdx, str.GetThemeSysFont
mov qword [0x1401b88b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b88c0], rax
add rsp, 0x28
jmp fcn.14012295c
Function at 0x140123808
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x440
mov rax, qword [0x1401b2190]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x1401238cc
cmp di, word [rcx]
je 0x1401238cc
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8d, [rdi + 0x25]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1401238cc
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x1401238c8
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.downlevel
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x1401238cc
mov al, 1
jmp 0x1401238ce
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140126360
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret

Function at 0x1401239b4
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x240
mov rax, qword [0x1401b2190]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
je 0x140123ab7
cmp si, word [rcx]
je 0x140123ab7
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x140123ab2
call fcn.14012346c
cmp eax, 0x3d
jg 0x140123ab2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
je 0x140123ab2
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140123a4e
lea rax, [rdx + 2]
add rcx, rax
cmp rcx, rbp
ja 0x140123ab2
lea ecx, [rdx - 1]
mov eax, 0x5c
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x140123a93
mov eax, 0x2f
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x140123a93
lea r8, [0x14018fc70]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rax, rdi
jmp 0x140123ab9
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140126360
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140125930
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
xor esi, esi
mov rbx, rcx
mov rdi, rdx
test rdx, rdx
je 0x140125aab
cmp si, word [rdx]
je 0x140125aab
cmp qword [rcx + 8], rsi
je 0x14012596d
call fcn.140125820
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140125aab
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x40
jb 0x140125aab
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x18], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140125aab
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rdx, rax
test rax, rax
je 0x140125aab
lea r8, [rdi + rax]
mov qword [rbx + 0x10], r8
cmp dword [rax + 0x3c], 0x40
jb 0x140125aab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r8, rax
jb 0x140125aab
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140125aab
cmp dword [rcx], 0x4550
jne 0x140125aab
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x140125a84
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x140125a7b
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x140125aab
mov dword [rbx + 0x30], 3
lea rax, [rcx + 0x108]
jmp 0x140125a92
mov dword [rbx + 0x30], 2
jmp 0x140125a72
mov dword [rbx + 0x30], 1
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x28], rax
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [rax + rdx*8]
cmp r8, rcx
jb 0x140125aab
mov al, 1
jmp 0x140125ab5
mov rcx, rbx
call fcn.140125820
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140125b64
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x30]
lea rcx, str.crypt32.dll
and qword [rbx], 0
and qword [rbx + 8], 0
and qword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
and qword [rbx + 0x30], 0
and qword [rbx + 0x38], 0
call fcn.1401239b4
mov rdi, rax
test rax, rax
je 0x140125c6a
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFindCertificateInStore
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14018b088]
mov rcx, rdi
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptDecodeObject
mov rcx, rdi
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgGetParam
mov rcx, rdi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptQueryObject
mov rcx, rdi
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400010f8
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor ebp, ebp
lea r9, [rax + 0x10]
and dword [rax + 0x10], ebp
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbp + 0xb]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
xor edi, edi
cmp dword [rbx], edi
jbe 0x140001192
mov esi, edi
lea rcx, [rbx + 0x30]
imul rax, rsi, 0x128
lea rdx, [0x140001ed0]
add rcx, rax
call qword [sym.imp.ntoskrnl.exe_strcmp]
test eax, eax
je 0x14000117a
inc edi
cmp edi, dword [rbx]
jb 0x140001151
jmp 0x140001192
imul rcx, rsi, 0x128
mov rbp, qword [rcx + rbx + 0x18]
test r14, r14
je 0x140001192
mov ecx, dword [rcx + rbx + 0x20]
mov dword [r14], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140001294
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r11, qword [rcx + 0x18]
mov r14, r8
mov r15, rdx
mov rsi, rcx
movsxd r9, dword [r11 + 0x3c]
movzx eax, word [r9 + r11 + 0x14]
lea r10, [r9 + r11]
add rax, 0x18
add r10, rax
movzx eax, word [r9 + r11 + 6]
lea r9, [rax + rax*4]
lea r8, [r10 + r9*8]
cmp r10, r8
jae 0x1400013fa
mov eax, dword [r10 + 0x24]
bt eax, 0x19
jae 0x1400012ff
mov eax, dword [r10 + 8]
dec eax
cmp eax, 0xfff
jbe 0x140001305
add r10, 0x28
jmp 0x1400012df
mov edi, dword [r10 + 0xc]
add rdi, r11
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400013fa
mov eax, dword [0x1400057a8]
test al, 1
jne 0x14000134c
or eax, 1
lea rdx, [0x140001f00]
lea rcx, [0x140001f20]
mov dword [0x1400057a8], eax
call fcn.140001228
mov qword [0x1400057b0], rax
jmp 0x140001353
mov rax, qword [0x1400057b0]
mov rcx, rdi
call rax
mov edx, 0x1000
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rcx, rax
call qword [0x1400057b0]
mov r8d, 0x33
lea rdx, [rbp - 0x40]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rcx, rdi
mov dword [rbp - 0x40], 0x24548948
mov dword [rbp - 0x3c], 0x4c894810
mov dword [rbp - 0x38], 0x83480824
mov dword [rbp - 0x34], 0xb84838ec
mov dword [rbp - 0x28], 0x24448948
mov dword [rbp - 0x24], 0x448b4820
mov dword [rbp - 0x20], 0x8b482024
mov dword [rbp - 0x1c], 0x48482454
mov dword [rbp - 0x18], 0x40244c8b
mov dword [rbp - 0x14], 0x8348d0ff
mov word [rbp - 0x10], 0x38c4
mov byte [rbp - 0xe], 0xc3
mov qword [rbp - 0x30], r15
call fcn.140001a80
mov rcx, qword [rsi + 0xe0]
mov al, 1
mov qword [r14 + 8], rcx
mov rcx, qword [rsi + 0x18]
mov qword [r14], rcx
xchg qword [rsi + 0xe0], rdi
jmp 0x1400013fc
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14000147c
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x20
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 5
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140012290
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 0x1400122ed
lea rbx, [0x14004fda0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400122d4
cmp r10, 2
jb 0x1400122d4
cmp byte [r9], r8b
jne 0x1400122d4
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 0x1400122b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001232f
lea rbx, [0x14004fda0]
cmp r8b, 0x23
jne 0x140012313
cmp byte [r9], r8b
jne 0x140012313
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 0x140012300
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140012470
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14001248a
mov qword [r8], 0
lea rdx, [0x140055b30]
call fcn.140012340
mov rbx, rax
test rax, rax
jne 0x1400124aa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140012581
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 0x140012581
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140012581
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140012581
cmp rdi, 0xffffffffffffffff
je 0x140012581
mov rax, qword [0x1400e1bf0]
test rax, rax
je 0x14001251e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140012581
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 0x14001256e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400e1bf0]
test rax, rax
je 0x140012563
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001258a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14001257c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14001258c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret