joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005b45c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx]
lea r15, [rcx + 0x10]
xor r13d, r13d
mov qword [rcx + 8], rax
mov r12, rdx
mov r14, rcx
mov word [rax], r13w
mov rdi, qword [rcx + 8]
lea esi, [r13 + 7]
sub rdi, qword [rcx]
sar rdi, 1
mov rax, qword [r14]
cmp rax, r15
jne 0x14005b4af
mov rbx, rsi
jmp 0x14005b4b8
mov rbx, qword [r15]
sub rbx, rax
sar rbx, 1
sub rbx, rdi
lea rbp, [rax + rdi*2]
cmp rbx, 0x7fffffff
jbe 0x14005b4cd
or eax, 0xffffffff
jmp 0x14005b4d0
lea eax, [rbx + rbx]
mov dword [rsp + 0x70], eax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x70]
shr ecx, 1
mov dword [rsp + 0x70], ecx
test eax, eax
jne 0x14005b525
mov edx, r13d
test ecx, ecx
je 0x14005b541
lea r8d, [rcx - 1]
cmp word [rbp + r8*2], r13w
jne 0x14005b541
mov dword [rsp + 0x70], r8d
mov ecx, r8d
jmp 0x14005b541
cmp eax, 0xea
jne 0x14005b533
mov edx, 1
jmp 0x14005b541
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov eax, ecx
test edx, edx
je 0x14005b575
js 0x14005b578
cmp rax, rbx
jbe 0x14005b56e
lea rdx, [rax + rdi]
cmp rdx, rax
jb 0x14005b567
mov rcx, r14
call fcn.140045d7c
test al, al
jne 0x14005b4a2
mov edx, 0x8007000e
jmp 0x14005b578
mov edx, 0x8000ffff
jmp 0x14005b578
add rdi, rax
mov rax, qword [r14]
cmp rax, r15
je 0x14005b589
mov rsi, qword [r15]
sub rsi, rax
sar rsi, 1
cmp rdi, rsi
jbe 0x14005b590
int 0x2c
mov rbx, qword [rsp + 0x60]
lea rcx, [rax + rdi*2]
mov rbp, qword [rsp + 0x68]
mov eax, edx
mov rsi, qword [rsp + 0x78]
mov qword [r14 + 8], rcx
mov word [rcx], r13w
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14005b708
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rsi, qword [rcx]
mov rax, qword [rcx + 8]
mov rbx, rsi
mov rdx, rsi
cmp rax, 2
jb 0x14005b741
cmp word [rsi + 2], 0x3a
jne 0x14005b741
add rbx, 4
lea r8, [rsi + rax*2]
mov r14d, 0x5c
jmp 0x14005b768
mov rax, r8
sub r8, 2
cmp word [r8], 0x2e
je 0x14005b783
cmp word [r8], 0x2f
je 0x14005b78a
cmp word [r8], r14w
je 0x14005b78a
cmp r8, rbx
jne 0x14005b74d
jmp 0x14005b78d
mov rax, r8
sub r8, 2
cmp word [r8], 0x2f
je 0x14005b78a
cmp word [r8], r14w
je 0x14005b78a
cmp r8, rbx
jne 0x14005b76f
jmp 0x14005b78d
mov r8, rax
lea rax, [rbp - 0x10]
sub r8, rdx
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x10]
sar r8, 1
xor edi, edi
mov qword [rbp - 0x18], rax
mov word [rbp - 0x10], di
call fcn.140045fb0
test al, al
je 0x14005b888
mov rax, qword [rbp - 0x20]
sub rbx, rsi
sar rbx, 1
lea rcx, [rax + rbx*2]
mov edx, r14d
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14005b885
mov word [rax], di
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14005b84d
mov rcx, qword [rbp - 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14005b878
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14005b878
mov rbx, qword [rbp - 0x20]
mov ecx, 2
call fcn.1400636d4
mov r8, rbx
lea rdx, str.WPPFMT_:_error_:_Failed_to_create_directory__ws_n
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
jmp 0x14005b888
test al, 0x10
jne 0x14005b878
mov rbx, qword [rbp - 0x20]
mov ecx, 2
call fcn.1400636d4
mov r8, rbx
lea rdx, str.WPPFMT_:_error_:_File_already_exists_and_is_not_a_directory:__ws_n
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
mov word [rsi], r14w
lea rcx, [rsi + 2]
jmp 0x14005b7c8
mov dil, 1
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x14005b8a1
lea rdx, [0x1400725e4]
call fcn.140063008
mov rbx, qword [rsp + 0x50]
mov al, dil
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
Function at 0x14005c938
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor r12d, r12d
mov r15d, 0x1000000
mov r14d, r12d
mov ebx, r12d
mov ebp, r12d
cmp qword [rcx + 8], r12
jne 0x14005c9a2
lea ecx, [r12 + 2]
call fcn.1400636d4
mov rcx, rax
lea rdx, str.WPPFMT_:_error_:_load__modname____you_must_specify_a_module_to_load_n
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
xor eax, eax
jmp 0x14005cb72
mov rsi, qword [rcx]
lea rax, [rsp + 0x260]
mov ecx, 0x104
xor r9d, r9d
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.msvcrt.dll__wsplitpath_s]
nop dword [rax + rax]
cmp word [rsp + 0x260], r12w
jne 0x14005ca01
mov rdi, qword [0x140129568]
mov r14d, 1
jmp 0x14005ca33
lea rdx, str..pdb
lea rcx, [rsp + 0x260]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14005ca2c
mov rdi, qword [0x140129568]
lea ebp, [rax + 1]
jmp 0x14005ca33
mov rdi, qword [0x140128c48]
call fcn.14005c85c
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x14005ca41
lea rdx, [rsp + 0x50]
lea rcx, [0x140123da8]
call fcn.140045fb0
test al, al
jne 0x14005ca88
mov ecx, 2
call fcn.1400636d4
mov r8, rsi
lea rdx, str.WPPFMT_:_error_:_out_of_memory_loading__ls_n
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
jmp 0x14005c99b
test ebp, ebp
jne 0x14005cacf
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], r12d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov r15d, eax
mov rcx, qword [0x140129458]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x38], r14d
mov r8, rsi
mov qword [rsp + 0x30], r12
mov rdx, rbx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.dbghelp.dll_SymLoadModuleExW]
nop dword [rax + rax]
test rax, rax
jne 0x14005cb51
mov rax, qword [0x140123da8]
mov qword [0x140123db0], rax
mov word [rax], r12w
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 2
mov ebx, eax
call fcn.1400636d4
mov r9, rsi
lea rdx, str.WPPFMT_:_error_:_0x_x_loading__ls._n
mov r8d, ebx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
jmp 0x14005c99b
mov qword [0x140128a28], rax
cmp rbx, 0xffffffffffffffff
je 0x14005cb6d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14006095c
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, reloc.MFC42u.dll_CDaoException::CDaoException
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, qword [rsp + 0x2d0]
xor edi, edi
mov r12d, 0x104
mov r15, r9
mov r14, rdx
mov rbx, rcx
cmp dword [rsi], r12d
jae 0x1400609a9
mov dword [rsi], r12d
lea eax, [rdi + 0x7a]
jmp 0x140060aff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
xor r8d, r8d
mov rdx, r14
mov rcx, rax
mov rbp, rax
call qword [sym.imp.dbghelp.dll_SymInitialize]
nop dword [rax + rax]
mov ecx, 0x680
call qword [sym.imp.dbghelp.dll_SymSetOptions]
nop dword [rax + rax]
mov eax, dword [rsi]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], r12
mov r9d, 2
mov qword [rsp + 0x30], rcx
mov r8, rbx
mov qword [rsp + 0x28], rax
mov rcx, rbp
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.dbghelp.dll_SymGetSymbolFile]
nop dword [rax + rax]
test eax, eax
jne 0x140060aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 2
jne 0x140060aee
xor eax, eax
cmp byte [rbx], al
je 0x140060a41
inc rax
cmp byte [rax + rbx], 0
jne 0x140060a38
mov rcx, rbx
cmp rax, 2
jb 0x140060a54
cmp byte [rbx + 1], 0x3a
jne 0x140060a54
lea rcx, [rbx + 2]
add rax, rbx
mov rdx, rax
jmp 0x140060a6e
dec rax
cmp byte [rax], 0x2e
je 0x140060a75
cmp byte [rax], 0x2f
je 0x140060a78
cmp byte [rax], 0x5c
je 0x140060a78
cmp rax, rcx
jne 0x140060a5c
jmp 0x140060a78
mov rdx, rax
cmp byte [rdx], 0x2e
lea rax, [rdx + 1]
mov r9, r14
lea r8, str._s_s
cmovne rax, rdx
lea rcx, [rsp + reloc.MFC42u.dll_CDocObjectServerItem::CDocObjectServerItem]
mov rdx, r12
mov qword [rsp + 0x20], rax
call fcn.140057000
mov eax, dword [rsi]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], r12
lea rdx, [rsp + reloc.MFC42u.dll_CDocObjectServerItem::CDocObjectServerItem]
mov qword [rsp + 0x30], rcx
xor edi, edi
mov qword [rsp + 0x28], rax
mov r8, rbx
xor ecx, ecx
mov qword [rsp + 0x20], r15
lea r9d, [rdi + 2]
call qword [sym.imp.dbghelp.dll_SymGetSymbolFile]
nop dword [rax + rax]
test eax, eax
jne 0x140060aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, rbp
call qword [sym.imp.dbghelp.dll_SymCleanup]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140062a30
add rsp, reloc.MFC42u.dll_CDaoException::CDaoException
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140062770
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14012a2a8], rbx
je 0x1400627d7
cmp rax, rbx
jne 0x1400627ca
mov edi, 1
mov esi, edi
jmp 0x1400627dc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400627af
mov edi, 1
mov eax, dword [0x14012a2b0]
cmp eax, edi
jne 0x1400627f4
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x14006286a
mov eax, dword [0x14012a2b0]
test eax, eax
jne 0x14006285f
mov dword [0x14012a2b0], edi
lea r15, [0x140070d88]
lea rbx, [0x140070d70]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140062851
test eax, eax
jne 0x140062855
cmp qword [rbx], r14
je 0x140062846
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x140070c80]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14006281e
test eax, eax
je 0x140062865
mov eax, 0xff
jmp 0x1400629cb
mov dword [0x1401271f0], edi
mov ebx, 0x1f
mov eax, dword [0x14012a2b0]
cmp eax, edi
jne 0x140062891
lea rdx, [0x140070d68]
lea rcx, [0x140070c98]
call sub.msvcrt.dll__initterm
mov dword [0x14012a2b0], 2
test esi, esi
jne 0x14006289f
mov rax, r14
xchg qword [0x14012a2a8], rax
cmp qword [0x14012a2c8], r14
je 0x1400628dc
lea rcx, [0x14012a2c8]
call fcn.1400633f0
test eax, eax
je 0x1400628dc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14012a2c8]
mov r9, qword [0x140070c80]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400628f5
mov eax, 0xff
jmp 0x1400629cb
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14006297c
test ax, ax
je 0x140062910
test edx, edx
jne 0x14006297c
sub ax, di
cmp ax, bx
ja 0x140062926
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140062910
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400636bc
mov dword [0x1401271ec], eax
cmp dword [0x140127210], r14d
jne 0x140062965
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1401271f0], r14d
jne 0x14006297a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1401271ec]
jmp 0x1400629cb
cmp ax, 0x22
jne 0x140062990
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400628fe
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140063484
add rsp, 0x28
jmp 0x140062770
Function at 0x1400632dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140063328
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140063320
cmp dword [rcx + 0x3c], edx
jl 0x140063320
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140063320
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140063328
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140063450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140063478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140063478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140063584
Capabilities:
Print debug messages

Disassembly:
jmp 0x140063590
push rbx
sub rsp, 0x540
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14006360d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14006362d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140062a30
add rsp, 0x540
pop rbx
ret

Function at 0x140063590
Capabilities:
Print debug messages

Disassembly:
jmp 0x140063590
push rbx
sub rsp, 0x540
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14006360d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14006362d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140062a30
add rsp, 0x540
pop rbx
ret
Function at 0x1817ca058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1817ca1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1817ca089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1817ca06f
add dl, dl
jne 0x1817ca096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1817ca0f6
xor eax, eax
add dl, dl
jne 0x1817ca0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1817ca1ad
add dl, dl
jne 0x1817ca0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1817ca0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1817ca0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1817ca0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1817ca0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1817ca07e
mov eax, 1
add dl, dl
jne 0x1817ca106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1817ca113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1817ca0fb
sub eax, ebx
mov ebx, 1
jne 0x1817ca14c
mov ecx, 1
add dl, dl
jne 0x1817ca12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1817ca13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1817ca123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1817ca07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1817ca168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1817ca175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1817ca15d
cmp eax, 0x7d00
jae 0x1817ca19b
cmp eax, 0x500
jb 0x1817ca196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1817ca07e
cmp eax, 0x7f
ja 0x1817ca19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1817ca07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1817ca1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1817ca07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor ebp, ebp
lea rdx, [rsp + 0x70]
mov qword [r8], rbp
mov rsi, r9
mov qword [r9], rbp
mov rdi, r8
lea r9, [rsp + 0x80]
mov qword [rsp + 0x60], rbp
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x14000125f
movzx ecx, word [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], ebp
lea r9, [rsp + 0xd0]
mov qword [rsp + 0x48], rbp
lea r8, [rsp + 0xa0]
test cx, cx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov eax, ebp
mov dword [rsp + 0x28], 0x80
cmovne rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x80]
cmove rax, rdx
mov dword [rsp + 0xa0], 0x30
mov edx, 0x120089
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0x40
movdqu xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
test ebx, ebx
js 0x14000125f
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov edx, 0xf0004
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
jns 0x1400011e5
lea rcx, str.NtCreateSection:_0x_08X_n
jmp 0x14000123b
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov r8, rdi
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rsi
lea rdx, [r9 - 1]
mov qword [rdi], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsi], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp eax, 0x40000003
jne 0x140001230
mov ebx, ebp
jmp 0x140001242
test eax, eax
jns 0x140001242
lea rcx, str.NtMapViewOfSection:_0x_08X_n
mov edx, eax
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000126d
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14000126d
mov edx, ebx
lea rcx, str.NtCreateFile:_0x_08X_n
call fcn.140001010
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140002b80
mov rbx, qword [rsp + 0x118]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001410
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov r11, rsp
push rbp
push r14
sub rsp, 0x168
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov r14, rdx
mov qword [rdx], 0
xor edx, edx
mov dword [r11 - 0x28], 0
mov rbp, rcx
lea r9, [r11 - 0x28]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400015bf
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x150]
mov qword [rsp + 0x198], rsi
add r8, r8
mov qword [rsp + 0x160], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x150]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test eax, eax
js 0x140001591
mov qword [rsp + 0x190], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001589
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rcx, rcx, 0x128
mov edx, 2
add rcx, 8
add rcx, rdi
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1400014f0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rbp
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000157f
inc ebx
cmp ebx, dword [rdi]
jb 0x1400014d2
jmp 0x140001589
mov rax, qword [rsp + 0x30]
xor esi, esi
mov qword [r14], rax
mov rbx, qword [rsp + 0x190]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x160]
mov eax, esi
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140002b80
add rsp, 0x168
pop r14
pop rbp
ret