joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14045ef6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140458c5b
not edx
jmp 0x140482a48
xor edx, edx
test rbx, rbx
lea rsp, [rsp + 0x18]
je 0x14047889b
jmp 0x140478847
mov ecx, 0x80948f19
push r10
lea rcx, [0x140473680]
movzx r10d, byte [r9]
push 0xffffffff872fa937
and dword [rsp], 0x74adbb0f
xor r10d, edx
and r10d, 0xff
not dword [rsp + 1]
mov r10d, dword [rcx + r10*4]
shr edx, 8
sub byte [rsp + 4], 0xa
xor edx, r10d
inc r9
xor edx, 0xc5b6af89
dec rbx
lea rsp, [rsp + 8]
jne 0x140478855
pop r10
jmp 0x140441d98
lea rsp, [rsp + 8]
jmp fcn.140445929
push 0x4f3e2d30
mov dword [r8], edx
jmp 0x140482749
Function at 0x40f000
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040eff0
mov ebx, eax
test ebx, ebx
je 0x40f04b
cmp dword [0x0044a4e4], 0xffffffff
jne 0x40f024
mov ecx, 0xe2
call fcn.0040a510
mov ecx, ebx
call fcn.0040efd0
test rax, rax
jne 0x40f03d
mov ecx, 0xe2
call fcn.0040a510
jmp 0x40f04b
mov ecx, dword [0x0044a4e4]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40f060
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00453f34], 0
je 0x40f09b
mov ecx, dword [0x0044a4e4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40f0ae
call fcn.0040f000
mov ecx, dword [0x0044a4e4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40f0ae
mov rax, qword [0x00453f68]
jmp 0x40f0ae
mov rax, qword gs:[0x58]
mov ecx, dword [0x0044a4e4]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x420e40
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 0x420e67
movzx rax, word [rbp + 0x2c]
jmp 0x420e69
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x422970
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.00422710
mov ebx, eax
mov rax, qword [0x0044e620]
cmp byte [rax], 0
je 0x422aa8
mov rcx, qword [0x0044e328]
call fcn.00406060
call fcn.00405500
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 [0x00422930]
mov r8d, 1
movsxd r9, esi
call fcn.0040c740
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, [0x00422b48]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x422aee
mov rcx, qword [0x00453f38]
call fcn.0040ca70
mov rcx, rax
mov rax, qword [0x0044e2b0]
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 [0x00422930]
call fcn.0040c920
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x424790
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.0040ac10
lea rcx, [rbp + 0x58]
call fcn.0040ae60
mov rcx, qword [rbp + 0x58]
call fcn.0040b360
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x4248a0
mov ecx, dword [rbp + 0x54]
call fcn.004051c0
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040b360
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x424896
mov rcx, qword [rbp + 0x68]
lea rdx, [0x00424914]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x424896
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.004051f0
nop
lea rcx, [rbp + 0x58]
call fcn.0040a6a0
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x4251b0
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.0040ad40
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.0040ebf0
mov esi, eax
cmp esi, 0x104
jbe 0x42520d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004051c0
mov rdi, rax
jmp 0x425211
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.0040ebf0
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x425264
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 0x425248
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x425276
mov rcx, rdi
call fcn.004051f0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x427c10
Capabilities:
Encode data using xor

Disassembly:
xor rax, rax
sub edx, 1
cmp eax, edx
jg 0x427c2b
add edx, 1
xor byte [rcx], 0xff
add rcx, 1
add eax, 1
cmp eax, edx
jne 0x427c1d
nop
ret
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.0041d8b0
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.0041d8b0
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.0041d8b0
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.0041d8b0
test eax, eax
jne 0x429d53
call sub.kernel32.dll_GetCommandLineW_1
mov rsi, rax
jmp 0x429e25
mov rcx, rbx
lea rdx, [0x00429e7e]
call fcn.0041d8b0
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.0041d8b0
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.0041d8b0
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 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.0041d960
test eax, eax
jne 0x42c948
add rdi, 8
mov qword [rbp + 0x28], rdi
mov rcx, rbx
mov rdx, rdi
call fcn.0041dab0
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 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.0041d4e0
cmp word [rbp + 0x14c], 0x5a4d
jne 0x438a19
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041d510
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041d4e0
cmp dword [rbp + 0x18c], 0x4550
jne 0x438a19
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041d4e0
cmp word [rbp + 0x148], 0
jbe 0x438a19
mov rcx, rsi
lea rdx, [rbp + 0x48]
mov r8d, 0xf0
call fcn.0041d4e0
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 [0x00427410]
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.0041d7b0
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.0041d880
test eax, eax
je 0x43b416
lea rcx, [rbp + 0x7c]
lea rdx, [0x0043b448]
call fcn.0041d880
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
Function at 0x441e50
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x441e8b
mov rax, qword [0x0044e2f8]
cmp qword [rax], 0
jne 0x441e8b
mov rax, qword [0x0044e3f0]
cmp byte [rax], 0
je 0x441e8b
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x0046c2a4], 0
mov rax, qword [0x0044e3f0]
mov byte [rax], 0
add rsp, 0x28
ret

Function at 0x441fa0
Capabilities:
Hash data with crc32

Disassembly:
xor rax, rax
mov edx, eax
mov ecx, 1
mov r8d, edx
test r8d, 1
je 0x441fc2
shr edx, 1
xor edx, 0xedb88320
jmp 0x441fc5
shr edx, 1
add ecx, 1
cmp ecx, 9
jne 0x441fab
nop
lea rcx, [0x0046c2b0]
mov r8d, eax
mov dword [rcx + r8*4], edx
add eax, 1
cmp eax, 0x100
jne 0x441fa3
nop
ret

Function at 0x442a90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x268
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], 0
nop
xor rbx, rbx
mov dword [rbp + 0x4c], 0xff
mov rcx, 0xffffffff80000002
lea rdx, [0x00442bf4]
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x258]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x442b8f
mov rcx, qword [rbp + 0x258]
lea rdx, [0x00442c34]
xor r8, r8
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x442b18
mov bl, 1
jmp 0x442b83
mov rcx, 0xffffffff80000002
lea rdx, [0x00442bf4]
xor r8, r8
mov r9d, 0x20119
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x442b83
mov rcx, qword [rbp + 0x250]
lea rdx, [0x00442c34]
xor r8, r8
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x442b77
mov bl, 1
mov rcx, qword [rbp + 0x250]
call sub.advapi32.dll_RegCloseKey_1
mov rcx, qword [rbp + 0x258]
call sub.advapi32.dll_RegCloseKey_1
test bl, bl
je 0x442bb4
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x50]
mov r8d, pe_nt_image_headers64
call fcn.0040b410
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
call fcn.0041ca00
nop
lea rcx, [rbp + 0x38]
call fcn.0040a6a0
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0x268]
pop rbx
pop rbp
ret
Function at 0x1800071f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180007410
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800072f7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180007254
mov rax, qword [0x180011008]
cmp qword [rsp + 0x20], rax
ja 0x180007254
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180007216
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180007283
jmp 0x1800072f7
cmp dword [rsp + 0x50], 0x10000
jne 0x1800072da
cmp qword [rsp + 0x48], 0x10000
jb 0x1800072da
mov r9d, 0x40
mov r8d, 0x3000
mov edx, malloc
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800072c8
mov rax, qword [rsp + 0x28]
jmp 0x1800072f9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800072f2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180007410
mov qword [rsp + 0x20], rax
jmp 0x180007216
xor eax, eax
add rsp, 0x68
ret

Function at 0x180007300
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180007450
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180007403
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000735b
mov rax, qword [0x180011008]
cmp qword [rsp + 0x20], rax
ja 0x18000735b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000731d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000738a
jmp 0x180007403
cmp dword [rsp + 0x50], 0x10000
jne 0x1800073e1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800073e1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, malloc
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800073cf
mov rax, qword [rsp + 0x28]
jmp 0x180007405
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800073fe
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180007450
mov qword [rsp + 0x20], rax
jmp 0x18000731d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180009900
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x180009948
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180009968
jmp 0x180009a05
cmp dword [rsp + 0x68], 0x1000
jne 0x18000998d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18000998d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18000998f
jmp 0x180009933
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1800099c5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x1800099c5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x1800099ca
jmp 0x180009933
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180009933
mov rax, qword [rsp + 0x20]
jmp 0x180009a07
xor eax, eax
add rsp, 0x88
ret