joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023f0
Capabilities:
Accept command line arguments
Check if file exists
Check mutex on windows
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x448034]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push str.iSafeBugReportMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x402443
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402443
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [0x44d0ac], 0
jne 0x402458
call fcn.00419de0
mov ecx, edi
xor bl, bl
mov byte [esp + 0xc], 0
mov byte [esp + 0x10], bl
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402480
sub ecx, edx
sar ecx, 1
je 0x402560
lea eax, [esp + 0x44]
push eax
push edi
mov dword [esp + 0x4c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x44], 2
mov esi, eax
jl 0x402560
mov edi, dword [sym.imp.MSVCR110.dll__wcsicmp]
push str._feedback
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x402536
mov eax, dword [esi + 4]
test eax, eax
je 0x40251a
cmp word [eax], 0
je 0x40251a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40251a
push dword [esi + 4]
lea ecx, [esp + 0x30]
call fcn.004026f0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00404840
push eax
lea ecx, [esp + 0x4c]
call fcn.00402870
lea ecx, [esp + 0x14]
call fcn.004028f0
lea ecx, [esp + 0x2c]
call fcn.00402800
push 0x80
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0xc], 1
cmp dword [esp + 0x44], 3
jl 0x402560
mov eax, dword [esi + 8]
test eax, eax
je 0x402560
push str._uninstall
push eax
call edi
movzx ecx, bl
add esp, 8
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [esp + 0x10], cl
xor eax, eax
push eax
push 0x436b28
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00402fc0
push dword [esp + 0x10]
lea edx, [esp + 0x4c]
push dword [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.00401770
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 8
cmp dword [esp + 0x28], 8
jb 0x4025b4
push dword [esp + 0x14]
call edi
add esp, 4
mov esi, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
test esi, esi
je 0x4025e3
push dword [esp + 0x4c]
push esi
call fcn.00403260
push esi
call edi
add esp, 4
cmp dword [0x44d0ac], 0
je 0x402606
mov eax, dword [0x44d0a8]
test eax, eax
je 0x4025fc
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x44d0ac], 0
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404060
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
mov eax, ecx
dec ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
test eax, eax
je 0x4040eb
inc ecx
mov ebx, dword [esi]
add esi, 4
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x448198]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x448198]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x448198]
xor edx, edi
mov eax, ebx
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x448198]
xor edx, edi
dec ecx
jne 0x404086
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x10]
and ebx, 3
je 0x404128
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
nop
movzx ecx, byte [esi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x448198]
inc esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
dec ebx
jne 0x404100
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4062e0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x100000
jbe 0x4063c4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
add eax, 0xfff00000
push eax
push edi
call esi
push 0x100000
call fcn.0042ec57
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x406347
push 2
push eax
push eax
push edi
call esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
xor esi, esi
lea esp, [esp]
push 0
lea eax, [ebp - 8]
push eax
mov eax, 0x100000
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4063d3
add esi, dword [ebp - 8]
cmp esi, 0x100000
jb 0x406350
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
call eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0xc], 0xfeff
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x100000
push ebx
push edi
call esi
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
cmp esi, 0x100000
jae 0x406378
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
push 2
push 0
push 0
push edi
call eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret

Function at 0x406410
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40644d
mov ecx, esi
call fcn.004062e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x408a10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431640
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
push str.Kernel32.dll
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
test esi, esi
je 0x408a82
push str.Wow64DisableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408a7f
lea ecx, [ebp - 0x2c]
push ecx
call eax
push esi
call edi
mov byte [ebp - 4], 1
cmp dword [ebp + 0x28], 8
lea eax, [ebp + 0x14]
cmovae eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408ae0
cmp dword [ebp + 0x28], 8
push 0
push 0x2000000
push 3
push 0
push 1
lea eax, [ebp + 0x14]
cmovae eax, dword [ebp + 0x14]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x408b41
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
push str.Kernel32.dll
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x408b0f
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408b0c
push dword [ebp - 0x2c]
call eax
push esi
call edi
cmp dword [ebp + 0x28], 8
jb 0x408b21
push dword [ebp + 0x14]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x408b61
dec eax
je 0x408b58
dec eax
jne 0x408b6f
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
jmp 0x408b68
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
jmp 0x408b68
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
mov word [ebp - 0x28], ax
movzx eax, word [ebx + 6]
push eax
movzx eax, word [ebx + 2]
push eax
movzx eax, word [ebx]
push eax
push str._04d_02d_02d
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
push 0x12
push eax
movq qword [ebp - 0x26], xmm0
movq qword [ebp - 0x1e], xmm0
call fcn.004073b0
add esp, 0x18
cmp word [ebp - 0x28], 0
jne 0x408bb9
xor ecx, ecx
jmp 0x408bcf
lea ecx, [ebp - 0x28]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408bc0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
push eax
call fcn.00402fc0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x408ae2
Function at 0x40af10
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x40af2f
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40af8e
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret

Function at 0x40afa0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x40afbf
xor eax, eax
mov word [esi], ax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push str.InstallLocation
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x40b009
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
cmp eax, 1
je 0x40b019
cmp eax, 2
jne 0x40aff8
push str.chrome.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40aff8
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
Function at 0x40b070
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x40b08f
xor eax, eax
mov word [edi], ax
push 1
lea eax, [ebp - 0x628]
push eax
push 0
push 0x20019
push str.SOFTWAREMozilla
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyW]
test eax, eax
je 0x40b0bf
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push esi
xor esi, esi
mov byte [ebp - 0x629], 0
push 0x10
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push dword [ebp - 0x628]
mov dword [ebp - 0x620], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegEnumUSKeyW]
inc esi
test eax, eax
jne 0x40b20c
push str.Mozilla_Firefox
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.Mozilla_Firefox
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40b0d0
push str.SOFTWAREMozilla
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x620], 0x208
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x437678
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0
push 1
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x624]
push eax
push str.PathToExe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x40b0d0
mov eax, dword [ebp - 0x624]
cmp eax, 1
je 0x40b1b5
cmp eax, 2
jne 0x40b0d0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x40b0d0
push str.firefox.exe
push eax
call ebx
test eax, eax
jne 0x40b0d0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b0d0
lea eax, [ebp - 0x414]
push eax
push 0x104
push edi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
mov byte [ebp - 0x629], 1
push dword [ebp - 0x628]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x629]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
Function at 0x40c650
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431c98
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xb8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0x10
push dword [ebp + 0x18]
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
mov dword [ebp - 0xa4], 0xc3d2e1f0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x58], 0
call fcn.00422f70
mov ecx, dword [ebp + 0x18]
add esp, 4
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
shr ecx, 2
lea ecx, [eax + ecx*4]
cmp eax, ecx
jae 0x40c71d
xor dword [eax], 0x5289b01b
add eax, 4
cmp eax, ecx
jb 0x40c710
xorps xmm0, xmm0
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x3c], 0
movq qword [ebp - 0x3b], xmm0
movq qword [ebp - 0x33], xmm0
movq qword [ebp - 0x2b], xmm0
movq qword [ebp - 0x23], xmm0
movq qword [ebp - 0x1b], xmm0
call fcn.004243b0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
add esp, 4
mov byte [esi], 0
cmp byte [ebp - 0x3c], 0
jne 0x40c76d
xor ecx, ecx
jmp 0x40c77c
lea ecx, [ebp - 0x3c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c773
sub ecx, edx
push ecx
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00402da0
cmp dword [ebp + 0x1c], 0x10
jb 0x40c79a
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret

Function at 0x40c890
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
mov dword [ebp - 0x418], 0
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x414]
call fcn.0040c7c0
test eax, eax
je 0x40c91d
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push str.SHA1_CODE
push str.default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x40c93d
xor ecx, ecx
jmp 0x40c955
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c946
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00402fc0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
Function at 0x40df70
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432481
mov eax, dword fs:[0]
push eax
mov eax, 0x10078
call fcn.00430ae0
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0xfffc
push eax
mov word [ebp - 0x10014], ax
lea eax, [ebp - 0x10012]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10018]
push eax
lea eax, [ebp - 0x10014]
push eax
mov dword [ebp - 0x10018], 0x7fff
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40e0f8
push ecx
lea eax, [ebp - 0x10014]
push eax
push ecx
lea ecx, [ebp - 0x10050]
call fcn.00410550
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00410d80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x10020]
push eax
mov ecx, esi
call fcn.00410f60
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10024], 8
jb 0x40e03d
push dword [ebp - 0x10038]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1003c], 8
mov dword [ebp - 0x10024], 7
mov dword [ebp - 0x10028], 0
mov word [ebp - 0x10038], ax
jb 0x40e072
push dword [ebp - 0x10050]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
call fcn.00424550
test eax, eax
je 0x40e0bc
push ecx
push str.admin
push str.privilege
lea ecx, [ebp - 0x10050]
call fcn.00410600
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00410d80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x10020]
push eax
mov ecx, esi
call fcn.00410f60
lea ecx, [ebp - 0x10050]
jmp 0x40e0f3
sub esp, 0xc
lea ecx, [ebp - 0x10080]
call fcn.004106d0
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00410d80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x10020]
push eax
mov ecx, esi
call fcn.00410f60
lea ecx, [ebp - 0x10080]
call fcn.0040df20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 4
Function at 0x40e120
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432436
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x832]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x208
push eax
push 0x1002
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40e266
push 0x208
lea eax, [ebp - 0x834]
push eax
push 0x1001
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40e260
push ecx
lea eax, [ebp - 0x424]
push eax
push ecx
lea ecx, [ebp - 0x874]
call fcn.00410760
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00410d80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x844]
push eax
mov ecx, edi
call fcn.00410f60
lea ecx, [ebp - 0x874]
mov dword [ebp - 4], 0xffffffff
call fcn.0040df20
push ecx
lea eax, [ebp - 0x834]
push eax
push ecx
lea ecx, [ebp - 0x8a4]
call fcn.00410810
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00410d80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x83c]
push eax
mov ecx, edi
call fcn.00410f60
lea ecx, [ebp - 0x8a4]
call fcn.0040df20
jmp 0x40e266
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 4
Function at 0x40e4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4322c6
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
call fcn.0041d340
test al, al
mov ecx, 0x200
cmovne esi, ecx
lea eax, [ebp - 0x228]
push eax
or esi, 1
push esi
push 0
push str.SOFTWAREiSafe
push 0x80000002
mov dword [ebp - 0x228], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e6b3
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x224], 1
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push str.ptid
push dword [ebp - 0x228]
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.MSVCR110.dll__wcsicmp]
test eax, eax
jne 0x40e5fe
lea eax, [ebp - 0x21c]
push str.NULL
push eax
call esi
add esp, 8
test eax, eax
je 0x40e6bf
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
jmp 0x40e5a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e5a0
sub ecx, edx
sar ecx, 1
je 0x40e6bf
push ecx
lea eax, [ebp - 0x21c]
push eax
push ecx
lea ecx, [ebp - 0x290]
call fcn.00410a20
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00410d80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x230]
push eax
mov ecx, ebx
call fcn.00410f60
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0xffffffff
call fcn.0040df20
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push str.channel
push dword [ebp - 0x228]
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6b3
lea eax, [ebp - 0x21c]
push str.NULL
push eax
call esi
add esp, 8
test eax, eax
je 0x40e6bf
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e660
sub ecx, edx
sar ecx, 1
je 0x40e6bf
push ecx
lea eax, [ebp - 0x21c]
push eax
push ecx
lea ecx, [ebp - 0x260]
call fcn.00410ad0
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00410d80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x230]
push eax
mov ecx, ebx
call fcn.00410f60
lea ecx, [ebp - 0x260]
call fcn.0040df20
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 4