joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800357e4
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x2e0
mov rax, qword [0x18009c600]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
xor ebx, ebx
mov edi, r8d
mov r12, rdx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebx
mov rsi, rcx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r13d, [rbx + 1]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800358a1
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, r12
mov rcx, rax
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x1800358a1
cmp dword [rsp + 0x40], edi
jne 0x1800358a1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [rbx + 6]
lea r8d, [rbx + 4]
lea rcx, [rsp + 0x50]
xor r9d, r9d
call fcn.18003ba70
lea rdx, [rsp + 0x50]
lea rcx, [0x1800a4a78]
mov r8, rsi
call fcn.1800354ec
cmp eax, ebx
cmovne ebx, r13d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, str._s.wk
lea rcx, [rsp + 0xc0]
mov r8, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r13d
jne 0x1800358e3
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1800520e0
mov rbx, qword [rsp + 0x328]
add rsp, 0x2e0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180035b18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
lea r8, [0x180085808]
movzx edx, dx
mov rsi, r9
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r12, rax
cmp rax, rbx
je 0x180035b96
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp eax, ebx
je 0x180035b96
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rbx
je 0x180035b96
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
cmp rax, rbx
je 0x180035b96
cmp rsi, rbx
je 0x180035b8a
mov qword [rsi], rax
mov rax, qword [rsp + 0x50]
mov ebx, 1
mov dword [rax], edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
Function at 0x18003a92c
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18009c600]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov rdi, rcx
mov esi, r8d
mov rbp, rdx
lea rcx, [r11 - 0x48]
lea r9d, [rbx + 1]
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
je 0x18003a9b0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, ebx
jne 0x18003a9cf
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800520e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, ebx
jne 0x18003aa01
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x18003a9b0
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov edx, 2
mov dword [rsp + 0x30], reloc.WS2_32.dll_sendto
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, ebx
je 0x18003a9b0
cmp dword [rsp + 0x30], ebx
jbe 0x18003aa5b
mov edi, ebx
lea rsi, [rsp + 0x48]
movzx r8d, byte [rsi]
mov ecx, edi
lea rdx, str._02x
add rcx, rbp
call fcn.180053d4c
inc ebx
add edi, 2
inc rsi
cmp ebx, dword [rsp + 0x30]
jb 0x18003aa38
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
jmp 0x18003a9b2
Function at 0x18003ba70
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebp, ebp
sub r9d, 1
mov ebx, r8d
mov esi, edx
mov rdi, rcx
je 0x18003babd
sub r9d, 1
je 0x18003bab5
mov r12d, ebp
cmp r9d, 1
je 0x18003baad
lea r13d, [rbp + 0x3e]
jmp 0x18003bac9
mov r13d, 0xa
jmp 0x18003bac9
mov r12d, 0x24
jmp 0x18003bac3
mov r12d, 0xa
mov r13d, 0x1a
test ebx, ebx
je 0x18003baf2
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.180053e24
add eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.180053e0c
call fcn.180053e24
cdq
idiv ebx
add edx, esi
mov rbx, rbp
movsxd rsi, edx
test edx, edx
jle 0x18003bb4d
nop dword [rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.180053e24
add eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.180053e0c
call fcn.180053e24
cdq
idiv r13d
add edx, r12d
cmp edx, 0xa
jge 0x18003bb32
add dx, 0x30
jmp 0x18003bb41
cmp edx, 0x24
jge 0x18003bb3d
add dx, 0x37
jmp 0x18003bb41
add dx, 0x3d
mov word [rdi + rbx*2], dx
inc rbx
cmp rbx, rsi
jl 0x18003bb00
mov rbx, qword [rsp + 0x48]
mov word [rdi + rsi*2], bp
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x18003e940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x18003e959
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x180084bc0]
cmp r11d, 8
jb 0x18003ea52
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
sub rbx, 1
jne 0x18003e980
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x18003ea80
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r11d, 0xffffffff
jne 0x18003ea60
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x18003f2b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x18003f300
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18003f2fa
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x18003f331
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x18003f318
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.18005a1e0
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18003f350
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r12, rdx
mov rbx, rcx
je 0x18003f3a0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18003f39a
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x18003f3da
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x18003f3b6
mov edi, ecx
sub edi, ebp
mov rdx, rbp
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x20]
mov esi, edi
call fcn.18005a1e0
lea r11d, [rbp + rdi]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x2c], r11d
mov rdi, qword [rsp + 0x30]
cmp esi, 1
mov rsi, qword [rsp + 0x68]
jne 0x18003f3fc
movzx eax, byte [rsp + 0x50]
mov dword [r12], eax
xor eax, eax
add rsp, 0x38
pop r12
pop rbx
ret
cmp byte [rbx], 0
je 0x18003f3f2
cmp byte [rbx + 0x10], 0
je 0x18003f3f2
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret
Function at 0x18003f4e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r15
sub rsp, 0x68
cmp byte [rcx], 0
mov rsi, rcx
je 0x18003f518
cmp byte [rcx + 1], 0
je 0x18003f50d
mov rcx, qword [rcx + 8]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x18003f51e
or eax, 0xffffffff
add rsp, 0x68
pop r15
pop rsi
ret
mov eax, dword [rcx + 0x28]
mov dword [rcx + 0x2c], eax
cmp byte [rsi], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r13
je 0x18003f570
cmp byte [rsi + 1], 0
je 0x18003f563
mov rcx, qword [rsi + 8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r12d, eax
sub r12d, dword [rsi + 0x14]
mov dword [rsp + 0x80], r12d
jmp 0x18003f57c
xor r12d, r12d
mov dword [rsp + 0x80], r12d
jmp 0x18003f57c
mov r12d, dword [rsi + 0x2c]
mov dword [rsp + 0x80], r12d
mov ebp, 0xffff
mov r13d, 0x404
cmp r12d, ebp
mov rcx, r13
cmovb ebp, r12d
mov dword [rsp + 0x98], ebp
call fcn.180052aa0
mov rdi, rax
test rax, rax
jne 0x18003f5ad
or eax, 0xffffffff
jmp 0x18003f702
mov qword [rsp + 0x60], rbx
mov ebx, 4
or r15d, 0xffffffff
cmp ebp, ebx
jbe 0x18003f6f2
mov qword [rsp + 0x38], r14
nop dword [rax + rax]
lea eax, [rbx + 0x400]
mov r14d, r12d
cmp eax, ebp
mov ebx, eax
cmova ebx, ebp
sub r14d, ebx
sub r12d, r14d
cmp r12d, r13d
cmova r12d, r13d
cmp byte [rsi], 0
je 0x18003f615
cmp byte [rsi + 1], 0
je 0x18003f6ed
mov eax, dword [rsi + 0x14]
mov rcx, qword [rsi + 8]
xor r9d, r9d
lea edx, [r14 + rax]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x18003f619
mov dword [rsi + 0x2c], r14d
cmp byte [rsi], 0
mov ebp, r12d
mov r13d, r12d
je 0x18003f65b
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x88]
mov r8d, ebp
mov rdx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18003f64d
mov byte [rsi + 0x10], 1
mov eax, dword [rsp + 0x88]
xor edx, edx
div rbp
jmp 0x18003f68d
mov ecx, dword [rsi + 0x2c]
mov edx, dword [rsi + 0x28]
lea eax, [rcx + r12]
cmp eax, edx
jbe 0x18003f66f
mov r13d, edx
sub r13d, ecx
mov rdx, rcx
mov r8d, r13d
mov rcx, rdi
add rdx, qword [rsi + 0x20]
call fcn.18005a1e0
add dword [rsi + 0x2c], r13d
xor edx, edx
mov eax, r13d
div rbp
cmp rax, 1
jne 0x18003f6ed
lea ecx, [r12 - 3]
movsxd rax, ecx
test ecx, ecx
js 0x18003f6cb
nop
dec rax
dec ecx
cmp byte [rax + rdi], 0x50
jne 0x18003f6c0
cmp byte [rax + rdi + 1], 0x4b
jne 0x18003f6c0
cmp byte [rax + rdi + 2], 5
jne 0x18003f6c0
cmp byte [rax + rdi + 3], 6
je 0x18003f6c7
test rax, rax
jns 0x18003f6a0
jmp 0x18003f6cb
lea r15d, [rcx + r14]
test r15d, r15d
jne 0x18003f6ed
mov ebp, dword [rsp + 0x98]
mov r12d, dword [rsp + 0x80]
mov r13d, 0x404
cmp ebx, ebp
jb 0x18003f5d0
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1800529c4
mov rbx, qword [rsp + 0x60]
mov eax, r15d
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x40]
add rsp, 0x68
pop r15
pop rsi
ret
Function at 0x180040330
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x18004034e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x180040342
cmp qword [rcx + 0x80], 0
je 0x180040363
call fcn.1800408f0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180040040
test eax, eax
je 0x18004038a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.180052aa0
mov rbx, rax
test rax, rax
jne 0x1800403b0
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.180052aa0
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
mov dword [rbx + 0x6c], ecx
test rax, rax
jne 0x1800403f6
mov rcx, rbx
call fcn.1800529c4
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, ebp
cmp dword [rdi + 0x38], ecx
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
sete cl
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x94], eax
test ecx, ecx
jne 0x18004044d
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.18003ed40
test eax, eax
jne 0x18004044d
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x18004047e
movzx eax, byte [rdi + 0x3d]
mov byte [rbx + 0xac], al
jmp 0x180040488
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
neg al
mov dword [rbx + 0xa4], 0x34567890
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
test rsi, rsi
je 0x18004052a
lea r8, [0x180084bc0]
movzx eax, byte [rsi]
test al, al
je 0x18004052a
mov edx, dword [rbx + 0x9c]
mov rcx, rdx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0xa4]
movzx eax, cl
mov dword [rbx + 0x9c], ecx
movzx ecx, dl
add eax, dword [rbx + 0xa0]
shr edx, 8
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0xa0], eax
movzx eax, byte [rbx + 0xa3]
xor rcx, rax
mov eax, dword [r8 + rcx*4]
xor eax, edx
add rsi, 1
mov dword [rbx + 0xa4], eax
jne 0x1800404c6
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
lea ecx, [rcx + rax + 0x1e]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x180040aa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
sub rsp, 0x20
cmp qword [rcx], 0
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
jne 0x180040b80
cmp dword [rcx + 8], 0xffffffff
jne 0x180040b80
lea rdx, [rcx + 0x250]
mov ecx, 0x104
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x250]
repne scasw ax, word [rdi]
not rcx
movzx eax, word [rbx + rcx*2 + 0x24c]
cmp ax, 0x5c
je 0x180040b29
cmp ax, 0x2f
je 0x180040b29
xor eax, eax
lea rdi, [rbx + 0x250]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov eax, dword [0x18007f688]
mov dword [rdi - 2], eax
mov ecx, gethostbyname
call fcn.180052a04
xor edi, edi
mov rcx, rax
mov byte [rax], 0
mov byte [rax + 1], 1
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r12
mov dword [rax + 0x28], ebp
mov dword [rax + 0x2c], edi
mov dword [rax + 0x14], edi
call fcn.18003f720
mov rsi, qword [rsp + 0x30]
test rax, rax
mov ecx, 0x200
cmove edi, ecx
mov qword [rbx], rax
mov eax, edi
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, 0x1000000
add rsp, 0x20
pop r12
ret
Function at 0x180042a20
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using des

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r9d, dword [rcx]
mov r8d, dword [rcx + 4]
mov rbx, rcx
mov eax, r9d
mov rdi, rdx
mov esi, 8
shr eax, 4
lea rbp, [0x180000000]
xor eax, r8d
and eax, 0xf0f0f0f
xor r8d, eax
shl eax, 4
xor r9d, eax
mov eax, r9d
shr eax, 0x10
xor eax, r8d
movzx ecx, ax
xor r8d, ecx
shl ecx, 0x10
xor r9d, ecx
mov eax, r8d
shr eax, 2
xor eax, r9d
and eax, 0x33333333
xor r9d, eax
shl eax, 2
xor r8d, eax
mov r10d, r8d
shr r10d, 8
xor r10d, r9d
and r10d, 0xff00ff
xor r9d, r10d
shl r10d, 8
xor r10d, r8d
rol r10d, 1
mov r11d, r10d
xor r11d, r9d
and r11d, 0xaaaaaaaa
xor r10d, r11d
xor r11d, r9d
rol r11d, 1
nop word [rax + rax]
mov eax, r10d
add rdi, 0x10
ror eax, 4
xor eax, dword [rdi - 0x10]
mov edx, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov r9d, dword [rbp + rcx*4 + 0xa22d0]
or r9d, dword [rbp + rax*4 + 0xa24d0]
mov rax, rdx
and edx, 0x3f
shr rax, 8
and eax, 0x3f
or r9d, dword [rbp + rax*4 + 0xa26d0]
mov eax, dword [rdi - 0xc]
or r9d, dword [rbp + rdx*4 + 0xa28d0]
xor eax, r10d
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [rbp + rcx*4 + 0xa23d0]
or edx, dword [rbp + rax*4 + 0xa25d0]
mov rax, r8
and r8d, 0x3f
shr rax, 8
and eax, 0x3f
or edx, dword [rbp + rax*4 + 0xa27d0]
or edx, dword [rbp + r8*4 + 0xa29d0]
or edx, r9d
xor r11d, edx
mov eax, r11d
ror eax, 4
xor eax, dword [rdi - 8]
mov edx, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov r9d, dword [rbp + rcx*4 + 0xa22d0]
or r9d, dword [rbp + rax*4 + 0xa24d0]
mov rax, rdx
and edx, 0x3f
shr rax, 8
and eax, 0x3f
or r9d, dword [rbp + rax*4 + 0xa26d0]
mov eax, dword [rdi - 4]
or r9d, dword [rbp + rdx*4 + 0xa28d0]
xor eax, r11d
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [rbp + rcx*4 + 0xa23d0]
or edx, dword [rbp + rax*4 + 0xa25d0]
mov rax, r8
and r8d, 0x3f
shr rax, 8
and eax, 0x3f
or edx, dword [rbp + rax*4 + 0xa27d0]
or edx, dword [rbp + r8*4 + 0xa29d0]
or edx, r9d
xor r10d, edx
sub rsi, 1
jne 0x180042ad0
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ror r10d, 1
mov edx, r10d
xor edx, r11d
and edx, 0xaaaaaaaa
xor r10d, edx
xor edx, r11d
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, r10d
and eax, 0xff00ff
xor r10d, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, r10d
and eax, 0x33333333
xor r10d, eax
shl eax, 2
xor edx, eax
mov eax, r10d
shr eax, 0x10
xor eax, edx
movzx ecx, ax
xor edx, ecx
shl ecx, 0x10
xor r10d, ecx
mov ecx, r10d
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
xor ecx, edx
shl eax, 4
xor eax, r10d
mov dword [rbx], eax
mov dword [rbx + 4], ecx
mov rbx, qword [rsp + 8]
ret
Function at 0x180043730
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x110
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x18009c600]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, r8
xor eax, eax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov word [r11 - 0x48], ax
mov byte [r11 - 0x80], al
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov dword [rsp + 0x3c], 0x10325476
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1800292fc
cmp byte [rsp + 0x98], dil
jne 0x1800437ce
lea rcx, [rsp + 0x30]
call fcn.1800293d4
mov edx, edi
cmp edx, 0x10
jae 0x1800437ea
mov ecx, edx
movzx eax, byte [rsp + rcx + 0x88]
mov byte [rsp + rcx + 0xa0], al
inc edx
jmp 0x1800437d0
xor eax, eax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
cmp edi, 0x10
jge 0x180043843
movsxd rax, edi
movzx r8d, byte [rsp + rax + 0xa0]
lea eax, [rdi + rdi]
movsxd rcx, eax
lea rcx, [rsp + rcx + 0xd8]
lea rdx, str._.2x
call fcn.180053d4c
inc edi
jmp 0x180043814
lea rcx, [rsp + 0xd8]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rbx], al
inc rcx
inc rbx
test al, al
jne 0x180043850
mov eax, 1
jmp 0x180043868
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1800520e0
mov rbx, qword [rsp + 0x138]
add rsp, 0x110
pop rdi
ret
Function at 0x180043fc0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
lea rax, [rsp + 0x30]
mov edi, r9d
mov r13, r8
mov rbx, rdx
mov r12d, ecx
test rax, rax
je 0x180044001
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rcx, str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU__A_OICI_GA___BA_
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
xor r9d, r9d
lea rdx, [rsp + 0x30]
or rcx, 0xffffffffffffffff
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x1800440a1
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x1800440a1
mov r8, r12
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rbp
call fcn.180054ba0
mov qword [rbx], rsi
mov dword [rbx + 8], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx + 0xc], eax
test r13, r13
je 0x18004408c
test edi, edi
je 0x18004408c
lea rdx, [r12 - 0x10]
lea rcx, [rbx + 0x10]
mov r9, rdi
mov r8, r13
call fcn.18005217c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rbp, qword [rsp + 0x70]
mov eax, 1
jmp 0x1800440a3
xor eax, eax
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret