joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407905
Capabilities:
Get disk information
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x540
push ebx
push esi
push edi
push 0x2c
push 2
push dword [ebp + 0x7c]
lea eax, [ebp - 0x2c4]
push eax
call fcn.00406477
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x7c]
call fcn.00406343
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x407b29
movzx esi, word [eax]
cmp si, bx
je 0x407b29
xor eax, eax
cmp si, 0x2a
sete al
mov edi, 0x206
push edi
push ebx
mov word [ebp - 0x284], bx
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x282]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x402030]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x402034]
push 0x98
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x78]
mov word [ebp - 0x3c], si
mov word [ebp - 0x36], bx
call fcn.00406343
push eax
call fcn.00403470
push 0x4020e0
push 0x402088
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x284]
push 0x40206c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
call fcn.004072a1
test eax, eax
je 0x407aad
cmp dword [ebp + 0x70], 0x1e
jbe 0x4079eb
mov dword [ebp + 0x70], 0xa
xor eax, eax
cmp dword [ebp + 0x70], ebx
sete al
mov dword [ebp + 0x64], eax
xor eax, eax
cmp dword [ebp + 0x6c], 1
sete al
cmp eax, ebx
jne 0x407a29
lea eax, [ebp - 0x3c]
push eax
call fcn.00403ae6
cmp eax, 3
pop ecx
je 0x407a29
cmp eax, 6
je 0x407a29
cmp eax, 0x10002
je 0x407a29
cmp eax, 0x10001
jne 0x407b29
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
pop ebx
push ebx
lea eax, [ebp + 0x6c]
push eax
push ebx
push 0x402048
lea eax, [ebp - 0x284]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
cmp dword [ebp + 0x6c], 1
je 0x407a7f
mov eax, dword [ebp + 0x68]
movzx eax, word [eax]
push eax
mov word [ebp - 0x3c], 0x5c
call fcn.004033e5
and word [ebp - 0x38], 0
mov word [ebp - 0x3a], ax
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp + 0x70]
push eax
push ebx
push 0x402038
lea eax, [ebp - 0x284]
push eax
push edi
call esi
push ebx
lea eax, [ebp + 0x64]
push eax
push ebx
push 0x401fdc
lea eax, [ebp - 0x284]
push eax
push edi
call esi
xor eax, eax
jmp 0x407b2c
cmp dword [ebp + 0x6c], 1
jne 0x407b11
push edi
lea eax, [ebp - 0x4ca]
push ebx
push eax
mov word [ebp - 0x4cc], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4cc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x4cc], bx
lea esi, [ebp - 0x4cc]
je 0x407aa9
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x70]
push esi
call fcn.0040748e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x407aec
jmp 0x407aa9
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x70]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040748e
add esp, 0xc
jmp 0x407b2c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x407fba
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x4bc
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x206
push esi
lea eax, [ebp - 0x23a]
push ebx
push eax
mov dword [ebp + 0x74], ebx
mov word [ebp - 0x23c], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x442]
push ebx
push eax
mov word [ebp - 0x444], bx
call sub.MSVCRT.dll_memset
mov esi, 0x402154
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x94
lea eax, [ebp - 0x28]
push ebx
push eax
movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 0x444]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor eax, eax
cmp word [ebp - 0x444], bx
lea edi, [ebp + 0x6e]
mov word [ebp + 0x6c], bx
stosd dword es:[edi], eax
mov word [ebp + 0x6e], 0x3a
lea esi, [ebp - 0x444]
je 0x4080ff
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.00403ae6
cmp eax, 5
pop ecx
jne 0x4080c3
mov ax, word [esi]
inc dword [ebp + 0x74]
mov word [ebp + 0x6c], ax
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push 0x402144
push eax
call edi
push ebx
lea eax, [ebp - 0x23c]
push 1
push eax
call fcn.004072b1
add esp, 0x20
cmp dword [ebp + 0x74], 1
jne 0x4080c3
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push 0x401f7c
push eax
call edi
push ebx
lea eax, [ebp - 0x23c]
push 1
push eax
call fcn.004072b1
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x408054
cmp dword [ebp + 0x74], ebx
je 0x4080ff
push dword [ebp + 0x74]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push 0x402134
push eax
call edi
push ebx
lea eax, [ebp - 0x23c]
push 1
push eax
call fcn.004072b1
add esp, 0x1c
mov eax, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret

Function at 0x409c3e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x41d43c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
call esi
sub eax, edi
cmp eax, dword [esp + 0xc]
jb 0x409c5a
pop edi
pop esi
ret
Function at 0x40b1ab
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
xor edi, edi
cmp word [ebp - 0x208], di
lea esi, [ebp - 0x208]
je 0x40b231
push ebx
mov ebx, dword [ebp + 0xc]
add ebx, 0x10
push esi
call fcn.0040372c
cmp eax, ebx
pop ecx
jbe 0x40b21f
push esi
call fcn.00403ae6
sub eax, 3
pop ecx
je 0x40b213
sub eax, 0xfffe
je 0x40b20e
dec eax
jne 0x40b21f
movzx edi, word [esi]
jmp 0x40b21f
movzx eax, word [esi]
cmp ax, word [ebp + 8]
movzx edi, ax
jae 0x40b230
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40b1ed
pop ebx
mov ax, di
pop edi
pop esi
leave
ret
Function at 0x40b238
Capabilities:
Get disk information
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x20
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x40b298
and word [ebx], 0
inc ebx
inc ebx
push ebx
call fcn.00403470
pop ecx
push 0x20
push ebx
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x40b28a
and word [eax], 0
add eax, 2
push eax
call fcn.00403470
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x40b298
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.004065f9
cmp eax, dword [ebp - 4]
jae 0x40b42d
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [esi]
push eax
call fcn.004033f9
push dword [ebp - 4]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], 0x3a
push dword [ebp - 0x14]
call fcn.0040b1ab
add esp, 0xc
mov word [ebp - 0x14], ax
mov word [esi], ax
push 0x104
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x1c]
add eax, 2
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x14
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
xor ebx, ebx
shl eax, 0x14
push 0x402374
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
call fcn.00409bd6
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404e4e
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x40b428
push 0x206
lea eax, [ebp - 0x236]
push ebx
push eax
mov dword [ebp - 8], 0x208
mov word [ebp - 0x238], bx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x402350
push 0x401f08
lea eax, [ebp - 0x238]
push 0x401e64
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x648]
push eax
push ebx
push 0x402338
lea eax, [ebp - 0x238]
push eax
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40b3d4
xor eax, eax
jmp 0x40b3da
mov eax, dword [ebp - 8]
shr eax, 1
dec eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
lea eax, [ebp + eax*2 - 0x648]
push esi
push 0x402324
push eax
call edi
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 1]
add esp, 0x14
mov dword [ebp - 8], eax
add eax, eax
and word [ebp + eax - 0x648], 0
push eax
lea eax, [ebp - 0x648]
push eax
push 7
push 0x402338
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x20]
jmp 0x40b42f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b434
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40b4ad
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [eax], 0x21
sete cl
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x40b469
inc eax
inc eax
push esi
push edi
push 0x30
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
je 0x40b4a6
cmp dword [ebp - 8], ebx
je 0x40b497
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x40b4a0
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov dword [ebp - 4], eax
call edi
push dword [ebp - 0xc]
call edi
pop edi
pop esi
xor eax, eax
cmp dword [ebp - 4], ebx
pop ebx
sete al
leave
ret
Function at 0x40b4b8
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x170
push ebx
push edi
push 4
pop edi
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x402494
push 0x402474
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp + 0x77], bl
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x58], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40b4ff
xor eax, eax
jmp 0x40b656
push ebx
push 1
push ebx
push ebx
lea eax, [ebp + 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40b4f8
lea eax, [ebp + 0x70]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40b4f8
mov al, byte [ebp + 0x77]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
mov byte [ebp + 0x6d], al
push edi
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x70]
mov byte [ebp + 0x6c], bl
mov byte [ebp + 0x6e], bl
mov byte [ebp + 0x6f], bl
call esi
test eax, eax
je 0x40b636
push ebx
push edi
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x70]
call esi
test eax, eax
je 0x40b636
push ebx
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x48]
push eax
push 2
push dword [ebp + 0x70]
mov dword [ebp + 0x60], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40b636
cmp dword [ebp + 0x70], ebx
je 0x40b59f
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x40b636
cmp dword [ebp + 0x68], ebx
je 0x40b5b6
push ebx
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x40b636
push 0x11
pop ecx
push 0x5c
lea eax, [ebp - 0xb4]
push ebx
mov esi, 0x402430
lea edi, [ebp - 0xf8]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memset
mov esi, 0x402420
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x92
lea eax, [ebp - 0x4a]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0x18
push 0x10
lea eax, [ebp + 0x48]
push eax
push 3
push 0x402408
push 0x4023a8
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x40b636
push 1
lea eax, [ebp + 0x77]
push eax
push 3
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xf8]
push eax
push SysReAllocString
call esi
test eax, eax
je 0x40b63a
xor eax, eax
jmp 0x40b655
push 1
lea eax, [ebp + 0x77]
push eax
push 3
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xf8]
push eax
push edi
call esi
neg eax
sbb eax, eax
inc eax
pop esi
pop edi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40b912
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b980
test edi, edi
jbe 0x40b980
test byte [ebp - 0x250], 0x10
je 0x40b959
lea eax, [ebp - 0x224]
push eax
call fcn.00405358
test eax, eax
pop ecx
jne 0x40b967
mov esi, dword [ebp + 0xc]
jmp 0x40b963
xor eax, eax
cmp dword [ebp + 0xc], eax
sete al
mov esi, eax
test esi, esi
jne 0x40b979
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b93a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40b986
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5c
jne 0x40ba2c
and word [ebp - 0x208], 0
push esi
push 0x206
lea eax, [ebp - 0x206]
push 0
inc edi
push eax
inc edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x208], 0
lea esi, [ebp - 0x208]
je 0x40ba2b
push edi
push esi
lea eax, [ebp - 0xa08]
push 0x402118
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa08]
push eax
call fcn.00403642
add esp, 0x14
test eax, eax
jne 0x40ba1a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40b9e0
jmp 0x40ba2b
lea eax, [ebp - 0xa08]
push eax
add edi, 0xfffffffe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
pop edi
leave
ret

Function at 0x40bad3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x402494
push 0x402520
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40bb57
push 0x402504
push 0x4024f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bb57
mov cl, byte [ebp + 0xc]
and cl, 1
movzx cx, cl
shl cx, 2
mov word [ebp - 0x18], cx
mov ecx, dword [ebp - 0xc]
mov edx, ecx
shr edx, 0x10
mov word [ebp - 0x1c], dx
movzx dx, byte [ebp - 0xe]
mov word [ebp - 0x12], cx
lea ecx, [ebp - 0x1c]
push ecx
mov word [ebp - 0xe], dx
call eax
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40bb5b
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push 0x402494
push 0x40272c
mov edi, reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
je 0x40bb9d
mov dword [ebp - 0x18], ebx
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40bbee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40bbee
push 8
push 1
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40bbee
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40bd09
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call ebx
push 0
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
call ebx
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov ebx, 0x402420
push ebx
push 0x4026e8
push edi
mov dword [ebp - 8], 3
mov dword [ebp - 4], 1
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x402698
push edi
mov dword [ebp - 8], 3
mov dword [ebp - 4], 1
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x4026e8
mov ebx, SysReAllocString
push ebx
mov dword [ebp - 8], 3
mov dword [ebp - 4], 1
call esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 3
push 0x402408
push 0x402638
push edi
call esi
and dword [ebp - 0xc], 0
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x402604
push 0x402598
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bd0e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x660]
push 0x401e70
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
test edi, edi
je 0x40bddc
cmp edi, 0xffffffff
je 0x40bddc
push ebx
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
and word [ebp - 0x208], 0
push 0x206
mov ebx, eax
lea eax, [ebp - 0x206]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x401e64
push eax
call esi
add esp, 0x1c
test byte [ebp - 0x458], 0x10
je 0x40bdca
lea eax, [ebp - 0x42c]
push eax
call fcn.00405358
test eax, eax
pop ecx
jne 0x40bdd7
lea eax, [ebp - 0x208]
push eax
call fcn.0040bd0e
pop ecx
jmp 0x40bdd7
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x40bd5b
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x40be11
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x874]
push 0x401e70
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
mov dword [ebp - 8], eax
je 0x40bf3c
cmp eax, 0xffffffff
je 0x40bf3c
push ebx
push edi
mov ebx, 0x206
mov edi, 0x401e64
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
and word [ebp - 0x66c], 0
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x66a]
push 0
push eax
call sub.MSVCRT.dll_memset
and word [ebp - 0x214], 0
push ebx
lea eax, [ebp - 0x212]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x438]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x66c]
push edi
push eax
call esi
lea eax, [ebp - 0x438]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push edi
push eax
call esi
add esp, 0x38
test byte [ebp - 0x464], 0x10
je 0x40bf1a
lea eax, [ebp - 0x438]
push eax
call fcn.00405358
test eax, eax
pop ecx
jne 0x40bf30
lea eax, [ebp - 0x214]
push eax
call fcn.0040bdf5
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.0040be11
add esp, 0xc
add dword [ebp - 4], eax
jmp 0x40bf30
push 1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0xc], 0
jne 0x40be6d
pop edi
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x40c054
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebx], di
mov word [ebp - 0x210], di
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x208
lea eax, [ebp - 0x210]
push eax
push edi
push 9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x40c124
push esi
lea eax, [ebp - 0x416]
push edi
push eax
mov word [ebp - 0x418], di
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x210]
push eax
push 0x402770
lea eax, [ebp - 0x418]
push 0x402118
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push 0x40274c
lea eax, [ebp - 0x418]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
mov dword [ebp + 0x10], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40c124
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40cc3b
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
mov eax, dword [ebp + 0x7c]
sub esp, 0xa0
test eax, eax
push ebx
push esi
je 0x40cd28
cmp word [eax], 0
je 0x40cd28
push 0x3d
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, eax
test ebx, ebx
je 0x40cd28
push edi
mov esi, 0x402aac
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x9a
xor esi, esi
lea eax, [ebp - 0x26]
push esi
push eax
call sub.MSVCRT.dll_memset
mov word [ebx], si
mov ax, word [ebx + 2]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403ae6
add esp, 0x10
cmp eax, 5
pop edi
ja 0x40ccf4
je 0x40cced
sub eax, esi
je 0x40ccd8
dec eax
je 0x40ccd1
dec eax
je 0x40ccca
dec eax
je 0x40ccc3
dec eax
jne 0x40cd28
push 0x402a90
jmp 0x40ccdd
push 0x402a78
jmp 0x40ccdd
push 0x402a58
jmp 0x40ccdd
push 0x402a34
jmp 0x40ccdd
push 0x402a18
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x40cd2b
push 0x402a00
jmp 0x40ccdd
cmp eax, 6
je 0x40cd21
cmp eax, 0x10001
je 0x40cd1a
cmp eax, 0x10002
je 0x40cd13
cmp eax, 0xffffffff
jne 0x40cd28
push 0x4029e0
jmp 0x40ccdd
push 0x4029c4
jmp 0x40ccdd
push 0x4029a4
jmp 0x40ccdd
push 0x402988
jmp 0x40ccdd
xor eax, eax
inc eax
pop esi
pop ebx
add ebp, 0x74
leave
ret