joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
lea eax, [esp + 8]
mov dword [esp + 0xc], 4
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 4
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edx, dword [esp + 0x18]
test eax, eax
sete bl
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48f058
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x48f071
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x491260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4915c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
cmp byte [ebp + 8], bl
push esi
push str.State
setne bl
call fcn.00408900
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push 0x4ad28c
push eax
call section..s388xe
add esp, 8
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push 4
push eax
push 4
push dword [ebp - 0x10]
push dword [ebp + 8]
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4912ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x491302
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492000
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], 0x128
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x492176
push ebx
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push esi
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x49216e
push ebp
mov ebp, dword [esp + 0x144]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call fcn.00408900
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], edi
jl 0x492097
push str.winlogon
push eax
call fcn.00455ac1
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x492097
sub ecx, eax
js 0x492097
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
cmove ebx, dword [esp + 0x20]
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4920af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x492044
test ebx, ebx
je 0x49216d
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x49216d
nop dword [eax + eax]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call fcn.00408900
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x492141
push str..scr
push eax
call fcn.00455ac1
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x49213d
mov eax, dword [esp + 0x10]
sub ecx, eax
js 0x492141
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [esp + 0x14], ebp
jne 0x49213d
cmp dword [esp + 0x30], ebx
mov eax, 1
cmove edi, eax
mov eax, dword [esp + 0x10]
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x492159
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x4920e0
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x130
ret 4

Function at 0x4922c0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
mov esi, ecx
push esi
push 0x4922f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
pop esi
pop ecx
ret
Function at 0x4930d0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push esi
push 0x104
lea eax, [ebp - 0x128]
mov dword [ebp - 0x24], 0
push 0
push eax
call fcn.0044ebb0
add esp, 0xc
lea eax, [ebp - 0x128]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], 0x64647542
push eax
mov dword [ebp - 0x18], 0x656c6449
mov word [ebp - 0x10], 0x79
call esi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x493165
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x104
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.0044ebb0
add esp, 0xc
lea eax, [ebp - 0x330]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0044ebb0
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.0045594a
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00408900
push str..log
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
call fcn.00409600
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x128]
push eax
call esi
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493224
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x493243
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x128]
push eax
call fcn.00408900
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x494000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.004930d0
push 0x14
mov byte [ebp - 4], 1
call fcn.00457139
add esp, 4
mov dword [ebp - 0x1c], eax
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0
push 0
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xc
push eax
push 0
push 0x40000000
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4940c8
push edi
push 2
push 0
push 0
push esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x4940b1
push edi
lea ecx, [ebp + 8]
call fcn.00408c30
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4940e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x494109
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a1530
Capabilities:
Hash data using sha256

Disassembly:
push ecx
push edi
push dword [esp + 0x14]
mov edi, ecx
mov dword [esp + 8], 0
push dword [esp + 0x14]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x4c], 0x6a09e667
mov dword [edi + 0x50], 0xbb67ae85
mov dword [edi + 0x54], 0x3c6ef372
mov dword [edi + 0x58], 0xa54ff53a
mov dword [edi + 0x5c], 0x510e527f
mov dword [edi + 0x60], 0x9b05688c
mov dword [edi + 0x64], 0x1f83d9ab
mov dword [edi + 0x68], 0x5be0cd19
call fcn.00473ad0
push dword [esp + 0xc]
mov ecx, edi
call section..q14nef
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 0xc

Function at 0x4a3190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], 0
xor bl, bl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push dword [edi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4a3204
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edi + 8]
push ecx
sub eax, 0x10
mov esi, esp
push eax
mov dword [ebp - 0x10], esi
call fcn.004091c0
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004a34c0
test al, al
jne 0x4a3213
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004a6020
test al, al
je 0x4a3220
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004a3440
mov bl, al
lea ecx, [ebp - 0x1c]
call fcn.00408760
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a3250
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, ecx
push 1
mov dword [ebp - 4], 0
xor bl, bl
call fcn.00457139
mov esi, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0
push eax
call fcn.004091c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00471c30
add esp, 8
or esi, 0xffffffff
test al, al
je 0x4a33f3
cmp dword [ebp - 0x18], 0x7530
jbe 0x4a33f3
push 0x104
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0044ebb0
add esp, 0xc
lea eax, [ebp - 0x128]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x14]
mov word [ebp - 0x11], 0x70
push eax
lea eax, [edi + 4]
mov word [ebp - 0x14], 0x742e
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 0x12], 0x6d
push eax
call fcn.00409600
add esp, 0xc
push dword [ebp - 0x20]
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x4a33d5
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
push ecx
mov ecx, esp
push eax
call fcn.00408900
mov ecx, edi
call fcn.004a34c0
test al, al
je 0x4a33d5
push 0
push dword [edi + 8]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
lea eax, [ebp - 0x128]
push eax
setne bl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [edi + 0xc]
call fcn.00408bd0
mov edx, dword [ebp - 0x20]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a33f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
call fcn.004518f1
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4a341d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a34c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a35f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push edi
mov dword [ebp - 0x18], ecx
push 0
push 0
push 3
push 0
push 0
push accept
push dword [ebp + 8]
mov dword [ebp - 4], 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a3569
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040a470
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x20]
push 0
push edx
sub eax, ecx
mov byte [ebp - 4], 1
push eax
push ecx
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x4a3561
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.004a41d0
mov bl, al
lea ecx, [ebp - 0x24]
call fcn.00408760
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a358b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a4420
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov eax, dword [ecx]
mov dword [esp + 6], 0x72724574
mov dword [esp], 0x4c746547
mov word [esp + 0xd], 0x5550
mov word [esp + 0xa], 0x726f
mov word [esp + 4], 0x7361
mov byte [esp + 0xf], 0
mov byte [esp + 0xc], 0x43
test eax, eax
je 0x4a447b
lea ecx, [esp]
push ecx
push eax
call fcn.0049e010
add esp, 8
test eax, eax
je 0x4a447b
push dword [esp + 0x18]
push dword [esp + 0x18]
call eax
add esp, 8
add esp, 0x10
ret 8
xor eax, eax
add esp, 0x10
ret 8

Function at 0x4a6090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov eax, dword [ecx]
mov dword [esp + 9], 0x55504373
mov dword [esp], 0x52746547
mov word [esp + 4], 0x7365
mov byte [esp + 0xd], 0
mov word [esp + 7], 0x746c
mov byte [esp + 6], 0x75
test eax, eax
je 0x4a60ec
lea ecx, [esp]
push ecx
push eax
call fcn.0049e010
add esp, 8
test eax, eax
je 0x4a60ec
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call eax
add esp, 0x10
add esp, 0x10
ret 0x10
xor eax, eax
add esp, 0x10
ret 0x10

Function at 0x4a9000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9169
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.00408ce0
mov ecx, eax
test ecx, ecx
jne 0x4a9041
push 0x80004005
call fcn.00408b40
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
push 0x200
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], 1
call fcn.0044ebb0
add esp, 0xc
mov dword [ebp - 0x14], 0x200
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a9137
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4a9102
lea eax, [ebp - 0x10]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a9137
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9137
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9110
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040a2e0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x6821b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00682140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00682140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00682140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00682140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x682bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x682c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x69487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x682c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x682c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x26b11ceb
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..reloc
nop
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4a757f61
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40266c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40268e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x402690
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x402715
jg 0x4026a5
test esi, esi
je 0x402715
test ecx, ecx
jl 0x4026f8
jg 0x4026af
test eax, eax
je 0x4026f8
cmp edi, ecx
jg 0x4026c3
jl 0x4026b9
cmp esi, eax
jae 0x4026c3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x402715
jg 0x4026fb
test esi, esi
je 0x402715
jmp 0x4026fb
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x402715
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x40275c
jl 0x402750
test esi, esi
jne 0x40275c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402775
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x4027af
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4027af
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x402830
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4027d8
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x40281c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x402843
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4027f0
test edx, edx
je 0x402830
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc