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

Disassembly:
cld
pop r11
jmp 0x14005b16d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005b17d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005b165
lea eax, [rcx + 1]
jmp 0x14005b18b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005b19e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005b184
sub eax, 3
jb 0x14005b1be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005b20d
sar eax, 1
movsxd rbp, eax
jb 0x14005b1f4
jmp 0x14005b1cc
add ebx, ebx
jne 0x14005b1ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005b1f4
inc ecx
add ebx, ebx
jne 0x14005b1da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005b1f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005b1ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005b1dc
add ecx, 2
jmp 0x14005b1f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005b122
jmp 0x14005b16d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005b259
cmp rsi, rcx
jae 0x14005b261
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005b240
cmp al, 0x8f
ja 0x14005b240
cmp byte [rsi - 2], 0xf
je 0x14005b246
sub al, 0xe8
cmp al, 1
ja 0x14005b22a
cmp rsi, rcx
jae 0x14005b261
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005b230
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005b261
lodsb al, byte [rsi]
jmp 0x14005b240
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x59000]
mov eax, dword [rdi]
or eax, eax
je 0x14005b2ca
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x81050]
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 0x14005b26e
jns 0x14005b2a3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005b2ad
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 0x14005b2c4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005b28e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x18f]
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 0x14005b322
sub rsp, 0xffffffffffffff80
jmp 0x140023590
Function at 0x4ccf50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov al, 0xb5
mov r8, rcx
xor rdx, rdx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x4ccf58
nop
ret

Function at 0x50eca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x50ecd7
mov rcx, rbp
call fcn.0050eb90
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x50ecf6
mov rcx, rbp
call fcn.0050eb90
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.0050e420
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x524e40
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x19], 0
jne 0x524e73
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x524ed1
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x524ed1
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x68], 0
jne 0x524ed1
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x524efb
lea rcx, [rbp + 0x38]
mov rdx, qword [0x006530c8]
call fcn.00415ae0
mov rcx, qword [0x004e2bb0]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.0043b450
mov rcx, rax
call fcn.0040ea20
jmp 0x524efb
lea rcx, [rbp + 0x30]
mov rdx, qword [0x006530c8]
call fcn.00415ae0
mov rcx, qword [0x004e2bb0]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.0043b450
mov rcx, rax
call fcn.0040ea20
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040f8e0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x525db0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.00524c80
jmp 0x525e0b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x525e30
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.00524c80
cmp esi, 1
jne 0x525e5a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140001136
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140030974
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14008e0b8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 7
lea r8, [0x14008e0b0]
call fcn.1400300e8
mov rsi, rax
test rax, rax
je 0x1400309c0
mov rcx, rax
call fcn.140002694
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400309cb
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001168
Capabilities:
Query environment variable

Disassembly:
jmp 0x14006ef7c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14006f050
mov rsi, rax
cmp word [rax], r14w
je 0x14006efcf
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14006efb7
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14006efb3
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x14006f050
mov rcx, rbp
call fcn.140001e38
mov rdi, rax
test rax, rax
je 0x14006f043
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14006f043
mov rsi, rdi
mov rdi, r14
jmp 0x14006f046
mov rsi, r14
mov rcx, rdi
call fcn.140004093
jmp 0x14006f053
mov rsi, r14
test rbx, rbx
je 0x14006f061
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140001389
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140013400
push rbx
sub rsp, 0x20
mov r10, qword [rdx]
mov rbx, rdx
mov r8, qword [rdx + 8]
movabs rax, 0x6666666666666667
sub r8, r10
imul r8
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140013464
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x38]
mov r8d, edx
mov dword [rsp + 0x38], 0
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14001345d
lea rcx, str.WriteConsoleInputW_failed
call fcn.140001e10
mov rax, qword [rbx]
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
Function at 0x1400013b6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140030908
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14008e098]
mov ecx, 6
lea r8, [0x14008e090]
lea rdx, str.FlsGetValue
call fcn.1400300e8
mov rdi, rax
test rax, rax
je 0x140030949
mov rcx, rax
call fcn.140002694
mov ecx, ebx
call rdi
jmp 0x140030951
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400014a1
Capabilities:
Log keystrokes

Disassembly:
jmp 0x1400125f0
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
mov rdi, rcx
mov qword [rsp + 0x20], rax
movzx ebx, r9w
mov qword [rsp + 0x28], rax
mov eax, 1
mov dword [rsp + 0x24], edx
xor edx, edx
movzx ecx, r8w
mov word [rsp + 0x20], ax
mov word [rsp + 0x28], ax
mov word [rsp + 0x2a], r8w
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea rdx, [rsp + 0x20]
mov word [rsp + 0x2e], bx
mov word [rsp + 0x2c], ax
mov rcx, rdi
movzx eax, word [rsp + 0x80]
mov dword [rsp + 0x30], eax
call fcn.14000276b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x140001a0f
Capabilities:
Query environment variable

Disassembly:
jmp 0x14006f0c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x14006f13f
jmp 0x14006f0fb
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x14006f0ea
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], si
jne 0x14006f0e6
sub rax, rbx
add rax, 2
sar rax, 1
lea rbp, [rax + rax]
mov rcx, rbp
call fcn.140001e38
mov rdi, rax
test rax, rax
je 0x14006f12f
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140002de2
mov rsi, rdi
xor ecx, ecx
call fcn.140004093
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
jmp 0x14002b864
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14002b8f2
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14002b8f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002b8f2
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14002b8d9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14002b8d3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14002b8db
add rdx, 0x28
jmp 0x14002b8b8
xor edx, edx
test rdx, rdx
jne 0x14002b8e4
xor al, al
jmp 0x14002b8f8
cmp dword [rdx + 0x24], 0
jge 0x14002b8ee
xor al, al
jmp 0x14002b8f8
mov al, 1
jmp 0x14002b8f8
xor al, al
jmp 0x14002b8f8
add rsp, 0x18
ret

Function at 0x140001b18
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14007fd20
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x14007fd61
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x14007fd55
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x14007fd63
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x14007fd43
xor eax, eax
ret

Function at 0x140001b22
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x1400211d0
sub rsp, 0x38
mov rax, qword [rdx]
mov r10, r8
mov rcx, qword [rcx]
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x40], eax
movzx eax, word [rdx + 4]
sub ax, word [rdx]
mov r9d, dword [rsp + 0x40]
inc ax
mov word [rsp + 0x48], ax
movzx eax, word [rdx + 6]
sub ax, word [rdx + 2]
mov rdx, r10
inc ax
mov word [rsp + 0x4a], ax
lea rax, [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
test eax, eax
jne 0x140021234
lea rcx, str.WriteConsoleOutput_failed
call fcn.140001e10
add rsp, 0x38
ret
Function at 0x140001bea
Capabilities:
Get geographical location

Disassembly:
jmp 0x140068cdc
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, [0x140091480]
mov r14, rcx
lea r8, [0x140091478]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xd
call fcn.140068218
mov rbx, rax
test rax, rax
je 0x140068d3f
mov rcx, rax
call qword [section..00cfg]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x140068d59
xor edx, edx
mov rcx, r14
call fcn.1400027de
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140001dfc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14007ad00
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov r9, rdx
cmp rax, 0x20
mov r8, rcx
jae 0x14007ad98
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 0x20
jl 0x14007ad1f
mov al, byte [rdx]
jmp 0x14007ad52
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
inc r9
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r9]
test al, al
jne 0x14007ad33
jmp 0x14007ad77
movzx eax, r9b
mov edx, 1
movzx ecx, r9b
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x14007ad93
inc r8
mov r9b, byte [r8]
test r9b, r9b
jne 0x14007ad58
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0x58
ret
mov rax, r8
jmp 0x14007ad81
call fcn.140001d66
int3

Function at 0x140001ef6
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
jmp 0x140024320
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x14002436d
lea r8, str.m_module___NULL
lea edx, [rax + 0x28]
lea rcx, str.c:_buildagentwork67c40952b9e3e6fa_src_sharedOsModule.h
call fcn.1400045f7
nop
xor eax, eax
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], al
mov qword [rbx + 0x18], rax
lea rdx, str.SystemFunction036
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x1400243a5
lea rdx, str.SystemFunction036
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.140001e10
mov qword [rbx + 8], rdi
test rdi, rdi
jne 0x1400243ea
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne cl
mov byte [rbx + 0x10], cl
test cl, cl
jne 0x1400243ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GenRandom:_CryptAcquireContext_failed:__u
call fcn.140001e10
nop
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140002068
Capabilities:
Check os version

Disassembly:
jmp 0x140028bc0
sub rsp, 0x148
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.140002a27
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140028c06
lea r8, str.success___GetVersionEx_failed_
lea edx, [rax + 0x3a]
lea rcx, str.sharedWindowsVersion.cc
call fcn.1400045f7
mov rcx, qword [rsp + 0x20]
shr rcx, 0x20
cmp ecx, 6
setae al
add rsp, 0x148
ret
Function at 0x140002243
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x14000e270
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov dword [rbp - 0x39], edx
cmp edx, 1
jl 0x14000e2b2
cmp ebx, 1
jge 0x14000e2ca
lea r8, str.cols___1__rows___1
mov edx, 0x281
lea rcx, str.agentAgent.cc
call fcn.1400045f7
lea rcx, [0x140085f30]
lea rax, [rbp - 0x39]
cmp edi, 0x9c4
cmovg rax, rcx
mov eax, dword [rax]
mov dword [rbp - 0x39], eax
lea rcx, [0x140085f34]
lea rax, [rbp + 0x77]
cmp ebx, 0x7d0
cmovg rax, rcx
mov eax, dword [rax]
mov dword [rbp + 0x77], eax
lea rdi, [rsi + 0x40]
mov qword [rbp - 0x19], rdi
movzx r14d, byte [rdi + 8]
mov byte [rbp - 0x11], r14b
movzx edx, byte [rsi + 0x48]
mov rcx, rdi
call fcn.140002144
nop
movzx eax, word [rbp - 0x39]
mov word [rbp - 0x39], ax
movzx eax, word [rbp + 0x77]
mov word [rbp - 0x37], ax
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov dword [rbp + 7], eax
mov word [rbp + 0xb], ax
lea rdx, [rbp - 0x29]
mov rcx, rsi
call fcn.14000382d
nop
mov ebx, dword [rbp - 0x39]
mov dword [rbp - 0x39], ebx
lea r9, [rbp - 9]
lea r8, [rbp - 0x39]
mov rdx, qword [rbp - 0x29]
mov rcx, qword [rsi + 0x68]
call fcn.1400026b7
mov rcx, qword [rsi + 0xa8]
mov rax, qword [rbp + 1]
mov qword [rcx + 0xec], rax
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x14000e394
mov dword [rbp - 0x39], ebx
lea r9, [rbp - 9]
lea r8, [rbp - 0x39]
mov rdx, qword [rsi + 0x78]
call fcn.1400026b7
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], eax
mov eax, 4
mov word [rbp + 0xf], ax
lea rdx, [rbp - 0x39]
mov rcx, qword [rbp - 0x29]
call fcn.140001654
mov ecx, dword [rax]
mov dword [rbp + 0x13], ecx
mov dword [rbp - 0x31], 0
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea r9, [rbp - 0x31]
mov r8d, 1
lea rdx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
nop
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x14000e40c
cmp byte [rbx + 8], 0
je 0x14000e3fe
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x10
mov rcx, rbx
call fcn.1400035d0
nop
movzx edx, r14b
mov rcx, rdi
call fcn.140002144
nop
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400022f2
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x1400210d0
sub rsp, 0x28
mov edx, dword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400210f3
lea rcx, str.SetConsoleCursorPosition_failed
add rsp, 0x28
jmp fcn.140001e10
add rsp, 0x28
ret
Function at 0x140002478
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007fde0
mov rax, rcx
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x14007fdf0
xor eax, eax
ret
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
xor eax, eax
cmp dword [rcx], 0x4550
jne 0x14007fe0d
mov edx, 0x20b
cmp word [rcx + 0x18], dx
sete al
ret

Function at 0x140002577
Capabilities:
Parse pe header

Disassembly:
jmp 0x140059e30
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140059a98
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140059a98
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140059a98
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140059a98
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140059a98
cmp dword [rcx + 0x84], 0xe
jbe 0x140059a98
cmp dword [rcx + 0xf8], esi
je 0x140059a98
mov ecx, r14d
call fcn.140059cf8
mov ecx, 2
call fcn.140003553
nop
cmp byte [0x1400ab2f9], 0
jne 0x140059b62
mov r15d, 1
mov eax, r15d
xchg dword [0x1400ab2ec], eax
test ebx, ebx
jne 0x140059b0b
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400ab2f0]
cmp rcx, rax
je 0x140059b02
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [section..00cfg]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400abf08]
jmp 0x140059b17
cmp ebx, r15d
jne 0x140059b1d
lea rcx, [0x1400abf28]
call fcn.140003882
nop
test ebx, ebx
jne 0x140059b34
lea rdx, [0x140085c00]
lea rcx, [0x1400858c0]
call fcn.140002fb8
lea rdx, [0x140085e20]
lea rcx, [0x140085d10]
call fcn.140002fb8
movzx eax, byte [0x1400ab2f9]
test esi, esi
cmove eax, r15d
mov byte [0x1400ab2f9], al
jmp 0x140059b62
mov ecx, 2
call fcn.1400023ec
test esi, esi
jne 0x140059b79
mov ecx, r14d
call fcn.140059bf0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140059a28
Function at 0x1400028ce
Capabilities:
Parse pe header

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

Function at 0x140002a40
Capabilities:
Parse pe header

Disassembly:
jmp 0x140059db0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140059a28

Function at 0x140002b17
Capabilities:
Terminate process

Disassembly:
jmp 0x14003aa7c
sub rsp, 0x28
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14003aa95
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14000199c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140002c0c
Capabilities:
Check os version

Disassembly:
jmp 0x140028b20
sub rsp, 0x148
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.140002a27
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140028b66
lea r8, str.success___GetVersionEx_failed_
lea edx, [rax + 0x3a]
lea rcx, str.sharedWindowsVersion.cc
call fcn.1400045f7
mov rax, qword [rsp + 0x20]
xor ecx, ecx
shr rax, 0x20
cmp eax, 6
jb 0x140028b8e
ja 0x140028b7f
cmp dword [rsp + 0x28], 2
jb 0x140028b8e
mov eax, ecx
test al, al
sete al
add rsp, 0x148
ret
mov eax, 1
test al, al
sete al
add rsp, 0x148
ret
Function at 0x140002cf7
Capabilities:
Write file on windows

Disassembly:
jmp 0x14005a7c0
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x60
test rdx, rdx
je 0x14005a7fa
test r8, r8
je 0x14005a7fa
test r9, r9
jne 0x14005a802
call fcn.140002a18
mov dword [rax], 0x16
call fcn.140003986
xor eax, eax
add rsp, 0x60
pop rbp
ret
lea rax, [rbp + 0x28]
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
lea rax, [rbp + 0x10]
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x38]
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x20]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x10], rax
call fcn.14000146f
jmp 0x14005a7fc