joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a3a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x2b0], rcx
mov qword [rbp + 0x2b8], rdx
mov qword [rbp + 0x2c0], r8
mov dword [rbp + 0x2c8], r9d
nop
mov byte [rbp + 0x28f], 0
mov rcx, qword [rbp + 0x2c0]
call fcn.0040e080
mov dword [rbp + 0x288], 0
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x288]
call sub.kernel32.dll_GetFileSize_1
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
jne 0x42a4b8
cmp dword [rbp + 0x288], 0
jne 0x42a4b8
mov ecx, 6
xor rdx, rdx
call fcn.004387d0
test al, al
je 0x42a4b8
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x78]
mov r8d, 0x104
mov r9d, 2
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x42a4b8
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.0040ffb0
mov rcx, rbp
lea rdx, [rbp + 0x60]
mov r8, qword [rbp + 0x58]
call fcn.0042a0f0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x60]
call fcn.0040e6f0
mov byte [rbp + 0x28f], 1
jmp 0x42a623
cmp dword [rbp + 0x284], 0
jne 0x42a4ce
cmp dword [rbp + 0x288], 0
je 0x42a5bc
mov rcx, qword [rbp + 0x2b8]
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov qword [rbp + 0x290], rax
cmp qword [rbp + 0x290], 0x3ee
je 0x42a5bc
nop
mov rcx, qword [rbp + 0x290]
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 1
call sub.kernel32.dll_MapViewOfFile
mov qword [rbp + 0x298], rax
cmp qword [rbp + 0x298], 0
je 0x42a5af
nop
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, qword [rbp + 0x298]
lea r8, [rbp + 0x78]
mov r9d, 0x104
call fcn.0041a4a0
test eax, eax
jbe 0x42a5a2
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.0040ffb0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x48]
call fcn.0042a0f0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x50]
call fcn.0040e6f0
mov byte [rbp + 0x28f], 1
nop
mov rcx, qword [rbp + 0x298]
call sub.kernel32.dll_UnmapViewOfFile
nop
mov rcx, qword [rbp + 0x290]
call sub.kernel32.dll_CloseHandle_1
cmp byte [rbp + 0x28f], 0
jne 0x42a622
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x2b8]
call fcn.0042a260
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x40]
call fcn.0040e6f0
mov rax, qword [rbp + 0x2c0]
cmp qword [rax], 0
je 0x42a622
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov rax, qword [rbp + 0x2c0]
mov r8, qword [rax]
call fcn.0042a0f0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x38]
call fcn.0040e6f0
mov byte [rbp + 0x28f], 1
nop
lea rcx, [rbp + 0x38]
mov edx, 6
call fcn.0040e160
movzx rax, byte [rbp + 0x28f]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
Function at 0x42a6e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov byte [rbp + 0x67], 0
mov ecx, 6
xor rdx, rdx
call fcn.004387d0
test al, al
je 0x42a7f7
mov rcx, qword [rbp + 0x80]
xor rdx, rdx
call fcn.0042cb00
test al, al
je 0x42a7f7
mov rcx, qword [rbp + 0x80]
call fcn.0042c550
test al, 0x20
je 0x42a7f7
mov rcx, qword [rbp + 0x80]
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], 0xffffffff
je 0x42a7f7
mov eax, dword [rbp + 0x5c]
test eax, 0x400
je 0x42a7f7
mov eax, dword [rbp + 0x5c]
test eax, 0x10
je 0x42a784
mov dword [rbp + 0x60], 0x2000000
jmp 0x42a78b
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x80]
call fcn.0040feb0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
rol byte [rcx], 0
add byte [rax], al

Function at 0x42c550
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x490
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x488], 0
nop
movzx rax, byte [0x0042c760]
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.0042cbf0
test al, al
jne 0x42c5a8
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.0042cb00
test al, al
je 0x42c6c6
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
call fcn.0042d510
lea rcx, [rbp + 0x488]
mov rdx, qword [rbp + 0x58]
call fcn.00438d10
mov rcx, qword [rbp + 0x488]
call fcn.0040feb0
mov rcx, rax
lea rdx, [rbp + 0x274]
mov r8d, 0x104
lea r9, [rbp + 0x484]
lea rax, [rbp + 0x47c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42c6c1
mov eax, dword [rbp + 0x480]
test eax, 1
je 0x42c638
movzx rax, byte [rbp + 0x47]
or al, 1
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x480]
test eax, 2
je 0x42c651
movzx rax, byte [rbp + 0x47]
or al, 2
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x480]
test eax, 0x80
je 0x42c66a
movzx rax, byte [rbp + 0x47]
or al, 0x20
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x488]
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x42c69a
sub eax, 1
test eax, eax
je 0x42c6a7
sub eax, 1
test eax, eax
je 0x42c6b4
sub eax, 1
test eax, eax
jne 0x42c6f1
movzx rax, byte [rbp + 0x47]
or al, 0x10
mov byte [rbp + 0x47], al
jmp 0x42c6f1
movzx rax, byte [rbp + 0x47]
or al, 4
mov byte [rbp + 0x47], al
jmp 0x42c6f1
movzx rax, byte [rbp + 0x47]
or al, 8
mov byte [rbp + 0x47], al
jmp 0x42c6f1
call fcn.00439b70
lea rcx, [rbp + 0x50]
mov rdx, qword [0x00a8e1b0]
call fcn.004149c0
mov rcx, qword [0x00425510]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.00437370
mov rcx, rax
call fcn.0040d260
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.0040e160
lea rcx, [rbp + 0x488]
call fcn.0040e080
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x490]
pop rbp
ret
Function at 0x42c890
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov byte [rbp + 0x3e], r8b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x60], 0
nop
xor rbx, rbx
mov rcx, qword [rbp + 0x30]
call fcn.0040feb0
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call sub.kernel32.dll_GetFileAttributesExW
test eax, eax
setne sil
mov eax, dword [rbp + 0x6c]
test eax, 0x400
je 0x42c95e
movzx rax, byte [rbp + 0x3e]
test al, al
je 0x42c95e
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x60]
call fcn.0042a6e0
test al, al
je 0x42c95e
mov rcx, qword [rbp + 0x60]
call fcn.0042db90
test al, al
je 0x42c940
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.0042d440
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.00438d10
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x60]
call fcn.004102f0
mov rcx, qword [rbp + 0x60]
call fcn.0040feb0
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call sub.kernel32.dll_GetFileAttributesExW
test eax, eax
setne sil
test sil, sil
jne 0x42c99b
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
mov eax, ebx
sub eax, 0x20
cmp eax, 2
jae 0x42c99b
mov rcx, qword [rbp + 0x30]
call fcn.0040feb0
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call fcn.0042c840
test eax, eax
jne 0x42c998
mov ebx, 0x20
jmp 0x42c99b
xor rbx, rbx
test ebx, ebx
jne 0x42c9d4
mov eax, dword [rbp + 0x6c]
test eax, 0x10
jne 0x42c9ce
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x28]
call sub.kernel32.dll_FileTimeToLocalFileTime
test eax, eax
jne 0x42c9d4
mov ebx, 0x20
jmp 0x42c9d4
mov ebx, 0x20
test ebx, ebx
sete al
mov byte [rbp + 0x3f], al
nop
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.0040e160
lea rcx, [rbp + 0x60]
call fcn.0040e080
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x90]
pop rbx
pop rsi
pop rbp
ret

Function at 0x42cb00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42cbb2
mov ecx, eax
test ecx, 0x400
je 0x42cba7
test sil, sil
jne 0x42cb3f
mov al, 1
jmp 0x42cbdc
test eax, 0x10
je 0x42cb4f
xor rax, rax
jmp 0x42cbdc
mov rcx, rbx
call fcn.0040feb0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x42cb9a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42cbdc
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42cbdc
test eax, 0x10
sete al
jmp 0x42cbdc
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42cbd5
cmp eax, 3
je 0x42cbd5
cmp eax, 0x7b
je 0x42cbd5
mov rcx, rbp
mov rdx, rbx
call fcn.0042cab0
test al, al
jne 0x42cbda
xor rax, rax
jmp 0x42cbdc
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x42cbf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx

Function at 0x42ce90
Capabilities:
Get file attributes

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
mov rcx, qword [rbp + 0x20]
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
test eax, 0x400
je 0x42cf43
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x42cf43
or eax, 0xffffffff
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.0042a6e0
test al, al
je 0x42cf43
mov rcx, qword [rbp + 0x48]
call fcn.0042db90
test al, al
je 0x42cf2f
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.0042d440
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.00438d10
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.004102f0
mov rcx, qword [rbp + 0x48]
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e160
lea rcx, [rbp + 0x48]
call fcn.0040e080
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x42cfb0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x2c], edx
mov byte [rbp + 0x3f], r8b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
nop
xor rax, rax
mov dword [rbp + 0x28], eax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x30]
call fcn.0040e770
movzx rax, byte [rbp + 0x3f]
test al, al
je 0x42d06f
mov rcx, qword [rbp + 0x30]
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
test eax, 0x400
je 0x42d06f
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call fcn.0042a6e0
test al, al
je 0x42d06f
mov rcx, qword [rbp + 0x50]
call fcn.0042db90
test al, al
je 0x42d062
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.0042d440
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.00438d10
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x50]
call fcn.004102f0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.0040e770
mov rcx, qword [rbp + 0x58]
call fcn.0040feb0
mov rcx, rax
mov edx, dword [rbp + 0x2c]
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x42d08f
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.0040e160
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x42d240
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x42d2b2
call sub.kernel32.dll_GetLastError_2
mov edi, eax
mov rcx, rbx
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42d2ab
mov ecx, eax
test ecx, 0x400
je 0x42d2ab
test eax, 0x10
je 0x42d2ab
mov rcx, rbx
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x42d2b2
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x42dcf0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.0040feb0
mov rcx, rax
xor rdx, rdx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x42dd10
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call fcn.0040feb0
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x435e70
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x435e97
movzx rax, word [rbp + 0x2c]
jmp 0x435e99
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x437130
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00436ee0
mov ebx, eax
mov rax, qword [0x00a8dfc8]
cmp byte [rax], 0
je 0x437268
mov rcx, qword [0x00a8d920]
call fcn.00408ca0
call fcn.004060d0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004370e8]
mov r8d, 1
movsxd r9, esi
call fcn.00411ea0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00437304]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4372ae
mov rcx, qword [0x00a93d68]
call fcn.00412400
mov rcx, rax
mov rax, qword [0x00a8d840]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004370e8]
call fcn.00412080
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x439880
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040e8f0
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00414a90
mov esi, eax
cmp esi, 0x104
jbe 0x4398dd
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405da0
mov rdi, rax
jmp 0x4398e1
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00414a90
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x439937
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x43991b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x439949
mov rcx, rdi
call fcn.00405dd0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x479470
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x14], 0
jne 0x4794a3
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x479501
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x479501
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x60], 0
jne 0x479501
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x16], 0
mov byte [rax + 0x14], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x47952b
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00a8dea8]
call fcn.004149c0
mov rcx, qword [0x00462e70]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00437370
mov rcx, rax
call fcn.0040d260
jmp 0x47952b
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00a8dea8]
call fcn.004149c0
mov rcx, qword [0x00462e70]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00437370
mov rcx, rax
call fcn.0040d260
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e160
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x4799d0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x16]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x16], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.00479340
jmp 0x479a2b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x479a50
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 8]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.00479340
cmp esi, 1
jne 0x479a7a
mov byte [rbx + 0x16], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x47cfa0
Capabilities:
Access the windows event log

Disassembly:
push rbp
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x58], rbp
mov word [rbp + 0x90], cx
mov qword [rbp + 0x98], rdx
mov rcx, qword [rbp + 0x98]
call fcn.0040e210
nop
cmp byte [0x007371cc], 0
je 0x47d0e5
mov rax, qword [0x00a8dbf0]
cmp byte [rax], 0
jne 0x47d0c4
mov rcx, qword [0x007371d0]
call fcn.0040feb0
xor rcx, rcx
mov rdx, rax
call sub.advapi32.dll_RegisterEventSourceW
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x47d0e5
nop
mov dword [rbp + 0x64], 0
cmp qword [rbp + 0x98], 0
je 0x47d031
mov rax, qword [rbp + 0x98]
mov eax, dword [rax - 4]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0x7530
jle 0x47d067
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x98]
mov r8d, 1
mov r9d, 0x7530
call fcn.00410500
mov rcx, qword [rbp + 0x68]
call fcn.0040feb0
mov qword [rbp + 0x70], rax
jmp 0x47d077
mov rcx, qword [rbp + 0x98]
call fcn.0040feb0
mov qword [rbp + 0x70], rax
mov rcx, qword [rbp + 0x78]
movzx rdx, word [rbp + 0x90]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
mov word [rsp + 0x28], 1
mov dword [rsp + 0x30], 0
lea rax, [rbp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
call sub.advapi32.dll_ReportEventW
nop
mov rcx, qword [rbp + 0x78]
call sub.advapi32.dll_DeregisterEventSource
jmp 0x47d0e4
mov rcx, qword [0x00a8d920]
mov rdx, qword [rbp + 0x98]
call fcn.00409ed0
mov rcx, rax
call fcn.0040a030
call fcn.004060d0
nop
lea rcx, [rbp + 0x68]
call fcn.0040e080
lea rcx, [rbp + 0x98]
call fcn.0040e080
lea rsp, [rbp + 0x80]
pop rbp
ret
Function at 0x47d580
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
sub rsp, 0x280
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x290], rcx
mov qword [rbp + 0x298], rdx
mov qword [rbp + 0x2a0], r8
mov dword [rbp + 0x2a8], r9d
mov rcx, qword [rbp + 0x298]
call fcn.0040e210
mov rcx, qword [rbp + 0x2b0]
call fcn.0040e210
nop
mov rcx, qword [rbp + 0x290]
call fcn.0040e080
mov dword [rbp + 0x26c], 0
mov qword [rbp + 0x270], 0
mov qword [rbp + 0x278], 0
nop
cmp qword [rbp + 0x298], 0
je 0x47d645
mov rcx, qword [rbp + 0x298]
call fcn.0040feb0
mov rcx, rax
mov rdx, qword [rbp + 0x2a0]
lea r8, [rbp + 0x270]
call sub.advapi32.dll_RegConnectRegistryW
test eax, eax
je 0x47d653
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x26c], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x48]
call fcn.0047d7f0
jmp 0x47d7ba
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x270], rax
mov rcx, qword [rbp + 0x2b0]
call fcn.0040feb0
mov rcx, qword [rbp + 0x270]
mov rdx, rax
xor r8, r8
mov r9d, dword [rbp + 0x2a8]
or r9d, 8
lea rax, [rbp + 0x278]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x47d6a8
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x26c], eax
xor rcx, rcx
mov rdx, qword [rbp + 0x48]
call fcn.0047d7f0
jmp 0x47d7ba
mov dword [rbp + 0x264], 0x104
lea rcx, [rbp + 0x52]
mov edx, 0x20a
xor r8, r8
call fcn.00408d50
mov dword [rbp + 0x268], 0
jmp 0x47d72c
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x52]
call fcn.0040ff50
mov rcx, qword [rbp + 0x290]
mov edx, 3
mov rax, qword [rbp + 0x290]
mov r8, qword [rax]
mov r9, qword [rbp + 0x40]
lea rax, [0x0047d8ec]
mov qword [rsp + 0x20], rax
call fcn.00410420
lea rcx, [rbp + 0x52]
mov edx, 0x20a
xor r8, r8
call fcn.00408d50
mov dword [rbp + 0x264], 0x104
add dword [rbp + 0x268], 1
mov rcx, qword [rbp + 0x278]
mov edx, dword [rbp + 0x268]
lea r8, [rbp + 0x52]
lea r9, [rbp + 0x264]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x25c]
mov qword [rsp + 0x38], rax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
je 0x47d6d0
nop
cmp qword [rbp + 0x278], 0
je 0x47d78f
mov rcx, qword [rbp + 0x278]
call sub.advapi32.dll_RegCloseKey_1
cmp qword [rbp + 0x270], 0
je 0x47d7a5
mov rcx, qword [rbp + 0x270]
call sub.advapi32.dll_RegCloseKey_1
cmp dword [rbp + 0x26c], 0
je 0x47d7b9
mov ecx, dword [rbp + 0x26c]
call sub.kernel32.dll_SetLastError
nop
lea rcx, [rbp + 0x40]
call fcn.0040e080
lea rcx, [rbp + 0x298]
call fcn.0040e080
lea rcx, [rbp + 0x2b0]
call fcn.0040e080
mov rax, qword [rbp + 0x290]
lea rsp, [rbp + 0x280]
pop rbp
ret