joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dd40
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000e130
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1001789c], 0
jne 0x1000dd7d
cmp dword [0x10017898], 0
je 0x1000dd7d
mov eax, dword [0x10017898]
mov dword [0x1001789c], eax
cmp dword [0x1001789c], 0
je 0x1000ddfa
mov ecx, dword [0x1001789c]
cmp dword [ecx + 8], 0
je 0x1000ddfa
mov edx, dword [0x1001789c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000ddfa
mov ecx, dword [0x1001789c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000ddfa
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000ddc9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000ddd0
xor eax, eax
jmp 0x1000df19
mov ecx, dword [0x1001789c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000df19
mov edx, dword [0x10017898]
mov dword [0x1001789c], edx
jmp 0x1000de16
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 4]
mov dword [0x1001789c], ecx
cmp dword [0x1001789c], 0
je 0x1000de56
cmp dword [0x1001789c], 0
je 0x1000de54
mov edx, dword [0x1001789c]
cmp dword [edx + 8], 0
je 0x1000de54
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000de54
mov edx, dword [0x1001789c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000de54
jmp 0x1000ddae
jmp 0x1000de08
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000df20
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000df17
mov eax, dword [ebp - 0x18]
mov dword [0x1001789c], eax
mov ecx, dword [0x1001789c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1001789c]
mov dword [edx + 8], 0
mov eax, dword [0x1001789c]
mov ecx, dword [0x10017898]
mov dword [eax + 4], ecx
mov edx, dword [0x1001789c]
mov dword [0x10017898], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1001789c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000dee7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000df07
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000dede
mov eax, dword [0x1001789c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000ddae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000ec60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10017898]
mov dword [ebp - 4], eax
jmp 0x1000ec79
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000eca0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000ec9e
call sub.KERNEL32.dll_GetLastError
jmp 0x1000eca2
jmp 0x1000ec70
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f140
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100178a8], eax
je 0x1000f15d
mov eax, 0x10dd
jmp 0x1000f240
mov eax, dword [0x100178b8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000f1dc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000f1b8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000f1b8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000e1c0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000cbee
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000f165
mov dword [0x100178b8], 0
call fcn.1000eaa0
mov ecx, dword [0x100178b4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000f22a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000cbee
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000f1f4
mov dword [0x100178b4], 0
mov dword [0x100178a8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000f720
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100178ac], 0
je 0x1000f739
mov eax, dword [0x100178ac]
jmp 0x1000f7d8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000f74a
xor eax, eax
jmp 0x1000f7d8
push 8
call fcn.1000cbbe
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000f7a2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000f78b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000cbee
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100178ac], eax
mov dword [0x100178b0], 0
mov eax, dword [ebp - 8]
jmp 0x1000f7d8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000f7ba
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000f76a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100178b4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100178b4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401db0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401dfb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401df4
test esi, esi
je 0x401df4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401dd0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fe0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402030
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402108
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40206e
cmp eax, 4
jne 0x402090
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40207e
cmp edx, 4
je 0x40207e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401fe0
Function at 0x45a8e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45aa0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x64
call fcn.00402730
mov ebx, eax
push ebx
push 0x64
call sub.kernel32.dll_GetTempPathA
mov eax, 0x49ac08
mov edx, ebx
call fcn.00404580
mov eax, ebx
call fcn.00402750
xor eax, eax
push ebp
push 0x45a9c7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
lea edx, [ebp - 8]
mov eax, dword [0x499df0]
mov eax, dword [eax]
call fcn.004599e0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4130c0]
call fcn.00416f80
mov dword [0x49ac00], eax
push 0
push 0x50
mov eax, dword [0x49ac00]
call fcn.00416aec
lea edx, [ebp - 4]
mov ecx, 4
mov eax, dword [0x49ac00]
call fcn.00416cf8
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov eax, dword [0x49ac00]
call fcn.00416aec
lea edx, [ebp - 4]
mov ecx, 4
mov eax, dword [0x49ac00]
call fcn.00416cf8
cmp dword [ebp - 4], 0x22322
sete byte [0x49ac04]
cmp dword [ebp - 4], 0x111111
jne 0x45a9bb
mov bl, 1
jmp 0x45a9bd
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a9f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aa11
lea eax, [ebp - 8]
call fcn.00404388
ret

Function at 0x4616c4
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x49ae10], 0
je 0x4616dd
mov eax, 6
jmp 0x461799
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x461794
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x461749
dec ecx
jne 0x46178d
cmp eax, 4
jg 0x461717
mov eax, 4
jmp 0x461799
cmp eax, 5
jne 0x461727
test edx, edx
jne 0x461727
mov eax, 5
jmp 0x461799
cmp eax, 5
jne 0x461736
dec edx
jne 0x461736
mov eax, 6
jmp 0x461799
cmp eax, 5
jle 0x461742
mov eax, 7
jmp 0x461799
mov eax, 0xf423f
jmp 0x461799
cmp eax, 4
jne 0x461756
test edx, edx
jne 0x461756
xor eax, eax
jmp 0x461799
cmp eax, 4
jne 0x461775
cmp edx, 0xa
jne 0x461775
cmp byte [esp + 0x15], 0x41
jne 0x46176e
mov eax, 2
jmp 0x461799
mov eax, 1
jmp 0x461799
cmp eax, 4
jne 0x461786
cmp edx, 0x5a
jne 0x461786
mov eax, 3
jmp 0x461799
mov eax, 0xf423f
jmp 0x461799
mov eax, 0xf423f
jmp 0x461799
mov eax, 0xf423f
add esp, 0x94
ret

Function at 0x479f0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
cmp ebx, 0xff
jle 0x479f2e
push ebx
call sub.user32.dll_GetAsyncKeyState
movzx eax, ax
shr eax, 0xf
and eax, 1
cmp eax, 1
sete al
pop ebx
ret
cmp byte [ebx + 0x49afa8], 0
jne 0x479f6e
push ebx
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
mov edx, eax
and edx, 1
cmp edx, 1
jne 0x479f53
mov byte [ebx + 0x49afa8], 1
jmp 0x479f6e
shr eax, 0xf
and eax, 1
cmp eax, 1
jne 0x479f67
mov byte [ebx + 0x49afa8], 1
jmp 0x479f6e
mov byte [ebx + 0x49afa8], 2
cmp byte [ebx + 0x49afa8], 1
sete al
pop ebx
ret
Function at 0x479f7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov eax, 0x49afa8
mov edx, pe_nt_image_headers32
call fcn.004070e0
xor ebx, ebx
push ebx
call sub.user32.dll_GetAsyncKeyState
inc ebx
cmp ebx, 0x100
jne 0x479f8e
pop ebx
ret

Function at 0x47d188
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47d1b6
mov eax, ebx
call fcn.0047dc3c
cmp dword [ebx + 0x40], 0
je 0x47d1af
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47d227
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47d219
cmp dword [ebx + 8], 0
je 0x47d1d8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47d1ea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47d219
cmp dword [ebx + 8], 0
je 0x47d1cb
cmp eax, 3
je 0x47d1fd
dec eax
jne 0x47d1cb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47d1cb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47d1cb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47d245
cmp dword [ebx + 0x14], 0xcc
je 0x47d245
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047d250
pop ebx
ret
Function at 0x401a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a75
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ab4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401ab0
lea ebx, [ebx]
cmp esi, edx
jae 0x401ab4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401aa0
cmp esi, edx
jb 0x401ab9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x403d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004106ee

Function at 0x405120
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5a379c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x12c], 0
call fcn.005233c0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4051af
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4051a8
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0052f8c8
add esp, 8
test eax, eax
je 0x4051c1
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405183
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521d5b
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
pop edi
xor ecx, ebp
pop esi
call fcn.00521d5b
mov esp, ebp
pop ebp
ret
Function at 0x4058d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5a379c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.360tray.exe
mov dword [ebp - 0x14], 0
call fcn.00405120
add esp, 4
test eax, eax
je 0x4059b9
push esi
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4059a8
lea eax, [ebp - 0x14]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4059a1
push 0
push 0
push 0
push 0x4054c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
movq qword [ebp - 0xf], xmm0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
mov dword [ebp - 0x18], 0
push eax
mov word [ebp - 0x10], 0x101
mov byte [ebp - 9], 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x19
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x405998
call fcn.00405e50
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521d5b
mov esp, ebp
pop ebp
ret
call fcn.00405e50
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00521d5b
mov esp, ebp
pop ebp
ret
Function at 0x40a7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5a379c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a828
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00521d5b
mov esp, ebp
pop ebp
ret

Function at 0x40a860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a379c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a975
lea eax, [ebp - 0x20c]
push eax
push str..htm
push closesocket
call fcn.0040a7b0
add esp, 0xc
test eax, eax
jne 0x40a973
push str._shellopencommand
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push eax
push eax
push closesocket
call fcn.0040a7b0
add esp, 0xc
test eax, eax
jne 0x40a973
lea eax, [ebp - 0x20c]
push str.__1_
push eax
call fcn.0040b1d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a934
lea eax, [ebp - 0x20c]
push 0x554cc0
push eax
call fcn.0040b1d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a934
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x20d]
jmp 0x40a937
mov byte [esi], 0
push 0x552db4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00401bd0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521d5b
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00521d5b
mov esp, ebp
pop ebp
ret
Function at 0x40b220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54181d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a379c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea ecx, [ebx + 4]
mov dword [ebx], vtable.CMailMsg.0
call fcn.00407a60
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0
call fcn.00407a60
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 1
call fcn.00407a60
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 2
call fcn.00407a60
lea ecx, [ebx + 0x24]
mov byte [ebp - 4], 3
call fcn.00407a60
lea ecx, [ebx + 0x2c]
call fcn.00401170
lea ecx, [ebx + 0x30]
call fcn.00401170
push 0x552db0
lea ecx, [ebx + 0x2c]
mov byte [ebp - 4], 6
call fcn.00401270
push 0x552db0
lea ecx, [ebx + 0x30]
call fcn.00401270
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, ebx
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 0x40dc70
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541969
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5a379c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0
call fcn.00401170
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x34]
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x14]
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x18]
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x24]
shr eax, 0xa
push eax
shr ecx, 0xa
push ecx
push dword [ebp - 0x2c]
push str.Memory_Used__lu____Total_Physical_Memory__luKB__Physical_Memory_Available__luKB__Total_Virtual_Memory__luKB__Available_Virtual_Memory__luKB__Working_Set_Min_:__luKB_Max_:__luKB_._r_n
push esi
call fcn.004014c0
add esp, 0x24
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521d5b
mov esp, ebp
pop ebp
ret 4