joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14021e770
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rcx + 8], rdx
mov eax, dword [0x1402b93e8]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14021e9ee
mov rax, qword [0x1402b93e0]
test rax, rax
jne 0x14021e88e
mov byte [rsi + 0x81], 0
movaps xmm0, xmmword [0x1402724c0]
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rbx], 9
sete byte [rsi + 0x80]
cmp byte [rsi + 0x81], 0
setne dl
lea rax, [rsi + 0x30]
lea r9, [rsi + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov r8, rsi
call fcn.14021ea40
test al, al
jne 0x14021e927
cmp dword [0x1402b0c58], 2
jg 0x14021e86f
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x21e
mov r9d, 2
call fcn.1400049c0
lea rcx, [rsp + 0x40]
lea rdx, str.GetProcessBasicInformation_failed
mov r8d, 0x21
call fcn.1401c17b0
mov rcx, rsi
call fcn.140004ab0
xor esi, esi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1401874c0
mov eax, esi
add rsp, 0x180
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x174]
mov dword [rdx], 0xaaaaaaaa
mov rcx, rdi
call qword [case.0x1401eda70.0]
test eax, eax
jne 0x14021e904
cmp dword [0x1402b0c58], 2
jg 0x14021e7cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x4b
mov r9d, 2
call fcn.1401f17c0
lea rcx, [rsp + 0x40]
lea rdx, [0x1402825c0]
mov r8d, 0xe
call fcn.1401c17b0
mov rcx, rbx
call fcn.1401f1840
jmp 0x14021e7cb
cmp dword [rsp + 0x174], 0
setne byte [rsi + 0x81]
je 0x14021e7d2
mov byte [rsi + 0x80], 0
mov dl, 1
jmp 0x14021e807
cmp byte [rsi + 0x80], 0
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
mov r8, rsi
jne 0x14021e941
call fcn.14021f2b0
jmp 0x14021e946
call fcn.14021ec60
test al, al
je 0x14021e9aa
mov dl, byte [rsi + 0x80]
mov rcx, rdi
mov r8, rsi
call fcn.1400ce860
mov sil, 1
test al, al
jne 0x14021e871
cmp dword [0x1402b0c58], 2
jg 0x14021e86f
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x22c
mov r9d, 2
call fcn.1400049c0
lea rcx, [rsp + 0x40]
lea rdx, str.ReadMemoryInfo_failed
mov r8d, 0x15
jmp 0x14021e862
cmp dword [0x1402b0c58], 2
jg 0x14021e86f
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x227
mov r9d, 2
call fcn.1400049c0
lea rcx, [rsp + 0x40]
lea rdx, str.ReadProcessData_failed
mov r8d, 0x16
jmp 0x14021e862
lea rcx, [0x1402b93e8]
call fcn.140184b80
cmp dword [0x1402b93e8], 0xffffffff
jne 0x14021e7bb
lea rcx, [0x1402764fe]
lea rdx, str.::IsWow64Process
xor r8d, r8d
call fcn.1400ce760
mov qword [0x1402b93e0], rax
lea rcx, [0x1402b93e8]
call fcn.140184be8
jmp 0x14021e7bb
Function at 0x14022a6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x14022a730
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401874c0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140237b90
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1402724c0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1401c7970
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.140240460
test al, al
je 0x140237c56
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x140237c8b
mov rcx, r14
call fcn.1401c7970
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.140240460
test al, al
je 0x140237cd0
cmp dword [rbx], 0x4550
jne 0x140237d0c
mov sil, 1
test rdi, rdi
je 0x140237c6a
mov qword [rdi], r14
jmp 0x140237c6a
mov ecx, 1
call fcn.1400ea0a0
test al, al
jne 0x140237d52
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401874c0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1400ea0a0
test al, al
je 0x140237c68
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400049c0
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140237d84
mov ecx, 1
call fcn.1400ea0a0
test al, al
je 0x140237c68
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400049c0
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140237d7e
mov ecx, 1
call fcn.1400ea0a0
test al, al
je 0x140237c68
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400049c0
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x140237d84
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400049c0
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1401c17b0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140237d9a
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1401c17b0
mov rcx, rdi
call fcn.140004ab0
jmp 0x140237c68
Function at 0x140237dc0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1402724c0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1401c7970
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.140240460
test al, al
je 0x140237e86
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x140237ebb
mov rcx, r14
call fcn.1401c7970
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.140240460
test al, al
je 0x140237f00
cmp dword [rbx], 0x4550
jne 0x140237f3c
mov sil, 1
test rdi, rdi
je 0x140237e9a
mov qword [rdi], r14
jmp 0x140237e9a
mov ecx, 1
call fcn.1400ea0a0
test al, al
jne 0x140237f82
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401874c0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1400ea0a0
test al, al
je 0x140237e98
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400049c0
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140237fb4
mov ecx, 1
call fcn.1400ea0a0
test al, al
je 0x140237e98
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400049c0
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140237fae
mov ecx, 1
call fcn.1400ea0a0
test al, al
je 0x140237e98
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400049c0
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x140237fb4
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400049c0
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1401c17b0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140237fca
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1401c17b0
mov rcx, rdi
call fcn.140004ab0
jmp 0x140237e98
Function at 0x1400020a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.14001f090
sub rsp, rax
mov rax, qword [0x1400599e8]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14001a460
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14000211d
lea rcx, [rsp + 0x70]
call fcn.14002fd14
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.14001f100
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.14001f100
add rsp, 0x10088
ret

Function at 0x140002200
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400599e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x14003fe20]
call fcn.1400020a0
xor edi, edi
mov qword [0x14005b258], rax
lea rdx, [0x14003fe20]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.14001a460
lea rdx, [0x14003fe28]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1400020a0
mov cl, 1
mov qword [0x14005b260], rax
call fcn.14001b6a0
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14001a460
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.14001b6a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rax, qword [sym.imp.python310.dll__Py_path_config]
mov dword [rax + 0x30], 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001f100
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140002830
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400599e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.14000e160
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14001a460
lea rcx, [rsp + 0x20]
test r14, r14
je 0x1400028f0
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
or rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python310.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x1400028de
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x140002910
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140002910
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x140002910
mov rcx, rbp
call fcn.140001d30
sub qword [rdi], 1
jne 0x140002920
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x140002930
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001f100
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001ee80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test r8d, r8d
je 0x14001ef34
mov r10d, r8d
nop
movzx eax, byte [r9]
lea r9, [r9 + 1]
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
sub r10, 1
jne 0x14001ee90
mov eax, ecx
ret

Function at 0x14002222c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002229b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002229b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002229b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002229b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002229b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002229b
cmp dword [rcx + 0xf8], 0
je 0x14002229b
mov ecx, ebx
call fcn.140022358
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140022128
nop
cmp dword [rbp + 0x20], 0
je 0x1400222e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400222f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002222c
Function at 0x14002243c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002229b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002229b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002229b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002229b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002229b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002229b
cmp dword [rcx + 0xf8], 0
je 0x14002229b
mov ecx, ebx
call fcn.140022358
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140022128
nop
cmp dword [rbp + 0x20], 0
je 0x1400222e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400222f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002222c
Function at 0x140034dc4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140034e4b
mov rsi, rbx
cmp word [rax], bp
je 0x140034e0a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140034df4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140034df0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002fdd4
mov rdi, rax
test rax, rax
je 0x140034e38
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001fe80
mov rbp, rdi
xor ecx, ecx
call fcn.14002fd98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001a10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r13, rdx
mov rbx, rcx
lea edx, [r15 + 0x41]
mov r14d, r9d
mov r12d, r8d
lea ecx, [rdx - 1]
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, r15
je 0x140001b33
lea ebp, [r15 + 7]
cmp r12d, ebp
jb 0x140001a72
lea rcx, str.ERROR_kull_m_busylight_request_create___count_u__max_is_7__n
mov edx, r12d
call fcn.14000c020
cmp r12d, ebp
cmovb ebp, r12d
mov esi, 1
cmp ebp, r15d
jbe 0x140001ade
mov r8, rdi
lea r9, [rdi + 3]
lea rdx, [r13 + 1]
sub r8, r13
mov r10d, ebp
mov al, byte [rdx - 1]
movzx ecx, al
test al, 0xf0
jne 0x140001a9e
or ecx, 0x10
mov byte [r8 + rdx], cl
mov al, byte [rdx]
add rdx, 8
mov byte [r9 - 1], al
mov al, byte [rdx - 7]
mov byte [r9], al
mov al, byte [rdx - 6]
add r9, 8
sub r10, rsi
mov byte [r9 - 7], al
mov al, byte [rdx - 5]
mov byte [r9 - 6], al
mov al, byte [rdx - 4]
mov byte [r9 - 5], al
mov al, byte [rdx - 3]
mov byte [r9 - 4], al
mov al, byte [rdx - 2]
mov byte [r9 - 3], al
jne 0x140001a91
mov r9d, 0xff
mov byte [rdi + 0x39], 4
mov byte [rdi + 0x3a], 4
mov byte [rdi + 0x3b], Ordinal_88
movzx ecx, r15w
lea rdx, [rdi + 1]
mov byte [rdi + 0x3e], r9b
mov byte [rdi + 0x3d], r9b
mov byte [rdi + 0x3c], r9b
mov r8d, 0x3e
movzx eax, byte [rdx]
add rdx, rsi
add cx, ax
sub r8, rsi
jne 0x140001b0a
movzx eax, cx
shr ax, 8
mov byte [rdi + 0x3f], al
movzx eax, cx
cdq
and edx, r9d
add eax, edx
and eax, r9d
sub eax, edx
mov byte [rdi + 0x40], al
cmp esi, r15d
je 0x140001bdd
jmp 0x140001bcb
mov ebp, r15d
cmp rbx, r15
je 0x140001bad
mov rcx, qword [rbx + 0x78]
cmp rcx, r15
je 0x140001bad
cmp rcx, 0xffffffffffffffff
je 0x140001bad
movzx r9d, word [rbx + 0x2a]
mov r8d, Ordinal_69
cmp r9d, r8d
jb 0x140001b9c
lea r9, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
cmp eax, r15d
jne 0x140001bbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.14000c020
jmp 0x140001bbc
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.14000c020
jmp 0x140001bbc
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000c020
and esi, ebp
cmp r14d, r15d
je 0x140001bc8
mov rbx, qword [rbx]
jmp 0x140001bcb
mov rbx, r15
cmp rbx, r15
jne 0x140001b41
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002104
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x70
mov r12, rcx
mov edx, 0x338
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400022d5
and dword [rbx + 0x1c], 0
and dword [rbx + 0x20], 0
lea rbp, [rax + 8]
mov eax, 0x4000000
mov r8, r12
xor edx, edx
mov dword [rbp], eax
mov dword [rbx + 0xc], eax
mov eax, SQLGetData
mov rcx, rbp
mov word [rbx + 0x28], ax
call fcn.140001f8c
test eax, eax
je 0x1400022b7
mov edi, 0x100
lea rdx, [rbx + 0x22a]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400022c3
mov rax, rdi
lea rcx, [rbx + 0x22a]
cmp byte [rcx], 0
je 0x1400021a5
inc rcx
sub rax, 1
jne 0x140002197
test rax, rax
je 0x1400022c3
mov rcx, rdi
mov r9d, 0
sub rcx, rax
sub rdi, rcx
lea rax, [rcx + rbx + 0x22a]
je 0x1400021f9
lea r8, [0x1400ded18]
lea rcx, [rdi + rcx + 0x7ffffeff]
sub r8, rax
test rcx, rcx
je 0x1400021f4
mov dl, byte [r8 + rax]
test dl, dl
je 0x1400021f4
mov byte [rax], dl
dec rcx
inc rax
sub rdi, 1
jne 0x1400021d9
test rdi, rdi
jne 0x140002202
dec rax
mov r9d, 0x8007007a
mov byte [rax], 0
test r9d, r9d
js 0x1400022c3
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], rbp
lea rax, [0x140001eb0]
mov qword [rsp + 0x50], rax
lea rax, [0x140001e7c]
lea r9, [0x140001d10]
mov qword [rsp + 0x48], rax
lea rax, [0x140001e44]
lea r8, [0x140001d00]
mov qword [rsp + 0x40], rax
lea rax, [fcn.140001e10]
lea rdx, [fcn.14001b66c]
mov qword [rsp + 0x38], rax
lea rax, [0x140001dd8]
lea rcx, [rbx + 0x32c]
mov qword [rsp + 0x30], rax
lea rax, [0x140001da0]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140001d18]
mov qword [rsp + 0x20], rax
call sub.Cabinet.dll_FCICreate
mov qword [rbx], rax
test rax, rax
jne 0x1400022d5
mov ecx, dword [rbx + 0x32c]
call fcn.140002088
mov edx, dword [rbx + 0x32c]
lea rcx, str.ERROR_kull_m_cabinet_create___FCICreate_failed_with_error_code__d:__S_n
mov r8, rax
call fcn.14000c020
jmp 0x1400022c3
lea rcx, str.ERROR_kull_m_cabinet_create___Failed_to_initialize_the_cabinet_information_structure._n
call fcn.14000c020
cmp qword [rbx], 0
jne 0x1400022d5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
lea r11, [rsp + 0x70]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140003970
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor ebx, ebx
mov r12, r9
mov esi, r8d
mov rbp, rdx
mov edi, ecx
cmp ecx, 0x8000
jne 0x140003a0c
cmp dword [rsp + 0x90], 4
jne 0x140003aff
lea rdx, [rsp + 0x30]
mov ecx, 0xffffff7c
call sub.cryptdll.dll_CDLocateCheckSum
cmp eax, ebx
jl 0x140003aff
mov rax, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [rax + 0x10]
cmp eax, ebx
jl 0x140003aff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov r8, rbp
mov edx, esi
call qword [rax + reloc.ODBC32.dll_SQLAllocHandle]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov rdx, r12
call qword [rax + 0x20]
lea rcx, [rsp + 0x40]
cmp eax, ebx
mov rax, qword [rsp + 0x30]
setge bl
call qword [rax + Ordinal_41]
jmp 0x140003aff
lea rcx, [rsp + 0x48]
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
je 0x140003aff
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, ebx
je 0x140003af2
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, ebx
je 0x140003ae7
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x70]
lea esi, [r8 + 2]
mov dword [rsp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, ebx
je 0x140003ae7
mov edx, dword [rsp + 0x70]
lea ecx, [rsi + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, rbx
je 0x140003ae7
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov r8, rax
mov edx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [rsp + 0x90]
mov rdx, rdi
cmp dword [rsp + 0x70], ecx
mov ebx, eax
cmovb ecx, dword [rsp + 0x70]
mov r8d, ecx
mov rcx, r12
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret