joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064c5
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x4b7daf
call fcn.0048ff32
mov edi, ecx
xor esi, esi
mov dword [edi + 0x10], esi
call fcn.00406d63
lea ecx, [ebp - 0x28]
call fcn.00460a9c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.004612f2
push str.SeDebugPrivilege
lea ecx, [ebp - 0x28]
call fcn.00460d30
mov eax, 0xc8
push ecx
lea ebx, [eax + 0x14]
push ebx
mov ecx, edi
call fcn.00406d1c
movzx eax, al
test eax, eax
je 0x406570
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
shl eax, 2
push eax
push dword [edi]
mov dword [ebp - 0x10], esi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x406544
mov eax, dword [ebp - 0x10]
shr eax, 2
cmp ebx, eax
jb 0x406502
push ecx
push eax
mov ecx, edi
call fcn.00406d1c
jmp 0x40657c
mov ecx, edi
call fcn.00406d63
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x406569
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40657c
mov esi, 0x80004005
jmp 0x40657c
mov ecx, edi
call fcn.00406d63
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00460ad1
mov eax, esi
call fcn.0048ff00
ret

Function at 0x4065bd
Capabilities:
Acquire debug privileges

Disassembly:
push 0x20
mov eax, 0x4b7ea2
call fcn.0048ff32
mov ebx, ecx
lea ecx, [ebp - 0x2c]
call fcn.00460a9c
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.004612f2
push str.SeDebugPrivilege
lea ecx, [ebp - 0x2c]
call fcn.00460d30
mov dword [ebp - 0x10], esi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004065ac
push eax
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x406631
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406627
call fcn.004070f8
mov edi, eax
jmp 0x4066b1
mov edi, 0x80004005
jmp 0x4066b1
cmp dword [ebx + 0x18], 0
mov edi, 0x80004005
jne 0x406699
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x406663
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40665f
call fcn.004070f8
jmp 0x406674
mov eax, edi
jmp 0x406674
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
xor eax, eax
test eax, eax
jns 0x406699
mov ecx, dword [ebp + 8]
mov ebx, 0x8000
push ebx
call fcn.00404e61
push ebx
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [ebp + 8]
push eax
call fcn.004070cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4066aa
call fcn.004070f8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00460ad1
mov eax, edi
call fcn.0048ff00
ret 4
Function at 0x4066c7
Capabilities:
Acquire debug privileges

Disassembly:
push 0x1c
mov eax, 0x4b7e77
call fcn.0048ff32
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.00460a9c
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004612f2
push str.SeDebugPrivilege
lea ecx, [ebp - 0x28]
call fcn.00460d30
mov dword [ebp - 0x10], ebx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004065ac
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x406741
mov ecx, dword [ebp + 8]
mov edi, 0x8000
push edi
call fcn.00404e61
push edi
push eax
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call fcn.004070cc
test edi, edi
jne 0x40675b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406754
call fcn.004070f8
mov ebx, eax
jmp 0x406764
mov ebx, 0x80004005
jmp 0x406764
push dword [ebp + 8]
call fcn.004605db
pop ecx
test esi, esi
je 0x40676f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00460ad1
mov eax, ebx
call fcn.0048ff00
ret 4

Function at 0x406785
Capabilities:
Acquire debug privileges

Disassembly:
push 0x20
mov eax, 0x4b7dfd
call fcn.0048ff32
mov ebx, ecx
lea ecx, [ebp - 0x2c]
call fcn.00460a9c
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.004612f2
push str.SeDebugPrivilege
lea ecx, [ebp - 0x2c]
call fcn.00460d30
mov dword [ebp - 0x10], esi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004065ac
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x406875
cmp dword [ebx + 0x18], 0
jne 0x406824
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40680f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406808
call fcn.004070f8
mov edi, eax
jmp 0x406820
mov edi, 0x80004005
jmp 0x406820
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
xor edi, edi
test edi, edi
js 0x406891
mov ecx, dword [ebp + 8]
push 0x8000
call fcn.00404e61
cmp dword [ebx + 0x1c], 0
mov edi, eax
jne 0x40685c
cmp dword [ebx + 0x18], 0
jne 0x406843
xor eax, eax
jmp 0x406851
push str.GetProcessImageFileNameW
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x40685c
xor edi, edi
jmp 0x406868
push 0x8000
push edi
push esi
call dword [ebx + 0x1c]
mov edi, eax
mov ecx, dword [ebp + 8]
push edi
call fcn.004070cc
test edi, edi
jne 0x40688f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406888
call fcn.004070f8
mov edi, eax
jmp 0x406891
mov edi, 0x80004005
jmp 0x406891
xor edi, edi
test esi, esi
je 0x40689c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00460ad1
mov eax, edi
call fcn.0048ff00
ret 4
Function at 0x4068b2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b7e39
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4eb664]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb664]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x14]
call fcn.00460a9c
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x278], ebx
call fcn.004612f2
push str.SeDebugPrivilege
lea ecx, [esp + 0x18]
call fcn.00460d30
push 0x4eb630
lea ecx, [esp + 0x14]
call fcn.004044ee
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x27c], 1
call fcn.004065bd
test eax, eax
jns 0x4069e5
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00406785
test eax, eax
jns 0x4069e5
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x25c], ebx
mov ecx, esi
mov byte [esp + 0x278], 2
call fcn.004065ac
push eax
lea ecx, [esp + 0x30]
call fcn.00406a7c
test eax, eax
jne 0x4069a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406a41
call fcn.004070f8
mov esi, eax
jmp 0x406a46
cmp dword [esp + 0x25c], 0
je 0x406a41
lea eax, [esp + 0x54]
push eax
call fcn.0040481a
pop ecx
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call fcn.004047a1
mov byte [esp + 0x278], 1
cmp dword [esp + 0x2c], 0
je 0x4069e5
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x10]
call fcn.004609eb
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00406bd9
mov esi, ebx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00404f8d
or dword [esp + 0x278], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00460ad1
mov eax, esi
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0048f059
mov esp, ebp
pop ebp
ret 4
mov esi, 0x80004005
cmp dword [esp + 0x2c], 0
je 0x4069fc
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], ebx
jmp 0x4069fc
Function at 0x406a7c
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push 0x18
mov eax, 0x4b7dd2
call fcn.0048ff32
mov esi, ecx
lea ecx, [ebp - 0x24]
call fcn.00460a9c
xor ebx, ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.004612f2
push str.SeDebugPrivilege
lea ecx, [ebp - 0x24]
call fcn.00460d30
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x406ae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406acf
call fcn.004070f8
mov edi, eax
jmp 0x406ad4
mov edi, 0x80004005
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00460ad1
jmp 0x406afa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [esi + 0x230], 1
call fcn.00460ad1
mov edi, ebx
test edi, edi
js 0x406b5b
push 0x22c
lea edi, [esi + 4]
push ebx
push edi
call fcn.004921d0
add esp, 0xc
mov dword [edi], 0x22c
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x406b51
mov eax, ebx
cmp dword [esi + 0x230], ebx
je 0x406b2e
mov eax, dword [esi + 0xc]
cmp dword [ebp + 8], eax
je 0x406b65
push 0x22c
push ebx
push edi
call fcn.004921d0
add esp, 0xc
mov dword [edi], 0x22c
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [esi + 0x230], eax
test eax, eax
jne 0x406b21
xor eax, eax
call fcn.0048ff00
ret 4
xor eax, eax
inc eax
jmp 0x406b5d

Function at 0x4079d7
Capabilities:
Initialize winsock library

Disassembly:
push 0x19c
mov eax, 0x4b80c7
call fcn.0048ff65
mov esi, ecx
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [ebp - 0x1a8], esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], vtable.KCompressFileInterface.0
mov dword [esi], vtable.KPostDlg.1.0
mov dword [esi + 0x20], vtable.KPostDlg.0
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x3c], ebx
push ebx
mov dword [esi + 0x40], vtable.KCompressFile.0
push ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
call fcn.004093e9
mov dword [esi + 0x50], eax
mov byte [esi + 0x4c], bl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
call fcn.00409522
mov dword [esi + 0x58], eax
lea edi, [esi + 0x1068]
mov byte [ebp - 4], 2
push 8
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.00449b05
pop ecx
test eax, eax
jne 0x407a74
call fcn.004b1bba
mov dword [edi], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [edi]
mov dword [eax], edi
lea eax, [ebp - 0x1a4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [esi + 0x60], 0xffffffff
push 0xffffff
mov dword [esi + 0x1080], ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x38], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1084], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, esi
call fcn.0048ff14
ret
Function at 0x40a551
Capabilities:
Get common file path

Disassembly:
push 0x638
mov eax, 0x4b8577
call fcn.0048ff65
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
mov esi, ebx
push eax
mov dword [ebp - 0x644], esi
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x220]
push ebx
push 0x1c
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x638]
call fcn.0040513a
mov edi, str.liebao
push edi
mov dword [ebp - 4], ebx
call fcn.00405113
pop ecx
push eax
push edi
lea ecx, [ebp - 0x638]
call fcn.004046dd
mov edi, str.User_Data
push edi
call fcn.00405113
pop ecx
push eax
push edi
lea ecx, [ebp - 0x638]
call fcn.004046dd
mov edi, str.install_log.log
push edi
call fcn.00405113
pop ecx
push eax
push edi
lea ecx, [ebp - 0x638]
call fcn.004046dd
cmp dword [ebp - 0x624], 8
lea eax, [ebp - 0x638]
cmovae eax, dword [ebp - 0x638]
push 0x4d466c
push eax
call fcn.00495d81
pop ecx
pop ecx
mov dword [ebp - 0x63c], eax
test eax, eax
jne 0x40a62c
inc eax
mov esi, eax
jmp 0x40a6e3
xor eax, eax
push 0x3fe
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push ebx
push eax
call fcn.004921d0
push dword [ebp - 0x63c]
mov dword [ebp - 0x640], ebx
mov edi, ebx
call fcn.00493dc5
add esp, 0x10
test eax, eax
jne 0x40a6c3
mov esi, dword [ebp - 0x63c]
push esi
lea eax, [ebp - 0x620]
push 0x1ff
push eax
call fcn.00498944
lea eax, [ebp - 0x620]
push str.RealInstallFunc_Success
push eax
inc ebx
call fcn.00492e1b
add esp, 0x14
test eax, eax
je 0x40a69a
mov dword [ebp - 0x640], ebx
jmp 0x40a6b2
lea eax, [ebp - 0x620]
push str.Extract...
push eax
call fcn.00492e1b
pop ecx
test eax, eax
pop ecx
cmovne edi, ebx
push esi
call fcn.00493dc5
pop ecx
test eax, eax
je 0x40a667
mov esi, dword [ebp - 0x644]
push dword [ebp - 0x63c]
call fcn.00493d4e
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0x640]
inc eax
test ecx, ecx
je 0x40a6e1
cmp edi, ecx
cmovb esi, eax
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x638]
call fcn.00405ac5
mov eax, esi
call fcn.0048ff14
ret 4
Function at 0x40a96a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x218], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40aa2d
test al, 0x10
jne 0x40aa2d
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x210]
mov ecx, edi
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.004018b6
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004921d0
mov ecx, dword [ebp - 0x214]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x210]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._d._d._d
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0049846e
add esp, 0x34
lea eax, [ebp - 0x20c]
push eax
jmp 0x40aa32
push 0x4d3c88
mov ecx, esi
call fcn.0040513a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret 8

Function at 0x40ac5a
Capabilities:
Read file on windows

Disassembly:
push 0xb0
mov eax, 0x4b8544
call fcn.0048ff65
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x84]
call fcn.0041ebfd
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, 0xfffffe00
and dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ecx
and dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], ecx
and dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ecx
push 0x4d484c
push esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x88], ecx
call fcn.00495d81
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40adb9
push 2
push 0
push ebx
call fcn.004942d4
add esp, 0xc
push ebx
call fcn.004946ac
pop ecx
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x8c], esi
call fcn.004942d4
add esp, 0xc
inc esi
push esi
call fcn.0048f28d
pop ecx
push esi
mov edi, eax
push 0
push edi
call fcn.004921d0
mov esi, dword [ebp - 0x8c]
add esp, 0xc
push ebx
push esi
push 1
push edi
call fcn.00494199
add esp, 0x10
cmp eax, esi
jne 0x40ada7
push ecx
lea eax, [ebp - 0xac]
push eax
lea eax, [esi - 1]
add eax, edi
push eax
push edi
lea ecx, [ebp - 0x84]
call fcn.0041ec82
test al, al
je 0x40ada7
lea ecx, [ebp - 0xac]
call fcn.00421532
test al, al
je 0x40ada7
push ecx
push str.adfilter
call fcn.00421436
push eax
lea ecx, [ebp - 0xbc]
call fcn.004211cb
lea ecx, [ebp - 0xbc]
call fcn.00421532
test al, al
je 0x40ada7
push ecx
push str.kAdFilter
call fcn.00421436
push eax
lea ecx, [ebp - 0x9c]
call fcn.004211cb
cmp byte [ebp - 0x94], 5
jne 0x40ada7
lea ecx, [ebp - 0x9c]
call fcn.004212b1
movzx eax, al
mov dword [ebp - 0x88], eax
push ebx
call fcn.00493d4e
pop ecx
test edi, edi
je 0x40adb9
push edi
call fcn.0048f255
pop ecx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.00421150
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.00421150
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.00421150
lea ecx, [ebp - 0x84]
call fcn.0040adff
mov eax, dword [ebp - 0x88]
call fcn.0048ff14
ret 4
Function at 0x40bdc4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov ebx, ecx
call fcn.004921d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
push esi
push 0x4d4d88
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401c4f
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x10
push dword [ebx]
lea eax, [ebp - 0x20c]
push eax
push str.SystemDefaultUILanguage
push str.SystemInfo
call esi
lea eax, [ebp - 0x20c]
push edi
push 0x4d4d88
push 0x104
push eax
call fcn.00401c4f
add esp, 0x10
push dword [ebx]
lea eax, [ebp - 0x20c]
push eax
push str.UserDefaultUILanguage
push str.SystemInfo
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret

Function at 0x40be7f
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
lea eax, [ebp - 0x24c]
push 0
push eax
mov edi, ecx
call fcn.004921d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x250], 0x40
call fcn.004921d0
add esp, 0x18
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x244]
shrd ecx, eax, 0x14
push ecx
mov ecx, dword [ebp - 0x240]
shr eax, 0x14
mov eax, dword [ebp - 0x23c]
shrd ecx, eax, 0x14
push ecx
push str._d_MB____d_MB__free_total_
shr eax, 0x14
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00401c4f
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x14
push dword [edi]
lea eax, [ebp - 0x210]
push eax
push str.global_physical_memory
mov ebx, str.SystemInfo
push ebx
call esi
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
shrd ecx, eax, 0x14
push ecx
mov ecx, dword [ebp - 0x230]
shr eax, 0x14
mov eax, dword [ebp - 0x22c]
shrd ecx, eax, 0x14
push ecx
push str._d_MB____d_MB__free_total_
shr eax, 0x14
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00401c4f
add esp, 0x14
push dword [edi]
lea eax, [ebp - 0x210]
push eax
push str.global_pageFile_memory
push ebx
call esi
mov ecx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
shrd ecx, eax, 0x14
push ecx
mov ecx, dword [ebp - 0x220]
shr eax, 0x14
mov eax, dword [ebp - 0x21c]
shrd ecx, eax, 0x14
push ecx
push str._d_MB____d_MB__free_total_
shr eax, 0x14
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00401c4f
add esp, 0x14
push dword [edi]
lea eax, [ebp - 0x210]
push eax
push str.global_virtual_memory
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret
Function at 0x40c18c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x165c
call fcn.00492280
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1658]
push eax
push 0x1000
lea eax, [ebp - 0x1620]
push eax
mov dword [ebp - 0x1654], ecx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40c361
mov ebx, dword [ebp - 0x1658]
shr ebx, 2
xor eax, eax
mov dword [ebp - 0x164c], eax
test ebx, ebx
je 0x40c361
mov ecx, dword [ebp + eax*4 - 0x1620]
mov dword [ebp - 0x1650], ecx
test ecx, ecx
je 0x40c352
push 5
pop ecx
push 0x1f4
lea eax, [ebp - 0x1fc]
push 0
mov esi, str._unknown_
lea edi, [ebp - 0x210]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004921d0
add esp, 0xc
push dword [ebp - 0x1650]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c34c
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40c345
push 9
pop ecx
xor eax, eax
push 0x28
lea edi, [ebp - 0x1644]
rep stosd dword es:[edi], eax
pop eax
push eax
mov dword [ebp - 0x1648], eax
lea eax, [ebp - 0x1648]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
test eax, eax
je 0x40c2e2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.004921d0
mov eax, dword [ebp - 0x1640]
shr eax, 0x14
push eax
mov eax, dword [ebp - 0x163c]
shr eax, 0x14
push eax
push str.___d_MB__d_MB_
mov edi, 0x104
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.00401c4f
add esp, 0x20
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.0040bc2f
jmp 0x40c2e7
mov edi, 0x104
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call fcn.004921d0
mov eax, dword [ebp - 0x164c]
push dword [ebp + eax*4 - 0x1620]
lea eax, [ebp - 0x620]
push str.running_process__d
push edi
push eax
call fcn.00401c4f
mov eax, dword [ebp - 0x1654]
add esp, 0x1c
push dword [eax]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x620]
push eax
push str.SystemInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x164c]
inc eax
mov dword [ebp - 0x164c], eax
cmp eax, ebx
jb 0x40c1e6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret
Function at 0x40c3bc
Capabilities:
Check if file exists
Get common file path
Get file attributes
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x41c], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
mov ebx, ecx
call fcn.004921d0
add esp, 0xc
lea ecx, [ebp - 0x428]
push 0x20019
push str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], edi
call fcn.0040cf2b
test eax, eax
jne 0x40c4e6
push esi
push 0x208
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x418]
push eax
push str.Common_AppData
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x42c], 0x105
call fcn.0040ce63
lea ecx, [ebp - 0x428]
mov esi, eax
call fcn.0040cf80
test esi, esi
pop esi
jne 0x40c4a5
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c4a5
test al, 0x10
je 0x40c4a5
lea eax, [ebp - 0x418]
jmp 0x40c4c4
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x8023
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40c4e6
lea eax, [ebp - 0x20c]
push ebx
push eax
push str._s_s
push 0x104
push dword [ebp - 0x41c]
call fcn.004933e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x40c4e6
xor edi, edi
inc edi
lea ecx, [ebp - 0x428]
call fcn.0040cf80
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret