joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005470
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
mov eax, 0x30
call fcn.1400064a0
sub rsp, rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400054a7
lea r8d, [rax - 0x2f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite
call fcn.1400049a0
cmp dword [rbx + 0x1c], 0
mov qword [rsp + 0x58], rdi
jne 0x1400054e7
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
xor edi, edi
mov r8d, esi
mov rdx, r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005570
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jne 0x140005506
mov eax, esi
and eax, 0x80000fff
jge 0x140005502
dec eax
or eax, 0xfffff000
inc eax
test eax, eax
je 0x1400054b2
xor edi, edi
mov dword [rsp + 0x50], edi
test esi, esi
je 0x1400054d5
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov rcx, qword [rbx + 0x10]
dec esi
movsxd rdx, r8d
mov byte [rdx + rcx], al
mov r8d, dword [rbx + 0x24]
inc dword [rsp + 0x50]
inc r8d
mov dword [rbx + 0x24], r8d
cmp r8d, dword [rbx + 0x20]
jne 0x14000555a
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x68]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005570
mov dword [rbx + 0x24], edi
mov r8d, edi
test esi, esi
jne 0x140005510
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rsp + 0x58]
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140005590
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x480
call fcn.1400064a0
sub rsp, rax
mov rax, qword [0x140031c80]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rax, [0x140025514]
xor r15d, r15d
mov qword [rsp + 0x50], rax
mov rbp, r9
mov qword [rsp + 0x68], r15
mov r14d, r8d
mov rbx, rdx
movzx edi, cl
call fcn.140004250
mov r8, rax
lea rdx, str._________Han._s_event_message_at__s__________n
mov r9, rbx
lea rcx, [rsp + 0x270]
call fcn.140004030
lea eax, [rdi - 0x57]
lea esi, [r15 + 4]
test al, 0xdf
jne 0x140005609
lea esi, [r15 + 2]
sub dil, 0x45
test dil, 0xdf
jne 0x140005618
mov esi, 1
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServicesEventlogApplication]
lea rax, [rsp + 0x270]
mov qword [rsp + 0x60], rbp
movups xmm1, xmmword [0x140025558]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
mov eax, dword [0x140025578]
dec rcx
mov dword [rsp + 0xa0], eax
movzx eax, word [0x14002557c]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x140025568]
mov word [rsp + 0xa4], ax
movzx eax, byte [0x14002557e]
mov byte [rsp + 0xa6], al
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x90], xmm0
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140005686
mov eax, dword [str.HAN.]
mov dword [rcx], eax
movzx eax, word [0x140025584]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x70]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x1400056b0
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400056c0
lea r9, str._Systemdrive_MgrHanEvents.dll
lea r8, str.EventMessageFile
lea rdx, [rsp + 0x70]
lea rcx, str.HKLM
call fcn.1400062e0
test eax, eax
je 0x140005708
xor r8d, r8d
lea rdx, [0x1400255c4]
lea rcx, [0x1400255c8]
call fcn.1400049a0
mov r9d, 7
lea r8, str.TypesSupportet
lea rdx, [rsp + 0x70]
lea rcx, str.HKLM
call fcn.140006210
test eax, eax
je 0x140005740
xor r8d, r8d
lea rdx, [0x1400255c4]
lea rcx, [0x1400255c8]
call fcn.1400049a0
mov eax, dword [str.Han.]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
dec rcx
movzx eax, byte [0x1400255e4]
mov byte [rsp + 0x74], al
nop dword [rax]
cmp byte [rcx + 1], r15b
lea rcx, [rcx + 1]
jne 0x140005760
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140005770
lea rdx, [rsp + 0x70]
lea rcx, [0x1400255e5]
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov rbx, rax
mov r9d, r14d
lea rax, [rsp + 0x50]
movzx edx, si
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], r15d
mov word [rsp + 0x28], 3
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140006500
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005df0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x28
call fcn.1400064a0
sub rsp, rax
movsxd rcx, ecx
call fcn.140004610
mov rcx, rax
add rsp, 0x28
jmp 0x140005df0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.1400064a0
sub rsp, rax
cmp qword [0x140032888], 0
mov rbp, rcx
jne 0x140005e6f
xor r8d, r8d
lea edx, [rax - 0x1f]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x140032880], rax
test rax, rax
jne 0x140005e4b
lea r8d, [rax + 1]
lea rdx, str.CreateMutex
lea rcx, str.ss_ch
call fcn.1400049a0
mov ecx, 0x1000
call fcn.140004200
mov ecx, 0x2000
mov qword [0x140032888], rax
call fcn.140004200
mov qword [0x140032890], rax
jmp 0x140005e9f
mov rcx, qword [0x140032880]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140005e9f
mov r8d, 1
lea rdx, [0x140025690]
lea rcx, str.ss_ch
call fcn.1400049a0
movsxd rbx, dword [0x140032864]
lea eax, [rbx + 1]
mov dword [0x140032864], eax
cmp eax, 0x400
jl 0x140005ec0
mov dword [0x140032864], 0
mov rcx, rbp
call fcn.140005dd0
mov rcx, qword [0x140032890]
lea rdi, [rbx*4]
lea rbx, [rbx*8]
lea esi, [rax + 8]
cmp qword [rbx + rcx], 0
jne 0x140005f20
mov eax, 0x20
mov ecx, esi
cmp esi, eax
cmovl ecx, eax
mov rax, qword [0x140032888]
mov dword [rdi + rax], ecx
mov rcx, qword [0x140032888]
mov ecx, dword [rdi + rcx]
call fcn.140004200
mov rcx, qword [0x140032890]
mov qword [rbx + rcx], rax
mov rcx, qword [0x140032890]
mov rax, qword [0x140032888]
cmp dword [rdi + rax], esi
jge 0x140005f51
mov rcx, qword [rbx + rcx]
call fcn.140004160
mov ecx, esi
call fcn.140004200
mov rdx, qword [0x140032890]
mov qword [rbx + rdx], rax
mov rax, qword [0x140032888]
mov dword [rdi + rax], esi
mov rcx, qword [0x140032880]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x140005f79
lea r8d, [rax + 1]
lea rdx, [0x140025700]
lea rcx, str.ss_ch
call fcn.1400049a0
mov rcx, qword [0x140032890]
mov rdx, rbp
mov rcx, qword [rbx + rcx]
call fcn.1400063b0
mov rax, qword [0x140032890]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, qword [rbx + rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006050
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x78
call fcn.1400064a0
sub rsp, rax
mov rax, qword [0x140031c80]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x1400328a8]
test rax, rax
jne 0x1400060cf
call fcn.140006150
mov r9d, eax
lea r8, str._8.8x_ss_lock_pr
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.1400040a0
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400328a8], rax
test rax, rax
jne 0x1400060cf
lea r8d, [rax + 1]
lea rdx, str.CreateMutex
lea rcx, str.ss_lock_pr
call fcn.1400049a0
mov rax, qword [0x1400328a8]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1400060fb
mov r8d, 1
lea rdx, [0x140025690]
lea rcx, str.ss_lock_pr
call fcn.1400049a0
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006500
add rsp, 0x78
ret
Function at 0x140006210
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
mov eax, 0x60
call fcn.1400064a0
sub rsp, rax
mov rsi, r8
mov rbx, rdx
call fcn.140006170
lea rcx, [rsp + 0x50]
xor edi, edi
mov qword [rsp + 0x40], rcx
lea r9, str.REG_DWORD
lea rcx, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rdx, rbx
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400062c8
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 4
lea r9d, [rdi + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
setne dil
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 1
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400062e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x60
call fcn.1400064a0
sub rsp, rax
mov rsi, r9
mov rbp, r8
mov rbx, rdx
call fcn.140006170
lea rcx, [rsp + 0x50]
xor edi, edi
mov qword [rsp + 0x40], rcx
lea r9, str.REG_SZ
lea rcx, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rdx, rbx
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140006389
mov rcx, rsi
call fcn.140005db0
mov rcx, qword [rsp + 0x58]
lea r9d, [rdi + 1]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
setne dil
mov eax, edi
jmp 0x14000638e
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140006ee0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006f2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006f2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006f2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006f2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140006f2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006f2c
xor al, al
add rsp, 0x28
ret
Function at 0x1400148e0
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 0x14001474b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001474b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001474b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001474b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001474b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001474b
cmp dword [rcx + 0xf8], 0
je 0x14001474b
mov ecx, ebx
call fcn.1400147fc
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.1400145d8
nop
cmp dword [rbp + 0x20], 0
je 0x140014799
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400147a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400146dc
Function at 0x14001b1f8
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 0x14001b228
xor eax, eax
jmp 0x14001b2eb
mov rbp, rbx
cmp word [rax], si
je 0x14001b24d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b234
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b230
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.14001978c
movsxd r14, eax
test eax, eax
jne 0x14001b28b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b221
mov rcx, r14
call fcn.14001720c
mov rdi, rax
test rax, rax
jne 0x14001b2a4
xor ecx, ecx
call fcn.140016594
jmp 0x14001b280
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.14001978c
test eax, eax
jne 0x14001b2d5
mov rcx, rdi
call fcn.140016594
jmp 0x14001b2df
xor ecx, ecx
call fcn.140016594
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 0x14001eec8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001eede
mov al, 1
jmp 0x14001ef3e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001eeef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ef3c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001b9fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ef3c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ef3c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ef3c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ef3e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140020820
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140011340
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400208aa
cmp byte [rbp - 0x21], r15b
je 0x1400208a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400208e0
call fcn.1400167e4
test eax, eax
jne 0x1400208cc
cmp byte [rbp - 0x21], r15b
je 0x1400208c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400208e0
cmp byte [rbp - 0x21], r15b
je 0x1400208dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400199d4
test eax, eax
jne 0x140020980
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011340
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002091f
cmp byte [rbp - 0x21], r15b
je 0x140020954
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020954
call fcn.1400167e4
test eax, eax
jne 0x140020940
cmp byte [rbp - 0x21], r15b
je 0x140020939
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020954
cmp byte [rbp - 0x21], r15b
je 0x140020951
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400199d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020980
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020983
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020991
mov rcx, rdi
call fcn.140016594
cmp byte [rbp + 0x3f], r15b
je 0x1400209a0
mov rcx, qword [rbp + 0x27]
call fcn.140016594
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140022770
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1400583cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400583dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400583c5
lea eax, [rcx + 1]
jmp 0x1400583eb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400583fe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400583e4
sub eax, 3
jb 0x14005841e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005846d
sar eax, 1
movsxd rbp, eax
jb 0x140058454
jmp 0x14005842c
add ebx, ebx
jne 0x14005842a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140058454
inc ecx
add ebx, ebx
jne 0x14005843a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140058454
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005844d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005843c
add ecx, 2
jmp 0x140058459
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140058382
jmp 0x1400583cd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400584b9
cmp rsi, rcx
jae 0x1400584c1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400584a0
cmp al, 0x8f
ja 0x1400584a0
cmp byte [rsi - 2], 0xf
je 0x1400584a6
sub al, 0xe8
cmp al, 1
ja 0x14005848a
cmp rsi, rcx
jae 0x1400584c1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140058490
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400584c1
lodsb al, byte [rsi]
jmp 0x1400584a0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x56000]
mov eax, dword [rdi]
or eax, eax
je 0x14005852a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5871c]
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 0x1400584ce
jns 0x140058503
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005850d
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 0x140058524
mov qword [rbx], rax
add rbx, 8
jmp 0x1400584ee
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 0x140058564
cmp al, 0xef
ja 0x140058556
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140058536
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140058545
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 0x1400585b8
sub rsp, 0xffffffffffffff80
jmp 0x14000c1f0
Function at 0x140001e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001e9c
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 0x140001e93
test rsi, rsi
je 0x140001e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e78
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 0x1400020b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x140004640]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

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