joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bc70
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rax, qword [0x00449690]
mov byte [rax], 0
test rsi, rsi
je 0x42bc98
mov rax, rsi
mov rcx, rax
call fcn.0040a830
jmp 0x42bc9b
xor rax, rax
test eax, eax
jne 0x42bca2
xor rsi, rsi
mov rcx, rbx
mov rdx, rsi
call sub.kernel32.dll_SetEnvironmentVariableW
mov ebx, eax
mov rcx, qword [0x00462b50]
call fcn.00404b10
call fcn.0042b840
mov qword [0x00462b50], rax
test ebx, ebx
sete al
movzx rax, al
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x42d6b0
Capabilities:
Enumerate files on windows

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, r8d
mov rdi, r9
xor r13, r13
mov rcx, rdx
mov rdx, rdi
call sub.kernel32.dll_FindFirstFileW_1
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
jmp 0x42d726
mov rcx, rdi
mov edx, esi
call rbx
test al, al
je 0x42d6f7
mov rax, qword [0x004498a8]
mov dword [rax], 0
mov r13b, 1
jmp 0x42d731
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
mov rdx, rdi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x42d726
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call sub.kernel32.dll_FindClose_1
mov rax, qword [rsp + 0x70]
mov qword [rax], 0xffffffffffffffff
jmp 0x42d731
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
jne 0x42d6da
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
je 0x42d792
lea rcx, [0x00467018]
mov rdx, qword [0x0042d650]
mov r8d, 1
mov r9d, dword [0x00447a4c]
add r9d, 1
mov r9d, r9d
call fcn.0040c1d0
cmp qword [0x00467018], 0
je 0x42d78f
mov rax, qword [0x00467018]
mov ecx, dword [0x00447a4c]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx]
mov qword [rax + rcx*8], rdx
add dword [0x00447a4c], 1
mov r13b, 1
test r13b, r13b
jne 0x42d7a5
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x004498a8]
mov dword [rcx], eax
mov eax, r13d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x42d9b0
Capabilities:
Write file on windows

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rdx
mov esi, r8d
mov qword [rsp + 0x40], r9
mov eax, esi
mov dword [rsp + 0x4c], eax
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp esi, 0x4000
jbe 0x42da71
mov rax, qword [0x00449780]
mov ecx, dword [rax]
xor rdx, rdx
mov r8, rbx
mov r9d, 0x2000
mov rax, qword [0x00449398]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x2000
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov r13d, eax
add rbx, 0x4000
sub esi, 0x4000
mov rcx, rdi
mov rdx, qword [0x00449398]
mov r8d, r13d
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x42da5d
mov rax, qword [rsp + 0x40]
cmp dword [rax], r13d
je 0x42da65
xor rax, rax
jmp 0x42daf8
cmp esi, 0x4000
ja 0x42d9de
nop
test esi, esi
je 0x42daeb
mov rax, qword [0x00449780]
mov ecx, dword [rax]
xor rdx, rdx
mov r8, rbx
or r9d, 0xffffffff
mov rax, qword [0x00449398]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x2000
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
sub esi, 1
mov rcx, rdi
mov rdx, qword [0x00449398]
mov r8d, esi
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x42dae6
mov rax, qword [rsp + 0x40]
cmp dword [rax], esi
je 0x42daeb
xor rax, rax
jmp 0x42daf8
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov al, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x42ddf0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
mov rbx, rcx
mov esi, edx
test si, si
jne 0x42de1a
mov ecx, 0x104
mov rdx, rbx
call sub.kernel32.dll_GetCurrentDirectoryW
xor rax, rax
jmp 0x42de9a
mov word [rbp + 0x28], 0x3d
mov eax, esi
mov ecx, esi
sub cx, 0x61
cmp cx, 0x1a
jae 0x42de34
mov eax, esi
and ax, 0xffdf
mov word [rbp + 0x2a], ax
mov word [rbp + 0x2c], 0x3a
mov word [rbp + 0x2e], 0
lea rcx, [rbp + 0x28]
call fcn.0042b900
test rax, rax
jne 0x42de8c
mov eax, esi
mov ecx, esi
sub cx, 0x61
cmp cx, 0x1a
jae 0x42de66
mov eax, esi
and ax, 0xffdf
mov word [rbx], ax
add rbx, 2
mov word [rbx], 0x3a
add rbx, 2
mov word [rbx], 0x5c
add rbx, 2
mov word [rbx], 0
mov eax, 1
jmp 0x42de9a
mov rcx, rbx
mov rdx, rax
call fcn.004235d0
xor rax, rax
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x42e3e0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x6a8
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00436d10
mov rdi, rax
mov rcx, rdi
mov edx, 0x208
lea r8, [rbp + 0x36]
lea r9, [rbp + 0x28]
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x42e540
lea rdi, [rbp + 0x36]
mov rcx, rdi
lea rdx, [0x0042e554]
mov r8d, 4
call fcn.0041b870
test eax, eax
jne 0x42e4b8
add rdi, 8
mov qword [rbp + 0x28], rdi
mov rcx, rbx
mov rdx, rdi
call fcn.0041b9c0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x42e497
cmp qword [rbp + 0x28], rbx
jbe 0x42e497
mov rax, qword [rbp + 0x28]
movzx rdi, word [rax]
mov rax, qword [rbp + 0x28]
mov word [rax], 0
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov rax, qword [rbp + 0x28]
mov word [rax], di
cmp esi, 0xffffffff
je 0x42e48f
test esi, esi
setne al
jmp 0x42e545
xor rax, rax
jmp 0x42e545
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42e4b0
test esi, esi
setne al
jmp 0x42e545
xor rax, rax
jmp 0x42e545
cmp qword [rbp + 0x28], 0
je 0x42e4c9
mov rax, qword [rbp + 0x28]
cmp word [rax], 0
jne 0x42e4de
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne sil
movzx rsi, sil
jmp 0x42e540
mov rcx, rdi
mov edx, 0x37
lea r8, [rbp + 0x450]
lea r9, [rbp + 0x448]
call fcn.0042d7c0
mov esi, eax
movzx rsi, sil
mov rcx, qword [rbp + 0x448]
call fcn.0042d890
test esi, esi
jne 0x42e540
cmp word [rdi + 2], 0x5c
je 0x42e52d
cmp word [rdi + 2], 0x3a
jne 0x42e540
cmp word [rdi + 4], 0x5c
jne 0x42e540
cmp word [rdi + 6], 0
jne 0x42e540
mov rcx, rdi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x42e540
mov esi, 1
test esi, esi
setne al
lea rsp, [rbp + 0x6a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x431790
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x490
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x48], 0
nop
mov rax, qword [rbp + 0x28]
test rax, rax
jne 0x43187a
xor rbx, rbx
mov rcx, qword [rbp + 0x20]
mov edx, ebx
lea r8, [rbp + 0x286]
mov r9d, 0x20a
call sub.advapi32.dll_RegEnumKeyW
mov esi, eax
test esi, esi
je 0x4317f1
cmp esi, 0x103
jne 0x431874
xor rsi, rsi
jmp 0x431874
cmp word [rbp + 0x286], 0x2e
jne 0x431852
mov dword [rbp + 0x78], 0x20a
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x286]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
call sub.advapi32.dll_RegQueryValueW
mov esi, eax
test esi, esi
jne 0x431874
lea rax, [rbp + 0x286]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
lea rcx, [0x00431964]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042e7a0
mov rax, qword [0x004496e8]
cmp dword [rax], 0
je 0x43186c
mov eax, 1
mov dword [rbp + 0x34], eax
jmp 0x431929
add ebx, 1
jmp 0x4317be
nop
jmp 0x431925
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
call fcn.00436b40
mov rcx, rax
mov qword [rbp + 0x28], rcx
mov dx, 0x20
call fcn.00423540
test rax, rax
je 0x4318a0
mov word [rax], 0
mov dword [rbp + 0x78], 0x20a
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
call sub.advapi32.dll_RegQueryValueW
mov esi, eax
test esi, esi
jne 0x4318f3
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
lea rcx, [0x00431964]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042e7a0
jmp 0x431925
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00449718]
call fcn.0040e3a0
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x38], rax
mov byte [rbp + 0x40], 0xa
mov rcx, qword [rbp + 0x48]
mov edx, 1
lea r8, [rbp + 0x38]
xor r9, r9
call fcn.004360e0
mov dword [rbp + 0x34], esi
nop
lea rcx, [rbp + 0x48]
call fcn.0040a110
mov eax, dword [rbp + 0x34]
lea rsp, [rbp + 0x490]
pop rbx
pop rsi
pop rbp
ret
Function at 0x432910
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x190
mov rbp, rsp
xor rbx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov rsi, rax
test rsi, rsi
je 0x4329f1
mov rcx, rsi
lea rdx, [rbp + 0x14c]
mov r8d, 0x40
call fcn.0041b3c0
cmp word [rbp + 0x14c], 0x5a4d
jne 0x4329e9
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041b3f0
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041b3c0
cmp dword [rbp + 0x18c], 0x4550
jne 0x4329e9
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041b3c0
cmp word [rbp + 0x148], 0
jbe 0x4329e9
mov rcx, rsi
lea rdx, [rbp + 0x48]
mov r8d, 0xf0
call fcn.0041b3c0
movzx rbx, word [rbp + 0x8c]
mov rcx, rsi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
lea rsp, [rbp + 0x190]
pop rbx
pop rsi
pop rbp
ret

Function at 0x435ed0
Capabilities:
Set current directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rbp, rsp
mov dword [rbp + 0x24], ecx
mov qword [rbp + 0x28], 0
nop
xor rdi, rdi
mov word [rbp + 0x248], 0x3d
mov eax, dword [rbp + 0x24]
add ax, 0x40
mov word [rbp + 0x24a], ax
mov word [rbp + 0x24c], 0x3a
mov word [rbp + 0x24e], 0
xor rsi, rsi
lea rcx, [rbp + 0x248]
call fcn.0042b900
mov rbx, rax
test rbx, rbx
je 0x435f3b
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x435fc7
test rbx, rbx
je 0x435f56
mov ecx, 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx rax, word [rbp + 0x24a]
mov word [rbp + 0x3e], ax
movzx rax, word [rbp + 0x24c]
mov word [rbp + 0x40], ax
mov word [rbp + 0x42], 0x5c
mov word [rbp + 0x44], 0
lea rcx, [rbp + 0x248]
lea rdx, [rbp + 0x3e]
call fcn.0042bc70
lea rcx, [rbp + 0x3e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x435fbb
lea rcx, [rbp + 0x28]
mov rdx, qword [0x00449378]
call fcn.0040e3a0
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
lea r8, [rbp + 0x28]
or r9d, 0xffffffff
call fcn.004360e0
test rbx, rbx
je 0x435fc7
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x00449a50]
xor rdx, rdx
call fcn.0042ddf0
nop
lea rcx, [rbp + 0x28]
call fcn.0040a110
lea rsp, [rbp + 0x258]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4368f0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
mov edx, 1
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x43691c
call sub.kernel32.dll_GetLastError_2
mov dword [0x00448928], eax
test esi, esi
je 0x43692a
mov rcx, rbx
call fcn.00436940
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x436bc0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov word [rbp + 0x28], cx
mov word [rbp + 0x2a], 0x3a
mov word [rbp + 0x2c], 0x5c
mov word [rbp + 0x2e], 0
lea rcx, [rbp + 0x28]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x436bf1
xor rax, rax
jmp 0x436bf3
mov al, 1
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x436c00
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x260
mov rbp, rsp
mov word [rbp + 0x44], cx
mov word [rbp + 0x46], 0x3a
mov word [rbp + 0x48], 0x5c
mov word [rbp + 0x4a], 0
lea rcx, [rbp + 0x44]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x436c33
mov al, 1
jmp 0x436c90
cmp eax, 2
je 0x436c8d
cmp eax, 5
je 0x436c8d
lea rcx, [rbp + 0x44]
lea rdx, [rbp + 0x4e]
mov r8d, 0x104
lea r9, [rbp + 0x258]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x436c8d
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x436c8d
mov al, 1
jmp 0x436c90
xor rax, rax
lea rsp, [rbp + 0x260]
pop rbp
ret

Function at 0x437310
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
mov rbx, rcx
test rbx, rbx
je 0x43742a
mov rax, qword [0x00449488]
cmp qword [rax], 0
jne 0x43742a
mov rax, qword [0x00449280]
cmp byte [rax], 0
jne 0x43742a
mov ecx, 0x20c
call fcn.00404ae0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x43742a
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x43742a
test rbx, rbx
je 0x43738c
mov rax, rbx
mov rcx, rax
call fcn.0040a830
jmp 0x43738f
xor rax, rax
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x00467288]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.00404b40
cmp qword [rbp + 0x28], 0
je 0x43742a
mov rax, qword [0x004495e0]
cmp byte [rax], 0
je 0x4373d4
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x00467288]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.004235d0
jmp 0x437418
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00437434]
call fcn.004235f0
cmp qword [rbp + 0x28], 0
je 0x4373f9
mov rax, qword [rbp + 0x28]
mov rcx, rax
call fcn.0040a830
jmp 0x4373fc
xor rax, rax
mov dword [0x00467288], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.004235f0
mov rax, qword [0x004495e0]
mov byte [rax], 1
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_SetConsoleTitleW
mov rcx, qword [rbp + 0x28]
call fcn.00404b10
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x437440
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x43747b
mov rax, qword [0x00449488]
cmp qword [rax], 0
jne 0x43747b
mov rax, qword [0x004495e0]
cmp byte [rax], 0
je 0x43747b
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x00467288], 0
mov rax, qword [0x004495e0]
mov byte [rax], 0
add rsp, 0x28
ret
Function at 0x437a00
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.004379d0
cmp eax, 0xffffffff
jne 0x437c4b
mov rcx, rbx
call fcn.0040a830
mov edi, eax
mov rax, qword [0x004494a8]
mov rcx, qword [rax]
call fcn.0040be30
mov r13, rax
mov rcx, qword [0x004494a8]
mov rdx, qword [0x00423250]
mov r8d, 1
mov r9d, r13d
add r9d, 1
movsxd r9, r9d
call fcn.0040c1d0
mov ecx, edi
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.00404ae0
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8]
mov rdx, rbx
call fcn.0041b6b0
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov dword [rax + rcx*8 + 8], esi
mov ecx, esi
call sub.msvcrt.dll__get_osfhandle
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8 + 0x10], rax
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
xor rdx, rdx
xor r8, r8
mov r9d, 2
call sub.kernel32.dll_SetFilePointer_1
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov dword [rcx + rdx*8 + 0x18], eax
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
movsxd rcx, dword [rax + rcx*8 + 0x18]
call fcn.00404ae0
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8 + 0x20], rax
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer_1
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov rdx, qword [rax + rdx*8 + 0x20]
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd r8, r13d
add r8, r8
lea r8, [r8 + r8*2]
mov r8d, dword [rax + r8*8 + 0x18]
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile_1
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x20]
xor rax, rax
mov rdx, qword [0x004494a8]
mov rdx, qword [rdx]
movsxd r8, r13d
add r8, r8
lea r8, [r8 + r8*2]
mov edx, dword [rdx + r8*8 + 0x18]
sub edx, 1
cmp eax, edx
jg 0x437c2c
add edx, 1
xor byte [rcx], 0xff
add rcx, 1
add eax, 1
cmp eax, edx
jne 0x437c1e
nop
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd r13, r13d
add r13, r13
lea r13, [r13 + r13*2]
mov dword [rax + r13*8 + 0x28], 0
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x437e90
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ebx, ecx
mov rsi, rdx
mov edi, r8d
mov r13, r9
or r14d, 0xffffffff
mov rax, qword [0x004494a8]
mov rcx, qword [rax]
call fcn.0040be40
xor rcx, rcx
mov edx, eax
mov eax, ecx
cmp eax, edx
jg 0x437eee
add edx, 1
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd r8, eax
add r8, r8
lea r8, [r8 + r8*2]
cmp dword [rcx + r8*8 + 8], ebx
jne 0x437ee7
mov r14d, eax
jmp 0x437eee
add eax, 1
cmp eax, edx
jne 0x437ec7
nop
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r14d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rdx, qword [0x004494a8]
mov rdx, qword [rdx]
movsxd r8, r14d
add r8, r8
lea r8, [r8 + r8*2]
mov eax, dword [rax + rcx*8 + 0x18]
sub eax, dword [rdx + r8*8 + 0x28]
cmp eax, edi
jae 0x437f2a
mov dword [r13], eax
jmp 0x437f2e
mov dword [r13], edi
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd rcx, r14d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rax, qword [rax + rcx*8 + 0x20]
mov rcx, qword [0x004494a8]
mov rcx, qword [rcx]
movsxd rdx, r14d
add rdx, rdx
lea rdx, [rdx + rdx*2]
movsxd rcx, dword [rcx + rdx*8 + 0x28]
lea rax, [rax + rcx]
mov rcx, rax
mov rdx, rsi
mov r8d, dword [r13]
call fcn.00404eb0
xor rax, rax
mov ecx, dword [r13]
sub ecx, 1
cmp eax, ecx
jg 0x437f92
add ecx, 1
xor byte [rsi], 0xff
add rsi, 1
add eax, 1
cmp eax, ecx
jne 0x437f84
nop
mov rax, qword [0x004494a8]
mov rax, qword [rax]
movsxd r14, r14d
add r14, r14
lea r14, [r14 + r14*2]
mov ecx, dword [r13]
add dword [rax + r14*8 + 0x28], ecx
mov al, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x439f70
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x48], r9
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x439fa9
mov rax, qword [rbp + 0x30]
mov rcx, rax
call fcn.0040a830
mov ebx, eax
jmp 0x439fac
xor rbx, rbx
xor rax, rax
mov rsi, qword [rbp + 0x2f8]
jmp 0x439fc7
add eax, 1
jmp 0x439fc1
add rsi, 2
cmp word [rsi], 0
jne 0x439fbd
cmp word [rsi], 0
jne 0x439fb8
movsxd rcx, eax
movsxd r8, ebx
mov rax, qword [rbp + 0x2f8]
neg rax
lea rax, [rsi + rax]
mov r9d, 2
cqo
idiv r9
lea rax, [r8 + rax + 1]
imul rcx, rax
add rcx, rcx
call fcn.00404ae0
mov rdi, rax
mov rsi, qword [rbp + 0x2f8]
mov r13, rdi
jmp 0x43a049
mov rcx, r13
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.004234a0
movsxd rax, ebx
lea rcx, [r13 + rax*2]
mov rdx, rsi
call fcn.004235d0
movsxd rax, ebx
add rax, rax
add r13, rax
jmp 0x43a03f
add rsi, 2
add r13, 2
cmp word [rsi], 0
jne 0x43a037
add r13, 2
cmp word [rsi], 0
jne 0x43a00d
mov word [r13], 0
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov r8d, dword [rbp + 0x2f0]
mov r9, rdi
mov byte [rsp + 0x20], 1
call fcn.0043b070
mov esi, eax
mov rcx, rdi
call fcn.00404b10
mov rax, qword [rbp + 0x38]
mov word [rax], 0x2a
mov word [rax + 2], 0
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindFirstFileW_1
mov rbx, rax
mov rax, qword [rbp + 0x38]
mov word [rax], 0
cmp rbx, 0xffffffffffffffff
je 0x43a154
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.004235d0
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x43a138
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043a164]
call fcn.0041b780
test eax, eax
je 0x43a138
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043a168]
call fcn.0041b780
test eax, eax
je 0x43a138
mov rcx, qword [rbp + 0x38]
call fcn.00423780
mov rsi, rax
add rsi, 2
mov word [rsi], 0x5c
add rsi, 2
mov word [rsi], 0
mov rcx, qword [rbp + 0x30]
mov rdx, rsi
mov r8, qword [rbp + 0x40]
mov r9, qword [rbp + 0x48]
mov eax, dword [rbp + 0x2f0]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x2f8]
mov qword [rsp + 0x28], rax
call fcn.00439f70
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x43a0ae
mov rcx, rbx
call sub.kernel32.dll_FindClose_1
mov eax, esi
lea rsp, [rbp + 0x2a0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x43cd70
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
mov qword [rsp + 0x40], 0xffffffff80000002
mov qword [rsp + 0x48], 0xffffffff80000001
cmp byte [0x00448f9a], 0
je 0x43cd9b
mov byte [0x00448f98], 1
xor rsi, rsi
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x40]
lea rdx, [0x0043cfdc]
lea r8, [rsp + 0x98]
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x43cfc3
mov dword [rsp + 0x50], 0
lea rbx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x40
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043d026]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43ce36
cmp dword [rsp + 0x50], 4
jne 0x43ce1b
cmp dword [rbx], 0
setne al
mov byte [0x00448f82], al
jmp 0x43ce36
cmp dword [rsp + 0x50], 1
jne 0x43ce36
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00448f82], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043d046]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43ce95
cmp dword [rsp + 0x50], 4
jne 0x43ce7a
cmp dword [rbx], 0
setne al
mov byte [0x00448f98], al
jmp 0x43ce95
cmp dword [rsp + 0x50], 1
jne 0x43ce95
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00448f98], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043d068]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43cef4
cmp dword [rsp + 0x50], 4
jne 0x43ced9
cmp dword [rbx], 0
setne al
mov byte [0x00448f99], al
jmp 0x43cef4
cmp dword [rsp + 0x50], 1
jne 0x43cef4
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00448f99], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043d08a]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43cf55
cmp dword [rsp + 0x50], 4
jne 0x43cf37
movzx rax, word [rbx]
mov word [0x00448fa0], ax
jmp 0x43cf55
cmp dword [rsp + 0x50], 1
jne 0x43cf55
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00448fa0], ax
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043d0a4]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43cfb6
cmp dword [rsp + 0x50], 4
jne 0x43cf98
movzx rax, word [rbx]
mov word [0x00448fa2], ax
jmp 0x43cfb6
cmp dword [rsp + 0x50], 1
jne 0x43cfb6
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00448fa2], ax
mov rcx, qword [rsp + 0x98]
call sub.advapi32.dll_RegCloseKey_1
add esi, 1
cmp esi, 2
jne 0x43cd9e
nop
mov al, 1
add rsp, 0xa8
pop rbx
pop rsi
ret