joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b350
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x004fe2f0]
test ecx, ecx
je 0x49b383
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x49b39c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x49b39c
add rcx, 0x10
jmp 0x49b499
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6fae390b6c46bfa0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x49b370
mov ecx, dword [0x004fe2f0]
test ecx, ecx
je 0x49b47a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x49b497
mov rdi, rax
test rax, rax
jne 0x49b412
mov rax, qword [0x005757d8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x49b4b6
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x004fe2f0]
test ecx, ecx
je 0x49b4a3
dec ecx
mov rdx, rdi
call fcn.004fb5ec
test rsi, rsi
je 0x49b42f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x49b464
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x49b45f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x49b464
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x49b499
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6fae390b6c46bfa0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x49b3bb
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6fae390b6c46bfa0
mov ecx, eax
jmp 0x49b40a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x4e23b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x4e242a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x4e2420
cmp r11, r10
ja 0x4e24c3
cmp r10, rdx
ja 0x4e24d7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x4e2422
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x4e2400
jmp 0x4e2497
ja 0x4e242a
mov r11, r10
cmp rax, r8
jne 0x4e23d2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x4e249b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x4e2470
mov r8, r10
sub ecx, r9d
jns 0x4e248e
jmp 0x4e249d
cmp r10, rdx
je 0x4e24a9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x4e249d
xor al, 1
cmp r8, rdx
jne 0x4e2450
jmp 0x4e249d
xor eax, eax
jmp 0x4e249d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x00566df1]
lea r8, [0x00569140]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x00569158]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x00569158]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x4fc5c0
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 0x4fc630
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x00590304]
mov r12, rcx
test ebx, ebx
jle 0x4fc760
mov rax, qword [0x00590308]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x4fc67c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4fc703
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x4fc660
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x4fc782
mov rax, qword [0x00590308]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00590308]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4fc767
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4fc6fc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x4fc710
add dword [0x00590304], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x00590308]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4fc6fc
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 ebx, ebx
jmp 0x4fc687
mov rax, qword [0x00590308]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4fcc50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00590360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00590340]
test rbx, rbx
je 0x4fcca4
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 0x4fcc9b
test r12, r12
je 0x4fcc9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4fcc80
lea rcx, [0x00590360]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4fcec0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x4fced8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x4fcee0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x4fcef0
Capabilities:
Enumerate pe sections

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

Function at 0x4fcf40
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x4fcfd0
mov rdx, qword [0x00575750]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x4fcfbe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x4fcfbe
cmp word [rax + 0x18], 0x20b
jne 0x4fcfbe
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4fcfd0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x4fcfa9
add r12, 0x28
cmp r12, rsi
je 0x4fcfd0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x4fcfa0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x00575750]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4fd000
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4fd008
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4fd000
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4fd055
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4fd04c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4fd000
add rax, 0x28
cmp rax, r9
jne 0x4fd038
xor eax, eax
ret

Function at 0x4fd060
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00575750]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4fd080
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4fd088
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x4fd080
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4fd0a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x00575750]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x4fd0c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x4fd0c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4fd0c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x4fd108
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x4fd0ff
test rcx, rcx
je 0x4fd0c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x4fd0f0
xor eax, eax
ret
Function at 0x4fd110
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00575750]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4fd130
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4fd138
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x00575750]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4fd170
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4fd178
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4fd170
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x4fd170
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 0x4fd1b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4fd1c8
add rax, 0x28
cmp r9, rax
jne 0x4fd1a0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x00575750]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x4fd202
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4fd210
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4fd202
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x4fd202
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x4fd202
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x4fd25d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x4fd270
add rdx, 0x28
cmp r10, rdx
jne 0x4fd248
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x4fd27f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x4fd28f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4fd266
test ecx, ecx
jg 0x4fd278
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405540]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405550]
mov dword [rax], 1
mov rax, qword [0x00405560]
mov dword [rax], 1
mov rax, qword [0x00405530]
mov dword [rax], 1
mov rax, qword [0x00405420]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00405520]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004054e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004053d0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp + 0xdc], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x40159b
mov eax, 0
jmp 0x40161e
mov dword [rbp - 0x60], 0x130
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xd0]
mov rdx, rax
call sym.Process32First
mov dword [rbp + 0xd8], eax
cmp dword [rbp + 0xd8], 0
je 0x401605
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
mov rcx, qword [rbp + 0xf0]
call sym.strcmp
test eax, eax
jne 0x4015ea
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xdc], eax
jmp 0x401605
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xd0]
mov rdx, rax
call sym.Process32Next
mov dword [rbp + 0xd8], eax
jmp 0x4015bb
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xdc]
add rsp, 0x160
pop rbp
ret

Function at 0x40192f
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.fillScreen_void_]
mov edx, 0x1000
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov ecx, 0xbb8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x401d1c
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push rbp
sub rsp, 0x440
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], rdx
mov dword [rbp + 0x3e0], r8d
mov rax, qword [rbp + 0x3d8]
lea rdx, section..rdata
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x3b0], rax
cmp qword [rbp + 0x3d0], 0
jne 0x401d84
lea rdx, [0x00405003]
lea rcx, str.C:WindowsSystem32WindowsCoreProcess.exe
call sym.fopen
mov qword [rbp + 0x3b8], rax
jmp 0x401da4
mov rax, qword [rbp + 0x3d0]
mov rax, qword [rax]
lea rdx, [0x00405003]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x3b8], rax
mov rdx, qword [rbp + 0x3b8]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x3a8], rax
cmp qword [rbp + 0x3a8], 0
setne al
test al, al
je 0x401e02
mov rcx, qword [rbp + 0x3b0]
mov rdx, qword [rbp + 0x3a8]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
jmp 0x401da4
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call sym.fclose
cmp dword [rbp + 0x3e0], 0
je 0x401e41
mov rax, qword [rbp + 0x3d8]
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call rax
nop
add rsp, 0x440
pop rbp
ret
Function at 0x401e4b
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x80]
lea rcx, str.cVirus.exe
call sym.findFirstProc_char_const_
test eax, eax
sete al
test al, al
je 0x401ff8
mov edx, 0
lea rcx, str.C:WindowscVirus.exe
mov rax, qword [sym.imp.msvcrt.dll__access]
call rax
test eax, eax
setne al
test al, al
je 0x401eaa
mov r8d, 1
lea rdx, str.C:WindowscVirus.exe
mov ecx, 0
call sym.copy_char__char__int_
mov rax, qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
call rax
mov dword [rbp + 0x8c], eax
lea rax, [rbp + 0x80]
mov ecx, dword [rbp + 0x8c]
mov rdx, rax
call sym.WTSQueryUserToken
lea rdx, [rbp - 0x20]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x20], 0x68
movabs rax, 0x6e75722d20
mov qword [rbp + 0x55], rax
mov word [rbp + 0x5d], 0
mov byte [rbp + 0x5f], 0
mov rcx, qword [rbp + 0x80]
lea rdx, [rbp + 0x55]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, str.C:WindowscVirus.exe
mov rax, qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
call rax
test eax, eax
setne al
test al, al
je 0x401fa0
mov rax, qword [rbp + 0x60]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov edx, 0
lea rcx, str.C:WindowswinDatLog.dat
mov rax, qword [sym.imp.msvcrt.dll__access]
call rax
test eax, eax
setne al
test al, al
je 0x401ff8
mov r8d, 0
lea rdx, str.C:WindowswinDatLog.dat
mov ecx, 0
call sym.copy_char__char__int_
lea rax, [rbp + 0x55]
mov dword [rax], 0x75722d20
mov word [rax + 4], 0x6e
nop
add rsp, 0x118
pop rdi
pop rbp
ret
Function at 0x402461
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov dword [0x00408030], 0x30
mov dword [0x00408034], 2
mov dword [0x00408038], 5
mov dword [0x0040803c], 0
mov dword [0x00408040], 0
mov dword [0x00408044], 0
mov dword [0x00408048], 0
lea rdx, [sym.ControlHandler_unsigned_long_]
lea rcx, str.windCore
mov rax, qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
call rax
mov qword [0x00408050], rax
mov rax, qword [0x00408050]
test rax, rax
je 0x4025a4
lea rdx, str.windCore
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
call rax
mov qword [0x00408058], rax
mov rax, qword [0x00408058]
test rax, rax
je 0x4025a7
mov dword [0x00408034], 4
mov rax, qword [0x00408050]
lea rdx, [0x00408030]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.ServiceWorkerThread_void_]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x00408058]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
call rax
nop
jmp 0x4025a8
nop
jmp 0x4025a8
nop
add rsp, 0x40
pop rbp
ret
Function at 0x402bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408644]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402d38
mov rax, qword [0x00408648]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x402bfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402c85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402be0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402d6d
mov rax, qword [0x00408648]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408648]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402d50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402c7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402ce0
add dword [0x00408644], 1
cmp edi, 8
jae 0x402cb3
test dil, 4
jne 0x402d24
test edi, edi
je 0x402ca8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402d3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402ca8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x402ccc
jmp 0x402ca8
add rsi, qword [0x00408648]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402ca8
xor esi, esi
jmp 0x402c07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402ca8
mov rax, qword [0x00408648]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4034c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408900]
test rbx, rbx
je 0x403514
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40350b
test rsi, rsi
je 0x40350b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4034f0
lea rcx, [0x00408920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]