joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c385779
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x6c3a7054]
mov edi, 0x6c371928
push 0x45
push edi
xor ebx, ebx
xor esi, esi
call fcn.6c371c10
mov dword [ebp - 4], eax
cmp eax, 0x102
jne 0x6c3857b1
mov dword [ebp - 4], 0xc0000bca
jmp 0x6c385927
mov esi, dword [0x6c3a7578]
cmp esi, ebx
je 0x6c3857da
push 0x7f
push dword [esi + 4]
push dword [ebp + 0xc]
call fcn.6c372eed
test eax, eax
je 0x6c3857d2
mov esi, dword [esi]
cmp esi, ebx
jne 0x6c3857bb
cmp esi, ebx
jne 0x6c385904
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
lea eax, [eax + eax + 9]
shr eax, 3
lea eax, [eax*8 + 0x20]
push eax
push 0x58
push 0x6c371928
call fcn.6c375051
mov esi, eax
cmp esi, ebx
je 0x6c3858fb
push dword [ebp + 0xc]
lea eax, [esi + 0x20]
push dword [ebp + 0xc]
mov dword [esi + 4], eax
call edi
inc eax
push eax
push dword [esi + 4]
call fcn.6c3738f9
push ebx
push 0x80
push 3
push ebx
xor edi, edi
inc edi
push edi
push 0x80000000
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x6c38589e
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x6c38589e
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp dword [ebp - 8], ebx
jl 0x6c3858c3
jg 0x6c38586c
cmp dword [ebp - 0xc], ebx
jbe 0x6c3858c3
cmp dword [ebp - 8], ebx
jne 0x6c3858c3
push ebx
push dword [ebp - 0xc]
push ebx
push 2
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x6c38589e
push dword [esi + 0x18]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x6c3858a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x6c3858cc
mov eax, dword [0x6c3a7578]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [0x6c3a7578], esi
mov dword [esi + 0x14], edi
mov dword [eax], esi
jmp 0x6c38590c
mov dword [ebp - 4], 0x3ee
jmp 0x6c3858a7
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x6c3858da
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x6c3858ea
push eax
call edi
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x6c3858f4
push eax
call edi
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x6c38590c
mov dword [ebp - 4], 0xc0000bbb
jmp 0x6c38590c
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
inc dword [esi + 0x14]
push dword [0x6c3a7054]
mov edi, 0x6c371928
push 0xa9
push edi
call fcn.6c371b8c
cmp dword [ebp - 4], ebx
je 0x6c385933
push esi
push 0xac
push edi
call fcn.6c3750c2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x6c386fbc
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x6c3a70b8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x414], 0
cmp word [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
je 0x6c3870d9
cmp word [ebp + 0xc], 1
je 0x6c3870d9
cmp word [ebp + 0xc], 0x64
je 0x6c3870d9
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x414], esi
test esi, esi
jge 0x6c3870d8
cmp byte [ebp + 0x18], 0
push ebx
mov eax, 0x200
lea ebx, [ebp - 0x410]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ebx
je 0x6c387057
lea edx, [ebp - 0x41c]
push edx
push eax
mov eax, ebx
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push dword [ecx + 0x8c]
push 2
call dword [0x6c3a7b34]
jmp 0x6c387084
lea ebx, [ebp - 0x41c]
push ebx
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ecx + 0x88]
push dword [ecx + 0x84]
call dword [0x6c3a7b48]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], ecx
pop ebx
cmp esi, 0xc0000be2
jne 0x6c3870b3
cmp eax, 0x451
jne 0x6c3870b3
mov dword [ebp - 0x414], 0x70
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push 2
push 1
push 0
push esi
push 0
push 1
push dword [0x6c3a7080]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x414]
xor ecx, ebp
call fcn.6c371640
leave
ret 0x18

Function at 0x6c3923a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x6c39244d
cmp eax, 0xffffffff
je 0x6c39244d
push ebx
push edi
mov esi, 0x10000
push esi
push 0x4f2
mov ebx, 0x6c372c94
push ebx
call fcn.6c375051
mov edi, eax
test edi, edi
je 0x6c392439
and dword [ebp + 8], 0
push 0
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jle 0x6c39242b
cmp dword [ebp + 8], esi
jne 0x6c39242b
cmp dword [edi], esi
jne 0x6c392425
cmp dword [edi + 0x68], esi
jne 0x6c392425
mov eax, dword [ebp + 0xc]
mov dword [eax], 8
jmp 0x6c39242b
mov eax, dword [ebp + 0xc]
and dword [eax], 0
push edi
push 0x507
push ebx
call fcn.6c3750c2
jmp 0x6c392440
mov dword [ebp - 4], 0xc0000bbb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
jmp 0x6c392454
mov dword [ebp - 4], 0xc0000bca
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x6c3938ee
Capabilities:
Get file size

Disassembly:
push 0x20
push 0x6c393ab8
call fcn.6c371338
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 8]
test dword [eax + 0x58], 0x20000
mov eax, dword [eax + 0x24]
je 0x6c3939ae
cmp eax, esi
je 0x6c3939a2
add eax, 0x878
cmp word [eax], si
je 0x6c3939a2
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x6c393a54
cmp ebx, 0xffffffff
je 0x6c393a54
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x6c393979
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x6c393979
mov dword [ebp - 0x1c], 0xc0000bca
jmp 0x6c393996
cmp dword [ebp + 8], esi
je 0x6c393990
push 1
push esi
push esi
push dword [ebp + 8]
call fcn.6c371c47
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
add dword [ebp - 0x30], edi
adc dword [ebp - 0x2c], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6c393a7e
mov dword [ebp - 0x1c], 0xc0000bbd
jmp 0x6c393a7e
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov dword [ebp + 8], esi
lea ebx, [eax + 0xe00]
jmp 0x6c3939c2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0xe98]
jge 0x6c393a7e
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x6c393a54
cmp edi, 0xffffffff
je 0x6c393a54
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x6c393a1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x6c393a1a
mov dword [ebp - 0x1c], 0xc0000bca
jmp 0x6c393a3a
cmp dword [ebp + 8], esi
je 0x6c393a31
push 1
push esi
push esi
push dword [ebp + 8]
call fcn.6c371c47
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x20]
add ebx, 4
mov dword [ebp + 8], esi
cmp dword [ebp - 0x1c], esi
jne 0x6c393a7e
jmp 0x6c3939bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
je 0x6c393a77
sub eax, 0xb5
je 0x6c393a6e
mov dword [ebp - 0x1c], 0xc0000bca
jmp 0x6c393aab
mov dword [ebp - 0x1c], 0xc0000bd2
jmp 0x6c393aab
mov dword [ebp - 0x1c], 0xc0000bd1
cmp dword [ebp - 0x1c], esi
jne 0x6c393aab
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
jmp 0x6c393aa4
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.6c37137d
ret 8
Function at 0x6c393c64
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], esi
mov esi, dword [ebp + 0x10]
mov dword [eax + 4], esi
xor esi, esi
inc esi
mov dword [eax + 0x1c], ecx
xor ecx, ebx
push edi
mov edi, dword [ebp + 0x1c]
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], edi
mov dword [eax + 0x20], ebx
mov dword [eax + 0x10], ecx
movzx ecx, word [edx]
xor esi, esi
test cx, cx
je 0x6c393cc7
movzx ebx, cx
mov ecx, esi
and ecx, 3
movzx ebx, bx
shl ecx, 3
shl ebx, cl
xor dword [eax + 0x10], ebx
inc esi
movzx ebx, word [edx + esi*2]
test bx, bx
jne 0x6c393cad
mov dword [eax + 0x14], esi
test edi, edi
jne 0x6c393cd3
and dword [eax + 0x18], edi
jmp 0x6c393cfd
movzx ecx, word [edi]
xor edx, edx
test cx, cx
je 0x6c393cfa
movzx esi, cx
mov ecx, edx
and ecx, 3
movzx esi, si
shl ecx, 3
shl esi, cl
xor dword [eax + 0x10], esi
inc edx
movzx esi, word [edi + edx*2]
test si, si
jne 0x6c393ce0
mov dword [eax + 0x18], edx
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x6c39950a
Capabilities:
Enumerate pe sections

Disassembly:
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x6c39953f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6c399526
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x6c399537
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x6c399541
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6c39951c
xor eax, eax
pop edi
pop esi
ret

Function at 0x6c3998fd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52

Function at 0x6c39991d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.6c3994d4
push eax
push esi
push dword [ebp + 8]
call fcn.6c399489
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.6c3994c4
jne 0x6c3998e4
xor al, 0x71
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl

Function at 0x6c39995f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.6c3994c4
pop edi
scasd eax, dword es:[edi]
xchg edx, eax
inc ebp
lea eax, [ebp - 0x84]
push eax
call fcn.6c3994d4
Function at 0x6c399be4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x6c399b9b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x6c399bb9
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x6c399c17
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
jge 0x6c399bf6
jge 0x6c399bf6
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x6c399bfe
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x6c399c07
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x6c399c11
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x6c399bf3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x6c399b7d
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x6c3a4aa4
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x6c3a4ae1
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x6c3a4ad9
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x6c3a4ae3
inc edx
add eax, 0x28
cmp edx, esi
jb 0x6c3a4ac9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xd44480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd57ec0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0xd5f010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00d56b2a
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xorps xmm0, xmm0
movups xmmword [edi + 0x38], xmm0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
movups xmmword [edi + 0x50], xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
mov dword [edi + 0x68], 0xffffffff
movups xmmword [edi + 0x6c], xmm0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
movups xmmword [edi + 0x84], xmm0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0xf
mov byte [edi + 0x84], 0
lea esi, [edi + 0x9c]
mov byte [ebp - 4], 6
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00d56b2a
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0xa4]
mov byte [ebp - 4], 7
push 0x88
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00d56b2a
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
mov byte [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0
mov eax, edi
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov byte [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov byte [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov byte [edi + 0xec], 0
mov dword [edi + 0xf0], 0x14
mov dword [edi + 0x11c], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x174], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x1a0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xd48ba0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd58655
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0xd5f010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
push 0
push 0
push 3
push 0
push 3
push 0
push 0xd5a758
mov dword [ebp - 0x38], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
jne 0xd48c1d
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0xd48d61
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0xd48d80
mov dword [ebp - 0x24], esi
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0
push eax
push 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x14], 0
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0xd48c93
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
jmp 0xd48d56
mov esi, dword [ebp - 0x2c]
push esi
call fcn.00d56db9
push esi
push 0
push eax
mov dword [ebp - 0x3c], eax
call sub.vcruntime140.dll_memset
mov eax, dword [ebp - 0x3c]
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
push esi
mov esi, dword [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x2d1400
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
xorps xmm0, xmm0
test eax, eax
jne 0xd48cfb
push dword [ebp - 0x3c]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
call fcn.00d56a45
add esp, 4
jmp 0xd48d56
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x18]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test ecx, ecx
jne 0xd48d2d
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0xf
push eax
mov byte [edi], cl
call fcn.00d56a45
add esp, 4
jmp 0xd48d56
lea edx, [ecx + eax]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0xd48d38
sub ecx, dword [ebp - 0x38]
push ecx
push edx
mov ecx, edi
call fcn.00d4c000
push dword [ebp - 0x3c]
call fcn.00d56a45
add esp, 4
test esi, esi
je 0xd48d61
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00d56a37
mov esp, ebp
pop ebp
ret
Function at 0xd56110
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0xd5f010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov word [ebp - 0xe], dx
push 0xb0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebx + 4], esi
test esi, esi
jne 0xd5615f
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d56a37
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0xe]
shr ax, 5
movzx edx, ax
movzx eax, word [ebp - 0xe]
mov ecx, eax
mov byte [ebx], 0x14
mov dword [ebp - 0x14], edx
and ecx, 0x1f
je 0xd561cc
shr ecx, 3
and eax, 0xffffff07
mov dword [ebp - 0x18], eax
inc edx
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x14], edx
lea eax, [ecx + 1]
movzx eax, al
mov dword [ebp - 0x10], eax
movzx eax, cl
mov ecx, dword [ebp - 0x10]
cmove ecx, eax
mov dword [ebp - 0x10], ecx
test cl, cl
je 0xd561d6
mov ecx, dword [ebp - 0x1c]
movzx eax, dx
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x10]
movzx eax, al
add ecx, 0xfffffffc
push eax
push ecx
lea eax, [ebp - 8]
push eax
call sub.vcruntime140.dll_memmove_1
mov edi, dword [ebp - 8]
add esp, 0xc
jmp 0xd561d6
mov ecx, dword [ebp - 0x1c]
movzx eax, dx
mov edi, dword [ecx + eax*4 - 4]
mov edx, 4
mov dword [esi], 0xb7e15163
lea esi, [edx + 0x27]
mov ecx, dword [ebx + 4]
add ecx, edx
add edx, 4
mov eax, dword [ecx - 4]
sub eax, 0x61c88647
mov dword [ecx], eax
sub esi, 1
jne 0xd561e4
mov eax, dword [ebp - 0x14]
xor cl, cl
movzx esi, ax
xor ebx, ebx
mov eax, 0x2c
mov dword [ebp - 0x18], 1
xor edx, edx
mov dword [ebp - 0x24], eax
cmp esi, eax
mov byte [ebp - 9], cl
mov dword [ebp - 0x28], esi
cmova eax, esi
lea eax, [eax + eax*2]
movzx eax, ax
cmp word [ebp - 0x18], ax
ja 0xd562b9
dec esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x20]
nop dword [eax + eax]
mov eax, dword [esi + 4]
movzx ecx, cl
mov dword [ebp - 0x10], ecx
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
add eax, ebx
add eax, edx
mov edx, eax
shl eax, 3
shr edx, 0x1d
or edx, eax
movzx eax, byte [ebp - 9]
mov dword [ecx], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], eax
lea ecx, [ebx + edx]
and cl, 0x1f
cmp eax, dword [ebp - 0x18]
jne 0xd56281
lea eax, [ebx + edx]
add edi, eax
rol edi, cl
mov ecx, dword [ebp - 0x14]
mov ebx, edi
jmp 0xd56296
mov esi, dword [ebp - 0x1c]
add ebx, dword [esi + eax*4]
mov eax, esi
mov esi, dword [ebp - 0x20]
add ebx, edx
rol ebx, cl
mov ecx, dword [ebp - 0x14]
mov dword [eax + ecx*4], ebx
mov eax, dword [ebp - 0x10]
xor edx, edx
inc eax
div dword [ebp - 0x24]
lea eax, [ecx + 1]
mov byte [ebp - 0xd], dl
xor edx, edx
div dword [ebp - 0x28]
sub dword [ebp - 8], 1
mov cl, byte [ebp - 0xd]
mov byte [ebp - 9], dl
mov edx, dword [ebp - 0x2c]
jne 0xd56240
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00d56a37
mov esp, ebp
pop ebp
ret
Function at 0xd5749c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0xd574db
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xd574db
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xd574db
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xd574db
cmp dword [ecx + 0x74], 0xe
jbe 0xd574db
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret