joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4491b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1296
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x250], ecx
push 0x228
lea eax, [ebp - 0x244]
mov dword [ebp - 0x24c], 0
push 0
push eax
call fcn.0046d1b0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x449283
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x3c0]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x310], 4
mov dword [ebp - 0x30c], str.GetProcessPid
mov edx, str.CreateToolhelp32Snapshot_failed_err
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3b0]
call fcn.00407bd0
push esi
lea ecx, [ebp - 0x3b0]
call fcn.0041fd70
lea ecx, [ebp - 0x3c0]
mov dword [ebp - 4], edi
call fcn.00402230
xor eax, eax
jmp 0x44935f
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4492f3
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4492a0
push dword [ebp - 0x250]
lea eax, [ebp - 0x224]
push eax
call fcn.00469ba9
add esp, 8
test eax, eax
jne 0x4492d5
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4492d5
cmp dword [ebp - 0x14], esi
je 0x4492e5
lea eax, [ebp - 0x248]
push eax
push edi
call ebx
test eax, eax
jne 0x4492a0
jmp 0x449352
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x24c], eax
jmp 0x449352
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x308]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x258], 4
mov dword [ebp - 0x254], str.GetProcessPid
mov edx, str.Process32First_failed_err
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2f8]
call fcn.00407bd0
push esi
lea ecx, [ebp - 0x2f8]
call fcn.0041fd70
lea ecx, [ebp - 0x308]
mov dword [ebp - 4], 0xffffffff
call fcn.00402230
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x449af0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0046d1b0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x105
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret

Function at 0x44a050
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a141b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00421bc0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push ecx
push 5
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x44a101
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xd8]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], str.IsOSUserLoggedIn::operator___
mov edx, str.WTSQuerySessionInformation_WTSUserName_failed_err
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.00407bd0
push esi
lea ecx, [ebp - 0xc8]
call fcn.0041fd70
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402230
jmp 0x44a136
cmp dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x18]
je 0x44a12f
test edx, edx
je 0x44a12f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a113
sub ecx, esi
sar ecx, 1
je 0x44a12f
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov al, 1
jmp 0x44a138
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret

Function at 0x44a160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
test esi, esi
je 0x44a1a2
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x44a1b5
add edi, dword [ebp - 8]
sub esi, dword [ebp - 8]
jne 0x44a182
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x44a1d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1469
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x20], ebx
mov word [ebx], ax
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], 1
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x44a270
call esi
cmp eax, 0xea
je 0x44a230
mov edx, str.read_file_failed
lea ecx, [ebp - 0x34]
call fcn.0044f2b0
push 0x4c0834
lea eax, [ebp - 0x34]
push eax
call fcn.0046b2bb
cmp dword [ebp - 0x14], 1
jne 0x44a2a7
jmp 0x44a280
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
lea eax, [ebp - 0x17]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x44a2a7
call esi
cmp eax, 0xea
je 0x44a280
jmp 0x44a255
mov eax, dword [ebp - 0x18]
cmp ax, 0xa
je 0x44a2bf
push eax
push 1
mov ecx, ebx
call fcn.00406050
jmp 0x44a230
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x44c150
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1768
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c2618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jne 0x44c18a
mov byte [ebx + 8], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea edi, [ebx + 4]
push edi
push 0x4ac970
push 1
push 0
push 0x4ac960
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x44c1d2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ROOTCIMV2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x10], esi
push ebx
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 0
mov eax, dword [edi]
push 0
push 0
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x44c1be
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebx]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d370
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1908
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
jne 0x44d3a1
xor al, al
jmp 0x44d3ff
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0044cf90
test al, al
je 0x44d3ea
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x200
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x44d3ea
mov bl, 1
jmp 0x44d3ec
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x44d3fd
push dword [ebp - 0x28]
call fcn.00466e37
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x44d420
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1951
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4c2618]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov eax, dword [0x4c2618]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov eax, dword [0x4c9c3c]
mov dword [esp + 0x10], 7
test al, 1
jne 0x44d4af
or eax, 1
mov dword [0x4c9c3c], eax
xorps xmm0, xmm0
mov dword [esp + 0xa0], 0
movdqu xmmword [0x4c9c40], xmm0
call fcn.00440160
push 0x4a3a90
call fcn.00467a8c
add esp, 4
mov dword [esp + 0xa0], 0xffffffff
lea eax, [esp + 0x10]
mov ecx, 0x4c9c40
push eax
call fcn.00440200
test eax, eax
jne 0x44d4c9
xor al, al
jmp 0x44d5f4
lea ecx, [esp + 0x34]
push ecx
push 0x209
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44d4c2
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0
push dword [esp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x44d5e1
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, 2
lea eax, [eax + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452aaa
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [esp + 0x38], esi
jle 0x44d5d8
mov ecx, dword [esp + 0x30]
inc ecx
push ecx
push edi
push esi
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x44d5d8
lea ecx, [esp + 0x3c]
call fcn.0041b040
lea edx, [esp + 0x3c]
mov dword [esp + 0xa0], 1
mov ecx, edi
call fcn.0044d070
test al, al
je 0x44d5b9
push edi
lea ecx, [esp + 0x1c]
call fcn.0040d960
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0xa4], 2
push eax
call fcn.0044e170
mov ecx, eax
call fcn.0044d620
lea ecx, [esp + 0x18]
call fcn.0040d330
lea ecx, [esp + 0x3c]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0041d760
inc esi
cmp esi, dword [esp + 0x38]
jl 0x44d547
push edi
call fcn.00467aa1
add esp, 4
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 0x10], eax
sete al
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x44d670
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1988
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 7
push eax
call fcn.00440080
mov ecx, eax
call fcn.00440200
test eax, eax
jne 0x44d6c0
xor al, al
jmp 0x44d78c
lea ecx, [ebp - 0x18]
push ecx
push 0x209
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44d6b9
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x44d77c
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, 2
lea eax, [eax + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452aaa
xor esi, esi
add esp, 4
mov ebx, eax
cmp dword [ebp - 0x14], esi
jle 0x44d773
lea esp, [esp]
mov ecx, dword [ebp - 0x1c]
inc ecx
push ecx
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
test edi, edi
jne 0x44d773
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0040d960
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 4], edi
call fcn.0044e1f0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d330
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x44d730
push ebx
call fcn.00467aa1
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x44eae0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocString
push ecx
mov dword [ebp - 0x418], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
cmp ebx, 0xffffffff
jne 0x44eb35
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
push edi
push 0xf0000000
push 1
xor edi, edi
mov dword [ebp - 0x428], 0
push edi
push edi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x41c], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x44eb73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x44ecce
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x44eba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x44ecce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x424]
push 0
push eax
push 0x400
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], edi
push eax
push ebx
call esi
test eax, eax
je 0x44ec10
lea esp, [esp]
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x44ec32
push 0
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x44ec28
push 0
lea eax, [ebp - 0x424]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push ebx
call esi
test eax, eax
jne 0x44ebd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x44eccd
jmp 0x44ec38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x44ec1c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x44ec67
call esi
mov edi, eax
jmp 0x44eccd
mov ecx, dword [ebp - 0x418]
call fcn.00424310
xor esi, esi
cmp dword [ebp - 0x420], esi
jbe 0x44eccd
mov ebx, dword [ebp - 0x418]
movzx ecx, byte [ebp + esi - 0x14]
mov eax, ecx
mov byte [ebp - 0x416], 0
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [ebp - 0x418], al
movzx eax, byte [ecx + str.0123456789abcdef]
mov ecx, ebx
mov byte [ebp - 0x417], al
lea eax, [ebp - 0x418]
push eax
call fcn.0044b550
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x44ec82
mov ebx, dword [ebp - 0x42c]
pop esi
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x44ecdf
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x44ecf2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x44f6b0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push edx
lea eax, [ebp - 8]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov edi, ecx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x44f74d
mov eax, dword [ebp - 8]
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.00428e50
mov ecx, esp
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
lea ecx, [ebp - 0x14]
call fcn.00428e50
add esp, 4
mov edx, eax
mov ecx, edi
push esi
call fcn.0044f770
mov eax, dword [ebp - 0x14]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x44f730
push eax
call esi
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x44f73b
push ecx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
mov edx, str.CreatePipe_failed
lea ecx, [ebp - 0x30]
call fcn.0044f2b0
push 0x4c0834
lea eax, [ebp - 0x30]
push eax
call fcn.0046b2bb
int3

Function at 0x46f86c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x48681e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0046d640
mov dword [ebp - 0x14], eax
cmp dword [0x4c9910], esi
jne 0x486911
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x48689e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4869f1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4869f1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4869f1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4c9910], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4c9914], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4c9918], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c9920], eax
test eax, eax
je 0x48690e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c991c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x486936
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x486929
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x48694b
push 4
pop eax
jmp 0x4869f3
cmp dword [ebp - 0x14], esi
je 0x48694b
push dword [0x4c9910]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x486930
mov eax, dword [0x4c991c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4869a9
cmp dword [0x4c9920], edi
je 0x4869a9
push eax
call ebx
push dword [0x4c9920]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4869a9
test eax, eax
je 0x4869a9
call ecx
test eax, eax
je 0x48699e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x48699e
test byte [ebp - 8], 1
jne 0x4869a9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4869d9
mov eax, dword [0x4c9914]
cmp eax, edi
je 0x4869d6
push eax
call ebx
test eax, eax
je 0x4869d6
call eax
mov esi, eax
test esi, esi
je 0x4869d6
mov eax, dword [0x4c9918]
cmp eax, edi
je 0x4869d6
push eax
call ebx
test eax, eax
je 0x4869d6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4c9910]
call ebx
test eax, eax
je 0x4869f1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4869f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x401d20
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push edi
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderSuperHidden
push closesocket
mov dword [esp + 0x20], 0
call esi
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.UncheckedValue
push edx
call edi
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push closesocket
call esi
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.ShowSuperHidden
push edx
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
Function at 0x402240
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], esp
push esi
call fcn.00401db0
mov eax, dword [ebp + 8]
mov edi, dword [0x405bf8]
mov ebx, dword [0x405bfc]
push eax
call fcn.00401db0
mov eax, dword [0x405bfc]
mov ecx, dword [0x405bf8]
add esp, 8
cmp eax, ebx
mov dword [ebp + 0xc], ecx
jb 0x402333
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [ebp - 0x14]
mov edi, eax
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
push 0
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [ebp - 0x18]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret