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

Disassembly:
mov rax, qword [0x14002f640]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14002392f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140023938
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140023950
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002f640]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140023970
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140023978
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140023970
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140023970
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400239c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400239d0
add rdx, 0x28
cmp rdx, r9
jne 0x1400239b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400239e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14002f640]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140023a02
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140023a10
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140023a02
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140023a02
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140023a02
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140023a65
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140023a78
add rdx, 0x28
cmp r10, rdx
jne 0x140023a50
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140023a87
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140023a97
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140023a6e
test ecx, ecx
jg 0x140023a80
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005440]
mov dword [rax], 1
mov rax, qword [0x140005450]
mov dword [rax], 1
mov rax, qword [0x1400053d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005420]
mov dword [0x140008020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140005520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140005500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005380]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001f10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080d4]
mov rbx, rcx
test esi, esi
jle 0x1400020b0
mov rax, qword [0x1400080d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001fcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002055
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001fb0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400020d2
mov rax, qword [0x1400080d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400020b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000204e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002060
add dword [0x1400080d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000204e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001fd8
mov rax, qword [0x1400080d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002640
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008120]
test rbx, rbx
je 0x14000269c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002693
test rsi, rsi
je 0x140002693
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002678
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400028b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400028c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400028d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400028e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000292d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002924
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000292f
add rax, 0x28
cmp rax, r9
jne 0x140002910
xor eax, eax
ret

Function at 0x140002930
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400029c0
mov rdx, qword [0x1400053d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400029ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400029ae
cmp word [rax + 0x18], 0x20b
jne 0x1400029ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400029c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002999
add rbx, 0x28
cmp rbx, rdi
je 0x1400029c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002990
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400029d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400053d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002a4d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002a44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400029f0
add rax, 0x28
cmp rax, r9
jne 0x140002a30
xor eax, eax
ret

Function at 0x140002a50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400053d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002a6f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002a78
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002a6f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002a90
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400053d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002ab0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002ab8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ab0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002b00
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002af7
test rcx, rcx
je 0x140002ab0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002ae8
xor eax, eax
ret
Function at 0x140002b10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400053d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002b2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002b38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002b50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400053d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b70
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002b70
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002bc4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002bd0
add rdx, 0x28
cmp r9, rdx
jne 0x140002bb0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002be0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400053d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002c02
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002c10
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002c02
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002c02
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002c02
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002c65
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002c78
add rdx, 0x28
cmp rdx, r10
jne 0x140002c50
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002c87
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002c97
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002c6e
test ecx, ecx
jg 0x140002c80
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003d80
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x28
call dbg.__main
mov rax, qword [0x140005470]
xor edx, edx
mov rcx, qword [rax]
mov rax, qword [0x140005490]
mov r9d, dword [rax]
mov rax, qword [0x140005480]
mov r8, qword [rax]
add rsp, 0x28
jmp sym.WinMain
Function at 0x14000113b
Capabilities:
Terminate process

Disassembly:
jmp 0x140004dd0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140001177
Capabilities:
Terminate process

Disassembly:
jmp 0x1400014a0
push rdi
sub rsp, 0x20
xor edx, edx
lea rcx, str.._file
call sub.version.dll_GetFileVersionInfoSizeA
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001181
Capabilities:
Parse pe header

Disassembly:
jmp 0x140002900
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140002920
xor al, al
jmp 0x1400029a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140002933
xor al, al
jmp 0x1400029a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14000295d
xor al, al
jmp 0x1400029a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140002971
xor al, al
jmp 0x1400029a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140002983
xor al, al
jmp 0x1400029a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000299f
xor al, al
jmp 0x1400029a1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400014a0
Capabilities:
Terminate process

Disassembly:
jmp 0x1400014a0
push rdi
sub rsp, 0x20
xor edx, edx
lea rcx, str.._file
call sub.version.dll_GetFileVersionInfoSizeA
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001700
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14000122b
movzx eax, al
test eax, eax
jne 0x140001720
mov ecx, 7
call fcn.1400011ef
nop
mov byte [rsp + 0x20], 0
call fcn.1400011f9
mov byte [rsp + 0x21], al
cmp dword [0x14000c220], 1
jne 0x140001744
mov ecx, 7
call fcn.1400011ef
nop
jmp 0x14000179c
cmp dword [0x14000c220], 0
jne 0x140001797
mov dword [0x14000c220], 1
lea rdx, [0x140009660]
lea rcx, [0x140009330]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x140001778
mov eax, 0xff
jmp 0x1400018a1
lea rdx, [0x140009220]
lea rcx, [section..rdata]
call sub.ucrtbased.dll__initterm
mov dword [0x14000c220], 2
jmp 0x14000179c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400011e5
call fcn.14000119f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400017f9
mov rcx, qword [rsp + 0x30]
call fcn.1400010e1
movzx eax, al
test eax, eax
je 0x1400017f9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14000f020]
nop
call fcn.1400011c2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14000182d
mov rcx, qword [rsp + 0x38]
call fcn.1400010e1
movzx eax, al
test eax, eax
je 0x14000182d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.140001950
mov dword [rsp + 0x28], eax
call fcn.140001181
movzx eax, al
test eax, eax
jne 0x14000184c
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14000185b
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.1400010d2
mov eax, dword [rsp + 0x28]
jmp 0x1400018a1
add rsp, 0x68
ret
Function at 0x140006c00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
xor r13d, r13d
lea ecx, [r13 + 2]
call fcn.1400e8270
mov rbx, rax
mov word [rax], r13w
lea ecx, [r13 + 2]
call fcn.1400e8270
mov r15, rax
mov qword [rsp + 0x78], rax
mov word [rax], r13w
lea r12, [0x14011eaa0]
mov rcx, r12
test rdi, rdi
cmovne rcx, rdi
call fcn.1400e81d8
mov rdi, rax
mov qword [rsp + 0x88], rax
mov rcx, rbx
call fcn.1400e825c
mov ecx, dword [0x140178818]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x200
jne 0x140006d17
mov rcx, r12
test rdi, rdi
cmovne rcx, rdi
call fcn.1400e81d8
mov rbx, rax
xor ecx, ecx
call fcn.1400e825c
mov rcx, rbx
call fcn.1400e9204
lea rdx, str._PROGRAMFILES_
mov rcx, rbx
call fcn.1400e3cd4
test rax, rax
je 0x140006d0f
lea rdx, str._PROGRAMFILES_
mov rcx, rbx
call fcn.1400e3cd4
sub rax, rbx
sar rax, 1
mov ecx, eax
movups xmm0, xmmword [str._ProgramW6432_]
movups xmmword [rdi + rcx*2], xmm0
movsd xmm1, qword [0x14011f0c0]
movsd qword [rdi + rcx*2 + 0x10], xmm1
mov eax, dword [0x14011f0c8]
mov dword [rdi + rcx*2 + 0x18], eax
lea rdx, [rcx + 0xe]
lea rdx, [rdi + rdx*2]
nop dword [rax]
movzx eax, word [rdx]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140006d00
mov rcx, rbx
call fcn.1400e825c
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.140018990
mov rdx, qword [rax]
mov rcx, r12
test rdx, rdx
cmovne rcx, rdx
call fcn.1400e81d8
mov rsi, rax
mov qword [rsp + 0x78], rax
mov rcx, r15
call fcn.1400e825c
mov rcx, qword [rsp + 0x80]
call fcn.1400e825c
mov rcx, r12
test rsi, rsi
cmovne rcx, rsi
call fcn.1400e81d8
mov rbp, rax
mov qword [rsp + 0x88], rax
mov rcx, rdi
call fcn.1400e825c
cmp word [rsi], 0x22
jne 0x140006ddc
lea rdi, [rsi + 2]
mov edx, 0x22
mov rcx, rdi
call fcn.1400e3bac
mov r15, rax
mov rbx, rbp
mov rcx, r12
test rax, rax
je 0x140006dc3
mov word [rax], r13w
test rdi, rdi
cmovne rcx, rdi
call fcn.1400e81d8
mov rbp, rax
mov rcx, rbx
call fcn.1400e825c
mov eax, 0x22
mov word [r15], ax
jmp 0x140006e42
test rdi, rdi
cmovne rcx, rdi
call fcn.1400e81d8
mov rbp, rax
mov rcx, rbx
call fcn.1400e825c
jmp 0x140006e42
mov rcx, rsi
call fcn.140018ad0
cmp eax, 0xffffffff
jne 0x140006e42
mov rdi, r13
mov r15d, 0x20
mov edx, r15d
mov rcx, rsi
call fcn.1400e3c28
mov rbx, rax
test rax, rax
je 0x140006e42
test rdi, rdi
je 0x140006e0e
mov word [rdi], r15w
mov word [rbx], r13w
mov rcx, rsi
call fcn.140018ad0
cmp eax, 0xffffffff
je 0x140006e23
test al, 0x10
je 0x140006e88
mov rdi, rbx
mov edx, r15d
mov rcx, rsi
call fcn.1400e3c28
mov rbx, rax
test rax, rax
jne 0x140006e05
test rdi, rdi
je 0x140006e42
mov word [rdi], r15w
test rbp, rbp
cmovne r12, rbp
mov rcx, r12
mov qword [r14], r13
call fcn.1400e81d8
mov qword [r14], rax
xor ecx, ecx
call fcn.1400e825c
nop
mov rcx, rsi
call fcn.1400e825c
nop
mov rcx, rbp
call fcn.1400e825c
mov rax, r14
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
jmp 0x140006e4c
Function at 0x140008c20
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setae al
add rsp, 0x28
ret
Function at 0x14000b3e0
Capabilities:
Write file on windows

Disassembly:
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
mov r8d, ecx
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
mov r9d, 0x400
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r14d, eax
test eax, eax
je 0x14000b532
cmp byte [0x1401774fb], 0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x48], rsi
mov esi, 0x65
mov qword [rsp + 0x40], rdi
lea rdi, str.error
je 0x14000b48e
lea ecx, [rsi - 0x64]
mov qword [rsp + 0x78], rbp
call fcn.1400e93e0
lea ecx, [rsi - 0x29]
mov rdx, rax
mov rbp, rax
call fcn.1400e975c
movzx ecx, si
mov rbx, rdi
mov rdx, rbp
call fcn.1400e975c
movzx ecx, word [rbx + 2]
lea rbx, [rbx + 2]
test cx, cx
jne 0x14000b467
mov ecx, 0x3e
mov rdx, rbp
call fcn.1400e975c
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x1401774fb], 0
je 0x14000b518
mov ecx, 1
call fcn.1400e93e0
mov ecx, 0x3c
mov rdx, rax
mov rbx, rax
call fcn.1400e975c
mov ecx, gethostbyaddr
mov rdx, rbx
call fcn.1400e975c
nop dword [rax + rax]
mov rdx, rbx
movzx ecx, si
call fcn.1400e975c
movzx eax, word [rdi + 2]
lea rdi, [rdi + 2]
movzx esi, ax
test ax, ax
jne 0x14000b4f0
mov ecx, 0x3e
mov rdx, rbx
call fcn.1400e975c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop r14
ret
Function at 0x14000d9a0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, r9
mov r15d, ecx
mov ecx, 2
call fcn.1400e8270
mov r14, rax
xor eax, eax
mov word [r14], ax
lea r12, [0x14011eaa0]
mov r13, r12
test rbx, rbx
cmovne r13, rbx
mov rcx, r13
call fcn.1400e81d8
mov rdi, rax
xor ecx, ecx
call fcn.1400e825c
lea rcx, str.SoftwareClassesCLSID_
call fcn.1400e81d8
mov rbx, rax
xor ecx, ecx
call fcn.1400e825c
mov rcx, r12
test rbx, rbx
cmovne rcx, rbx
call fcn.1400e81d8
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.1400e825c
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140005790
mov rcx, rbx
call fcn.1400e825c
lea rcx, str.Instance
call fcn.1400e81d8
mov rbx, rax
xor ecx, ecx
call fcn.1400e825c
mov rbp, qword [rsp + 0x78]
mov rcx, r12
test rbp, rbp
cmovne rcx, rbp
call fcn.1400e81d8
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.1400e825c
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140005790
mov rcx, rbx
call fcn.1400e825c
mov rbx, qword [rsp + 0x78]
mov rcx, r12
test rbx, rbx
cmovne rcx, rbx
call fcn.1400e81d8
mov rsi, rax
mov qword [rsp + 0x78], rax
mov rcx, r14
call fcn.1400e825c
mov rcx, rbx
call fcn.1400e825c
mov rcx, rbp
call fcn.1400e825c
mov rcx, rdi
call fcn.1400e825c
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.14000c5c0
test r15d, r15d
je 0x14000dc20
mov rax, qword [0x140178828]
test rax, rax
je 0x14000db08
mov ecx, 1
call rax
mov edx, 0x200
mov ecx, dword [0x140178818]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, r13
call fcn.1400e81d8
mov rdi, rax
xor ecx, ecx
call fcn.1400e825c
lea rcx, str.SoftwareWow6432NodeClassesCLSID_
call fcn.1400e81d8
mov rbx, rax
xor ecx, ecx
call fcn.1400e825c
mov rcx, r12
test rbx, rbx
cmovne rcx, rbx
call fcn.1400e81d8
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.1400e825c
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140005790
mov rcx, rbx
call fcn.1400e825c
lea rcx, str.Instance
call fcn.1400e81d8
mov rbx, rax
xor ecx, ecx
call fcn.1400e825c
mov r14, qword [rsp + 0x78]
mov rcx, r12
test r14, r14
cmovne rcx, r14
call fcn.1400e81d8
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.1400e825c
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140005790
mov rcx, rbx
call fcn.1400e825c
mov rbp, qword [rsp + 0x78]
mov rbx, rsi
test rbp, rbp
cmovne r12, rbp
mov rcx, r12
call fcn.1400e81d8
mov rsi, rax
mov qword [rsp + 0x78], rax
mov rcx, rbx
call fcn.1400e825c
mov rcx, rbp
call fcn.1400e825c
mov rcx, r14
call fcn.1400e825c
mov rcx, rdi
call fcn.1400e825c
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.14000c5c0
mov rax, qword [0x140178828]
test rax, rax
je 0x14000dc20
xor ecx, ecx
call rax
mov edx, 0x100
mov ecx, dword [0x140178818]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.1400e825c