joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a2b30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov r14, r8
mov rbp, rdx
mov r13, rcx
mov rbx, rdx
test rdx, rdx
jne 0x1400a2b5d
mov ebx, esi
jmp 0x1400a2b72
cmp byte [rdx], sil
je 0x1400a2b6a
inc rbx
cmp byte [rbx], sil
jne 0x1400a2b62
sub ebx, ebp
and ebx, 0x3fffffff
mov r15d, dword [rcx + 0x28]
mov edi, esi
test r15d, r15d
jle 0x1400a2c5b
mov qword [rsp + 0x50], r12
lea r12, [0x1400f8f30]
nop dword [rax]
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
movsxd r11, eax
test r14, r14
je 0x1400a2c0d
mov rax, qword [r13 + 0x20]
mov rcx, r11
movzx r9d, byte [r14]
shl rcx, 5
mov r8, qword [rcx + rax]
test r9b, r9b
je 0x1400a2bf7
mov r10, r14
movzx eax, r9b
sub r10, r8
nop word [rax + rax]
movzx edx, byte [r8]
movzx r9d, al
movzx ecx, al
movzx eax, byte [rdx + r12]
cmp byte [rcx + r12], al
jne 0x1400a2bf7
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x1400a2bd0
movzx eax, byte [r8]
movzx ecx, byte [rax + r12]
movzx eax, r9b
movzx eax, byte [rax + r12]
cmp eax, ecx
jne 0x1400a2c31
mov rax, qword [r13 + 0x20]
mov r8d, ebx
shl r11, 5
mov rdx, rbp
mov rcx, qword [r11 + rax + 0x18]
add rcx, 8
call fcn.1400653a0
mov rsi, rax
test rax, rax
jne 0x1400a2c3f
inc edi
cmp edi, r15d
jl 0x1400a2b90
mov rax, rsi
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov rax, rsi
jmp 0x1400a2c44

Function at 0x1400a2c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r11d, r11d
mov rsi, r8
mov rbp, rdx
mov rbx, rdx
test rdx, rdx
jne 0x1400a2c81
mov ebx, r11d
jmp 0x1400a2c96
cmp byte [rdx], r11b
je 0x1400a2c8e
inc rbx
cmp byte [rbx], r11b
jne 0x1400a2c86
sub ebx, ebp
and ebx, 0x3fffffff
mov r14d, dword [rcx + 0x28]
mov edi, r11d
test r14d, r14d
jle 0x1400a2d7c
mov qword [rsp + 0x50], r12
mov r12, qword [rcx + 0x20]
mov qword [rsp + 0x58], r13
lea r13, [0x1400f8f30]
mov qword [rsp + 0x60], r15
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
cdqe
shl rax, 5
mov r15, qword [rax + r12 + 0x18]
test rsi, rsi
je 0x1400a2d3d
movzx r9d, byte [rsi]
mov r8, qword [rax + r12]
test r9b, r9b
je 0x1400a2d27
mov r10, rsi
movzx eax, r9b
sub r10, r8
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
movzx r9d, al
movzx ecx, al
movzx eax, byte [rdx + r13]
cmp byte [rcx + r13], al
jne 0x1400a2d27
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x1400a2d00
movzx eax, byte [r8]
movzx ecx, byte [rax + r13]
movzx eax, r9b
movzx eax, byte [rax + r13]
cmp eax, ecx
jne 0x1400a2d54
lea rcx, [r15 + 0x20]
mov r8d, ebx
mov rdx, rbp
call fcn.1400653a0
mov r11, rax
test rax, rax
jne 0x1400a2d62
inc edi
cmp edi, r14d
jl 0x1400a2cc0
mov rax, r11
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, r11
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a6120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140119010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
lea rbx, [rsp + 0x40]
movsxd r10, edx
mov r13, rcx
shl r10, 5
mov r12d, 1
mov qword [rsp + 0x30], r9
mov rdx, qword [rax + 0x20]
mov qword [rsp + 0x38], r8
mov rsi, qword [r10 + rdx]
nop word [rax + rax]
mov r9d, r12d
lea r8, str.sqlite_stat_d
lea rdx, [rsp + 0x40]
mov ecx, 0x18
call fcn.140063400
mov r14, qword [r13]
lea rdi, [rsp + 0x40]
xor r15d, r15d
cmp byte [rsp + 0x40], r15b
je 0x1400a61a8
nop dword [rax]
inc rdi
cmp byte [rdi], r15b
jne 0x1400a61a0
mov ebp, dword [r14 + 0x28]
sub edi, ebx
and edi, 0x3fffffff
xor ebx, ebx
test ebp, ebp
jle 0x1400a62a4
nop
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd r11, eax
test rsi, rsi
je 0x1400a6244
mov rax, qword [r14 + 0x20]
mov rcx, r11
movzx r9d, byte [rsi]
shl rcx, 5
mov r8, qword [rcx + rax]
test r9b, r9b
je 0x1400a6229
mov r10, rsi
lea rbp, [0x1400f8f30]
sub r10, r8
movzx eax, r9b
nop dword [rax]
movzx edx, byte [r8]
movzx r9d, al
movzx ecx, al
movzx eax, byte [rdx + rbp]
cmp byte [rcx + rbp], al
jne 0x1400a6225
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x1400a6200
mov ebp, dword [r14 + 0x28]
movzx eax, byte [r8]
lea rdx, [0x1400f8f30]
movzx ecx, byte [rax + rdx]
movzx eax, r9b
movzx eax, byte [rax + rdx]
cmp eax, ecx
jne 0x1400a626a
mov rax, qword [r14 + 0x20]
lea rdx, [rsp + 0x40]
shl r11, 5
mov r8d, edi
mov rcx, qword [r11 + rax + 0x18]
add rcx, 8
call fcn.1400653a0
mov r15, rax
test rax, rax
jne 0x1400a6279
inc ebx
cmp ebx, ebp
jl 0x1400a61c0
test r15, r15
je 0x1400a62a4
mov rax, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.DELETE_FROM__Q._s_WHERE__s_Q
mov rax, qword [rsp + 0x38]
mov r8, rsi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400a28d0
inc r12d
lea rbx, [rsp + 0x40]
cmp r12d, 3
jle 0x1400a6170
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ea4a0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e7990
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400e79b8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400e79de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400e79e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400e7a39
test ecx, ecx
jle 0x1400e7a19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400e7a39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400e7a39
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400e7a60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400e7a82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400e7a98
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400e7ab4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400e7ab6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400e7af2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400e7b8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400e7b2d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400e7b6e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400e7b8e
cmp rbx, rax
ja 0x1400e7b40
test rbx, rbx
je 0x1400e7b8e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400e7f90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140119010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400e7fbd
xor eax, eax
jmp 0x1400e8129
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400e7ff7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400e7ff7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400e8129
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400e811c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400e803a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400e8065
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400e8121
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400e80d4
sub eax, 1
je 0x1400e80d4
cmp eax, 2
jne 0x1400e811c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400e8121
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400e8102
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400e811c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400e8121
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ea4a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400e83a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140119010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400e8473
cmp byte [rcx + 0x71], 0
je 0x1400e8473
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400e846f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400e8434
sub eax, 1
je 0x1400e8438
cmp eax, 2
jne 0x1400e846f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ea4a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400e8466
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400e846f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400e841c
xor al, al
jmp 0x1400e841c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ea4a0
add rsp, 0x60
pop rbx
ret

Function at 0x1400e9abc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e9b40
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400f1e60]
cmp byte [rcx + rax], 0
je 0x1400e9b40
dec r8
sub rdx, 1
jne 0x1400e9b26
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400eb3f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400eb43e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400eb43e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400eb43e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400eb43e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400eb43e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400eb440
xor al, al
add rsp, 0x28
ret
Function at 0x1406babd4
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x18]
je 0x1406bac25
mov eax, 0xdfba2c94
lea rax, [0x140708800]
mov r11d, 0xac89dfb1
movzx r11d, byte [rdx]
push 0xffffffffbf0dc89c
xor r11d, ebx
and r11d, 0xff
mov r11d, dword [rax + r11*4]
shr ebx, 8
xor ebx, r11d
inc rdx
xor ebx, 0x14822b04
dec rdi
lea rsp, [rsp + 8]
jne 0x1406babeb
jmp 0x14071c0aa
mov edi, 0xf3a8b834
not ebx
movsx ecx, di
movzx eax, dil
mov dword [r8 + rax*2 - 0x68], ebx
lea r9, [rdi*4 + 0x52bfe9b7]
lea rbx, [rax + rdi - 0x3fd9afda]
rol edi, 0x63
jmp rbp

Function at 0x1406d8989
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea rsp, [rsp + 0x10]
je 0x1406e3de6
test ebx, ebx
jmp 0x1406b7ede

Function at 0x1406e9344
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r11
xadd ebx, r11d
xor eax, esi
dec dword [rsp + rdi - 0x67179d37]
mov qword [rsp + rdx - 0x6717ca87], rdx
inc eax
ror ebx, 0x9a
dec bl
bswap eax
or qword [rsp + rdx - 0x6717ca84], rdx
sbb cl, r11b
neg eax
dec byte [rsp + rdi - 0x67179d35]
not eax
rol word [rsp + rdx - 0x6717ca8b], 0x67
sal cl, 1
mov qword [rsp + rdi - 0x67179d28], rsi
sbb byte [rsp + rdx - 0x6717ca8a], bh
jns 0x140719614

Function at 0x1406e939a
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea rsi, [r11 - 0x8d2814e]
xor dword [rsp + rbx - 0x2c30], edi
sub ecx, 0xf81a49bd
xor r11w, 0xfabc
mov qword [rsp + rbx - 0x2c38], 0xab11ba1
mov rsi, qword [rsp + rax - 0x452e5868]
call fcn.1406b7dcc

Function at 0x140717d0d
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov rcx, rax
lea rsp, [rsp + 0x10]
jmp fcn.1406e3dd4
Function at 0x140001a08
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 r13d, r13d
mov r15, rdx
mov rdi, rcx
mov r12d, r9d
mov r14d, r8d
mov esi, r13d
lea edx, [r13 + 0x41]
lea ecx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001b4f
lea ebp, [r13 + 7]
cmp r14d, ebp
jb 0x140001a6a
mov edx, r14d
lea rcx, str.ERROR_kull_m_busylight_request_create___count_u__max_is_7__n
call fcn.140009ba4
cmp r14d, ebp
cmovb ebp, r14d
mov r10d, r13d
mov esi, 1
test ebp, ebp
je 0x140001b19
lea r9, [r15 + 2]
movzx edx, byte [r9 - 2]
mov cl, dl
mov al, dl
or al, 0x10
and cl, 0xf0
movzx eax, al
lea ecx, [r10*8 + 2]
cmove edx, eax
lea eax, [r10*8 + 1]
mov byte [rax + rbx], dl
mov al, byte [r9 - 1]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 3]
mov al, byte [r9]
lea r9, [r9 + 8]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 4]
mov al, byte [r9 - 7]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 5]
mov al, byte [r9 - 6]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 6]
mov al, byte [r9 - 5]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 7]
mov al, byte [r9 - 4]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 8]
mov al, byte [r9 - 3]
add r10d, esi
mov byte [rcx + rbx], al
cmp r10d, ebp
jb 0x140001a82
or word [rbx + 0x3d], 0xffff
lea rdx, [rbx + 1]
mov dword [rbx + 0x39], 0xff550404
movzx ecx, r13w
mov r8d, reloc.netapi32.dll_Ordinal_62
movzx eax, byte [rdx]
add rdx, rsi
add cx, ax
sub r8, rsi
jne 0x140001b34
movzx eax, cx
mov byte [rbx + 0x40], cl
shr ax, 8
mov byte [rbx + 0x3f], al
test esi, esi
je 0x140001bf6
jmp 0x140001be4
mov ebp, r13d
test rdi, rdi
je 0x140001bc6
mov rcx, qword [rdi + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001bc6
movzx r9d, word [rdi + 0x2a]
mov r8d, reloc.netapi32.dll_Ordinal_65
cmp r9d, r8d
jb 0x140001bb5
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
jne 0x140001bd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.140009ba4
jmp 0x140001bd5
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.140009ba4
jmp 0x140001bd5
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.140009ba4
and esi, ebp
test r12d, r12d
je 0x140001be1
mov rdi, qword [rdi]
jmp 0x140001be4
mov rdi, r13
test rdi, rdi
jne 0x140001b5c
mov rcx, rbx
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 0x140001c18
Capabilities:
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 8], 0
mov esi, edx
mov dword [rax + 0xc], 0x80000000
mov rdi, rcx
mov rbx, rcx
test rcx, rcx
je 0x140001c73
and dword [rbx + 0x90], 0
mov rcx, qword [rbx + 0x98]
test rcx, rcx
je 0x140001c63
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
and qword [rbx + 0x98], 0
test esi, esi
je 0x140001c6c
mov rbx, qword [rbx]
jmp 0x140001c6e
xor ebx, ebx
test rbx, rbx
jne 0x140001c40
mov r9d, esi
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rcx, rdi
call fcn.140001a08
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002138
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 r14
sub rsp, 0x70
mov rbp, rcx
mov edx, 0x338
mov ecx, Ordinal_65
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140002300
and dword [rbx + 0x1c], 0
lea r14, [rax + 8]
and dword [rbx + 0x20], 0
mov eax, 0x4000000
mov dword [r14], eax
mov r8, rbp
mov dword [rbx + 0xc], eax
xor edx, edx
mov eax, 0x2a
mov rcx, r14
mov word [rbx + 0x28], ax
call fcn.140001fc0
test eax, eax
je 0x1400022e2
lea rsi, [rbx + 0x22a]
mov edi, 0x100
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400022ee
mov ecx, edi
mov rax, rsi
cmp byte [rax], 0
je 0x1400021d7
inc rax
sub rcx, 1
jne 0x1400021c9
test rcx, rcx
je 0x1400021e4
mov rax, rdi
sub rax, rcx
jmp 0x1400021e6
xor eax, eax
test rcx, rcx
je 0x1400022ee
lea rcx, [rax + rsi]
sub rdi, rax
je 0x140002229
lea rdx, [rax + 0x7ffffeff]
add rdx, rdi
lea rax, [0x1400c17b8]
sub rax, rcx
test rdx, rdx
je 0x140002229
mov r8b, byte [rax + rcx]
test r8b, r8b
je 0x140002229
mov byte [rcx], r8b
dec rdx
inc rcx
sub rdi, 1
jne 0x14000220c
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
je 0x1400022ee
mov qword [rsp + 0x60], rbp
lea rax, [0x140001edc]
mov qword [rsp + 0x58], r14
lea rdi, [rbx + 0x32c]
mov qword [rsp + 0x50], rax
lea r9, [0x140001d40]
lea rax, [0x140001ea8]
mov rcx, rdi
mov qword [rsp + 0x48], rax
lea r8, [0x140001d30]
lea rax, [0x140001e70]
mov qword [rsp + 0x40], rax
lea rdx, [fcn.140001d2c]
lea rax, [fcn.140001e3c]
mov qword [rsp + 0x38], rax
lea rax, [0x140001e04]
mov qword [rsp + 0x30], rax
lea rax, [0x140001dcc]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140001d48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FCICreate]
mov qword [rbx], rax
test rax, rax
jne 0x1400022ee
mov ecx, dword [rdi]
call fcn.1400020bc
mov edx, dword [rdi]
lea rcx, str.ERROR_kull_m_cabinet_create___FCICreate_failed_with_error_code__d:__S_n
mov r8, rax
call fcn.140009ba4
jmp 0x1400022ee
lea rcx, str.ERROR_kull_m_cabinet_create___Failed_to_initialize_the_cabinet_information_structure._n
call fcn.140009ba4
cmp qword [rbx], 0
jne 0x140002300
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 r14
ret
Function at 0x14000397c
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov r15, r9
mov esi, r8d
mov r14, rdx
mov edi, ecx
cmp ecx, 0x8000
jne 0x140003a15
cmp dword [rbp + 0x40], 4
jne 0x140003af7
lea rdx, [rbp - 0x20]
mov ecx, 0xffffff7c
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x140003af7
mov rax, qword [rbp - 0x20]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x140003af7
mov rax, qword [rbp - 0x20]
mov r8, r14
mov rcx, qword [rbp - 0x10]
mov edx, esi
call qword [rax + Ordinal_26]
mov rax, qword [rbp - 0x20]
mov rdx, r15
mov rcx, qword [rbp - 0x10]
call qword [rax + 0x20]
test eax, eax
lea rcx, [rbp - 0x10]
mov rax, qword [rbp - 0x20]
setns bl
call qword [rax + Ordinal_41]
jmp 0x140003af7
mov r9d, Ordinal_27
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rbp - 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140003af7
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140003aeb
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140003ae1
mov rcx, qword [rbp - 0x18]
lea r9, [rbp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea esi, [r8 + 2]
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140003ae1
mov edx, dword [rbp + 0x20]
lea ecx, [rsi + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140003ae1
mov rcx, qword [rbp - 0x18]
lea r9, [rbp + 0x20]
mov r8, rax
mov dword [rsp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [rbp + 0x40]
mov rdx, rdi
cmp dword [rbp + 0x20], ecx
mov ebx, eax
cmovb ecx, dword [rbp + 0x20]
mov r8d, ecx
mov rcx, r15
call fcn.14008ccb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret