joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400133e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
mov r12, r9
mov rcx, rdx
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
or r10d, 0xffffffff
lea r14, [0x14003ab80]
mov r11d, eax
xor ebx, ebx
add r11d, r11d
mov rsi, r15
cmp dword [0x14003ab6c], ebx
jne 0x140013476
mov dword [0x14003ab6c], 1
mov edx, ebx
mov r9, r14
mov r8d, edx
mov edi, 8
mov ecx, r8d
mov eax, r8d
shr ecx, 1
mov r8d, ecx
xor r8d, 0xedb88320
and al, 1
cmove r8d, ecx
dec edi
test edi, edi
jg 0x140013447
mov dword [r9], r8d
inc edx
add r9, 4
cmp edx, 0xff
jle 0x14001343f
test r11d, r11d
je 0x1400134a0
mov edx, r11d
movzx ecx, byte [rsi]
mov eax, r10d
xor rcx, rax
inc rsi
movzx eax, cl
mov ecx, r10d
shr ecx, 8
mov r10d, dword [r14 + rax*4]
xor r10d, ecx
sub rdx, 1
jne 0x14001347e
xor edx, edx
not r10d
mov eax, r10d
mov r14d, ebx
div dword [r13 + 0x18]
mov edi, edx
cmp dword [r13 + 0x18], ebx
jbe 0x1400134eb
mov rbp, qword [r13 + 0x10]
mov eax, edi
lea rsi, [rax + rax*2]
mov rcx, qword [rbp + rsi*8 + 8]
cmp dword [rsp + 0x60], ebx
je 0x14001350f
test rcx, rcx
je 0x1400134de
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140013540
cmp qword [rbp + rsi*8 + 8], rbx
jne 0x140013521
cmp dword [rbp + rsi*8], ebx
jne 0x140013521
mov ebx, 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rcx, rcx
je 0x140013540
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140013540
lea eax, [rdi + 1]
inc r14d
mov edi, eax
sub edi, dword [r13 + 0x18]
cmp eax, dword [r13 + 0x18]
cmovb edi, eax
cmp r14d, dword [r13 + 0x18]
jb 0x1400134b7
jmp 0x1400134eb
mov dword [r12], edi
jmp 0x1400134f0

Function at 0x14001437c
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0x30], 0x10
and qword [r11 - 0x30], rax
lea r9, [r11 - 0x20]
mov qword [r11 - 0x20], rax
mov rdi, rdx
mov qword [r11 - 0x18], rax
xor r8d, r8d
lea rax, [r11 - 0x28]
mov edx, 0x4000000b
mov qword [r11 - 0x38], rax
xor ebx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1400143e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001440e
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x14001440e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140015ba0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140014b6c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
lea rdi, str.unknown
cmp qword [0x1400398c0], 0xffffffffffffffff
mov r8d, 0x104
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
je 0x140014cf9
cmp qword [0x14003ab70], rbx
je 0x140014cf9
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140014bf9
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140017700
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400128ec
test eax, eax
jns 0x140014c19
mov r14d, ebx
mov r15d, ebx
jmp 0x140014c23
mov r14d, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140014c4d
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140017700
call fcn.140015414
mov r8, rax
lea rdx, str._Logging_started:__S_
mov ecx, 1
call fcn.140014ac4
movzx ecx, r15w
lea rdx, [rbp + 0x160]
mov qword [rsp + 0x38], rdx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
lea rdx, str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
movzx eax, r14w
mov ecx, 1
shr r15d, 0x10
shr r14d, 0x10
mov dword [rsp + 0x28], r15d
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.140014ac4
mov ecx, dword [0x1400398c8]
test ecx, ecx
je 0x140014cdc
sub ecx, 1
je 0x140014cd3
sub ecx, 1
je 0x140014cca
cmp ecx, 1
jne 0x140014ce3
lea rdi, str.debug
jmp 0x140014ce3
lea rdi, str.verbose
jmp 0x140014ce3
lea rdi, str.standard
jmp 0x140014ce3
lea rdi, str.none
mov r8, rdi
lea rdx, str.____logging_level:__s____
mov ecx, 1
call fcn.140014ac4
jmp 0x140014cfe
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140015ba0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014d54
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x18]
xor ebx, ebx
and qword [r11 - 0x18], rbx
mov r8d, edx
and dword [rsp + 0x78], ebx
mov rdx, rcx
mov qword [r11 - 0x28], rax
xor r9d, r9d
and dword [rsp + 0x28], ebx
lea rax, [r11 - 0x18]
mov ecx, 0x900
mov qword [r11 - 0x38], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, eax
test eax, eax
jne 0x140014dc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014e4c
test esi, esi
je 0x140014e0f
mov rcx, qword [0x1400398c0]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014e07
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014e4c
add edi, dword [rsp + 0x78]
cmp edi, esi
jb 0x140014dc6
mov rcx, qword [0x1400398c0]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
lea rdx, [0x140033810]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014e4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140014e5c
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140014e70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x30
and qword [rax + 0x20], 0
mov r8, rdx
mov rdx, rcx
xor edi, edi
and dword [rax + 0x18], edi
lea rcx, [rax + 0x20]
call fcn.140011ff4
mov ebx, eax
test eax, eax
js 0x140014f3e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test eax, eax
je 0x140014f01
mov rcx, qword [0x1400398c0]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, ebp
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014ef9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014f3e
add edi, dword [rsp + 0x50]
cmp edi, ebp
jb 0x140014eb8
mov rcx, qword [0x1400398c0]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, [0x140033810]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp qword [rsp + 0x58], 0
je 0x140014f5c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140014fcc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
mov rdi, rcx
mov r14d, 0x80070000
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400150cb
lea rax, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400150de
mov rcx, qword [rsp + 0x40]
call fcn.140014fcc
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400150de
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400150de
jmp 0x1400150d3
cmp ebx, 0x80070103
je 0x1400150dc
test ebx, ebx
jne 0x1400150de
jmp 0x14001500a
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400150ee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140015ba0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140015118
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rsp + 0x230], rax
or r9, 0xffffffffffffffff
lea r8, str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400196e0
cmp eax, 0x50
jne 0x140015159
mov eax, 0x8007007a
jmp 0x14001519e
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test eax, eax
jne 0x1400151b7
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.1400174fc
test rax, rax
je 0x140015190
mov word [rax], bx
cmp bx, word [rax + 2]
je 0x140015173
cmp word [rsp + 0x20], bx
je 0x14001519c
test rax, rax
jne 0x14001515b
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140015ba0
add rsp, 0x240
pop rbx
ret
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1400151ce
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400151d0
mov eax, ebx
cmp eax, 1
jne 0x14001519e
jmp 0x14001515b
Function at 0x1400151d8
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
mov r9d, 0x2001f
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x140015214
lea ebx, [rax - 1]
jmp 0x140015261
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140015261
mov rcx, qword [rsp + 0x50]
call fcn.140014fcc
mov ebx, eax
test eax, eax
js 0x140015261
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140015271
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140015338
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400153b0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r9, rdi
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140015391
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
test eax, eax
je 0x1400153b0
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140019234
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x14002ad30]
lea rdx, str.FlsAlloc
call fcn.14001905c
mov rbx, rax
test rax, rax
je 0x140019274
mov rcx, rax
call fcn.14001656c
mov rcx, rdi
call rbx
jmp 0x14001927a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400192dc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, str.FlsGetValue
mov ecx, 2
lea r8, [0x14002ad58]
lea rdx, str.FlsGetValue
call fcn.14001905c
mov rdi, rax
test rax, rax
je 0x14001931d
mov rcx, rax
call fcn.14001656c
mov ecx, ebx
call rdi
jmp 0x140019325
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140019330
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14002ad70]
call fcn.14001905c
mov rsi, rax
test rax, rax
je 0x14001937c
mov rcx, rax
call fcn.14001656c
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x140019387
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 0x14001e3f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e150

Function at 0x1400283b0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140028423
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x140028423
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x140028423
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x140028418
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x140028430
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x140028404
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x140028425

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14003f370
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003f37d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003f38d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003f375
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003f3a5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003f392
sub eax, 3
jb 0x14003f3bf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003f3f6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003f3e6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003f3e4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003f3d3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003f332
jmp 0x14003f37d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x24600
mov dl, 0xc
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003f442
cmp rsi, rcx
jae 0x14003f44a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003f429
cmp al, 0x8f
ja 0x14003f429
cmp byte [rsi - 2], 0xf
je 0x14003f42f
sub al, 0xe8
cmp al, 1
ja 0x14003f413
cmp rsi, rcx
jae 0x14003f44a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003f419
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003f44a
lodsb al, byte [rsi]
jmp 0x14003f429
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3d000]
mov eax, dword [rdi]
or eax, eax
je 0x14003f4a7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3f2d8]
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 0x14003f457
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 0x14003f4a1
mov qword [rbx], rax
add rbx, 8
jmp 0x14003f477
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 0x14003f4ff
sub rsp, 0xffffffffffffff80
jmp 0x14000e1cc
Function at 0x140001970
Capabilities:
Check for debugger via api
Check for peb ntglobalflag flag

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140001a88
xor ebx, ebx
mov dword [rsp + 0x48], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x1400019b0
cmp dword [rsp + 0x48], ebx
jne 0x140001a6e
mov qword [rsp + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x16]
call qword [0x14005e160]
test eax, eax
jne 0x1400019e7
cmp qword [rsp + 0x48], rbx
jne 0x140001a7b
call fcn.140001ad0
test al, al
jne 0x140001a88
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0xd8]
cmp dword [rdx + rax + 0xc], ebx
jne 0x140001a88
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x30]
call fcn.140001890
test eax, eax
mov edx, 0x70
mov ebx, 0x14
cmovne ebx, edx
call fcn.140001890
test eax, eax
mov ecx, 0x18
mov edx, 0x74
cmovne ecx, edx
test dword [rbx + rdi], 0xfffffffd
jne 0x140001a88
cmp dword [rcx + rdi], 0
jne 0x140001a88
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
jne 0x140001a88
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140001aa0
int3
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140001aa0
int3
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140001aa0
int3
Function at 0x140001ad0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14005aac0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x58], rsi
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r14d, ebx
mov qword [rsp + 0x48], rbx
xor r15b, r15b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd r8, dword [rax + 0x3c]
add r8, rax
movzx eax, word [r8 + 0x14]
lea r9, [r8 + 0x18]
add r9, rax
mov edx, ebx
mov dword [rsp + 0x40], ebx
lea r10, [0x140040994]
movzx eax, word [r8 + 6]
cmp edx, eax
jge 0x140001b7e
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rdi, [r9 + rcx*8]
mov rax, rbx
nop dword [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r10 + rax - 1]
jne 0x140001b76
cmp rax, 7
jne 0x140001b60
jmp 0x140001b81
inc edx
mov dword [rsp + 0x40], edx
jmp 0x140001b44
mov rdi, rbx
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001c4a
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r12d, 1
mov r8d, r12d
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x140001c4a
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [r12 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140001c4a
mov ecx, dword [rdi + 0x10]
add ecx, dword [rdi + 0x14]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140001c4a
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0xd8]
sub edx, dword [rdi + 0xc]
add edx, dword [rdi + 0x14]
movzx r15d, r15b
cmp dword [rdx + rax + 0xc], 0
cmovne r15d, r12d
test r14, r14
je 0x140001c58
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test rbx, rbx
je 0x140001c66
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0xffffffffffffffff
je 0x140001c75
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r15b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14001ebd0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret