joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429b90
Capabilities:
Query environment variable

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
call sub.kernel32.dll_GetEnvironmentStringsW
mov rbx, rax
xor rsi, rsi
test rbx, rbx
je 0x429bea
mov rcx, rbx
call fcn.00429f90
mov edi, eax
movsxd rcx, edi
call fcn.004051c0
mov r13, rax
mov rcx, r13
movsxd rdx, edi
xor r8, r8
call fcn.00406110
mov rsi, r13
test r13, r13
je 0x429be2
mov rcx, rbx
mov rdx, r13
movsxd r8, edi
call fcn.00405590
mov rcx, rbx
call sub.kernel32.dll_FreeEnvironmentStringsW
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x429c50
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor rsi, rsi
mov rcx, rbx
lea rdx, [0x0045e7c8]
mov r8d, 0x2001
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x429c82
lea rsi, [0x0045e7c8]
jmp 0x429e25
mov rax, qword [0x0044e2a8]
cmp byte [rax], 0
je 0x429e25
mov rcx, rbx
lea rdx, [0x00429e30]
call fcn.0041d8c0
test eax, eax
jne 0x429cc0
lea rcx, [0x0045e7c8]
xor rdx, rdx
call fcn.0042c310
lea rsi, [0x0045e7c8]
jmp 0x429e25
mov rcx, rbx
lea rdx, [0x00429e36]
call fcn.0041d8c0
test eax, eax
jne 0x429cfb
mov rax, qword [0x0044e5a8]
mov ecx, dword [rax]
lea rdx, [0x0045e7c8]
mov r8d, 0xa
call sub.msvcrt.dll__ltow
lea rsi, [0x0045e7c8]
jmp 0x429e25
mov rcx, rbx
lea rdx, [0x00429e4c]
call fcn.0041d8c0
test eax, eax
jne 0x429d33
mov ecx, 2
lea rdx, [0x0045e7c8]
mov r8d, 0xa
call sub.msvcrt.dll__ultow
lea rsi, [0x0045e7c8]
jmp 0x429e25
mov rcx, rbx
lea rdx, [0x00429e68]
call fcn.0041d8c0
test eax, eax
jne 0x429d53
call sub.kernel32.dll_GetCommandLineW_1
mov rsi, rax
jmp 0x429e25
mov rcx, rbx
lea rdx, [0x00429e7e]
call fcn.0041d8c0
test eax, eax
jne 0x429d9e
xor rcx, rcx
mov edx, 1
lea r8, [0x0045e7c8]
mov r9d, 0x2001
call fcn.004285b0
lea rcx, [0x0045e7c8]
movsxd rax, eax
mov word [rcx + rax*2], 0
lea rsi, [0x0045e7c8]
jmp 0x429e25
mov rcx, rbx
lea rdx, [0x00429e88]
call fcn.0041d8c0
test eax, eax
jne 0x429de6
xor rcx, rcx
mov edx, 1
lea r8, [0x0045e7c8]
mov r9d, 0x2001
call fcn.00428c00
lea rcx, [0x0045e7c8]
movsxd rax, eax
mov word [rcx + rax*2], 0
lea rsi, [0x0045e7c8]
jmp 0x429e25
mov rcx, rbx
lea rdx, [0x00429e92]
call fcn.0041d8c0
test eax, eax
jne 0x429e25
call fcn.004058b0
mov ecx, 0x7fff
call fcn.004058e0
mov ecx, eax
lea rdx, [0x0045e7c8]
mov r8d, 0xa
call sub.msvcrt.dll__ultow
lea rsi, [0x0045e7c8]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x429f60
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call sub.kernel32.dll_SetEnvironmentStringsW
mov rcx, qword [0x0045e7a8]
call fcn.004051f0
call fcn.00429b90
mov qword [0x0045e7a8], rax
add rsp, 0x28
ret
Function at 0x429fc0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rax, qword [0x0044e478]
mov byte [rax], 0
mov rcx, rsi
call fcn.00427780
test eax, eax
jne 0x429fe5
xor rsi, rsi
mov rcx, rbx
mov rdx, rsi
call sub.kernel32.dll_SetEnvironmentVariableW
mov ebx, eax
mov rcx, qword [0x0045e7a8]
call fcn.004051f0
call fcn.00429b90
mov qword [0x0045e7a8], rax
test ebx, ebx
sete al
movzx rax, al
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x42bbd0
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 0x42bc46
mov rcx, rdi
mov edx, esi
call rbx
test al, al
je 0x42bc17
mov rax, qword [0x0044e5f0]
mov dword [rax], 0
mov r13b, 1
jmp 0x42bc51
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
mov rdx, rdi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x42bc46
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 0x42bc51
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
jne 0x42bbfa
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
je 0x42bcb2
lea rcx, [0x004627d0]
mov rdx, qword [0x0042bb70]
mov r8d, 1
mov r9d, dword [0x0044c8d8]
add r9d, 1
mov r9d, r9d
call fcn.0040c740
cmp qword [0x004627d0], 0
je 0x42bcaf
mov rax, qword [0x004627d0]
mov ecx, dword [0x0044c8d8]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx]
mov qword [rax + rcx*8], rdx
add dword [0x0044c8d8], 1
mov r13b, 1
test r13b, r13b
jne 0x42bcc5
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x0044e5f0]
mov dword [rcx], eax
mov eax, r13d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x42bed0
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 0x42bf91
mov rax, qword [0x0044e530]
mov ecx, dword [rax]
xor rdx, rdx
mov r8, rbx
mov r9d, 0x2000
mov rax, qword [0x0044e238]
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 [0x0044e238]
mov r8d, r13d
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x42bf7d
mov rax, qword [rsp + 0x40]
cmp dword [rax], r13d
je 0x42bf85
xor rax, rax
jmp 0x42c018
cmp esi, 0x4000
ja 0x42befe
nop
test esi, esi
je 0x42c00b
mov rax, qword [0x0044e530]
mov ecx, dword [rax]
xor rdx, rdx
mov r8, rbx
or r9d, 0xffffffff
mov rax, qword [0x0044e238]
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 [0x0044e238]
mov r8d, esi
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x42c006
mov rax, qword [rsp + 0x40]
cmp dword [rax], esi
je 0x42c00b
xor rax, rax
jmp 0x42c018
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 0x42c310
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 0x42c33a
mov ecx, 0x104
mov rdx, rbx
call sub.kernel32.dll_GetCurrentDirectoryW
xor rax, rax
jmp 0x42c3ba
mov word [rbp + 0x28], 0x3d
mov eax, esi
mov ecx, esi
sub cx, 0x61
cmp cx, 0x1a
jae 0x42c354
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.00429c50
test rax, rax
jne 0x42c3ac
mov eax, esi
mov ecx, esi
sub cx, 0x61
cmp cx, 0x1a
jae 0x42c386
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 0x42c3ba
mov rcx, rbx
mov rdx, rax
call fcn.004277a0
xor rax, rax
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x42c5a0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov ebx, edx
cmp word [rcx], 0x5c
jne 0x42c5ca
cmp word [rcx + 2], 0x5c
jne 0x42c5ca
mov eax, 0x23bd
jmp 0x42c80a
call fcn.0042c560
mov rsi, rax
mov rdi, rax
test rax, rax
jne 0x42c5e5
mov eax, 8
jmp 0x42c80a
mov rcx, rsi
call fcn.00427780
cmp eax, 1
jl 0x42c60f
movsxd rcx, eax
cmp word [rsi + rcx*2 - 2], 0x20
je 0x42c608
movsxd rax, eax
mov word [rsi + rax*2], 0
jmp 0x42c60f
sub eax, 1
test eax, eax
jne 0x42c5f2
nop
mov ecx, 0x104
lea rdx, [rbp + 0x2e]
call sub.kernel32.dll_GetCurrentDirectoryW
movzx r13, word [rbp + 0x2e]
movzx rax, word [rbp + 0x2e]
sub ax, 0x61
cmp ax, 0x1a
jae 0x42c63d
movzx r13, word [rbp + 0x2e]
and r13w, 0xffdf
mov word [rbp + 0x26], 0x3d
movzx rcx, word [rsi]
call fcn.004279a0
test al, al
je 0x42c675
cmp word [rsi + 2], 0x3a
jne 0x42c675
movzx rax, word [rsi]
mov ecx, eax
mov edx, eax
sub dx, 0x61
cmp dx, 0x1a
jae 0x42c66f
mov ecx, eax
and cx, 0xffdf
mov word [rbp + 0x28], cx
jmp 0x42c67a
mov word [rbp + 0x28], r13w
mov word [rbp + 0x2a], 0x3a
mov word [rbp + 0x2c], 0
mov word [rbp + 0x234], 0
mov rcx, rsi
mov edx, 0x104
lea r8, [rbp + 0x2e]
lea r9, [rbp + 0x238]
call sub.kernel32.dll_GetFullPathNameW
test eax, eax
jne 0x42c6b6
call sub.kernel32.dll_GetLastError_2
jmp 0x42c80a
cmp eax, 0x104
jbe 0x42c6c9
mov eax, 0xce
jmp 0x42c80a
cmp word [rbp + 0x2e], 0
je 0x42c6d7
cmp word [rbp + 0x30], 0x3a
je 0x42c6e2
mov eax, 3
jmp 0x42c80a
cmp qword [rbp + 0x238], 0
jne 0x42c704
lea rcx, [rbp + 0x2e]
call fcn.00427780
movsxd rax, eax
lea rax, [rbp + rax*2 + 0x2e]
mov qword [rbp + 0x238], rax
mov rax, qword [rbp + 0x238]
cmp word [rax], 0
jne 0x42c740
lea rax, [rbp + 0x34]
cmp qword [rbp + 0x238], rax
jbe 0x42c740
mov rax, qword [rbp + 0x238]
cmp word [rax - 2], 0x5c
jne 0x42c740
sub qword [rbp + 0x238], 2
mov rax, qword [rbp + 0x238]
mov word [rax], 0
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x42c766
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42c766
cmp eax, 3
je 0x42c766
cmp eax, 0x7b
jne 0x42c80a
mov rax, qword [0x0044e2a8]
cmp byte [rax], 0
je 0x42c77e
lea rcx, [rbp + 0x2e]
xor rdx, rdx
call fcn.0042c3d0
cmp ebx, 2
je 0x42c7ab
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x42c7a3
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x42c80a
mov eax, 3
jmp 0x42c80a
test eax, 0x410
je 0x42c804
test ebx, ebx
je 0x42c7bb
cmp ebx, 1
jne 0x42c7c8
cmp r13w, word [rbp + 0x28]
jne 0x42c7c8
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x42c7fd
lea rcx, [rbp + 0x26]
lea rdx, [rbp + 0x2e]
call fcn.00429fc0
test eax, eax
jne 0x42c7f5
mov rcx, qword [0x0044e748]
xor rdx, rdx
call fcn.0042c310
mov rcx, rdi
call fcn.0043f3f0
xor rax, rax
jmp 0x42c80a
mov eax, 8
jmp 0x42c80a
call sub.kernel32.dll_GetLastError_2
jmp 0x42c80a
mov eax, 0x10b
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x42c870
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.004417d0
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 0x42c9d0
lea rdi, [rbp + 0x36]
mov rcx, rdi
lea rdx, [0x0042c9e4]
mov r8d, 4
call fcn.0041d970
test eax, eax
jne 0x42c948
add rdi, 8
mov qword [rbp + 0x28], rdi
mov rcx, rbx
mov rdx, rdi
call fcn.0041dac0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x42c927
cmp qword [rbp + 0x28], rbx
jbe 0x42c927
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 0x42c91f
test esi, esi
setne al
jmp 0x42c9d5
xor rax, rax
jmp 0x42c9d5
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42c940
test esi, esi
setne al
jmp 0x42c9d5
xor rax, rax
jmp 0x42c9d5
cmp qword [rbp + 0x28], 0
je 0x42c959
mov rax, qword [rbp + 0x28]
cmp word [rax], 0
jne 0x42c96e
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne sil
movzx rsi, sil
jmp 0x42c9d0
mov rcx, rdi
mov edx, 0x37
lea r8, [rbp + 0x450]
lea r9, [rbp + 0x448]
call fcn.0042bce0
mov esi, eax
movzx rsi, sil
mov rcx, qword [rbp + 0x448]
call fcn.0042bdb0
test esi, esi
jne 0x42c9d0
cmp word [rdi + 2], 0x5c
je 0x42c9bd
cmp word [rdi + 2], 0x3a
jne 0x42c9d0
cmp word [rdi + 4], 0x5c
jne 0x42c9d0
cmp word [rdi + 6], 0
jne 0x42c9d0
mov rcx, rdi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x42c9d0
mov esi, 1
test esi, esi
setne al
lea rsp, [rbp + 0x6a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x437820
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x478
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
test rsi, rsi
jne 0x4378f4
xor rsi, rsi
mov rcx, rbx
mov edx, esi
lea r8, [rbp + 0x266]
mov r9d, 0x20a
call sub.advapi32.dll_RegEnumKeyW
mov edi, eax
test edi, edi
je 0x43786f
cmp edi, 0x103
jne 0x4378ee
xor rdi, rdi
jmp 0x4378ee
cmp word [rbp + 0x266], 0x2e
jne 0x4378cf
mov dword [rbp + 0x58], 0x20a
mov rcx, rbx
lea rdx, [rbp + 0x266]
lea r8, [rbp + 0x5c]
lea r9, [rbp + 0x58]
call sub.advapi32.dll_RegQueryValueW
mov edi, eax
test edi, edi
jne 0x4378ee
lea rax, [rbp + 0x266]
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x38], 0xa
lea rax, [rbp + 0x5c]
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], 0xa
lea rcx, [0x00437994]
lea rdx, [rbp + 0x30]
mov r8d, 1
call fcn.0042cba0
mov rax, qword [0x0044e4b8]
cmp dword [rax], 0
je 0x4378e6
mov eax, 1
jmp 0x437988
add esi, 1
jmp 0x437840
nop
jmp 0x437986
mov rcx, rsi
xor rdx, rdx
call fcn.00441600
mov rsi, rax
mov rcx, rsi
mov dx, 0x20
call fcn.00427710
test rax, rax
je 0x437918
mov word [rax], 0
mov dword [rbp + 0x58], 0x20a
mov rcx, rbx
mov rdx, rsi
lea r8, [rbp + 0x5c]
lea r9, [rbp + 0x58]
call sub.advapi32.dll_RegQueryValueW
mov edi, eax
test edi, edi
jne 0x437965
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x38], 0xa
lea rax, [rbp + 0x5c]
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], 0xa
lea rcx, [0x00437994]
lea rdx, [rbp + 0x30]
mov r8d, 1
call fcn.0042cba0
jmp 0x437986
mov qword [rbp + 0x20], rsi
mov byte [rbp + 0x28], 0xa
lea rcx, [0x004379b0]
mov edx, 1
lea r8, [rbp + 0x20]
xor r9, r9
call fcn.00440b70
mov eax, edi
lea rsp, [rbp + 0x478]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x438240
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2b0
mov rbp, rsp
mov rbx, rcx
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], r8
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [rbp + 0x9e]
lea rdx, [0x004384d8]
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.004278e0
mov rcx, rbx
lea rdx, [rbp + 0x9e]
lea r8, [rbp + 0x2a8]
call sub.advapi32.dll_RegOpenKeyW
mov r13d, eax
test r13d, r13d
je 0x4383b9
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x4382bf
mov rax, qword [rbp + 0x58]
cmp word [rax], 0
jne 0x4382f5
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00438510]
mov edx, 1
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00440b70
mov eax, r13d
jmp 0x4384c8
lea rdi, [rbp + 0x9e]
jmp 0x438302
add rdi, 2
cmp word [rdi], 0
je 0x43830e
cmp word [rdi], 0x5c
jne 0x4382fe
movzx rsi, word [rdi]
mov word [rdi], 0
mov rcx, rbx
lea rdx, [rbp + 0x9e]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x2a8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x98]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov r13d, eax
test r13d, r13d
je 0x43839b
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00438510]
mov edx, 1
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00440b70
mov eax, r13d
jmp 0x4384c8
test si, si
je 0x4383b8
mov word [rdi], si
add rdi, 2
mov rcx, qword [rbp + 0x2a8]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x438302
nop
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x4383cc
mov rax, qword [rbp + 0x58]
cmp word [rax], 0
jne 0x43841a
mov rcx, qword [rbp + 0x2a8]
xor rdx, rdx
call sub.advapi32.dll_RegDeleteKeyW
mov r13d, eax
test r13d, r13d
je 0x4384b9
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x00438510]
mov edx, 1
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00440b70
jmp 0x4384b9
mov rcx, qword [rbp + 0x58]
call fcn.00427780
mov rcx, qword [rbp + 0x2a8]
lea rdx, [0x00438594]
xor r8, r8
mov r9d, 2
mov r10, qword [rbp + 0x58]
mov qword [rsp + 0x20], r10
add eax, 1
add eax, eax
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExW
mov r13d, eax
test r13d, r13d
jne 0x43848b
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0x78], 0xa
lea rcx, [0x00438596]
lea rdx, [rbp + 0x60]
mov r8d, 1
call fcn.0042cba0
jmp 0x4384b9
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x80], rax
mov byte [rbp + 0x88], 0xa
lea rcx, [0x004385b4]
mov edx, 1
lea r8, [rbp + 0x80]
xor r9, r9
call fcn.00440b70
mov rcx, qword [rbp + 0x2a8]
call sub.advapi32.dll_RegCloseKey_1
mov eax, r13d
lea rsp, [rbp + 0x2b0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x438940
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 0x438a21
mov rcx, rsi
lea rdx, [rbp + 0x14c]
mov r8d, 0x40
call fcn.0041d4f0
cmp word [rbp + 0x14c], 0x5a4d
jne 0x438a19
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041d520
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041d4f0
cmp dword [rbp + 0x18c], 0x4550
jne 0x438a19
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041d4f0
cmp word [rbp + 0x148], 0
jbe 0x438a19
mov rcx, rsi
lea rdx, [rbp + 0x48]
mov r8d, 0xf0
call fcn.0041d4f0
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 0x438c60
Capabilities:
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.00438c30
cmp eax, 0xffffffff
jne 0x438e94
mov rcx, rbx
call fcn.0040ad60
mov edi, eax
mov rax, qword [0x0044e320]
mov r13, qword [rax]
test r13, r13
je 0x438ca0
mov r13, qword [r13 - 8]
mov rcx, qword [0x0044e320]
mov rdx, qword [0x00427420]
mov r8d, 1
mov r9d, r13d
add r9d, 1
movsxd r9, r9d
call fcn.0040c740
mov ecx, edi
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.004051c0
mov rcx, qword [0x0044e320]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x0044e320]
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.0041d7c0
mov rax, qword [0x0044e320]
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 [0x0044e320]
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 [0x0044e320]
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 [0x0044e320]
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 [0x0044e320]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
movsxd rcx, dword [rax + rcx*8 + 0x18]
call fcn.004051c0
mov rcx, qword [0x0044e320]
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 [0x0044e320]
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 [0x0044e320]
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 [0x0044e320]
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 [0x0044e320]
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 [0x0044e320]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x20]
mov rax, qword [0x0044e320]
mov rax, qword [rax]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov edx, dword [rax + rdx*8 + 0x18]
call fcn.00427c10
mov rax, qword [0x0044e320]
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 0x43b270
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 rcx, qword [rbp + 0x30]
call fcn.00427780
mov ebx, eax
xor rcx, rcx
mov rsi, qword [rbp + 0x2f8]
jmp 0x43b2b6
add ecx, 1
jmp 0x43b2b0
add rsi, 2
cmp word [rsi], 0
jne 0x43b2ac
cmp word [rsi], 0
jne 0x43b2a7
mov rax, qword [rbp + 0x2f8]
neg rax
lea rax, [rsi + rax]
mov r8d, 2
cqo
idiv r8
mov edx, ebx
add edx, eax
add edx, 1
imul ecx, edx
add ecx, ecx
call fcn.0043f490
mov r13, rax
mov rsi, qword [rbp + 0x2f8]
mov rdi, r13
jmp 0x43b331
mov rcx, rdi
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.00427670
movsxd rax, ebx
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.004277a0
movsxd rax, ebx
add rax, rax
add rdi, rax
jmp 0x43b327
add rsi, 2
add rdi, 2
cmp word [rsi], 0
jne 0x43b31f
add rdi, 2
cmp word [rsi], 0
jne 0x43b2f6
mov word [rdi], 0
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov r8d, dword [rbp + 0x2f0]
mov r9, r13
mov byte [rsp + 0x20], 1
call fcn.0043c3b0
mov esi, eax
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 0x43b432
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.004277a0
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x43b416
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043b444]
call fcn.0041d890
test eax, eax
je 0x43b416
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043b448]
call fcn.0041d890
test eax, eax
je 0x43b416
mov rcx, qword [rbp + 0x38]
call fcn.00427980
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.0043b270
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x43b38c
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