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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14008ad82
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x14008ad48
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14008ad04
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x14008ad1a
jmp 0x14008ad27
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x14008ad27
cmp eax, 0x3e5
jne 0x14008ad38
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14008ad2b
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14008ad2d
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.14005b7a0
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14008acc1
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14008ada0
int3
Function at 0x14008e9f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov esi, 1
test cl, 1
jne 0x14008eb70
mov eax, dword [0x1400d30f0]
cmp eax, 3
jne 0x14008eb80
mov r15, rdx
cmp byte [rdx], 0
mov eax, 0x17
mov ebx, 2
cmovne ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008ea88
test byte [r15], 1
je 0x14008eafb
movups xmm0, xmmword [r15 + 4]
mov eax, dword [r15 + 0x14]
mov edx, dword [r15 + 0x18]
movzx ecx, word [r15 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x14008eb12
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x14008eaa2
mov r14d, eax
cmp eax, 0x2726
jne 0x14008eb65
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14008eb5d
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x14008ea5c
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call fcn.1400a61e8
jmp 0x14008eb65
mov eax, dword [r15 + 2]
movzx ecx, word [r15 + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rbp - 0x14], r9w
mov word [rbp - 0x12], cx
mov dword [rbp - 0x10], eax
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], edx
lea rdx, [rbp - 0x14]
mov rcx, rdi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x14008eb41
xor esi, esi
mov rdx, rdi
jmp 0x14008eb70
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rdi
call fcn.1400a61e8
mov rdx, rbx
jmp 0x14008eb70
call sub.ws2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov rdx, r14
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, rdx
call fcn.14007ddc0
mov rdx, rdi
jmp 0x14008ea1e
Function at 0x140098620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x14009d590
push rsi
push rdi
push rbx
sub rsp, 0x70
mov esi, dword [0x1400a9178]
test esi, esi
je 0x14009d692
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14009d6d5
je 0x14009d68e
movups xmm0, xmmword [0x1400c0be8]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x1400c0bd8]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1400c0bc8]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1400c0bb8]
movaps xmmword [rsp + 0x20], xmm0
movabs rax, 0x2000000000000
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], esi
movzx eax, byte [0x1400d3130]
mov edx, 0x50
xor ecx, ecx
call fcn.14008b3c0
test rax, rax
je 0x14009d6dd
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14009d6d2
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x14009d6c1
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x14009d6b3
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14009d6c1
call fcn.140092a70
jmp 0x14009d6c1
xor eax, eax
jmp 0x14009d6d5
lea rcx, [0x1400a9160]
call fcn.140057530
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14009d5b8
jmp 0x14009d6d5
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14009d6c1
call fcn.1400928b0
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rdi
call fcn.1400a6040
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call fcn.14000bba0
ud2
Function at 0x1400997a0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x40], r8
mov rbx, rdx
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140099955
mov r14, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x20]
cmp r9, 0x7fffffff
mov r15d, 0x7fffffff
cmovb r15, r9
jmp 0x140099812
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, r12
call fcn.1400a6040
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rbp
call fcn.1400a6040
lea rcx, [rsp + 0x28]
mov rdx, r14
mov r8, rbx
mov r9b, 1
call fcn.1400a0380
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x140099972
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x14009998c
movzx esi, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140099996
test rdi, rdi
sete r12b
call sub.ws2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.14003dcf0
cmp al, 0xd
setne al
or al, r12b
jne 0x1400998c5
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
lock inc qword [rax]
jle 0x1400999af
add rcx, 0x10
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
movzx r9d, byte [rdi + 0x18]
call fcn.14003da40
mov r12, rax
test rax, rax
je 0x1400998c5
mov rcx, r13
call fcn.14003d140
mov r13, r12
mov rcx, r13
call fcn.1400962e0
cmp al, 0xd
jne 0x140099985
and ebp, 0x23
mov rax, qword [r14 + 0x90]
xor rbp, 0x2f
mov ecx, esi
shl ecx, 0x10
nop dword [rax + rax]
mov edx, eax
shr edx, 0x10
cmp sil, dl
jne 0x14009990c
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r14 + 0x90], rdx
jne 0x1400998f0
mov eax, r13d
and eax, 3
cmp eax, 1
jne 0x140099812
lea rbp, [r13 - 1]
mov r12, qword [r13 - 1]
mov r13, qword [r13 + 7]
mov rax, qword [r13]
test rax, rax
je 0x140099935
mov rcx, r12
call rax
cmp qword [r13 + 8], 0
je 0x140099801
cmp qword [r13 + 0x10], 0x11
jb 0x1400997f0
mov r12, qword [r12 - 8]
jmp 0x1400997f0
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x28]
mov r8, rbx
mov r9b, 1
call fcn.1400a0380
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x14009997c
mov eax, 2
mov r13, rbp
jmp 0x14009999b
cmp al, 2
jne 0x1400999b1
mov r13, qword [rsp + 0x28]
mov eax, 1
jmp 0x14009999b
mov eax, 1
mov r13, rbp
jmp 0x14009999b
movsxd r13, eax
xor eax, eax
mov rdx, r13
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, [0x1400bffe8]
call fcn.140012950
mov rsi, rax
cmp qword [r13 + 8], 0
je 0x1400999e4
cmp qword [r13 + 0x10], 0x11
jb 0x1400999d3
mov r12, qword [r12 - 8]
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, r12
call fcn.1400a6040
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rbp
call fcn.1400a6040
mov rcx, rsi
call fcn.1400a6610
mov rsi, rax
mov rcx, r13
call fcn.14003d140
mov rcx, rsi
call fcn.1400a6610
call fcn.140012be0
int3
Function at 0x14009d590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x14009d590
push rsi
push rdi
push rbx
sub rsp, 0x70
mov esi, dword [0x1400a9178]
test esi, esi
je 0x14009d692
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14009d6d5
je 0x14009d68e
movups xmm0, xmmword [0x1400c0be8]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x1400c0bd8]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1400c0bc8]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1400c0bb8]
movaps xmmword [rsp + 0x20], xmm0
movabs rax, 0x2000000000000
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], esi
movzx eax, byte [0x1400d3130]
mov edx, 0x50
xor ecx, ecx
call fcn.14008b3c0
test rax, rax
je 0x14009d6dd
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14009d6d2
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x14009d6c1
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x14009d6b3
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14009d6c1
call fcn.140092a70
jmp 0x14009d6c1
xor eax, eax
jmp 0x14009d6d5
lea rcx, [0x1400a9160]
call fcn.140057530
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14009d5b8
jmp 0x14009d6d5
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14009d6c1
call fcn.1400928b0
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rdi
call fcn.1400a6040
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call fcn.14000bba0
ud2

Function at 0x14009dec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov esi, dword [0x1400a9130]
test esi, esi
je 0x14009df69
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14009df5c
je 0x14009df5a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x1400d3130]
mov edx, 0x18
xor ecx, ecx
call fcn.14008b3c0
test rax, rax
je 0x14009df8a
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14009df55
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rdi
call fcn.1400a6040
mov rax, rsi
jmp 0x14009df5c
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400a9118]
call fcn.140057530
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14009dee9
jmp 0x14009df5c
mov ecx, 8
mov edx, 0x18
call fcn.14000bba0
int3
Function at 0x14009fca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x1400a9158]
test esi, esi
je 0x14009fd79
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14009fd71
je 0x14009fd6f
movzx eax, byte [0x1400d3130]
mov edx, 0x28
xor ecx, ecx
call fcn.14008b3c0
test rax, rax
je 0x14009fd9a
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
movzx eax, byte [0x1400d3130]
mov edx, 0x10
xor ecx, ecx
call fcn.14008b3c0
test rax, rax
je 0x14009fda9
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14009fd6a
mov rax, qword [rdi]
lock dec qword [rax]
jne 0x14009fd59
mov rcx, qword [rdi]
call fcn.140028190
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rdi
call fcn.1400a6040
mov rax, rsi
jmp 0x14009fd71
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400a9140]
call fcn.140057530
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14009fcc8
jmp 0x14009fd71
mov ecx, 8
mov edx, 0x28
call fcn.14000bba0
mov ecx, 8
mov edx, 0x10
call fcn.14000bba0
ud2

Function at 0x1400a7780
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 fcn.1400a8540
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400a8540
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400a77f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d31c4]
mov rbx, rcx
test esi, esi
jle 0x1400a7920
mov rax, qword [0x1400d31c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400a783b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400a78c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400a7820
mov rcx, rbx
call fcn.1400a8260
mov rdi, rax
test rax, rax
je 0x1400a7942
mov rax, qword [0x1400d31c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400a83a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d31c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a7927
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400a78be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400a78d0
add dword [0x1400d31c4], 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 [0x1400d31c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a78be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400a7780
nop dword [rax]
xor esi, esi
jmp 0x1400a7848
mov rax, qword [0x1400d31c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400a7780
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400a7780
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400a7ed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d3220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d3200]
test rbx, rbx
je 0x1400a7f2c
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 rsi, rsi
je 0x1400a7f23
test eax, eax
jne 0x1400a7f23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400a7f08
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 0x1400a8260
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400a82e0
Capabilities:
Parse pe header

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

Function at 0x1400a83a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c2e40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400a83bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400a83c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001fac
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov r8, rcx
or rdi, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov r9, rdi
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea edx, [rdi + 0x5d]
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rdx, [rsp + 0x228]
mov r9, rdi
add rax, 2
mov r8, rbx
sub rdx, rax
mov rcx, rax
sar rdx, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rsp + 0x20]
call fcn.140001f24
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14000202f
mov eax, ebx
jmp 0x140002035
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140009d5c], eax
test rdi, rdi
je 0x140002044
mov eax, ebx
jmp 0x14000204f
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x140009d58], eax
cmp eax, 0xffffffff
jne 0x140002062
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x140009d54], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400033c0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x14000208c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x30], rax
lea r8, str.CommonFilesDir
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea esi, [rbx + 2]
mov r9d, esi
mov qword [rsp + 0x20], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000213f
cmp dword [rsp + 0x40], 4
jb 0x14000213f
mov eax, dword [rsp + 0x40]
lea r8, str.Microsoft_SharedOffice16_
shr rax, 1
lea rcx, [rsp + 0x50]
mov edx, 0x104
cmp word [rsp + rax*2 + 0x4c], 0x5c
cmove ebx, esi
or r9, 0xffffffffffffffff
add r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140001fac
jmp 0x140002141
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400033c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140002168
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareMicrosoftOffice16.0CommonFilesPaths
lea rax, [rsp + 0x50]
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9d, 2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400021df
cmp dword [rsp + 0x40], 4
jb 0x1400021df
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001fac
jmp 0x1400021e1
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400033c0
add rsp, 0x270
pop rbx
ret
Function at 0x140002c10
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140002c88
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140002c88
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140002c88
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140002c7c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140002c9a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140002c6a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140002c8a

Function at 0x140003b7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003bc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003bc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003bc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003bc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140003bc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003bc8
xor al, al
add rsp, 0x28
ret
Function at 0x140005450
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140005480
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000547f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005485
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000547f
mov eax, 0
jmp 0x14000547f

Function at 0x140005b00
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005ab0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000f110
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140017c50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140017c50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]