joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408840
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a558
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jne 0x4088ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_service_failed:__d
call fcn.00404c20
add esp, 8
jmp 0x4088d1
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x4088d1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.004088fa
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408920
Capabilities:
Modify service

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0xf01ff
push eax
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x408959
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret
push 0x1000
call fcn.0043e793
add esp, 4
push 0x1000
mov esi, eax
push 0
push esi
call fcn.004416b0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x4089c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push eax
push ebp
push edx
push str.QueryServiceConfig_false_1:_Name__s__StartType__d__Error__d
call fcn.00404c20
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
push esi
call fcn.0043e85d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
push ebp
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x408a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x1c]
push ebp
push eax
push str.MyChangeServiceConfig_false:_Name__s__StartType__d__Error__d
call fcn.00404c20
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
push esi
call fcn.0043e85d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
push str.MyChangeServiceConfig_success:_Name__s__StartType__d__Error__d
call fcn.00404c20
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
push esi
call fcn.0043e85d
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 8
ret
Function at 0x408a60
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a538
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x40], ebx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jne 0x408ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_service_failed:__d
call fcn.00404c20
add esp, 8
jmp 0x408b3d
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x408b3d
lea ecx, [ebp - 0x40]
push ecx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call ebx
test eax, eax
je 0x408b3d
cmp dword [ebp - 0x3c], 1
jne 0x408b3d
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x40]
push edx
push esi
call ebx
test eax, eax
je 0x408b3d
cmp dword [ebp - 0x3c], 1
jne 0x408b3d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00408b64
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408c00
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
mov edi, eax
call esi
push eax
call ebx
test eax, eax
je 0x408cfe
test edi, edi
je 0x408cfe
lea ecx, [esp + 0xc]
push ecx
call eax
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push bind
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call edi
cmp esi, 0xffffffff
je 0x408c90
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
jne 0x408c98
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x408cbc
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x408cd0
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408cb5
movzx ecx, word [ecx + 0x18]
mov edx, 0x10b
push eax
cmp cx, dx
jne 0x408d08
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, 0x20b
cmp cx, dx
jne 0x408d2e
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
mov eax, 2
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x408e30
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xfffffffffffffffe
push 0x489c98
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, str.BkavService.exe
mov dword [ebp - 0x20], 0xffffffff
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp], esi
push 0x228
push esi
lea eax, [ebp + 4]
push eax
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x408ee8
mov dword [ebp], 0x22c
lea ecx, [ebp]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408ee8
lea edx, [ebp + 0x24]
push edx
push edi
call fcn.0043ec25
add esp, 8
test eax, eax
jne 0x408eda
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jmp 0x408ee8
lea ecx, [ebp]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408ec1
mov dword [ebp - 4], 0xfffffffe
call fcn.00408f1f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0043e4c7
add ebp, 0x230
mov esp, ebp
pop ebp
ret

Function at 0x408f30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48ae08
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x464], 0xffffffff
xor edi, edi
mov dword [ebp - 0x46c], edi
mov dword [ebp - 0x468], edi
mov dword [ebp - 0x460], edi
push 0x228
push edi
lea eax, [ebp - 0x45c]
push eax
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 4], edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x464], esi
cmp esi, 0xffffffff
je 0x40903f
mov dword [ebp - 0x460], 0x22c
lea ecx, [ebp - 0x460]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40903f
mov edx, dword [ebp - 0x458]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x46c], edi
test edi, edi
je 0x40902e
lea esi, [ebp - 0x230]
call fcn.00406850
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov eax, esi
push eax
call fcn.0043ec25
add esp, 8
test eax, eax
jne 0x409028
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x468], ecx
mov esi, dword [ebp - 0x464]
jmp 0x40903f
mov esi, dword [ebp - 0x464]
lea edx, [ebp - 0x460]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408fd2
mov dword [ebp - 4], 0xfffffffe
call fcn.00409079
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret
Function at 0x4090a0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x489c78
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], 0xffffffff
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x409136
mov dword [ebp - 0x3c], 0x1c
lea eax, [ebp - 0x3c]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x409136
lea ecx, [ecx]
cmp dword [ebp - 0x30], edi
jne 0x409128
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x409120
mov dword [ebp - 4], 0xfffffffe
call fcn.0040915a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push str.EnableLUA
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
not eax
and eax, dword [esp]
add esp, 0xc
ret

Function at 0x409230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push str.fEnableSafeRunFlt
push str.SOFTWAREBkav
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x409277
lea eax, [esi + 1]
pop esi
add esp, 0xc
ret
cmp dword [esp + 4], esi
je 0x409282
mov esi, 1
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x409ef0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a510
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409f32
sub eax, esi
sar eax, 1
lea ecx, [eax - 1]
cmp ecx, 0x1ff
ja 0x40a0a3
add eax, eax
push eax
push edx
push str.DllName.dll
call fcn.00441730
add esp, 0xc
mov byte [0x4910c5], 0xc3
push 0x40
push 0x3000
push 0x59b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x409f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualAllocEx_error:__d
call fcn.00404c20
add esp, 8
jmp 0x40a0a3
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ecx
push 0x40
push 0x59b
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call ebx
test eax, eax
je 0x40a081
lea edx, [ebp - 0x28]
push edx
push 0x59b
push 0x4910a0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a070
push 0x59b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x40a070
push 0
push 0
push 0
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
je 0x40a029
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x20], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a030
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x59b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0x59b
push esi
push edi
call ebx
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x40a0a3
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a0c0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x489c10
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a224
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a110
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x40a224
mov esi, 0xfffffffe
mov dword [ebp - 4], esi
lea edi, [eax + eax + 2]
mov dword [ebp - 4], 1
push 0x47a678
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40a170
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0x3000
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x40a224
push 0
push edi
mov eax, dword [ebp + 8]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a202
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x40a202
push 0
push 0
push esi
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x40a1d5
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x40a224
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a240
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x489be8
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a282
sub eax, esi
sar eax, 1
lea ecx, [eax - 1]
cmp ecx, 0x1ff
ja 0x40a3cd
add eax, eax
push eax
push edx
push 0x490c81
call fcn.00441730
add esp, 0xc
mov byte [0x490b25], 0xc3
push 0x40
push 0x3000
push 0x59b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x40a3cd
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ecx
push 0x40
push 0x59b
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call ebx
test eax, eax
je 0x40a3ab
lea edx, [ebp - 0x28]
push edx
push 0x59b
push 0x490b00
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a39a
push 0x59b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x40a39a
push 0
push 0
push 0
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x40a357
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x20], 1
jmp 0x40a35e
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x59b
push esi
push edi
call ebx
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0x59b
push esi
push edi
call ebx
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x40a3cd
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a440
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x3c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x38], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
cmp edi, eax
je 0x40a465
cmp ebx, eax
jne 0x40a477
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x3c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push eax
push eax
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
je 0x40a49a
mov eax, dword [esp + 8]
test eax, eax
jne 0x40a4ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40a616
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
je 0x40a616
mov eax, dword [esp + 8]
test eax, eax
je 0x40a616
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40a4f2
push eax
mov eax, dword [esp + 0xc]
push eax
jmp 0x40a610
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xc]
push 1
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40a5fe
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebp, 4
push ebp
push ecx
mov dword [esp + 0x24], ebp
call esi
test eax, eax
je 0x40a5fe
cmp dword [esp + 0x14], 0x10
jne 0x40a5fe
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], ebp
push ebx
mov ebp, 2
push ebp
push eax
call esi
test eax, eax
jne 0x40a577
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 8]
push 0
push edx
jmp 0x40a610
push 0x42
push 0
push edi
call fcn.004416b0
xor esi, esi
add esp, 0xc
mov dword [esp + 0x10], 0x20
cmp dword [esp + 0x14], esi
jbe 0x40a5d0
movzx eax, byte [ebx + esi]
push eax
push 0x479788
lea ecx, [esp + 0x20]
push 0x14
push ecx
call fcn.0043ed50
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push 0x21
push edi
call fcn.0043e4d6
add esp, 0x20
cmp dword [esp + 0x10], ebp
jbe 0x40a5d0
sub dword [esp + 0x10], ebp
inc esi
cmp esi, dword [esp + 0x14]
jb 0x40a594
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x3c
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x40]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0043e4c7
add esp, 0x3c
ret
Function at 0x40ab70
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
test edi, edi
je 0x40abfc
cmp dword [edi + 4], 0
lea esi, [edi + 4]
jne 0x40abfc
cmp dword [edi], 0
jne 0x40abfc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push 0
push 0
push esi
call ebx
test eax, eax
je 0x40aba5
cmp dword [esi], 0
jne 0x40abbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40abbd
push 8
push 1
push 0
push 0
push esi
call ebx
mov eax, dword [esi]
pop ebx
test eax, eax
je 0x40abfc
push edi
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40abe5
cmp dword [edi], 0
je 0x40abe5
mov eax, 1
pop esi
ret
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov dword [edi], 0
xor eax, eax
pop esi
ret