joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028b6
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get session user name
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7b8
and dword [ebp - 4], 0
push ebx
push esi
mov esi, 0x114
push edi
push esi
lea eax, [ebp - 0x3a8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3a8]
mov dword [ebp - 0x3a8], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
mov edi, str._s_sDMCache
je 0x4029c1
cmp dword [ebp - 0x398], 2
jne 0x4029c1
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4029c1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x294]
push eax
push 0
push 0
push str.AppData
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4029ae
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
mov dword [ebp - 8], eax
cmp word [ebp + eax*2 - 0x294], 0x5c
mov eax, 0x41b124
je 0x402984
mov eax, 0x4140b8
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x5b0]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4029ae
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x402a96
lea eax, [ebp - 0x294]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x402a91
lea eax, [ebp - 0x294]
push eax
call sub.MSVCRT.dll_wcslen
dec eax
pop ecx
mov dword [ebp - 8], eax
cmp word [ebp + eax*2 - 0x294], 0x5c
mov eax, 0x41b124
je 0x402a01
mov eax, 0x4140b8
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x5b0]
push edi
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0x398], 2
jne 0x402a83
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x402a4b
lea eax, [ebp - 0x8c]
push str.default_user
push eax
call esi
pop ecx
pop ecx
mov eax, dword [ebp - 8]
cmp word [ebp + eax*2 - 0x294], 0x5c
mov eax, 0x41b124
je 0x402a63
mov eax, 0x4140b8
lea ecx, [ebp - 0x8c]
push ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x5b0]
push str._s_sDMCache_s
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x5b0]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x402a96
or eax, 0xffffffff
jmp 0x402ad9
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x7b8]
push str._s_settings.bak
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x7b8]
push eax
call ebx
cmp eax, 0xffffffff
je 0x402ad7
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x7b8]
push 0x41b968
push eax
call fcn.004059d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039ed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x403a0f
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403584
push eax
push esi
push dword [ebp + 8]
call fcn.00403539
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403574
sahf
loope 0x4039b7
mov al, byte [0xff7c9d88]
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00403574
inc ebx
sub bh, byte [ebx]
pop ebp
lea eax, [ebp - 0x84]
push eax
call fcn.00403584
push eax
push esi
push dword [ebp + 8]
call fcn.00403539
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x403d6d
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.004034e5
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x403ae4
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.004034e5
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x403ab1
call fcn.00403574
iretd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40581c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4109d8
call fcn.00410480
sub esp, 0x210
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
push edi
call esi
cmp eax, 0xffffffff
jne 0x4058de
lea eax, [edi + 6]
push 0x5c
push eax
call sub.MSVCRT.dll_wcschr
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
test ebx, ebx
je 0x405880
mov eax, ebx
sub eax, edi
sar eax, 1
jmp 0x405887
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.MSVCRT.dll_wcsncpy
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x4058cf
lea eax, [ebp - 0x21c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4058cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push edi
call esi
cmp eax, 0xffffffff
jne 0x4058de
mov eax, dword [ebp - 0x14]
jmp 0x4058f8
test ebx, ebx
je 0x4058c2
add ebx, 2
push 0x5c
push ebx
jmp 0x405855
push 0x4140b0
push edi
call fcn.00405cce
pop ecx
xor eax, eax
pop ecx
jmp 0x4058f8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x405907
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
mov esi, 0x41c054
push esi
lea eax, [ebp - 0x464]
push 0x416100
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4059c9
lea ecx, [ebp - 0x25c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ecx
push eax
call edi
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x4059a5
lea eax, [ebp - 0x230]
push eax
push esi
lea eax, [ebp - 0x66c]
push 0x4146e4
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.004059d7
jmp 0x405964
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
jne 0x4059c9
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.004059d7
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x405cce
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x4109e4
call fcn.00410480
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push 0x41b128
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x1c], ebx
jne 0x405d0f
push 0xfffffffffffffffe
pop eax
jmp 0x405e14
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x18], edx
call edi
mov ecx, dword [ebp - 0x18]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
push dword [ebp + 8]
push 0x4146e4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jbe 0x405ddb
push esi
push edi
push esi
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x405ddb
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x405dcd
lea eax, [edi + edi + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x405dc1
push edi
push dword [ebp + 0xc]
push ebx
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x14]
mov word [ebx + edi*2], si
push ebx
call sub.MSVCRT.dll_wcsstr
add esp, 0x14
test eax, eax
je 0x405dba
mov dword [ebp - 0x18], 1
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
jne 0x405e01
push 2
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20]
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x405e29
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4109f0
call fcn.00410480
sub esp, 0x7f4
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
je 0x405e66
push edi
lea eax, [ebp - 0x14]
push edi
push eax
push 0x400
push dword [ebp + 0xc]
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x30]
push 0xa
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll__itow
add esp, 0xc
cmp dword [ebp + 0x14], edi
je 0x405f39
cmp dword [ebp + 0x10], edi
jne 0x405ea3
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push str._s._Error_ID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x405ed2
push dword [ebp + 0x10]
call sub.MSVCRT.dll_wcslen
cmp eax, 0x104
pop ecx
ja 0x405ed2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x800]
push dword [ebp + 0x10]
push dword [ebp + 8]
push str._s.__s_Error_ID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push edi
push edi
push 4
push edi
push 1
push 0x10000000
push 0x41c874
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
mov ebx, eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x800]
push eax
call sub.MSVCRT.dll_wcslen
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x800]
push eax
push ebx
call esi
lea eax, [ebp - 0x1c]
push edi
push eax
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_wcslen
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x1c]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x18], edi
je 0x405fa3
cmp dword [ebp - 0x14], edi
je 0x405f50
push dword [ebp - 0x14]
call sub.MSVCRT.dll_wcslen
pop ecx
mov esi, eax
jmp 0x405f52
xor esi, esi
push dword [ebp + 8]
call sub.MSVCRT.dll_wcslen
lea eax, [eax + esi + 0x64]
add eax, eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, edi
pop ecx
jne 0x405f76
mov eax, 0x41b124
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp + 8]
push str._s_r_n_s_r_nError_ID:__s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x10
push str.Error
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x14], edi
je 0x405fb1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4072ac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
and dword [esi + 0x38], 0
mov word [esi + 0x18], ax
call fcn.0040735b
mov ax, word [esi + 0x18]
cmp ax, 9
je 0x407316
mov ebx, dword [esi + 4]
xor ecx, ecx
test ebx, ebx
jle 0x407316
movzx edi, ax
mov eax, dword [esi + 8]
lea edx, [eax + 0x24]
cmp dword [edx], edi
je 0x4072ef
inc ecx
add edx, 0x28
cmp ecx, ebx
jl 0x4072e1
jmp 0x407316
lea edi, [ecx + ecx*4]
mov dword [esi + 0x38], 1
shl edi, 3
lea ecx, [esi + 0x1c]
push dword [eax + edi]
call fcn.00406fc9
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
push dword [eax + edi + 0xc]
call fcn.00406fc9
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
je 0x407342
mov eax, dword [esi + 0x3c]
cmp eax, ecx
je 0x40734d
movzx edx, word [esi + 0x18]
mov dword [ebp + 8], edx
lea edx, [ebp + 8]
push 4
push edx
push 4
push ecx
push str.LanguageID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40734d
cmp dword [esi + 0x38], ecx
jne 0x40734d
mov word [esi + 0x18], 9
mov ecx, esi
call fcn.00407c1c
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x407596
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
mov eax, edi
and ax, 0x3ff
cmp ax, 9
jne 0x407640
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
mov eax, edi
and ax, 0x3ff
cmp ax, 9
jne 0x407640
and dword [ebp - 8], 0
mov esi, str.Kernel32
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x4075f7
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 8], 1
test ebx, ebx
je 0x407640
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push ebx
call esi
push str.GetUserDefaultUILanguage
push ebx
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0
mov esi, eax
je 0x40761e
call dword [ebp - 4]
movzx edi, ax
mov eax, edi
and ax, 0x3ff
cmp ax, 9
jne 0x407633
test esi, esi
je 0x407633
call esi
movzx edi, ax
cmp dword [ebp - 8], 0
je 0x407640
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
push 9
and cx, 0x3ff
pop eax
cmp cx, ax
jne 0x4076bc
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 8], eax
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
call esi
test eax, eax
mov dword [ebp - 0xc], eax
je 0x4076bc
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4076bc
push ebx
push dword [ebp - 0xc]
call esi
xor edx, edx
test eax, eax
jbe 0x4076ab
xor ecx, ecx
mov cx, word [ebx + ecx*4]
mov esi, ecx
and si, 0x3ff
cmp si, 9
je 0x4076a3
inc dword [ebp - 4]
cmp dword [ebp - 4], 1
jne 0x4076a3
mov dword [ebp - 8], ecx
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x407686
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 4], 0
pop ecx
jle 0x4076bc
movzx edi, word [ebp - 8]
mov eax, edi
and eax, 0x3ff
cmp edi, 0x416
je 0x4077bc
cmp edi, 0x403
je 0x4077bc
cmp ax, 0x16
jne 0x4076eb
mov eax, 0x816
jmp 0x4077be
cmp ax, 0x3e
jne 0x4076fb
mov eax, 0x43e
jmp 0x4077be
mov ecx, 0x813
cmp edi, ecx
je 0x4077b8
add ecx, 0xfffffff1
cmp edi, ecx
je 0x4077b8
cmp edi, 4
je 0x4077b8
cmp edi, 0x7804
je 0x4077b8
cmp edi, 0x1004
je 0x4077b8
cmp edi, 0x181a
mov ecx, 0x81a
je 0x4077b8
cmp edi, 0x701a
je 0x4077b8
cmp edi, 0x7c1a
je 0x4077b8
cmp edi, 0x2c1a
je 0x4077b8
cmp edi, 0x241a
je 0x4077b8
cmp edi, ecx
je 0x4077b8
cmp edi, 0x1c1a
mov ecx, 0xc1a
je 0x4077b8
cmp edi, 0x6c1a
je 0x4077b8
cmp edi, 0x301a
je 0x4077b8
cmp edi, 0x281a
je 0x4077b8
cmp edi, ecx
je 0x4077b8
mov ecx, 0x141a
cmp edi, ecx
je 0x4077b8
cmp edi, 0x681a
je 0x4077b8
cmp edi, 0x781a
je 0x4077b8
mov ecx, 0x480
cmp edi, ecx
je 0x4077b8
cmp edi, 0x80
jne 0x4077be
mov eax, ecx
jmp 0x4077be
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407a18
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407596
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00406e8a
mov edi, dword [ebp + 8]
lea ebx, [esi + 0xc]
push edi
mov ecx, ebx
call fcn.00406fc9
push edi
call sub.MSVCRT.dll_wcslen
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x407a5b
push 0x4140b8
mov ecx, ebx
call fcn.00407b70
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00408779
mov eax, dword [esi + 0x3c]
push 1
xor ebx, ebx
pop edi
cmp eax, ebx
mov dword [ebp - 0xc], edi
je 0x407ae6
lea ecx, [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push ebx
push str.LanguageID
push eax
mov dword [ebp + 8], 4
call edi
test eax, eax
jne 0x407aae
push ebx
mov ecx, esi
push dword [ebp - 8]
call fcn.004072ac
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], ebx
jne 0x407aae
mov byte [esi + 0x34], 1
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.bShLc2
push dword [esi + 0x3c]
call edi
test eax, eax
jne 0x407ada
push 1
pop eax
cmp dword [ebp - 8], eax
jne 0x407ada
mov dword [0x41bc34], eax
cmp dword [ebp - 0xc], ebx
je 0x407b69
push 1
pop edi
cmp dword [ebp + 0xc], ebx
push ebx
je 0x407af7
push 9
mov ecx, esi
call fcn.004072ac
jmp 0x407b69
push dword [ebp - 4]
mov ecx, esi
call fcn.004072ac
cmp dword [0x41ca7c], ebx
jne 0x407b69
cmp word [ebp - 4], 0x13
je 0x407b1b
cmp word [ebp - 4], 0x11
je 0x407b1b
mov eax, edi
jmp 0x407b1d
xor eax, eax
cmp word [esi + 0x18], 9
jne 0x407b2f
cmp word [ebp - 4], 9
je 0x407b69
cmp eax, ebx
je 0x407b69
push ebx
push 0x4077c3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x76
push dword [0x41c050]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, dword [esi + 0x3c]
mov dword [ebp + 0xc], edi
cmp esi, ebx
je 0x407b69
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push ebx
push str.LIDwa
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408779
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x410b54
call fcn.00410480
sub esp, 0x268
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push 2
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [esi + 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], ebx
je 0x4087c2
cmp eax, ebx
jne 0x4087ba
lea eax, [esi + 0x10]
push eax
push str._sLanguagesinst_.lng
jmp 0x4087cf
cmp eax, ebx
jne 0x4087c9
lea eax, [esi + 0x10]
push eax
push str._sIDM.
lea ecx, [ebp - 0x18]
call fcn.004088aa
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x4087e1
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40888d
push 2
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
mov eax, dword [esi + 0xc]
mov byte [ebp - 4], 1
je 0x408831
cmp eax, ebx
jne 0x408822
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x248]
push ecx
push eax
push str._sLanguages_s
jmp 0x408845
cmp eax, ebx
jne 0x408838
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x248]
push ecx
push eax
push str._s_s
lea ecx, [ebp - 0x24]
call fcn.004089a9
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x408857
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00408548
lea eax, [ebp - 0x274]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
je 0x408881
call fcn.0040114a
jmp 0x4087fa
call fcn.0040114a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040114a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x408c38
Capabilities:
Check os version
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x410bac
call fcn.00410480
sub esp, 0xb60
push ebx
push esi
xor ebx, ebx
push edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
jne 0x408c5f
mov al, 1
jmp 0x408e3b
lea eax, [ebp - 0x144]
mov byte [ebp - 0x11], bl
push eax
mov dword [ebp - 0x144], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408d44
cmp dword [ebp - 0x134], 2
jne 0x408d44
cmp dword [ebp - 0x140], 6
jb 0x408d44
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x408d44
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x408d38
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 0xb4bfcc3a
mov word [ebp - 0x24], 0xdb2c
mov word [ebp - 0x22], 0x424c
mov byte [ebp - 0x20], 0xb0
mov byte [ebp - 0x1f], 0x29
mov byte [ebp - 0x1e], 0x7f
mov byte [ebp - 0x1d], 0xe9
mov byte [ebp - 0x1c], 0x9a
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0xc6
mov byte [ebp - 0x19], 0x41
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
cmp eax, ebx
jne 0x408d32
cmp dword [ebp - 0x18], ebx
je 0x408d32
push dword [ebp - 0x18]
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
mov byte [ebp - 0x11], 1
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x11], bl
jne 0x408db7
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408c58
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x208
push eax
lea eax, [ebp - 0xb6c]
push eax
push ebx
push ebx
push str.Desktop
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408da5
lea eax, [ebp - 0xb6c]
push eax
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
mov byte [ebp - 0x11], 1
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x11], bl
je 0x408c58
push dword [ebp + 8]
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0xc
cmp word [ebp + eax*2 - 0x34e], 0x5c
jne 0x408df5
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
mov word [ebp + eax*2 - 0x34e], bx
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x75e], 0x5c
pop ecx
jne 0x408e22
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
mov word [ebp + eax*2 - 0x75e], bx
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret