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

Disassembly:
mov eax, 0x75af528
add eax, dword [0x140590c00]
cmp ecx, eax
jne 0x14035a7ec
test edx, edx
je 0x14035a81c
movzx eax, byte [0x14058fdbe]
cmp al, 0x20
je 0x14035a7e4
mov cl, 0xff
mov al, 0x38
lock cmpxchg byte [0x14058fdbe], cl
je 0x14035a88c
cmp al, 0x20
jne 0x14035a7d0
lea rax, [0x14058fdb0]
ret
test edx, edx
je 0x14035a850
movzx eax, byte [0x14058fb3d]
cmp al, 6
je 0x14035a814
mov cl, 0x39
nop dword [rax]
mov al, 0x43
lock cmpxchg byte [0x14058fb3d], cl
je 0x14035a8c8
cmp al, 6
jne 0x14035a800
lea rax, [0x14058fb20]
ret
movzx eax, byte [0x14058fcb3]
cmp al, 0xd0
je 0x14035a848
mov cl, 0xe4
nop dword [rax]
mov al, 0xba
lock cmpxchg byte [0x14058fcb3], cl
je 0x14035a918
cmp al, byte [0x140590c04]
jne 0x14035a830
lea rax, [0x14058fcb0]
ret
movzx eax, byte [0x14058fd99]
movzx ecx, byte [0x140590c04]
add cl, 0xcb
cmp al, cl
je 0x14035a884
mov cl, 0xcb
nop word [rax + rax]
mov al, 0x67
lock cmpxchg byte [0x14058fd99], cl
je 0x14035a961
cmp al, 0x9b
jne 0x14035a870
lea rax, [0x14058fd90]
ret
xor eax, eax
lea rcx, [0x14058fdb0]
lea rdx, [0x14048e090]
nop dword [rax]
movzx r8d, byte [rax + rdx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rax + rcx]
xor r9b, r8b
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
cmp r8d, 0xd
jg 0x14035a8f8
inc rax
jmp 0x14035a8a0
xor eax, eax
lea rcx, [0x14058fb20]
lea rdx, [0x14048de30]
nop dword [rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x1c
jg 0x14035a908
inc rax
jmp 0x14035a8e0
mov al, 0x20
xchg byte [0x14058fdbe], al
lea rax, [0x14058fdb0]
ret
mov al, 6
xchg byte [0x14058fb3d], al
lea rax, [0x14058fb20]
ret
xor edx, edx
lea rax, [0x14058fcb0]
lea rcx, [0x14048dfa0]
nop dword [rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, dword [0x140590c00]
add edx, r8d
add edx, 0x75af529
cmp edx, 3
jl 0x14035a930
mov al, 0xd0
xchg byte [0x14058fcb3], al
lea rax, [0x14058fcb0]
ret
xor eax, eax
lea rcx, [0x14058fd90]
lea rdx, [0x14048e070]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rax + rcx]
xor r9b, r8b
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
cmp r8d, 8
jg 0x14035a9a8
inc rax
jmp 0x14035a980
mov al, 0x9b
xchg byte [0x14058fd99], al
lea rax, [0x14058fd90]
ret

Function at 0x140384d10
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rdx
call fcn.14039bd10
test rax, rax
sete cl
or cl, byte [0x1405b3682]
movzx edx, byte [0x1405b3cf0]
mov r8d, edx
and r8b, cl
test r8b, 1
jne 0x140384d6e
mov r8d, edx
xor r8b, 1
and r8b, cl
test r8b, 1
jne 0x140384d6e
xor cl, 1
and dl, cl
test dl, 1
jne 0x140384d6e
add rsp, 0x40
pop rbp
ret
mov ecx, 0x7f
call fcn.140192880
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
mov r8d, 0xc649bf83
mov r9d, 0xb8dcf098
add rsp, 0x40
pop rbp
jmp fcn.140385480
Function at 0x140399fd0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
xor eax, eax
test rcx, rcx
je 0x14039a149
test rdx, rdx
je 0x14039a149
mov al, 1
cmp rcx, rdx
je 0x14039a149
movabs r9, 0xef0d2a040d9994a9
xor r8d, r8d
xor r10d, r10d
nop word cs:[rax + rax]
mov r11, r8
sub r11, r9
movzx ebx, byte [0x140599728]
add bl, 0xb3
xor esi, esi
cmp byte [rcx + r8], 0
setne sil
movzx r8d, r10b
movzx r10d, bl
cmovne r10d, r8d
add r11, r9
mov r8, r11
add r8, rsi
test r10b, 1
je 0x14039a010
xor r9d, r9d
mov r10d, 1
xor r11d, r11d
nop word cs:[rax + rax]
xor esi, esi
cmp byte [rdx + r9], 0
setne sil
movzx r11d, r11b
cmove r11d, r10d
mov rdi, rsi
xor rdi, r9
and esi, r9d
lea r9, [rdi + rsi*2]
mov ebx, r11d
and bl, 1
movzx esi, byte [0x140599728]
add sil, 0xb2
cmp bl, sil
je 0x14039a060
cmp r8, r9
jne 0x14039a147
test r8, r8
je 0x14039a149
xor r9d, r9d
xor r10d, r10d
jmp 0x14039a0e3
movzx ebx, byte [0x140599728]
add bl, 0xb3
cmp sil, 0x2e
movzx r10d, r10b
movzx esi, bl
cmove r10d, esi
cmp r11b, 0x2e
cmove r10d, esi
mov r11d, dword [0x1405b3980]
add r9d, r11d
inc r9d
cmp r8, r9
jbe 0x14039a149
movzx r11d, byte [rcx + r9]
movzx esi, byte [rdx + r9]
cmp r11b, sil
je 0x14039a0b0
test r10b, 1
jne 0x14039a147
lea ebx, [r11 - 0x61]
movzx edi, byte [0x140599728]
lea ebp, [rdi + r11]
add bpl, 0x92
cmp bl, 0x1a
movzx ebx, bpl
movzx r11d, r11b
cmovb r11d, ebx
lea ebx, [rsi - 0x61]
mov ebp, edi
xor bpl, 0xcc
and dil, 0x4c
add dil, dil
add dil, bpl
lea ebp, [rsi - 0x20]
cmp bl, dil
movzx edi, sil
movzx esi, bpl
cmovae esi, edi
cmp r11b, sil
je 0x14039a0b0
xor eax, eax
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1403aafd0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x1405a2e58]
xor rax, rsp
mov qword [rsp + 0x230], rax
movabs rdi, 0xa3d3020ee34b4bef
mov rax, qword [0x1405b6920]
test rax, rax
je 0x1403ab09d
movabs rax, 0x4a6fdd95ef42331
mov ecx, dword [0x1405b69f4]
cmp ecx, 0xe
jg 0x1403ab02e
inc qword [0x140598f30]
mov rsi, qword [0x1405b6920]
xor ecx, ecx
test cl, cl
je 0x1403ab081
mov rcx, qword [0x140598f30]
mov rdx, rcx
neg rdx
mov r8, rdx
sub r8, rcx
inc r8
mov r9, rdi
sub r9, rax
add r9, qword [0x14059ad00]
add r9, rax
imul r8, rdx
add r9, rcx
add r9, r8
shl r9, cl
shl r9, cl
mov rdx, r9
xor rdx, rcx
and r9, rcx
lea rcx, [rdx + r9*2]
mov qword [0x140598f30], rcx
mov rcx, qword [0x1405b6920]
jmp 0x1403ab01a
mov eax, esi
not eax
and eax, 0x11223344
and rsi, 0xffffffffeeddccbb
or rsi, rax
test rsi, rsi
jne 0x1403ab1c9
movaps xmm0, xmmword [0x140491120]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x1804242b697f3d33
mov qword [rsp + 0x40], rax
movzx eax, byte [0x14059acf8]
add al, 7
mov ecx, 0xffffdb99
add ecx, dword [0x14059aa24]
mov byte [rsp + 0x48], al
movsxd rax, ecx
add rax, qword [0x14059aa30]
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov edx, 6
mov r8d, 0xed48e103
mov r9d, 0xf29cb72a
call qword [case.0x14013082b.0]
mov rax, qword [0x14059ad00]
mov rcx, rdi
xor rcx, rax
and rdi, rax
lea rax, [rcx + rdi*2]
mov qword [rsp + 0x28], rax
mov eax, dword [0x14059aa20]
sub eax, dword [0x14059ad08]
add eax, 0x9c92825a
cdqe
add rax, qword [0x14059aa38]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xd6c05557
mov r9d, 0x5f397b2d
call qword [case.0x14013082b.0]
mov rsi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
test rax, rax
je 0x1403ab1a9
mov rax, qword [0x1405b6920]
test rax, rax
jne 0x1403ab1a9
mov eax, dword [0x1405b69f4]
cmp eax, 0x1f
jg 0x1403ab18e
mov qword [0x1405b6920], rsi
xor qword [0x1405b6920], 0x11223344
xor eax, eax
test al, al
je 0x1403ab1a9
mov qword [0x1405b6920], rsi
mov rax, qword [0x1405b6920]
mov qword [0x1405b6920], 0
jmp 0x1403ab176
xor eax, eax
test al, al
nop dword [rax]
mov eax, dword [0x14059ad08]
mov ecx, eax
xor ecx, 0x636d593f
and eax, 0x636d593f
add eax, eax
add eax, ecx
jne 0x1403ab1b0
xor eax, eax
test al, al
jne 0x1403ab1e0
mov eax, dword [0x1405b69f0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x1403ab1f3
mov eax, dword [0x1405b69f0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x1403ab1e0
jmp 0x1403ab1cf
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1404266c0
mov rax, rsi
add rsp, 0x238
pop rdi
pop rsi
ret
Function at 0x14162e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14162e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14162e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162e06f
add dl, dl
jne 0x14162e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162e0f6
xor eax, eax
add dl, dl
jne 0x14162e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162e1ad
add dl, dl
jne 0x14162e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14162e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14162e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14162e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14162e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14162e07e
mov eax, 1
add dl, dl
jne 0x14162e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14162e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162e0fb
sub eax, ebx
mov ebx, 1
jne 0x14162e14c
mov ecx, 1
add dl, dl
jne 0x14162e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14162e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14162e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14162e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162e15d
cmp eax, 0x7d00
jae 0x14162e19b
cmp eax, 0x500
jb 0x14162e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162e07e
cmp eax, 0x7f
ja 0x14162e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14162e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14162e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1401eb740
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x110
mov rax, qword [0x1405bd010]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, 0xffffffffffffffff
lea r11, str.This_is_a_message.
mov rcx, rbx
inc rcx
cmp byte [r11 + rcx], 0
jne 0x1401eb780
xor edi, edi
mov ebp, 1
mov r8d, edi
mov edx, edi
mov r9d, edi
mov r10d, ebp
lea r14d, [rdi + 4]
test ecx, ecx
jle 0x1401eb7c1
movsxd rax, r9d
inc r8d
add r9d, r14d
xor r10d, ebp
movzx eax, byte [rax + r11]
mov byte [rsp + rdx + 0x20], al
inc rdx
cmp r9d, ecx
jl 0x1401eb7a4
mov r9d, ebp
mov esi, 2
cmp ebp, ecx
jge 0x1401eb7ed
nop dword [rax]
movsxd rax, r9d
inc r8d
movzx eax, byte [rax + r11]
mov byte [rsp + rdx + 0x20], al
lea eax, [rsi + r9]
inc rdx
mov r9d, eax
cmp eax, ecx
jl 0x1401eb7d0
mov r9d, esi
mov r10d, ebp
cmp esi, ecx
jge 0x1401eb81e
nop word [rax + rax]
movsxd rax, r9d
lea rdx, [rdx + 1]
inc r8d
add r9d, r14d
xor r10d, ebp
movzx eax, byte [rax + r11]
mov byte [rsp + rdx + 0x1f], al
cmp r9d, ecx
jl 0x1401eb800
movsxd rax, r8d
lea rdx, [rsp + 0x20]
lea rcx, str.message
mov byte [rsp + rax + 0x20], dil
call fcn.1401eb6e0
lea rax, [rsp + 0x20]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x1401eb840
mov rdx, rdi
mov r8d, edi
mov r9d, ebp
test ebx, ebx
jle 0x1401eb87f
nop word [rax + rax]
movsxd rax, r8d
inc edi
add r8d, r14d
xor r9d, ebp
movzx ecx, byte [rsp + rax + 0x20]
mov byte [rsp + rdx + 0x90], cl
inc rdx
cmp r8d, ebx
jl 0x1401eb860
mov r8d, ebp
cmp ebp, ebx
jge 0x1401eb8af
nop word [rax + rax]
movsxd rax, r8d
inc edi
movzx ecx, byte [rsp + rax + 0x20]
lea eax, [rsi + r8]
mov byte [rsp + rdx + 0x90], cl
mov r8d, eax
inc rdx
cmp eax, ebx
jl 0x1401eb890
cmp esi, ebx
jge 0x1401eb8df
nop dword [rax]
nop word [rax + rax]
movsxd rax, esi
lea rdx, [rdx + 1]
inc edi
add esi, r14d
xor ebp, 1
movzx ecx, byte [rsp + rax + 0x20]
mov byte [rsp + rdx + 0x8f], cl
cmp esi, ebx
jl 0x1401eb8c0
movsxd rax, edi
lea rdx, [rsp + 0x90]
lea rcx, str.message
mov byte [rsp + rax + 0x90], 0
call fcn.1401eb6e0
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1401f7bb0
lea r11, [rsp + 0x110]
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 0x1401eb940
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x1405bd010]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ecx, ecx
call fcn.1403a87c4
mov rcx, rax
call fcn.1403a2f14
xor edi, edi
mov ebx, edi
call fcn.1403a2ee8
and eax, 0x800000ff
jge 0x1401eb987
dec eax
or eax, 0xffffff00
inc eax
mov byte [rsp + rbx + 0x20], al
inc rbx
cmp rbx, 0xd
jl 0x1401eb972
movq xmm2, qword [rsp + 0x20]
lea r9, str.this_is_a_bug
movq xmm1, qword [str.this_is_a_bug]
movq xmm0, xmm2
xorps xmm1, xmm0
mov r8d, 5
movq qword [rsp + 0x90], xmm1
mov rcx, rdi
mov edx, r8d
movzx eax, byte [rcx + r9 + 8]
xor al, byte [rsp + rcx + 0x28]
mov byte [rsp + rcx + 0x98], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1401eb9c5
movq xmm1, qword [rsp + 0x90]
movq xmm0, xmm2
xorps xmm1, xmm0
mov rcx, rdi
movq qword [rsp + 0x100], xmm1
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x28]
xor al, byte [rsp + rcx + 0x98]
mov byte [rsp + rcx + 0x108], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x1401eba00
mov rdx, r9
mov byte [rsp + 0x10d], dil
lea rcx, [0x140481ab8]
call fcn.1401eb6e0
lea rcx, [0x140481ac8]
call fcn.1401eb6e0
mov rbx, rdi
movzx edx, byte [rsp + rbx + 0x20]
lea rcx, str._02X
call fcn.1401eb6e0
inc rbx
cmp rbx, 0xd
jl 0x1401eba43
lea rcx, reloc.WS2_32.dll_ioctlsocket
call fcn.1401eb6e0
lea rcx, [0x140481ae0]
call fcn.1401eb6e0
nop word [rax + rax]
movzx edx, byte [rsp + rdi + 0x90]
lea rcx, str._02X
call fcn.1401eb6e0
inc rdi
cmp rdi, 0xd
jl 0x1401eba80
lea rcx, reloc.WS2_32.dll_ioctlsocket
call fcn.1401eb6e0
lea rdx, [rsp + 0x100]
lea rcx, [0x140481ab8]
call fcn.1401eb6e0
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401f7bb0
mov rbx, qword [rsp + 0x190]
add rsp, 0x180
pop rdi
ret
Function at 0x1401f75e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1405bd010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
xor esi, esi
call fcn.1401eb940
call fcn.1401eb740
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f764a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1401f764e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1401f769f
call fcn.1401eb940
call fcn.1401eb740
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1401f7686
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1401f7660
jmp 0x1401f768a
mov esi, dword [rsp + 0x28]
call fcn.1401eb940
call fcn.1401eb740
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401f7bb0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401f76d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1405bd010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov rbx, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1401f7864
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140396ac0
xor eax, eax
test rdi, rdi
je 0x1401f77c9
cmp rdi, 8
jb 0x1401f77ce
movdqa xmm2, xmmword [0x140595880]
cmp rdi, 0x40
jb 0x1401f77a7
mov rdx, rdi
lea rcx, [rsi + 0x20]
and edx, 0x3f
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx - 0x20]
add rax, 0x40
lea rcx, [rcx + 0x40]
andnps xmm0, xmm2
movdqu xmmword [rcx - 0x60], xmm0
movdqu xmm0, xmmword [rcx - 0x50]
andnps xmm0, xmm2
movdqu xmmword [rcx - 0x50], xmm0
movdqu xmm1, xmmword [rcx - 0x40]
andnps xmm1, xmm2
movdqu xmmword [rcx - 0x40], xmm1
movdqu xmm0, xmmword [rcx - 0x30]
andnps xmm0, xmm2
movdqu xmmword [rcx - 0x30], xmm0
cmp rax, r8
jb 0x1401f7760
cmp rdx, 8
jb 0x1401f77c9
mov rcx, rdi
mov rdx, rdi
and ecx, 7
sub rdx, rcx
movq xmm0, qword [rax + rsi]
andnps xmm0, xmm2
movq qword [rax + rsi], xmm0
add rax, 8
cmp rax, rdx
jb 0x1401f77b3
cmp rax, rdi
jae 0x1401f77ec
mov r8, rdi
lea rdx, [rax + rsi]
sub r8, rax
nop dword [rax + rax]
not byte [rdx]
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1401f77e0
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, rbp
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, edi
mov rdx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f7bb0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f7880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, r8
mov r14, rdx
mov rdx, rax
lea r8, [0x1405955ac]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x1401f7949
call fcn.1401eb940
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
call fcn.1401eb740
test rdi, rdi
je 0x1401f7949
mov qword [rsp + 0x30], rsi
call fcn.1401eb740
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1401f7926
call fcn.1401eb940
mov r9d, dword [rsp + 0x50]
mov r8, rsi
add r9d, 0xfffffc00
mov rdx, r14
add r9d, ebp
call fcn.1401f76d0
test eax, eax
je 0x1401f7926
call fcn.1401eb740
call fcn.1401eb940
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x30]
mov eax, 1
jmp 0x1401f794b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1401f8938
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401f8982
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401f8982
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401f8982
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401f8982
cmp dword [rcx + 0x84], 0xe
jbe 0x1401f8982
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401f8984
xor al, al
add rsp, 0x28
ret
Function at 0x1401fa140
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1401fa16e
xor eax, eax
jmp 0x1401fa254
cmp qword [rcx + 0x68], 0
je 0x1401fa17f
call fcn.1401f0370
jmp 0x1401fa254
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1401fa196
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1401fa198
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1401fa1ca
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140396ac0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1401fa24e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1401fa201
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1401fa22a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1403b2dd4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1401fa24e
cmp rsi, rbx
ja 0x1401fa208
test rsi, rsi
je 0x1401fa24e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1403b2dd4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14021c8f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1405bd010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14021c986
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14021c986
mov dword [rsp + 0x20], 0x28
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14021c9aa
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401f7bb0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.1401f1710
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14021ca60
lea rdx, [0x1405baab0]
lea rcx, [rsp + 0x50]
call fcn.14039661c
int3
Function at 0x14021ce60
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1405bd010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x140642ba0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140643318], ecx
jg 0x14021cf3f
mov eax, ebx
cmp rbx, rax
jne 0x14021cf01
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14021cf01
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x140643310]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14021cf82
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401f7bb0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.1401f1710
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14021ca60
lea rdx, [0x1405baab0]
lea rcx, [rsp + 0x40]
call fcn.14039661c
nop
lea rcx, [0x140643318]
call fcn.1401f7c80
cmp dword [0x140643318], 0xffffffff
jne 0x14021ceac
lea rcx, [0x140643310]
call fcn.14021c8f0
lea rcx, [0x1403d1db0]
call fcn.1401f804c
nop
lea rcx, [0x140643318]
call fcn.1401f7c14
jmp 0x14021ceac
lea rdx, [0x1403d7418]
lea rcx, [rsp + 0x20]
call fcn.1401f1710
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14021ca60
lea rdx, [0x1405baab0]
lea rcx, [rsp + 0x40]
call fcn.14039661c
int3