joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b189c
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea rdx, str.Microsoft_WinInet_
mov rcx, qword [rcx + 8]
call fcn.1400c526c
test rax, rax
je 0x1400b194b
mov edx, dword [rbx + 0x20]
cmp edx, 0x14
jb 0x1400b1abe
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 4]
cmp rax, qword [0x1400f0060]
jne 0x1400b1abe
mov rax, qword [rcx + 0xc]
cmp rax, qword [0x1400f0068]
jne 0x1400b1abe
lea rax, [0x1400ef140]
mov dword [rbp - 0x20], edx
mov qword [rbp - 8], rax
lea r8, [rbp - 0x10]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
and dword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rbp - 0x10], SQLSetEnvAttr
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b1aaa
lea rcx, str.___CredentialBlob:
jmp 0x1400b1a81
mov rcx, qword [rbx + 8]
lea rdx, str.AppSense_DataNow_
call fcn.1400c526c
test rax, rax
je 0x1400b1abe
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.14000bda8
cmp dword [rbx + 0x20], 0x14
jb 0x1400b1abe
mov rbx, qword [rbx + 0x28]
lea rcx, str.AppN_DN_Win
mov rdx, rbx
call fcn.1400e3950
test eax, eax
jne 0x1400b1abe
cmp dword [rbx + 0xc], eax
je 0x1400b1a26
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000bda8
mov eax, dword [rbx + 0xc]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], eax
xor r9d, r9d
lea rax, [rbx + 0x14]
xor r8d, r8d
mov qword [rbp - 0x18], rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b1a12
lea rcx, str.___CredentialBlob:
call fcn.14000bda8
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140012810
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bda8
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b1a26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.14000bda8
cmp dword [rbx + 0x10], 0
je 0x1400b1abe
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000bda8
mov eax, dword [rbx + 0x10]
lea rcx, [rbx + 0x14]
mov dword [rbp - 0x20], eax
xor r9d, r9d
mov eax, dword [rbx + 0xc]
xor r8d, r8d
add rcx, rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b1aaa
lea rcx, str.___UnkBlob_______:
call fcn.14000bda8
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140012810
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bda8
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b1abe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.14000bda8
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x1400b9c20
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbp, rcx
lea rdx, [r11 + 0x10]
mov rcx, qword [rax + 8]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x1400b9ccf
mov eax, dword [rsp + 0x38]
test eax, eax
jle 0x1400b9cb8
xor ebx, ebx
test eax, eax
jle 0x1400b9caf
mov rsi, rdi
mov rcx, qword [rsi]
lea rdx, str._HTC:
mov r8d, 5
call fcn.1400d5060
test eax, eax
je 0x1400b9c88
inc ebx
add rsi, 8
cmp ebx, dword [rsp + 0x38]
jl 0x1400b9c61
jmp 0x1400b9caf
movsxd rax, ebx
xor edx, edx
mov rcx, qword [rdi + rax*8]
lea r8d, [rdx + 0xa]
add rcx, 0xa
call fcn.1400cc328
mov edx, eax
mov rcx, rbp
mov ebx, eax
call fcn.1400b9cf8
test rbx, rbx
jne 0x1400b9cc4
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
jmp 0x1400b9cbf
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.14000bda8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b9ce3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
call fcn.14000bda8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b9cf8
Capabilities:
Encode data using xor
Encrypt data using dpapi
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
lea r9, [rsp + 0x60]
mov dword [rsp + 0x30], esi
mov r8, rax
mov dword [rsp + 0x28], esi
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400b9e4d
mov rcx, qword [rsp + 0x60]
lea edx, [rsi + 4]
xor r9d, r9d
mov qword [rsp + 0x20], 0x61c
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1400b9e2c
mov edx, 0x610
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400b9e21
mov rcx, rax
lea rdx, [rdi + 0xc]
mov r8d, 0x610
call fcn.1400c5f00
mov edx, 0x610
lea r8d, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SystemFunction041]
test eax, eax
jne 0x1400b9e0a
mov r9d, dword [rbx + 0x400]
lea r10, [rbx + 0x404]
test r9d, r9d
je 0x1400b9de3
mov rdx, r10
mov r8d, r9d
mov cl, byte [rdx]
mov al, cl
xor al, sil
mov sil, cl
xor al, 0x43
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x1400b9dc5
mov r9d, dword [rbx + 0x400]
mov eax, dword [rbx + 0x604]
lea r8, [rbx + 0x200]
mov dword [rsp + 0x28], eax
lea rcx, str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
mov rdx, rbx
mov qword [rsp + 0x20], r10
call fcn.14000bda8
jmp 0x1400b9e18
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___RtlDecryptMemory:_0x_08x_n
call fcn.14000bda8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1400b9e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
call fcn.14000bda8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b9e61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
call fcn.14000bda8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c0b34
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
xor ebp, ebp
xor r9d, r9d
and qword [rax - 0x38], rbp
mov edx, 0x80000000
and dword [rax - 0x40], ebp
lea r8d, [rbp + 3]
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400c0c78
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c0c59
mov r12d, 0x10000000
lea ecx, [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400c0c6d
mov rax, qword [rsp + 0x80]
xor ecx, ecx
test rax, rax
jle 0x1400c0c4e
lea r14, [rcx + 0x10000000]
mov rbx, rax
sub rbx, rcx
mov rdx, rcx
cmp r14, rax
mov rcx, rsi
cmovl rbx, r12
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400c0c26
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c0c17
mov edx, dword [rsp + 0x78]
mov rcx, rdi
call fcn.1400c0a2c
add ebp, eax
jmp 0x1400c0c3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___ReadFile__0x_08x__n
jmp 0x1400c0c33
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___SetFilePointerEx__0x_08x__n
mov edx, eax
call fcn.14000bda8
mov rax, qword [rsp + 0x80]
mov rcx, r14
cmp r14, rax
jl 0x1400c0bbf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400c0c6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___GetFileSizeEx__0x_08x__n
call fcn.14000bda8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c0c8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___CreateFile__0x_08x__n
call fcn.14000bda8
mov rbx, qword [rsp + 0x70]
mov eax, ebp
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d6448
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d61ac
Function at 0x1400db9ac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400db812
call fcn.1400d71f0
mov dword [rax], SQLAllocHandle
call fcn.1400d6e2c
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400db7f4
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400db7f4
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1400db844
lock or dword [rax + 0x14], 0x10
jmp 0x1400db7f4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400db861
mov rcx, qword [rbp + 0x20]
call fcn.1400e0784
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1400db876
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1400db87c
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1400caa9c
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400e0da0
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1400db8cf
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1400db7f4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400db93b
mov rcx, qword [rbp + 0x20]
call fcn.1400caa9c
cmp eax, 0xffffffff
je 0x1400db922
mov rcx, qword [rbp + 0x20]
call fcn.1400caa9c
cmp eax, 0xfffffffe
je 0x1400db922
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1400caa9c
movsxd rdi, eax
lea r15, [0x14015ec70]
mov rcx, rbx
sar rdi, 6
call fcn.1400caa9c
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1400db929
lea rax, [0x1401582e0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400db93b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1400db971
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400db96d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400db96d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1400db98f
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1400db99a
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1400db7f9
jmp 0x1400db7c0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400043f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004400]
mov dword [rax], 1
mov rax, qword [0x140004410]
mov dword [rax], 1
mov rax, qword [0x140004390]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400043e0]
mov dword [0x140007020], 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 [0x1400044b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004490]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004340]
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 0x140001810
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 0x140001880
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 0x1400019b0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001955
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400019d2
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 0x1400019b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000194e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001960
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 0x14000194e
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 0x1400018d8
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 0x140001f40
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 0x140001f9c
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 0x140001f93
test rsi, rsi
je 0x140001f93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f78
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 0x1400021b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400021e0
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 0x14000222d
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 0x140002224
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000222f
add rax, 0x28
cmp rax, r9
jne 0x140002210
xor eax, eax
ret

Function at 0x140002230
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022c0
mov rdx, qword [0x140004390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400022ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022ae
cmp word [rax + 0x18], 0x20b
jne 0x1400022ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400022c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002299
add rbx, 0x28
cmp rbx, rdi
je 0x1400022c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002290
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 0x1400022d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000234d
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 0x140002344
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022f0
add rax, 0x28
cmp rax, r9
jne 0x140002330
xor eax, eax
ret

Function at 0x140002350
Capabilities:
Parse pe header

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

Function at 0x140002390
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002400
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023f7
test rcx, rcx
je 0x1400023b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023e8
xor eax, eax
ret
Function at 0x140002410
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002470
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002478
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002470
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002470
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 0x1400024c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400024d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400024b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002502
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002510
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002502
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002502
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002502
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 0x140002565
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002578
add rdx, 0x28
cmp rdx, r10
jne 0x140002550
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002587
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002597
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000256e
test ecx, ecx
jg 0x140002580
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret