joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d7300
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
movsxd rdi, dword [rcx + 0x3c]
mov eax, 0x8664
add rdi, rcx
cmp word [rdi + 4], ax
movzx eax, word [rdi + 0x14]
lea r13, [rax + rdi + 0x18]
je 0x1400d73c0
cmp dword [rdi + 0xa0], 0
je 0x1400d744c
cmp dword [rdi + 0xa4], 0
je 0x1400d744c
mov r12d, dword [rdi + 0x38]
xor ebx, ebx
cmp bx, word [rdi + 6]
jae 0x1400d73b3
lea rsi, [r13 + 0xc]
movsxd rax, ebx
lea rdx, str..rsrc
lea rcx, [rax + rax*4]
lea rbp, [r13 + rcx*8]
mov rcx, rbp
call fcn.14010d534
test eax, eax
je 0x1400d73a5
lea rdx, str..reloc
mov rcx, rbp
call fcn.14010d534
test eax, eax
je 0x1400d73a5
mov eax, dword [rsi + 0x28]
sub eax, dword [rsi - 4]
sub eax, dword [rsi]
shr eax, 2
cmp eax, r12d
cmovb r12d, eax
movzx eax, word [rdi + 6]
inc ebx
add rsi, 0x28
cmp ebx, eax
jl 0x1400d7361
lea eax, [r12*4]
jmp 0x1400d744e
cmp dword [rdi + 0xb0], 0
je 0x1400d744c
cmp dword [rdi + 0xb4], 0
je 0x1400d744c
mov r12d, dword [rdi + 0x38]
xor ebx, ebx
cmp bx, word [rdi + 6]
jae 0x1400d7442
lea rsi, [r13 + 0xc]
nop word [rax + rax]
movsxd rax, ebx
lea rdx, str..rsrc
lea rcx, [rax + rax*4]
lea rbp, [r13 + rcx*8]
mov rcx, rbp
call fcn.14010d534
test eax, eax
je 0x1400d7434
lea rdx, str..reloc
mov rcx, rbp
call fcn.14010d534
test eax, eax
je 0x1400d7434
mov eax, dword [rsi + 0x28]
sub eax, dword [rsi - 4]
sub eax, dword [rsi]
shr eax, 3
cmp eax, r12d
cmovb r12d, eax
movzx eax, word [rdi + 6]
inc ebx
add rsi, 0x28
cmp ebx, eax
jl 0x1400d73f0
lea eax, [r12*8]
jmp 0x1400d744e
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400d7470
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
movzx edi, word [r8 + 0xe]
movzx eax, word [r8 + 0xc]
mov rsi, r9
add edi, eax
mov r10, rcx
lea rbx, [r8 + 0x10]
je 0x1400d7538
mov qword [rsp + 0x60], rbp
mov ebp, dword [rsp + 0x70]
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x1400d74d8
test ebp, ebp
jne 0x1400d74b7
cmp word [rbx], 0x18
je 0x1400d7527
btr ecx, 0x1f
lea eax, [rbp + 1]
mov r9, rsi
lea r8, [rdx + rcx]
mov rcx, r10
mov dword [rsp + 0x20], eax
call fcn.1400d7470
mov r10, qword [rsp + 0x50]
jmp 0x1400d7522
btr ecx, 0x1f
mov r9d, dword [rcx + rdx + 4]
mov r8d, dword [rcx + rdx]
shr r9d, 2
add r8, r10
test r9d, r9d
je 0x1400d7527
mov eax, dword [rsi]
add r8, 4
xor dword [r8 - 4], eax
mov ecx, dword [rsi]
mov eax, 0x8fd66c05
mul ecx
shr edx, 0x11
imul edx, edx, 0x38f40
sub ecx, edx
imul ecx, ecx, 0x2455
add ecx, 0xc091
dec r9d
mov dword [rsi], ecx
jne 0x1400d74f1
mov rdx, qword [rsp + 0x58]
add rbx, 8
dec edi
jne 0x1400d74a6
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d7540
Capabilities:
Check mutex on windows
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x160
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
movsxd rdi, dword [rcx + 0x3c]
xor r13d, r13d
mov rbp, rcx
add rdi, rcx
mov ebx, r13d
movzx eax, word [rdi + 0x14]
lea rsi, [rax + rdi + 0x18]
cmp r13w, word [rdi + 6]
jae 0x1400d75b1
nop word [rax + rax]
lea rdx, str..rsrc
mov rcx, rsi
call fcn.14010d534
test eax, eax
je 0x1400d75b1
movzx eax, word [rdi + 6]
inc ebx
add rsi, 0x28
cmp ebx, eax
jl 0x1400d7590
movzx eax, word [rdi + 6]
cmp ebx, eax
jge 0x1400d774d
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x188], r12
mov byte [rsp + 0x40], r13b
call fcn.14010da60
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.QA1Q0ZWQIE__d
lea rcx, [rsp + 0x40]
mov r8d, eax
call fcn.14010d754
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r12, rax
test rax, rax
je 0x1400d7745
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400d773c
mov ebx, dword [rsi + 0xc]
add rbx, rbp
mov ecx, dword [rbx]
mov dword [rsp + 0x30], ecx
test ecx, ecx
je 0x1400d7733
mov eax, ecx
shr eax, 0x10
xor al, 0x76
cmp cl, al
jne 0x1400d7733
mov eax, ecx
shr ecx, 8
shr eax, 0x18
xor al, 0x5a
cmp cl, al
jne 0x1400d7733
mov edx, dword [rsi + 0x10]
lea r9, [rsp + 0x34]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx edi, word [rbx + 0xe]
movzx eax, word [rbx + 0xc]
add edi, eax
mov dword [rbx], r13d
lea r11, [rbx + 0x10]
je 0x1400d771d
mov eax, dword [rsp + 0x30]
mov ecx, dword [r11 + 4]
test ecx, ecx
jns 0x1400d76c6
cmp word [r11], 0x18
je 0x1400d7711
btr ecx, 0x1f
lea r9, [rsp + 0x30]
mov rdx, rbx
lea r8, [rbx + rcx]
mov rcx, rbp
mov dword [rsp + 0x20], 1
call fcn.1400d7470
mov eax, dword [rsp + 0x30]
jmp 0x1400d7711
btr ecx, 0x1f
mov r9d, dword [rcx + rbx + 4]
mov r8d, dword [rcx + rbx]
shr r9d, 2
add r8, rbp
test r9d, r9d
je 0x1400d7711
nop
xor dword [r8], eax
mov ecx, dword [rsp + 0x30]
mov eax, 0x8fd66c05
add r8, 4
mul ecx
shr edx, 0x11
imul ecx, ecx, 0x2455
imul edx, edx, 0x7eac6fc0
dec r9d
lea eax, [rdx + rcx + 0xc091]
mov dword [rsp + 0x30], eax
jne 0x1400d76e0
add r11, 8
dec edi
jne 0x1400d7691
mov edx, dword [rsi + 0x10]
mov r8d, dword [rsp + 0x34]
lea r9, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x1400d7790
Capabilities:
Enumerate pe sections

Disassembly:
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x28], rbx
movsxd rdi, dword [rcx + 0x3c]
add rdi, rcx
mov eax, 0x8664
mov ecx, dword [rdi + 0x50]
cmp word [rdi + 4], ax
je 0x1400d7846
call fcn.1400854f0
mov r12, rax
mov qword [rsp + 0x28], rax
mov r8d, dword [rdi + 0x50]
xor edx, edx
mov rcx, rax
call fcn.14010da60
mov r8d, dword [rdi + 0x54]
mov rdx, rsi
mov rcx, r12
call fcn.14010c9b0
movsxd r13, dword [r12 + 0x3c]
add r13, r12
movzx eax, word [r13 + 0x14]
lea rdi, [rax + r13 + 0x18]
mov dword [rsp + 0x20], ebx
movzx eax, word [r13 + 6]
cmp ebx, eax
jae 0x1400d78b6
mov eax, ebx
lea rcx, [rax + rax*4]
mov eax, dword [rdi + rcx*8 + 0x14]
test eax, eax
je 0x1400d7842
mov r8d, dword [rdi + rcx*8 + 0x10]
lea rdx, [rsi + rax]
mov ecx, dword [rdi + rcx*8 + 0xc]
add rcx, r12
call fcn.14010c9b0
inc ebx
jmp 0x1400d780e
call fcn.1400854f0
mov r12, rax
mov qword [rsp + 0x28], rax
mov r8d, dword [rdi + 0x50]
xor edx, edx
mov rcx, rax
call fcn.14010da60
mov r8d, dword [rdi + 0x54]
mov rdx, rsi
mov rcx, r12
call fcn.14010c9b0
movsxd r13, dword [r12 + 0x3c]
add r13, r12
movzx eax, word [r13 + 0x14]
lea rdi, [rax + r13 + 0x18]
mov dword [rsp + 0x20], ebx
movzx eax, word [r13 + 6]
cmp ebx, eax
jae 0x1400d78b6
mov eax, ebx
lea rcx, [rax + rax*4]
mov eax, dword [rdi + rcx*8 + 0x14]
test eax, eax
je 0x1400d78b2
mov r8d, dword [rdi + rcx*8 + 0x10]
lea rdx, [rsi + rax]
mov ecx, dword [rdi + rcx*8 + 0xc]
add rcx, r12
call fcn.14010c9b0
inc ebx
jmp 0x1400d7882
mov rax, r12
jmp 0x1400d78c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x40
pop r13
ret

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

Disassembly:
sub rsp, 0x18
mov qword [rsp + 8], 0xfffffffffffffffe
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x1400d78fb
xor eax, eax
jmp 0x1400d794f
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
cmp dword [r8], 0x4550
je 0x1400d790f
xor eax, eax
jmp 0x1400d794f
movzx eax, word [r8 + 0x14]
lea r9, [rax + r8 + 0x18]
xor edx, edx
mov dword [rsp], edx
movzx eax, word [r8 + 6]
cmp edx, eax
jge 0x1400d7946
movsxd rax, edx
lea rcx, [rax + rax*4]
mov eax, dword [r9 + rcx*8 + 0xc]
add eax, dword [r9 + rcx*8 + 8]
cmp eax, dword [r8 + 0x50]
jbe 0x1400d7942
xor eax, eax
jmp 0x1400d794f
inc edx
jmp 0x1400d791b
mov eax, 1
jmp 0x1400d794f
add rsp, 0x18
ret
Function at 0x1400d79a0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
movsxd rsi, dword [rcx + 0x3c]
xor ebp, ebp
mov r12, rcx
add rsi, rcx
mov ebx, ebp
movzx eax, word [rsi + 0x14]
lea rdi, [rax + rsi + 0x18]
cmp bp, word [rsi + 6]
jae 0x1400d7a01
nop word [rax + rax]
lea rdx, str..rsrc
mov rcx, rdi
call fcn.14010d534
test eax, eax
je 0x1400d7a01
movzx eax, word [rsi + 6]
inc ebx
add rdi, 0x28
cmp ebx, eax
jl 0x1400d79e0
movzx eax, word [rsi + 6]
cmp ebx, eax
jl 0x1400d7a0d
xor eax, eax
jmp 0x1400d7a25
mov eax, dword [rdi + 0xc]
mov edx, dword [rax + r12]
test edx, edx
je 0x1400d7a09
mov ecx, edx
shr ecx, 0x18
cmp dl, cl
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x1400d7d20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
movsxd rbx, dword [rdx + 0x3c]
xor r12d, r12d
mov eax, 0x8664
add rbx, rdx
mov qword [rsp + 0x30], r12
xor r9d, r9d
movzx esi, word [rbx + 0x14]
xor r8d, r8d
mov r13, rdx
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
cmp word [rbx + 4], ax
je 0x1400d7e1b
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400d7db2
mov r8d, dword [rbx + 0x54]
lea r9, [rsp + 0x68]
mov rdx, r13
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x54]
cmp dword [rsp + 0x68], r11d
je 0x1400d7dbc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400d7eb7
mov edi, r12d
cmp r12w, word [rbx + 6]
jae 0x1400d7eac
lea rsi, [rsi + rbx + 0x28]
nop
mov edx, dword [rsi + 4]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [rsi - 4]
mov r8d, dword [rsi]
lea r9, [rsp + 0x68]
add rdx, r13
mov rcx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rsi]
cmp dword [rsp + 0x68], r11d
jne 0x1400d7da9
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jb 0x1400d7dd0
jmp 0x1400d7eac
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400d7db2
mov r8d, dword [rbx + 0x54]
lea r9, [rsp + 0x68]
mov rdx, r13
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x54]
cmp dword [rsp + 0x68], r11d
jne 0x1400d7da9
mov edi, r12d
cmp r12w, word [rbx + 6]
jae 0x1400d7eac
lea rsi, [rsi + rbx + 0x28]
mov edx, dword [rsi + 4]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [rsi - 4]
mov r8d, dword [rsi]
lea r9, [rsp + 0x68]
add rdx, r13
mov rcx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rsi]
cmp dword [rsp + 0x68], r11d
jne 0x1400d7da9
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jb 0x1400d7e62
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x1400d7ee0
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rcx, rcx
je 0x1400d8043
cmp byte [rcx], bl
je 0x1400d8043
lea rcx, str.imagehlp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x1400d8043
lea rdx, str.CheckSumMappedFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x1400d8036
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400d8028
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
test rax, rax
je 0x1400d801e
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
je 0x1400d8015
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x88]
mov rcx, r13
call r14
mov r11, rax
test rax, rax
je 0x1400d800c
mov eax, dword [rsp + 0x80]
mov dword [r11 + 0x58], eax
mov ebx, 1
mov dword [rsp + 0x40], ebx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400d8036
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x1400d8045
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400d8400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov r13, rdx
mov rdi, rcx
mov qword [rcx], rdx
xor r12d, r12d
mov qword [rcx + 8], r12
movsxd rbx, dword [rdx + 0x3c]
add rbx, rdx
mov eax, 0x8664
cmp word [rbx + 4], ax
je 0x1400d84e0
cmp dword [rbx + 0x88], r12d
je 0x1400d856b
cmp dword [rbx + 0x8c], r12d
je 0x1400d856b
movzx eax, word [rbx + 0x14]
lea rbp, [rax + rbx + 0x18]
mov esi, r12d
cmp r12w, word [rbx + 6]
jae 0x1400d84a1
nop word [rax + rax]
lea rdx, str..rsrc
mov rcx, rbp
call fcn.14010d534
test eax, eax
je 0x1400d84a1
add rbp, 0x28
inc esi
movzx eax, word [rbx + 6]
cmp esi, eax
jl 0x1400d8480
movzx eax, word [rbx + 6]
cmp esi, eax
jge 0x1400d856b
mov ebx, dword [rbp + 0xc]
add rbx, r13
mov ecx, 0x10
call fcn.1400854f0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400d84db
mov r9, rbx
mov r8, rbx
mov rdx, r13
mov rcx, rax
call fcn.1400d8060
mov r12, rax
jmp 0x1400d8567
cmp dword [rbx + 0x98], r12d
je 0x1400d856b
cmp dword [rbx + 0x9c], r12d
je 0x1400d856b
movzx eax, word [rbx + 0x14]
lea rbp, [rax + rbx + 0x18]
mov esi, r12d
cmp r12w, word [rbx + 6]
jae 0x1400d8531
nop dword [rax]
lea rdx, str..rsrc
mov rcx, rbp
call fcn.14010d534
test eax, eax
je 0x1400d8531
add rbp, 0x28
inc esi
movzx eax, word [rbx + 6]
cmp esi, eax
jl 0x1400d8510
movzx eax, word [rbx + 6]
cmp esi, eax
jge 0x1400d856b
mov ebx, dword [rbp + 0xc]
add rbx, r13
mov ecx, 0x10
call fcn.1400854f0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400d8567
mov r9, rbx
mov r8, rbx
mov rdx, r13
mov rcx, rax
call fcn.1400d8060
mov r12, rax
mov qword [rdi + 8], r12
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x1400d8dc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movsxd rsi, dword [rcx + 0x3c]
xor ebx, ebx
mov rbp, rcx
add rsi, rcx
movzx eax, word [rsi + 0x14]
lea rdi, [rax + rsi + 0x18]
cmp bx, word [rsi + 6]
jae 0x1400d8e11
nop
lea rdx, str..rsrc
mov rcx, rdi
call fcn.14010d534
test eax, eax
je 0x1400d8e11
movzx eax, word [rsi + 6]
inc ebx
add rdi, 0x28
cmp ebx, eax
jl 0x1400d8df0
movzx eax, word [rsi + 6]
cmp ebx, eax
jge 0x1400d8f0d
mov edi, dword [rdi + 0xc]
add rdi, rbp
cmp dword [rdi], 0
jne 0x1400d8f0d
xor ecx, ecx
call fcn.14010d57c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r11, [rdi + 0x10]
xor eax, ebx
mov dword [rsp + 0x40], eax
shr eax, 0x10
xor al, 0x76
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x43]
xor al, 0x5a
mov byte [rsp + 0x41], al
mov eax, dword [rsp + 0x40]
movzx ebx, word [rdi + 0xe]
mov dword [rdi], eax
movzx eax, word [rdi + 0xc]
add ebx, eax
je 0x1400d8f0d
mov eax, dword [rsp + 0x40]
mov ecx, dword [r11 + 4]
test ecx, ecx
jns 0x1400d8ea9
cmp word [r11], 0x18
je 0x1400d8f01
btr ecx, 0x1f
lea r9, [rsp + 0x40]
mov rdx, rdi
lea r8, [rdi + rcx]
mov rcx, rbp
mov dword [rsp + 0x20], 1
call fcn.1400d7470
mov eax, dword [rsp + 0x40]
jmp 0x1400d8f01
btr ecx, 0x1f
mov r9d, dword [rcx + rdi + 4]
mov r8d, dword [rcx + rdi]
shr r9d, 2
add r8, rbp
test r9d, r9d
je 0x1400d8f01
nop word [rax + rax]
xor dword [r8], eax
mov ecx, dword [rsp + 0x40]
mov eax, 0x8fd66c05
add r8, 4
mul ecx
shr edx, 0x11
imul ecx, ecx, 0x2455
imul edx, edx, 0x7eac6fc0
dec r9d
lea eax, [rdx + rcx + 0xc091]
mov dword [rsp + 0x40], eax
jne 0x1400d8ed0
add r11, 8
dec ebx
jne 0x1400d8e74
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d9f10
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
test rcx, rcx
je 0x1400d9fe4
cmp byte [rcx], bl
je 0x1400d9fe4
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400d9fd7
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, 0x1000
cmp eax, ebp
cmovb ebp, eax
mov ecx, ebp
call fcn.1400854f0
lea r9, [rsp + 0x50]
mov r8d, ebp
mov rcx, rsi
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d9fbc
cmp ebp, dword [rsp + 0x50]
jne 0x1400d9fbc
mov rcx, rdi
call fcn.1400d78e0
test eax, eax
je 0x1400d9fbc
mov rcx, rdi
call fcn.1400d8f30
mov ebx, eax
mov rcx, rdi
call fcn.140085540
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x1400da030
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x160
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x40], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.14010da60
nop
test rbx, rbx
jne 0x1400da0ae
lea rdx, [rsp + 0x40]
mov ecx, 0xff
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400da030
lea rbx, [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x1400da12a
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
jne 0x1400da12a
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx], al
inc rbx
inc rdx
test al, al
jne 0x1400da0e0
lea rdi, [r8 + 0x30]
mov rcx, rdi
call fcn.1400c9bc0
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.AE52FVSF.HTM]
mov qword [rdi - 1], rax
mov eax, dword [0x140231968]
mov dword [rdi + 7], eax
movzx eax, byte [0x14023196c]
mov byte [rdi + 0xb], al
mov esi, 1
mov dword [rsp + 0x20], esi
mov eax, esi
jmp 0x1400da132
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400da3e0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, rcx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x30]
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x1400da43a
lea rcx, [rbx + 0x30]
call fcn.1400d0090
test eax, eax
je 0x1400da43a
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400da43a
xor edx, edx
lea rcx, [rbx + 0x30]
call fcn.1400d67e0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400da44e
call fcn.140085540
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400da464
call fcn.140085540
mov qword [rbx + 8], 0
jmp 0x1400da46b
lea rcx, [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.1400ca400
Function at 0x1400db160
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
xor eax, eax
mov qword [rbx], rax
mov dword [rbx + 8], eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400db2a3
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x31]
call fcn.14010da60
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdi, [rsp + 0x30]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.psapi.dll]
mov qword [rdi - 1], rax
movzx eax, word [0x140231cc8]
mov word [rdi + 7], ax
movzx eax, byte [0x140231cca]
mov byte [rdi + 9], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400db2a3
lea rdx, str.EnumProcesses
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
lea rdx, str.EnumProcessModules
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, [0x140231c80]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
cmp qword [rbx + 0x40], 0
je 0x1400db2a3
cmp qword [rbx + 0x48], 0
je 0x1400db2a3
test rax, rax
je 0x1400db2a3
mov dword [rbx + 8], 1
cmp dword [rbx + 8], 0
jne 0x1400db339
lea rdx, [0x140231c60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
lea rdx, [0x140231c50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
lea rdx, [0x140231c40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
lea rdx, str.Module32First
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
lea rdx, str.Module32Next
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
cmp qword [rbx + 0x18], 0
je 0x1400db339
cmp qword [rbx + 0x20], 0
je 0x1400db339
cmp qword [rbx + 0x28], 0
je 0x1400db339
cmp qword [rbx + 0x30], 0
je 0x1400db339
test rax, rax
je 0x1400db339
mov dword [rbx + 4], 1
cmp dword [rbx + 4], 0
jne 0x1400db345
cmp dword [rbx + 8], 0
je 0x1400db34b
mov dword [rbx], 1
mov rax, rbx
jmp 0x1400db355
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret