joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, r9
mov r14, r8
mov rdi, rcx
xor ebx, ebx
call fcn.14002d020
test eax, eax
je 0x14002d1a6
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14002d18f
mov rcx, qword [rdi + 0x20]
mov rdx, rax
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002d18a
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14002d185
test r15d, r15d
je 0x14002d185
mov edx, r15d
mov rcx, r14
call fcn.140019e80
mov rcx, qword [r14]
cmp rcx, qword [r14 + 8]
je 0x14002d180
mov r8d, r15d
mov rdx, rbp
call fcn.14009de10
mov ebx, 1
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14002d1a6
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi + 0x20], 0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14002d260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, r8
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov esi, r15d
call fcn.14002d020
test eax, eax
je 0x14002d39f
lea r8, [0x140136598]
lea edx, [r15 + 0x74]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14002d2da
lea r8, [0x140136598]
lea edx, [rax + 0x6a]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14002d38c
mov rdx, rdi
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rdx, rdi
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002d38c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14002d38c
test ebp, ebp
je 0x14002d38c
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov esi, 1
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.1400278d0
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.140010540
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14002d38c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d387
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d3c2
call fcn.14009b510
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002d39f
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x20], r15
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14009b5b0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400ac408
int3
Function at 0x14002d3d0
Capabilities:
Extract resource via kernel32 functions

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, 0x50
mov r12, r8
mov r13, rcx
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov r15d, esi
mov qword [rsp + 0x38], rsi
mov edi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x98], esi
mov ebx, esi
call fcn.14002d020
test eax, eax
je 0x14002d559
lea r8, str.SPLASH_DATA
lea edx, [rsi + 0x75]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14002d4c5
mov rdx, rax
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rdx, rbp
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002d4c5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14002d4c5
test r14d, r14d
je 0x14002d4c5
mov ebx, r14d
mov edx, r14d
lea rcx, [rsp + 0x28]
call fcn.140019e80
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
cmp r14, rbp
je 0x14002d4ab
mov r8d, ebx
mov rdx, qword [rsp + 0x20]
mov rcx, r14
call fcn.14009de10
mov dword [rsp + 0x98], 1
mov rbx, r14
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
jmp 0x14002d4cf
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, qword [r13 + 0x20]
test rcx, rcx
je 0x14002d4e2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [r13 + 0x20], rsi
cmp dword [rsp + 0x98], 0
je 0x14002d559
sub rbp, rbx
lea rax, [rdi + 4]
cmp rax, rbp
ja 0x14002d4ff
mov esi, dword [r14 + rdi]
mov rdi, rax
lea rcx, [rdi + 4]
cmp rcx, rbp
ja 0x14002d513
mov eax, dword [r14 + rdi]
mov dword [r12], eax
mov rdi, rcx
lea rcx, [rdi + 4]
cmp rcx, rbp
ja 0x14002d528
mov eax, dword [r14 + rdi]
mov dword [r12 + 4], eax
mov rdi, rcx
lea rcx, [rdi + 4]
cmp rcx, rbp
ja 0x14002d53d
mov eax, dword [r14 + rdi]
mov dword [r12 + 8], eax
mov rdi, rcx
cmp esi, 1
jbe 0x14002d554
lea rax, [rdi + 4]
cmp rax, rbp
ja 0x14002d554
mov eax, dword [r14 + rdi]
mov dword [r12 + 0xc], eax
mov esi, 1
test rbx, rbx
je 0x14002d58d
sub r15, rbx
cmp r15, 0x1000
jb 0x14002d582
add r15, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14002d5ad
mov rbx, rcx
mov rdx, r15
mov rcx, rbx
call fcn.14009b510
mov eax, esi
lea r11, [rsp + 0x50]
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
call fcn.1400ac408
int3
Function at 0x14002e260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
xor ebx, ebx
cmp dword [rcx + 0x84], 0xffffffff
jne 0x14002e3cf
mov dword [rcx + 0x84], ebx
mov rcx, 0xffffffff80000002
call fcn.14002e1b0
test eax, eax
jne 0x14002e3cf
mov rcx, 0xffffffff80000001
call fcn.14002e1b0
test eax, 0xfffffffd
jne 0x14002e3cf
lea r9d, [rbx + 1]
mov r8, 0xffffffff80000000
lea rdx, str.LockXLSRuntime.Connect
lea rcx, [rbp - 0x29]
call fcn.140010d80
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14002e3c6
lea r9d, [rbx + 1]
mov r8, 0xffffffff80000000
lea rdx, str.CLSID36CFCB02_788B_41D9_A9A6_FCBCEC7FF987InprocServer32
lea rcx, [rbp - 0x79]
call fcn.140010d80
nop
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x37], rbx
mov eax, 7
mov qword [rbp + 0x3f], rax
mov word [rbp + 0x27], bx
cmp qword [rbp - 0x79], rbx
je 0x14002e36d
lea r8, [rbp + 0x27]
lea rdx, [0x14012e64c]
lea rcx, [rbp - 0x79]
call fcn.140010bd0
test eax, eax
je 0x14002e369
cmp qword [rbp + 0x37], rbx
je 0x14002e369
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rcx, qword [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002e369
mov dword [rdi + 0x84], 1
mov rax, qword [rbp + 0x3f]
cmp rax, 8
jb 0x14002e3a5
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e3a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e3fc
call fcn.14009b510
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], 7
mov word [rbp + 0x27], bx
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x14002e3c2
call qword [rbp - 0x61]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14002e3cf
call qword [rbp - 0x11]
nop
cmp dword [rdi + 0x84], 1
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14009b5b0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400ac408
nop
int3
Function at 0x14002f3a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rdx + 0x18], 8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
jb 0x14002f3d6
mov rdi, qword [rdx]
xor ebp, ebp
mov word [rsp + 0x30], bp
lea rbx, [rbp - 1]
test rdi, rdi
je 0x14002f471
cmp word [rdi], bp
je 0x14002f471
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [rsp + 0x30], bp
je 0x14002f442
lea rcx, [rsp + 0x30]
mov rax, rbx
cmp word [rcx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14002f412
cmp word [rsp + rax*2 + 0x2e], 0x5c
je 0x14002f442
lea rcx, [rsp + 0x30]
sub rcx, 2
nop
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x14002f430
mov eax, dword [0x14012e6c4]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x14002f450
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14002f460
mov qword [rsi], rbp
lea rax, [rsp + 0x30]
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 7
mov word [rsi], bp
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], bp
jne 0x14002f490
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400123a0
mov rax, rsi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14009b5b0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400374d0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
je 0x1400374ea
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140037568
lea r9d, [rax + 1]
mov dword [rsp + 0x20], eax
xor r8d, r8d
lea rdx, str.Spreadsheet_Tools
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140037568
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rdx, str.Spreadsheet_Tools
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140037568
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0x20
xor r8d, r8d
lea rdx, str.Spreadsheet_Tools
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
add rsp, 0x30
pop rbx
ret
Function at 0x140037590
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [rdx + 8]
mov ebx, r9d
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x30], 0
cmp qword [rdx], rax
je 0x140037684
call fcn.1400374d0
test eax, eax
je 0x140037671
mov rcx, qword [r14]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140037671
test ebx, ebx
jne 0x1400375ff
mov ebx, dword [rdi + 8]
sub ebx, dword [rdi]
mov edx, dword [rsp + 0x70]
xor r9d, r9d
add rdx, qword [rdi]
mov r8d, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140037666
mov edx, reloc.WS2_32.dll_recv
mov dword [rsp + 0x58], reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.140019e80
mov r8, qword [rsi]
lea r9, [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140037666
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, 1
jmp 0x140037686
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, 1
mov rcx, rsi
call fcn.140019e80
mov rax, qword [rsi]
mov byte [rax], reloc.OLEAUT32.dll_SafeArrayUnaccessData
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400376a0
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov qword [rsp + 0x48], 0
mov rsi, rcx
mov qword [rsp + 0x40], 0
call fcn.1400374d0
test eax, eax
je 0x14003787e
mov ebp, dword [rsi + 0x18]
lea rbx, [rsi + 8]
mov rsi, qword [rsi]
lea rax, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14003787e
cmp qword [rbx + 0x18], 0x10
jb 0x14003770b
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140037873
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0x6603
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140037873
mov ebx, dword [rdi + 8]
sub ebx, dword [rdi]
mov ecx, ebx
and ecx, 7
je 0x1400377c1
mov rbp, qword [rdi + 8]
mov eax, 8
mov rdx, qword [rdi]
sub eax, ecx
add ebx, eax
mov byte [rsp + 0x80], 0
mov rcx, rbp
mov esi, ebx
sub rcx, rdx
cmp rsi, rcx
jae 0x140037786
lea rax, [rdx + rbx]
jmp 0x1400377bd
jbe 0x1400377c1
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rsi, rax
jbe 0x1400377a9
lea r8, [rsp + 0x80]
mov rdx, rsi
mov rcx, rdi
call fcn.140025db0
jmp 0x1400377c1
sub rsi, rcx
xor edx, edx
mov r8, rsi
mov rcx, rbp
call fcn.14009e4c0
lea rax, [rsi + rbp]
mov qword [rdi + 8], rax
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x88]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x88], ebx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
test eax, eax
je 0x14003784e
mov eax, dword [rsp + 0x88]
cmp eax, ebx
jbe 0x140037820
mov edx, eax
mov byte [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.140024ec0
mov rax, qword [rdi]
lea rcx, [rsp + 0x88]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rbx, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037890
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor edi, edi
mov rsi, rdx
mov qword [rsp + 0x30], rdi
mov r14, rcx
mov qword [rsp + 0x78], rdi
call fcn.1400374d0
test eax, eax
je 0x140037993
mov rbp, qword [r14]
lea rbx, [r14 + 8]
mov r14d, dword [r14 + 0x18]
lea rax, [rsp + 0x78]
mov rcx, rbp
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140037993
cmp qword [rbx + 0x18], 0x10
jb 0x1400378fc
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140037988
mov r8, qword [rsp + 0x78]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0x6603
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140037988
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x14003796e
sub eax, ecx
xor r9d, r9d
mov dword [rsp + 0x70], eax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov edi, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, edi
jmp 0x140037995
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140038460
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rdx
mov rsi, rcx
xor edi, edi
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov dword [rsp + 0x40], edi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x14003854b
mov ecx, dword [rsp + 0x40]
call fcn.14009bed8
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.14009e4c0
lea rdx, [rsp + 0x40]
mov rcx, rbp
mov rbx, rbp
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x140038543
nop dword [rax]
mov eax, dword [rbx + 0x194]
cmp eax, 8
jbe 0x1400384fc
mov dword [rbx + 0x194], 8
mov eax, 8
jmp 0x140038500
test eax, eax
je 0x14003853b
movzx ecx, byte [rbx + 0x198]
test cl, cl
jne 0x14003853b
cmp byte [rbx + 0x199], 0x50
jne 0x140038521
cmp byte [rbx + 0x19a], 0x56
je 0x14003853b
test cl, cl
jne 0x14003853b
cmp byte [rbx + 0x199], 0xc
jne 0x14003860e
cmp byte [rbx + 0x19a], 0x29
jne 0x14003860e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400384e0
mov rcx, rbp
call fcn.14009b518
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400385e4
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400385e4
xor r9d, r9d
mov qword [rsp + 0x48], rdi
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1400385db
mov edx, 8
mov rcx, rsi
call fcn.140019e80
mov rcx, qword [rsi]
mov rax, qword [rsp + 0x48]
mov qword [rcx], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14009b5b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov edx, eax
mov rcx, rsi
call fcn.140019e80
cmp dword [rbx + 0x194], edi
jbe 0x140038677
mov rcx, qword [rsi]
mov edx, edi
movzx eax, byte [rdx + rbx + 0x198]
mov byte [rdx + rcx], al
lea rcx, [rsp + 0x50]
mov rax, qword [rsi]
movzx r8d, byte [rdx + rax]
lea rdx, str._02d
call fcn.14001e0a0
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140038655
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14000b610
inc edi
cmp edi, dword [rbx + 0x194]
jb 0x140038620
mov rcx, rbp
call fcn.14009b518
mov eax, 1
jmp 0x1400385e6
Function at 0x140043bc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x140043bcb
xor eax, eax
ret
lea r11, [0x14012f8a0]
not ecx
cmp r8, 8
jb 0x140043c9d
mov r10, r8
shr r10, 3
imul rax, r10, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140043bf0
test r8, r8
je 0x140043ccd
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x140043cb0
not ecx
mov eax, ecx
ret
Function at 0x1400445b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x1400446b6
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
mov rax, rcx
test rcx, rcx
je 0x1400445f7
cmp dword [rbx + 0x58], edi
jae 0x1400445f7
call fcn.14009b518
mov qword [rbx + 0x50], 0
jmp 0x1400445fc
test rax, rax
jne 0x14004460b
lea ecx, [rdi + rdi]
call fcn.14009bed8
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call fcn.14009de10
test edi, edi
je 0x1400446ad
xor r11d, r11d
lea rsi, [0x14012f8a0]
nop
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x4c]
mov edx, dword [rbx + 0x44]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
xor edx, dword [rsi + rax*4]
movzx eax, dl
add eax, dword [rbx + 0x48]
imul eax, eax, 0x8088405
mov dword [rbx + 0x44], edx
inc eax
mov ecx, eax
shr rcx, 0x18
mov dword [rbx + 0x48], eax
movzx eax, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
mov dword [rbx + 0x4c], r8d
mov rax, qword [rbx + 0x50]
imul ecx, r9d
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x140044630
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x140044706
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x1400446e3
mov dword [rbx + 0x24], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call fcn.14009de10
add dword [rbx + 0x38], edi
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004473d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov dword [rbx + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140044e50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x140044ec9
mov eax, dword [rdi + 0xc4]
mov esi, dword [rdi + 0xc0]
cmp eax, esi
jae 0x140044f19
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.14009de10
mov ecx, dword [rdi + 0xa0]
mov rdx, rbp
add dword [rdi + 0xc4], esi
add dword [rdi + 0x9c], esi
mov r8d, esi
call fcn.140043bc0
mov dword [rdi + 0xa0], eax
mov eax, esi
jmp 0x140044f1b
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x140044f12
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140044f19
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x9c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0xa0]
call fcn.140043bc0
mov dword [rdi + 0xa0], eax
mov eax, ebx
jmp 0x140044f1b
mov dword [rdi + 0x24], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret