joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009b200
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rbp + 0x180], rax
or r14d, 0xffffffff
xor r13d, r13d
mov qword [rsp + 0x48], r13
lea rdx, [rcx + 0xb0]
cmp qword [rdx + 0x18], 0x10
jb 0x14009b25d
mov rdx, qword [rdx]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r15, qword [rsp + 0x48]
test eax, eax
je 0x14009b2a0
test r15, r15
je 0x14009b445
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, r13
mov qword [rsp + 0x48], r13
test r15, r15
je 0x14009b445
mov r12d, r13d
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x80]
call fcn.140060ef0
xor edx, edx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x200
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x14009b43c
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], al
cmp byte [rbp - 0x80], al
jne 0x14009b31b
mov r8, r13
jmp 0x14009b32d
lea rax, [rbp - 0x80]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14009b323
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140002d70
nop
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x14009b39f
lea rdi, [rsp + 0x58]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0x10
cmovae rdi, rdx
add rdi, r8
lea rbx, [rsp + 0x58]
cmp rcx, 0x10
cmovae rbx, rdx
add rbx, r8
lea rsi, [rsp + 0x58]
cmp rcx, 0x10
cmovae rsi, rdx
cmp rsi, rbx
je 0x14009b396
movsx ecx, byte [rsi]
call fcn.1400780b8
test eax, eax
je 0x14009b396
inc rsi
cmp rsi, rbx
jne 0x14009b382
cmp rsi, rdi
jne 0x14009b39f
mov bl, 1
jmp 0x14009b3a1
xor bl, bl
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x14009b3e1
mov rcx, qword [rsp + 0x58]
inc rax
cmp rax, 0x1000
jb 0x14009b3dc
test cl, 0x1f
jne 0x14009b436
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14009b430
sub rcx, rax
cmp rcx, 8
jb 0x14009b42a
cmp rcx, 0x27
ja 0x14009b424
mov rcx, rax
call fcn.14005ed1c
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], 0
test bl, bl
je 0x14009b408
lea rcx, [rbp - 0x80]
call fcn.1400789d8
cmp eax, r14d
cmovg r14d, eax
inc r12d
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x80]
call fcn.140060ef0
mov edx, r12d
jmp 0x14009b2bf
call fcn.140069e64
int3
call fcn.140069e64
int3
call fcn.140069e64
int3
call fcn.140069e64
int3
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14005f0d0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14009caf0
Capabilities:
Set registry value

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rbx, [rcx + 0xb0]
mov r15, r8
cmp qword [rbx + 0x18], 0x10
mov r14, rdx
mov rdi, rcx
jb 0x14009cb29
mov rdx, qword [rbx]
jmp 0x14009cb2c
mov rdx, rbx
mov rcx, qword [rcx + 0x88]
call fcn.14009c5d0
test al, al
je 0x14009ccce
mov qword [rsp + 0x70], r12
lea r8, [rsp + 0x30]
mov rdx, r14
mov rcx, rdi
xor r12b, r12b
call fcn.14009b130
cmp dword [rsp + 0x30], 0
jle 0x14009ccc5
cmp qword [rbx + 0x18], 0x10
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x38], 0
jb 0x14009cb7b
mov rbx, qword [rbx]
mov rcx, qword [rdi + 0x88]
lea rax, [rsp + 0x38]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rsi, qword [rsp + 0x38]
test eax, eax
je 0x14009cbc0
test rsi, rsi
je 0x14009ccc0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov qword [rsp + 0x38], rsi
test rsi, rsi
je 0x14009ccc0
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x80], rbp
mov rdi, rbx
nop dword [rax + rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x14009cbe0
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x14009cbf0
add rdi, rax
lea rdi, [rdi*2 + 0xe]
mov rcx, rdi
call fcn.14005f15c
mov r8, rdi
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140060ef0
mov r9, r15
lea rdx, str._s__s
mov r8, r14
mov rcx, rbp
call fcn.14002bc50
mov r8d, dword [rsp + 0x30]
lea rdx, [0x1400c4aec]
xor eax, eax
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x41], rax
mov qword [rsp + 0x49], rax
mov qword [rsp + 0x51], rax
mov dword [rsp + 0x59], eax
mov word [rsp + 0x5d], ax
mov byte [rsp + 0x5f], al
call fcn.14002bc50
nop dword [rax + rax]
inc rbx
cmp byte [rbx + rbp], 0
jne 0x14009cc70
inc ebx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov ebx, 1
mov qword [rsp + 0x20], rbp
mov r9d, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
movzx r12d, r12b
mov rcx, rbp
test eax, eax
cmove r12d, ebx
call fcn.14005f164
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
movzx eax, r12b
mov r12, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rbx
ret
Function at 0x14009ea10
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor al, al
mov rbx, rcx
cmp dword [rcx + 0x7c], 0xffffffff
je 0x14009ec77
nop dword [rax]
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0x7c
je 0x14009ec77
cmp ecx, 0x29
jne 0x14009ea5b
cmp dword [rbx + 0x1c], 0
jne 0x14009ec77
test dword [rbx + 0x80], 0x10000000
je 0x14009ec82
cmp ecx, 0x2e
jne 0x14009eabc
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.1400a21e0
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
cmp rcx, rax
je 0x14009eaaf
cmp byte [rcx], 0x5c
jne 0x14009eaac
inc rcx
cmp rcx, rax
je 0x14009eaac
mov edx, dword [rbx + 0x80]
test dl, 8
jne 0x14009ea9b
movzx eax, byte [rcx]
sub al, 0x28
cmp al, 1
jbe 0x14009eaa9
test dl, 0x10
jne 0x14009eaac
movzx eax, byte [rcx]
sub al, 0x7b
test al, 0xfd
jne 0x14009eaac
mov qword [rbx], rcx
inc qword [rbx]
mov rcx, rbx
call fcn.1400a2ee0
jmp 0x14009ec63
cmp ecx, 0x5c
jne 0x14009eb7a
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
cmp rcx, rax
je 0x14009eb06
cmp byte [rcx], 0x5c
jne 0x14009eb03
inc rcx
cmp rcx, rax
je 0x14009eb03
mov edx, dword [rbx + 0x80]
test dl, 8
jne 0x14009eaf2
movzx eax, byte [rcx]
sub al, 0x28
cmp al, 1
jbe 0x14009eb00
test dl, 0x10
jne 0x14009eb03
movzx eax, byte [rcx]
sub al, 0x7b
test al, 0xfd
jne 0x14009eb03
mov qword [rbx], rcx
inc qword [rbx]
mov rcx, rbx
call fcn.1400a2ee0
mov eax, dword [rbx + 0x80]
and eax, 0x80
je 0x14009eb3c
cmp byte [rbx + 0x78], 0x62
jne 0x14009eb3c
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.1400a21e0
mov rcx, rbx
call fcn.1400a2270
jmp 0x14009ec6b
test eax, eax
je 0x14009eb6d
cmp byte [rbx + 0x78], 0x42
jne 0x14009eb6d
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.1400a21e0
mov rax, qword [rbx + 0x48]
mov rcx, rbx
xor dword [rax + 0xc], 1
add rax, 0xc
call fcn.1400a2270
jmp 0x14009ec6b
mov rcx, rbx
call fcn.14009ecb0
jmp 0x14009ec63
cmp ecx, 0x5b
jne 0x14009eba5
mov rcx, rbx
call fcn.1400a2270
mov rcx, rbx
call fcn.14009f3f0
mov edx, 0x5d
mov rcx, rbx
lea r8d, [rdx - 0x59]
call fcn.1400a1470
jmp 0x14009ec63
cmp ecx, 0x28
jne 0x14009ebdc
mov rcx, rbx
call fcn.1400a2270
mov rcx, rbx
call fcn.1400a31f0
mov edx, 0x29
mov rcx, rbx
movzx edi, al
lea r8d, [rdx - 0x24]
call fcn.1400a1470
test dil, dil
je 0x14009ec6b
jmp 0x14009ec63
cmp ecx, 0x5e
jne 0x14009ebf9
lea rcx, [rbx + 0x40]
mov edx, 2
call fcn.1400a21e0
mov rcx, rbx
call fcn.1400a2270
jmp 0x14009ec6b
cmp ecx, 0x24
jne 0x14009ec16
lea rcx, [rbx + 0x40]
mov edx, 3
call fcn.1400a21e0
mov rcx, rbx
call fcn.1400a2270
jmp 0x14009ec6b
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14009eca3
cmp ecx, 0x3f
je 0x14009eca3
cmp ecx, 0x7b
je 0x14009eca3
cmp ecx, 0x7d
jne 0x14009ec3d
test dword [rbx + 0x80], 0x10000000
je 0x14009ec8d
cmp ecx, 0x5d
jne 0x14009ec4e
test dword [rbx + 0x80], 0x10000000
je 0x14009ec98
movzx edx, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14009de80
mov rcx, rbx
call fcn.1400a2270
mov rcx, rbx
call fcn.1400a2360
cmp dword [rbx + 0x7c], 0xffffffff
mov al, 1
jne 0x14009ea30
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 5
call fcn.1400597a8
int3
mov ecx, 6
call fcn.1400597a8
int3
mov ecx, 4
call fcn.1400597a8
int3
mov ecx, 0xa
call fcn.1400597a8
int3
Function at 0x1400a745c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14005f060
sub rsp, rax
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.140083fcc
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x1400a74b0
mov rax, r14
jmp 0x1400a75ca
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0x13c170]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.140090e4c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0x13c170]
cmp r13, qword [rbx + rcx + 0x30]
je 0x1400a7517
or rax, 0xffffffffffffffff
jmp 0x1400a75ca
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0x13c170]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a750e
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.140090e4c
test rax, rax
js 0x1400a750e
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x1400a750e
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x1400a75be
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400a75be
cmp byte [rcx], 0xd
jne 0x1400a75a4
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a75b3
cmp byte [rcx + 1], 0xa
jne 0x1400a75b3
inc rcx
jmp 0x1400a75b3
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x138fa0]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x1400a7586
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005f0d0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x2fc4d9a90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4da492
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4da52a
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4da50e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da502
cmp qword [rbp - 0x10], 0
je 0x2fc4da502
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da4c8
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da52b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da630
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da658
mov eax, 0
jmp 0x2fc4da6a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da681
mov eax, 0
jmp 0x2fc4da6a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da6a1
mov eax, 0
jmp 0x2fc4da6a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x28764524
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0x80
mov rax, qword [0x28780780]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x287645e4
mov dword [rsp + 0x68], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x74], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x6c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x287645d8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rax, [0x28780a40]
mov qword [rsp + 0x58], rax
mov eax, dword [0x28780a30]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [0x287a06c0]
call fcn.287612f0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.2876bde0
add rsp, 0x80
pop rdi
ret
Function at 0x287657b4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
je 0x287657d7
jmp 0x2876580d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x28765798]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
add rsp, 0x48
ret

Function at 0x28768b00
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 0x28768b6f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x28768b6f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x28768b6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x28768b6f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x28768b6f
cmp dword [rcx + 0x84], 0xe
jbe 0x28768b6f
cmp dword [rcx + 0xf8], 0
je 0x28768b6f
mov ecx, ebx
call fcn.28768c14
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.28768a08
nop
cmp dword [rbp + 0x20], 0
jne 0x28768bd0
call fcn.2876b2c8
cmp eax, 1
jne 0x28768bc0
xor dl, dl
jmp 0x28768bca
call fcn.2876b294
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x28768bdb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.28768be4
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x28768b00
Function at 0x287709e8
Capabilities:
Query environment variable

Disassembly:
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 esi, esi
mov rbx, rax
test rax, rax
jne 0x28770a18
xor eax, eax
jmp 0x28770adb
mov rbp, rbx
cmp word [rax], si
je 0x28770a3d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x28770a24
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x28770a20
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.2876b920
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x28770a7e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x28770a11
call fcn.28768940
mov rdi, rax
test rax, rax
jne 0x28770a94
xor ecx, ecx
call fcn.287681a0
jmp 0x28770a73
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.2876b920
test eax, eax
jne 0x28770ac5
mov rcx, rdi
call fcn.287681a0
jmp 0x28770acf
xor ecx, ecx
call fcn.287681a0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x28773af0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x28773b18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x28773b18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1401e2e40
Capabilities:
Terminate process

Disassembly:
movabs eax, dword [0x343ca70140759266]
movsd dword [rdi], dword [rsi]
mov bh, 0x6e
sbb byte [rbp + 0x2d], cl
add esp, dword [rbx + 0x752971d4]
lodsb al, byte [rsi]
sbb dh, byte [rdx + rdx + 0x50b5f085]
or ch, byte [rsi]
jne 0x1400e322f
jno 0x1400e324d
invalid
push rsp
sbb al, 0x1c
rol eax, 1
pop rax
invalid
cld
pop r11
jmp 0x1401e2e4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401e2e5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401e2e45
lea eax, [rcx + 1]
jmp 0x1401e2e6b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401e2e7e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401e2e64
sub eax, 3
jb 0x1401e2e9e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401e2eed
sar eax, 1
movsxd rbp, eax
jb 0x1401e2ed4
jmp 0x1401e2eac
add ebx, ebx
jne 0x1401e2eaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401e2ed4
inc ecx
add ebx, ebx
jne 0x1401e2eba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401e2ed4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401e2ecd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401e2ebc
add ecx, 2
jmp 0x1401e2ed9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401e2e02
jmp 0x1401e2e4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xf6e00
mov dl, 0x23
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401e2f39
cmp rsi, rcx
jae 0x1401e2f41
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401e2f20
cmp al, 0x8f
ja 0x1401e2f20
cmp byte [rsi - 2], 0xf
je 0x1401e2f26
sub al, 0xe8
cmp al, 1
ja 0x1401e2f0a
cmp rsi, rcx
jae 0x1401e2f41
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401e2f10
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401e2f41
lodsb al, byte [rsi]
jmp 0x1401e2f20
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1de000]
mov eax, dword [rdi]
or eax, eax
je 0x1401e2f9e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1fe01c]
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 0x1401e2f4e
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 0x1401e2f98
mov qword [rbx], rax
add rbx, 8
jmp 0x1401e2f6e
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 + 0x22f]
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 0x1401e2ff6
sub rsp, 0xffffffffffffff80
jmp 0x1400e3220
Function at 0x180004a60
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x180004a83
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 9]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x46
jb 0x180004a70
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x180004a90
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x180004ac4
mov ecx, esi
lea eax, [rcx - 9]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x180004ab0
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x180004af9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.180007710
nop
cmp byte [rbx + 0xa], 0
je 0x180004b23
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 9]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, 9
jb 0x180004b10
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x180004b58
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180007710
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.1800095d0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180004bac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004ba6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004ba6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800bbe38
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180004bec
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004be7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004be7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800bbe38
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret