joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407554
Capabilities:
Delete file

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call fcn.00408780
cmp eax, 0xffffffff
je 0x40758a
test al, 0x10
jne 0x40758a
test al, 1
je 0x40758a
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call fcn.004070dc
test al, al
je 0x4075fb
mov rcx, rbx
call fcn.0040b228
mov edi, eax
cmp eax, 1
je 0x4075aa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4075aa
mov al, 1
jmp 0x4075fb
test edi, edi
je 0x4075f9
lea rcx, [rsp + 0x28]
call fcn.004034f4
nop
cmp edi, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040b8f4
test al, al
je 0x4075ef
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call fcn.00402364
mov al, bl
jmp 0x4075fb
mov rcx, qword [rsp + 0x28]
call fcn.00402364
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x40762c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
cmp eax, ecx
setne al
add rsp, 0x28
ret

Function at 0x407644
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
mov dword [rcx + 8], 0
mov rax, qword [rcx]
mov word [rax], 0
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x407746
cmp ebx, 0x114
jae 0x4076b0
mov word [rsp + 0x268], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.004036d8
mov al, 1
jmp 0x407746
lea rcx, [rsp + 0x20]
call fcn.004034f4
nop
cmp ebx, dword [rsp + 0x2c]
jbe 0x4076cd
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.004031c8
mov rdx, qword [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r11d, eax
test eax, eax
jne 0x4076ef
mov rcx, qword [rsp + 0x20]
call fcn.00402364
xor al, al
jmp 0x407746
mov rcx, qword [rsp + 0x20]
mov word [rcx + rbx*2], 0
xor eax, eax
cmp word [rcx], ax
je 0x40770d
inc eax
add rcx, 2
cmp word [rcx], 0
jne 0x407701
mov dword [rsp + 0x28], eax
cmp eax, r11d
jne 0x40773a
lea eax, [rbx - 1]
cmp eax, r11d
jne 0x40773a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.00403740
nop
mov rcx, qword [rsp + 0x20]
call fcn.00402364
mov al, 1
jmp 0x407746
mov rcx, qword [rsp + 0x20]
call fcn.00402364
xor al, al
add rsp, 0x278
pop rdi
pop rbx
ret

Function at 0x407838
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor edi, edi
mov ecx, 0x114
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov esi, eax
call fcn.004036d8
mov rcx, rbx
call fcn.0040abb0
cmp esi, edi
je 0x407885
cmp esi, 0x114
jae 0x407885
mov edi, 1
mov al, dil
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x407894
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12b, dl
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
shl ebx, 2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r13d, eax
xor r13d, edi
xor edi, edi
mov ebx, edi
lea r15d, [rdi + 1]
mov dword [rsi + 8], edi
mov rcx, qword [rsi]
mov byte [rcx], dil
cmp r12b, dil
je 0x40795c
mov r10d, r13d
mov r9, rdi
mov r11d, 8
mov r8d, r10d
and r8d, 0xf
shr r10d, 4
lea edx, [r8 + 0x30]
lea eax, [r8 + 0x37]
movzx ecx, al
movzx eax, dl
cmp r8d, 0xa
cmovb ecx, eax
mov byte [rsp + r9 + 0x38], cl
add r9, r15
sub r11, r15
jne 0x407900
mov byte [rsp + r9 + 0x38], dil
cmp rbp, rdi
je 0x40793f
mov rcx, rsi
call fcn.00403d64
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.00402f30
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, r15d
add r13d, eax
mov r12b, r15b
cmp rbp, rdi
je 0x407973
lea rdx, str..tmp
mov rcx, rsi
call fcn.00402f30
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.00403560
nop
mov rdx, qword [rsi]
lea rcx, [rsp + 0x28]
call fcn.00403980
mov rcx, qword [rsp + 0x28]
call fcn.00409350
cmp al, dil
je 0x4079b5
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x28]
call fcn.00402364
jmp 0x4079fc
cmp rbp, rdi
je 0x4079d1
mov r8d, r15d
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.0040a084
cmp al, dil
jne 0x407a0a
jmp 0x4079e0
mov rcx, qword [rsp + 0x28]
call fcn.00407490
cmp al, dil
jne 0x407a19
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4079f2
cmp eax, 0xb7
jne 0x407a28
mov rcx, qword [rsp + 0x28]
call fcn.00402364
add ebx, r15d
cmp ebx, 0x64
jb 0x4078e6
jmp 0x407a32
mov rcx, qword [rsp + 0x28]
call fcn.00402364
mov al, r15b
jmp 0x407a3d
mov rcx, qword [rsp + 0x28]
call fcn.00402364
mov al, r15b
jmp 0x407a3d
mov rcx, qword [rsp + 0x28]
call fcn.00402364
mov dword [rsi + 8], edi
mov rax, qword [rsi]
mov byte [rax], dil
xor al, al
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x408780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040b228
mov ebx, eax
cmp eax, 1
je 0x4087ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4087fe
test ebx, ebx
je 0x4087f9
lea rcx, [rsp + 0x28]
call fcn.004034f4
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040b8f4
test al, al
je 0x4087ef
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x28]
call fcn.00402364
mov eax, ebx
jmp 0x4087fe
mov rcx, qword [rsp + 0x28]
call fcn.00402364
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x409490
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, rcx
movsxd rbx, dword [rcx + 8]
mov rdi, rbx
test ebx, ebx
je 0x4094e0
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [rbp]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x4094dc
mov rcx, qword [rsi]
call fcn.00402364
mov rcx, rsi
call fcn.00402364
test ebx, ebx
jne 0x4094b8
mov dword [rbp + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test eax, eax
je 0x4095e5
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x40951f
add rcx, rcx
call fcn.0040232c
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test eax, eax
je 0x4095db
cmp eax, edi
ja 0x4095db
lea rcx, [rsp + 0x28]
call fcn.004034f4
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x4095bc
mov r12, rbx
cmp word [r12], 0
jne 0x4095b2
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.004036d8
lea r13d, [rdi + 1]
mov rcx, rbp
call fcn.0040d9c4
mov ecx, 0x10
call fcn.0040232c
mov qword [rsp + 0x88], rax
test rax, rax
je 0x40959e
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.00403650
mov r11, rax
jmp 0x4095a1
xor r11d, r11d
mov ecx, dword [rbp + 8]
lea eax, [rcx + 1]
mov dword [rbp + 8], eax
mov rax, qword [rbp]
mov qword [rax + rcx*8], r11
inc edi
add r12, 2
cmp edi, esi
jb 0x409553
cmp r13d, esi
sete dil
mov rcx, qword [rsp + 0x28]
call fcn.00402364
nop
mov rcx, rbx
call fcn.00402364
mov al, dil
jmp 0x4095e5
mov rcx, rbx
call fcn.00402364
xor al, al
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4096b4
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 9], 0
mov rbx, rdx
je 0x4096d3
cmp byte [rcx + 0xa], 0
je 0x4096d3
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x40970f
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
jne 0x4096fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4096fe
xor al, al
jmp 0x409711
mov ecx, dword [rsp + 0x40]
mov rax, rdi
shl rcx, 0x20
add rcx, rdi
mov qword [rbx], rcx
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x409834
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
setne al
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret

Function at 0x409870
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x400000
cmp r8d, eax
cmova r8d, eax
jmp fcn.00409834

Function at 0x409934
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, 0x400000
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
cmova r8d, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x409a48
Capabilities:
Clear file content

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.00409774
xor ebx, ebx
cmp al, bl
je 0x409a70
cmp qword [rsp + 0x50], rdi
je 0x409a74
xor al, al
jmp 0x409a82
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x40bc8c
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rsi, r9
mov rbp, r8
mov rdi, rdx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov r10, qword [rsp + 0x38]
mov qword [rbp], r10
mov r10, qword [rsp + 0x40]
mov r12d, eax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x90]
mov rcx, rbx
mov qword [rsi], r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40bd2b
mov ecx, dword [rsp + 0x90]
mov eax, dword [rsp + 0x98]
imul rcx, rax
test r12d, r12d
mov qword [rdi], rcx
jne 0x40bd29
mov eax, dword [rsp + 0x30]
imul rax, rcx
mov qword [rbp], rax
mov eax, dword [rsp + 0x34]
imul rax, qword [rdi]
mov qword [rsi], rax
mov al, 1
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x40c5c8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov r11, rsp
sub rsp, 0x40
mov rax, qword [r8]
mov dword [r8 + 8], 0
mov rsi, rcx
mov word [rax], 0
mov rcx, qword [rcx]
lea rax, [r11 + 0x30]
mov rbx, r8
mov qword [r11 - 0x18], rax
lea r9, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x20], 0
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x70], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c627
cmp eax, 0xea
jne 0x40c69d
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40c63c
mov rcx, rbx
call fcn.004031c8
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rbx]
cmp ecx, dword [rsp + 0x78]
cmova ecx, dword [rsp + 0x78]
mov dword [rsp + 0x70], ecx
shr rcx, 1
mov word [rdx + rcx*2], 0
xor ecx, ecx
cmp word [rdx], cx
je 0x40c69a
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40c68e
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x40c704
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov rax, rsp
sub rsp, 0x40
mov dword [r9], 0
mov qword [rax - 0x18], r9
mov r12, rcx
mov rcx, qword [rcx]
mov rsi, r9
mov rbx, r8
lea r9, [rax + 0x48]
xor r8d, r8d
mov rbp, rdx
mov dword [rax + 0x48], 0
mov qword [rax - 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c753
cmp eax, 0xea
jne 0x40c7b5
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40c78b
mov rcx, qword [rbx]
test rcx, rcx
je 0x40c76f
call fcn.00402364
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40c78b
mov rcx, rdi
call fcn.0040232c
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov rax, qword [rbx]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40c800
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x20]
call fcn.0040c7d8
xor edx, edx
cmp eax, edx
je 0x40c835
mov rax, qword [rsp + 0x20]
cmp rax, rdx
je 0x40c835
lea r8d, [rdx + 0x40]
mov ecx, eax
shr rax, 1
and ecx, 1
add edx, ecx
dec r8
jne 0x40c822
mov eax, edx
jmp 0x40c844
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x40c84c
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
movabs rax, 0x100000000
mov rbx, rcx
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40c88e
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
cmovb rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x40cbe4
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
xor ecx, ecx
mov rax, qword [rbx]
mov dword [rbx + 8], ecx
mov byte [rax], cl
mov rax, qword [rdx]
mov dword [rdx + 8], ecx
mov byte [rax], cl
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.0040c9cc
add rsp, 0x50
pop rbx
ret
Function at 0x41def0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x41e083
mov eax, edx
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
dec rax
jne 0x41defa
mov eax, ecx
ret
Function at 0x41e82c
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, qword [rcx + 8]
mov r13, qword [rcx]
xor r9d, r9d
test rbp, rbp
lea r12d, [r9 + 1]
mov r14d, r8d
mov r15d, edx
mov edi, 0x159a55e5
mov esi, 0x1f123bb5
mov r10, r12
mov r11d, r12d
je 0x41e9e1
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
shl edx, 0x10
imul ecx, ecx, 0x4650
add esi, ecx
add edx, esi
xor edx, r14d
mov eax, edx
shr edx, 1
and eax, r12d
je 0x41e9d0
cmp r9, 0x400
jb 0x41e9d0
mov ecx, edx
shr edx, 2
mov r8d, r12d
and ecx, 3
inc ecx
shl r8d, cl
sub r8d, r12d
and r8d, edx
shr edx, cl
mov eax, edx
inc r8d
shr edx, 3
and eax, 7
je 0x41e999
mov ecx, edx
shr edx, 2
mov eax, r12d
and ecx, 3
inc ecx
shl eax, cl
sub eax, r12d
and eax, edx
shr edx, cl
add r8d, eax
jmp 0x41e8ed
add r11d, r12d
mov ecx, r11d
mov rax, r12
shl rax, cl
cmp rax, r9
jb 0x41e8ea
cmp r15d, r11d
mov ecx, 5
mov ebx, r15d
cmova ebx, r11d
lea eax, [rcx - 1]
cmp ebx, 0x15
cmovbe ecx, eax
shl r12d, cl
add r12d, 0xffffffff
movzx ecx, di
shr edi, 0x10
mov r10d, r12d
and r10d, edx
movzx edx, si
shr esi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
add r10d, 6
imul edx, edx, 0x4650
add esi, edx
mov edx, edi
shl edx, 0x10
add edx, esi
xor edx, r14d
cmp r10d, ebx
ja 0x41e91a
mov ecx, r10d
mov r10d, 1
mov eax, edx
shl r10, cl
dec r10
and r10, rax
cmp r10, r9
jb 0x41e990
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
imul ecx, ecx, 0x4650
add esi, ecx
shl edx, 0x10
add edx, esi
xor edx, r14d
jmp 0x41e91a
mov r12d, 1
add r10, r12
mov eax, r8d
lea rdx, [r13 + r9]
mov rcx, rbp
sub rcx, r9
cmp rax, rcx
cmova r8d, ecx
mov rcx, rdx
mov ebx, r8d
sub rcx, r10
add r9, rbx
test r8d, r8d
je 0x41e9d8
mov al, byte [rcx]
add rcx, r12
mov byte [rdx], al
add rdx, r12
sub rbx, r12
jne 0x41e9bf
jmp 0x41e9d8
mov byte [r13 + r9], dl
add r9, r12
cmp r9, rbp
jb 0x41e866
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4386b8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r12, rcx
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rbp, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
lea rdx, str.CreateEncoder
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x30], rax
lea rdx, str.GetMethodProperty
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x20], rax
xor edi, edi
cmp rax, rdi
je 0x438889
mov dword [rsp + 0xb0], 1
lea rdx, str.GetNumberOfMethods
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x43875b
lea rcx, [rsp + 0xb0]
call rax
cmp eax, edi
jne 0x438904
mov esi, edi
cmp dword [rsp + 0xb0], edi
jbe 0x438889
mov eax, dword [r12 + 0x20]
dec eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, 3
mov edx, esi
mov rcx, qword [rbp + 0x20]
call fcn.004371cc
cmp eax, edi
jne 0x438904
lea rax, [rsp + 0x59]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
mov r8d, 2
mov edx, esi
mov rcx, qword [rbp + 0x20]
call fcn.004371cc
cmp eax, edi
jne 0x438904
mov rax, qword [rbp + 0x20]
mov word [rsp + 0x38], di
mov word [rsp + 0x3a], di
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x5a], dil
mov byte [rsp + 0x5b], dil
lea r8, [rsp + 0x38]
mov edx, 0xa
mov ecx, esi
call rax
mov ebx, eax
cmp eax, edi
je 0x438806
lea rcx, [rsp + 0x38]
call fcn.0040be98
jmp 0x438832
cmp word [rsp + 0x38], 0xb
jne 0x43881f
mov byte [rsp + 0x5b], 1
cmp word [rsp + 0x40], di
setne byte [rsp + 0x5a]
jmp 0x438826
cmp word [rsp + 0x38], di
jne 0x438876
lea rcx, [rsp + 0x38]
call fcn.0040be98
mov ebx, edi
cmp ebx, edi
jne 0x438885
lea rcx, [r12 + 0x60]
call fcn.00437be4
mov ecx, dword [r12 + 0x68]
lea eax, [rcx + 1]
mov dword [r12 + 0x68], eax
imul rcx, rcx, 0x2c
add rcx, qword [r12 + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
inc esi
cmp esi, dword [rsp + 0xb0]
jae 0x438889
jmp 0x43876a
lea rcx, [rsp + 0x38]
call fcn.0040be98
mov ebx, 0x80004005
mov eax, ebx
jmp 0x438904
lea rdx, str.GetHashers
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x438902
lea rcx, [rbp + 0x40]
call rax
cmp eax, edi
jne 0x438904
mov rcx, qword [rbp + 0x40]
cmp rcx, rdi
je 0x438902
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
cmp eax, edi
jbe 0x438902
mov ecx, dword [r12 + 0x20]
dec ecx
mov dword [rsp + 0xb0], ecx
mov dword [rsp + 0xb4], edi
lea rcx, [r12 + 0x70]
call fcn.0040d9c4
mov r11d, dword [r12 + 0x78]
lea eax, [r11 + 1]
mov dword [r12 + 0x78], eax
mov rcx, qword [r12 + 0x70]
mov rax, qword [rsp + 0xb0]
mov qword [rcx + r11*8], rax
inc edi
cmp edi, esi
jb 0x4388be
xor eax, eax
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x45d760
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x45d79b
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x45d7c0
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rsi
mov rsi, r9
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
mov rbx, qword [rsp + 0x58]
mov rdi, rax
je 0x45d825
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x45d846
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
add rsp, 0x48
ret
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x48
ret