joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbbc1d0
Capabilities:
Terminate process

Disassembly:
cmp al, 0x42
xor byte [rax], dh
call 0xf515610
invalid
cld
pop r11
jmp 0xbbc1dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xbbc1ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xbbc1d5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0xbbc205
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xbbc1f2
sub eax, 3
jb 0xbbc21f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xbbc256
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0xbbc246
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0xbbc244
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xbbc233
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.00bbc192
jmp 0xbbc1dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x79b000]
mov eax, dword [rdi]
or eax, eax
je 0xbbc2b6
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7d856c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xbbc266
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xbbc2b0
mov qword [rbx], rax
add rbx, 8
jmp 0xbbc286
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xbbc2fa
cmp al, 0xef
ja 0xbbc2e2
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xbbc2c2
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xbbc2d1
mov eax, dword [rdi]
add rdi, 4
jmp 0xbbc2d1
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xbbc34e
sub rsp, 0xffffffffffffff80
jmp 0xa0b010
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400055a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400055b0]
mov dword [rax], 1
mov rax, qword [0x1400055c0]
mov dword [rax], 1
mov rax, qword [0x140005590]
mov dword [rax], 1
mov rax, qword [0x140005430]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140005580]
mov dword [0x14000900c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140005540]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140005520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400053e0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001e40
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400090b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140002060
mov rax, qword [0x1400090b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001efc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001f87
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001ee0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1400020bd
mov rax, qword [0x1400090b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400090b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400020a2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f80
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002010
add dword [0x1400090b4], 1
cmp ebx, 8
jae 0x140001fb8
test bl, 4
jne 0x140002070
test ebx, ebx
je 0x140001fa9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002090
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001fa9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001fea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400090b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f80
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001f07
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001fa9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001fa9
mov rax, qword [0x1400090b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x1400025d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140009120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140009100]
test rbx, rbx
je 0x140002624
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000261b
test r12, r12
je 0x14000261b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002600
lea rcx, [0x140009120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002850
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002860
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002870
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400028b5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400028ac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400028b7
add rax, 0x28
cmp rax, r9
jne 0x140002898
xor eax, eax
ret

Function at 0x140002960
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140005430]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400029d9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400029d9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400029d6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400029cd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400029d9
add r8, 0x28
cmp r8, r9
jne 0x1400029b8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002ac0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140005430]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140002b2f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002b2f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140002b2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b38
add rax, 0x28
cmp rax, r9
jne 0x140002b10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002b50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140005430]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002bc8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002bc8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002bc8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002bc8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002bbc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002bd0
add rdx, 0x28
cmp rdx, r10
jne 0x140002ba8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002be0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002bee
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002bc5
test r8d, r8d
jg 0x140002bd8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x140002c10
Capabilities:
Accept command line arguments

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r13, rax
test rax, rax
je 0x140002d72
mov eax, dword [rsp + 0x4c]
lea ecx, [rax + 1]
movabs rax, 0xfffffffffffffff
movsxd rcx, ecx
cmp rcx, rax
ja 0x140002d7a
shl rcx, 3
call sym.operator_new___unsigned_long_long_
mov edx, dword [rsp + 0x4c]
mov r12, rax
test edx, edx
je 0x140002d0e
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
nop dword [rax]
mov r14, qword [r13 + rbx*8]
mov r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov r8, r14
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
movsxd rcx, eax
mov rdi, rcx
call sym.operator_new___unsigned_long_long_
mov dword [rsp + 0x28], edi
mov r8, r14
xor edx, edx
mov rsi, rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rbp
mov qword [r12 + rbx*8], rsi
lea eax, [rbx + 1]
add rbx, 1
cmp dword [rsp + 0x4c], ebx
jne 0x140002c88
cdqe
lea rax, [r12 + rax*8]
mov rcx, r13
mov qword [rax], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x4c]
mov rdx, r12
call sym.qMain_int__char_
mov r13d, eax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x140002d4f
jmp 0x140002d58
call sym.operator_delete___void_
add rbx, 1
cmp dword [rsp + 0x4c], ebx
je 0x140002d58
mov rcx, qword [r12 + rbx*8]
test rcx, rcx
jne 0x140002d40
mov rcx, r12
call sym.operator_delete___void_
mov eax, r13d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r13d, 0xffffffff
jmp 0x140002d60
call sym.__cxa_throw_bad_array_new_length
nop
Function at 0x140002d80
Capabilities:
Accept command line arguments

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r13, rax
test rax, rax
je 0x140002ee2
mov eax, dword [rsp + 0x4c]
lea ecx, [rax + 1]
movabs rax, 0xfffffffffffffff
movsxd rcx, ecx
cmp rcx, rax
ja 0x140002eea
shl rcx, 3
call sym.operator_new___unsigned_long_long_
mov edx, dword [rsp + 0x4c]
mov r12, rax
test edx, edx
je 0x140002e7e
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
nop dword [rax]
mov r14, qword [r13 + rbx*8]
mov r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov r8, r14
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
movsxd rcx, eax
mov rdi, rcx
call sym.operator_new___unsigned_long_long_
mov dword [rsp + 0x28], edi
mov r8, r14
xor edx, edx
mov rsi, rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rbp
mov qword [r12 + rbx*8], rsi
lea eax, [rbx + 1]
add rbx, 1
cmp dword [rsp + 0x4c], ebx
jne 0x140002df8
cdqe
lea rax, [r12 + rax*8]
mov rcx, r13
mov qword [rax], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x4c]
mov rdx, r12
call sym.qMain_int__char_
mov r13d, eax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x140002ebf
jmp 0x140002ec8
call sym.operator_delete___void_
add rbx, 1
cmp dword [rsp + 0x4c], ebx
je 0x140002ec8
mov rcx, qword [r12 + rbx*8]
test rcx, rcx
jne 0x140002eb0
mov rcx, r12
call sym.operator_delete___void_
mov eax, r13d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r13d, 0xffffffff
jmp 0x140002ed0
call sym.__cxa_throw_bad_array_new_length
nop
jmp qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
js 0x140015295
sbb eax, 0x99011aeb
invalid

Function at 0x1400033a0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call dbg.__main
mov rax, qword [0x1400054b0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x1400054a0]
mov r8, qword [rax]
mov rax, qword [0x140005490]
mov rcx, qword [rax]
add rsp, 0x28
jmp sym.WinMain
Function at 0x1400010b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor ebx, ebx
mov rdi, rax
test rax, rax
jne 0x1400010ff
mov ebx, 0xc000009a
jmp 0x14000119c
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bx
jne 0x140001103
mov rcx, qword gs:[0x60]
lea r14, [rax*2 + 2]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14000115f
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov ebx, 0xc000009a
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x14000119c
mov r8, r14
mov rdx, rsi
mov rcx, rbp
call sub.msvcrt.dll_memcpy
mov qword [rdi + 0x10], rbp
lea rcx, [0x1400131c0]
mov rax, qword [0x1400131c8]
cmp qword [rax], rcx
je 0x14000118b
mov ecx, 3
int 0x29
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [0x1400131c8], rdi
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000136c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400131d0]
lea rsi, [0x1400131d0]
cmp rdi, rsi
je 0x1400013f5
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rdi + 0x20]
mov rbx, qword [rdi]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rdi + 0x18]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rdi, rbx
cmp rbx, rsi
jne 0x14000138e
mov rbx, qword [rsp + 0x30]
mov qword [0x1400131d8], rsi
mov qword [0x1400131d0], rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001784
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14000c098]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x18]
lea ecx, [r9 + 7]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x140001851
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x3e]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400017f4
mov eax, 0xc000009a
jmp 0x140001851
xor ebx, ebx
xor esi, esi
cmp dword [rsp + 0x20], ebx
jbe 0x140001831
mov r9d, esi
lea r8, str.__PhysicalDrive_lu
mov edx, 0x1f
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov rcx, rdi
call fcn.1400010b0
test eax, eax
cmovs ebx, eax
inc esi
cmp esi, dword [rsp + 0x20]
jb 0x1400017fe
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140007cb0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140001878
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14000c098]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea r8, [0x140009abc]
mov edx, 3
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ebx, 0x41
mov word [rsp + 0x20], bx
lea edi, [rbx + 0x20]
mov r8d, 0x106
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
je 0x14000191c
movzx ecx, word [rsp + 0x20]
movzx eax, cx
sub ax, di
cmp ax, 0x19
ja 0x1400018f6
sub ecx, edi
jmp 0x140001904
movzx eax, cx
sub ax, bx
cmp ax, 0x19
ja 0x140001953
sub ecx, ebx
cmp ecx, 0xffffffff
je 0x140001953
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call fcn.14000141c
test eax, eax
js 0x140001931
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
cmp ax, 0x5a
jbe 0x1400018c1
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140007cb0
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
mov eax, 0xc00000ef
jmp 0x140001931
Function at 0x140003654
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
and qword [rdx], 0
mov rsi, rdx
mov rdx, rcx
xor edi, edi
and qword [rbp + 0x6f], rdi
lea rcx, [rbp + 7]
and qword [rbp + 0x77], rdi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
and dword [rsp + 0x28], edi
lea rax, [rbp + 7]
and qword [rbp + 0x1f], rdi
lea r9, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x27], rax
lea r8, [rbp + 0x17]
mov dword [rbp + 0x17], 0x30
mov edx, 0x80000000
mov dword [rbp + 0x2f], 0x40
lea rcx, [rbp + 0x77]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp + 0x37], xmm0
movups xmmword [rbp - 9], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x14000380e
xor r9d, r9d
mov byte [rsp + 0x20], dil
xor r8d, r8d
lea rcx, [rbp + 0x6f]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400037bb
mov rcx, qword gs:[0x60]
lea ebx, [rdi + 0x18]
mov r8d, ebx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000373d
mov ebx, 0xc000009a
jmp 0x1400037bb
mov rdx, qword [rbp + 0x6f]
lea rax, [rbp - 9]
mov rcx, qword [rbp + 0x77]
xor r9d, r9d
mov dword [rsp + 0x48], ebx
xor r8d, r8d
mov qword [rsp + 0x40], rdi
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x70000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
jne 0x1400037a2
mov rcx, qword [rbp + 0x6f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rbp - 9]
mov rcx, qword [rbp + 0x6f]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtResetEvent]
nop dword [rax + rax]
test ebx, ebx
js 0x1400037bb
mov qword [rsi], rdi
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x1400037d0
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x1400037e5
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x14000380c
test rdi, rdi
je 0x14000380c
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret