joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10101d4
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101f104]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
push ebx
push esi
push edi
mov eax, dword [section..data]
mov esi, section..data
mov edi, 0x10029d4
cmp eax, esi
je 0x101021a
test byte [eax + 0x1c], 2
je 0x101021a
push edi
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100620a
push 0x1002b38
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100701c
mov ecx, eax
mov dword [ebp - 0x210], ecx
test ecx, ecx
jge 0x1010280
mov eax, dword [section..data]
cmp eax, esi
je 0x1010261
test byte [eax + 0x1c], 4
je 0x1010261
push ecx
push edi
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a3af
mov ecx, dword [ebp - 0x210]
mov eax, ecx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1010275
and ecx, 0xffff
mov dword [ebp - 0x210], ecx
jmp 0x101035a
push 0x1002b24
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100fba5
mov ebx, eax
xor eax, eax
cmp ebx, eax
jge 0x10102d7
mov eax, dword [section..data]
cmp eax, esi
je 0x10102b8
test byte [eax + 0x1c], 4
je 0x10102b8
push ebx
push edi
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a3af
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x10102cc
and ebx, 0xffff
mov dword [ebp - 0x210], ebx
jmp 0x101035a
push eax
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0x20019
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
mov ebx, SysReAllocStringLen
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x101031f
mov eax, dword [section..data]
cmp eax, esi
je 0x101035a
test byte [eax + 0x1c], 4
je 0x101035a
push dword [ebp - 0x210]
push edi
push 0x29
jmp 0x101034f
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x101035a
mov eax, dword [section..data]
cmp eax, esi
je 0x101035a
test byte [eax + 0x1c], 4
je 0x101035a
push dword [ebp - 0x210]
push edi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a3af
cmp dword [ebp - 0x214], 0
pop edi
pop esi
pop ebx
je 0x1010372
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
call fcn.01011e21
leave
ret
Function at 0x101170e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101f104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0101164f
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1011781
cmp dword [ebp - 0x94], 5
jb 0x10117a2
jmp 0x101179e
cmp dword [ebp - 0x88], 1
jne 0x10117a2
cmp dword [ebp - 0x94], 4
ja 0x101179e
jne 0x10117a2
cmp dword [ebp - 0x90], 0
jbe 0x10117a2
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002ea0
call fcn.01006508
test eax, eax
jge 0x10117c3
mov byte [0x101f464], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01011e21
leave
ret

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

Disassembly:
cmp dword [0x101f5f0], 0
push esi
jne 0x101197e
call fcn.01011875
test eax, eax
je 0x10119c1
mov eax, dword [0x101f5f0]
cmp eax, 1
jne 0x101199f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10119c1
pop esi
ret
push eax
call dword [0x101f5f8]
test eax, eax
jne 0x1011a09
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10119c5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x101f5f0]
call dword [0x101f5f8]
mov edi, eax
test edi, edi
je 0x10119ea
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1011a06
mov edi, esi
add esi, 0xff0
push edi
push dword [0x101f5f0]
call dword [0x101f5f4]
add edi, 0x10
cmp edi, esi
jb 0x10119f2
mov eax, edi
pop edi
pop esi
ret
jmp 0x101196b
Function at 0x1011d23
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x101cf00
call fcn.01011fb0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x101fde0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1011ade
cmp eax, esi
jne 0x1011ad1
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1011ae1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1011ab8
xor esi, esi
inc esi
mov eax, dword [0x101fddc]
cmp eax, esi
jne 0x1011af4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1011b23
mov eax, dword [0x101fddc]
test eax, eax
jne 0x1011b1d
mov dword [0x101fddc], esi
push 0x10013d0
push 0x10013c4
call fcn.01011a1a
pop ecx
pop ecx
test eax, eax
je 0x1011b23
jmp 0x1011c47
mov dword [0x101f61c], esi
mov eax, dword [0x101fddc]
cmp eax, esi
jne 0x1011b47
push 0x10013c0
push 0x10013a8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101fddc], 2
cmp dword [ebp - 0x20], ebx
jne 0x1011b54
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101fdf0], ebx
je 0x1011b75
push 0x101fdf0
call fcn.01012b69
pop ecx
test eax, eax
je 0x1011b75
push ebx
push 2
push ebx
call dword [0x101fdf0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1011c47
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1011bdf
cmp cx, bx
je 0x1011b9a
cmp dword [ebp - 0x1c], ebx
jne 0x1011bdf
movzx ecx, word [eax]
cmp cx, bx
je 0x1011baf
cmp cx, 0x20
ja 0x1011baf
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1011b9a
test byte [ebp - 0x40], 1
je 0x1011bbb
movzx ecx, word [ebp - 0x3c]
jmp 0x1011bbe
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x101f618], eax
cmp dword [0x101f60c], ebx
jne 0x1011c24
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1011bf0
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1011b84
cmp dword [0x101f61c], ebx
jne 0x1011c32
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101f618]
jmp 0x1011c53
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01011ff5
ret
call fcn.01012cb6
jmp 0x1011a7b
Function at 0x101a0e9
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
push ebx
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push dword [ebp + 0xc]
mov ebx, 0x80004005
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
jne 0x101a155
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a216
test byte [eax + 0x1c], 4
je 0x101a216
push ebx
push 0x10055d4
push 0x1005570
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005dcd
jmp 0x101a216
mov eax, dword [ebp - 4]
push edi
add eax, eax
push eax
call fcn.0101b2e0
mov edi, eax
test edi, edi
jne 0x101a197
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a190
test byte [eax + 0x1c], 4
je 0x101a190
push 0x10055c0
push 0x1005570
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005d60
mov ebx, 0x8007000e
jmp 0x101a20b
lea eax, [ebp - 4]
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101a1d6
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a20b
test byte [eax + 0x1c], 4
je 0x101a20b
push ebx
push 0x10055d4
push 0x1005570
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005dcd
jmp 0x101a20b
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp - 4], ebx
jbe 0x101a1fc
movzx eax, word [edi + ecx*2]
cmp ax, 0xd
je 0x101a1ef
cmp ax, 0xa
jne 0x101a1f6
push 0x20
pop eax
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x101a1df
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], ecx
test edi, edi
je 0x101a215
push edi
call fcn.0101b2f8
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x101a223
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor esi, esi
push esi
push esi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push dword [ebp + 8]
mov dword [ebp - 8], 0x80004005
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x101a297
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a33b
test byte [eax + 0x1c], 4
je 0x101a33b
push 0x80004005
push 0x1005620
push 0x1005570
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005dcd
jmp 0x101a33b
push dword [ebp - 4]
call fcn.0101b2e0
mov dword [ebp + 0xc], eax
cmp eax, esi
jne 0x101a2d8
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2cf
test byte [eax + 0x1c], 4
je 0x101a2cf
push 0x100560c
push 0x1005570
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005d60
mov dword [ebp - 8], 0x8007000e
jmp 0x101a32e
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a31b
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a32e
test byte [eax + 0x1c], 4
je 0x101a32e
push 0x80004005
push 0x1005620
push 0x1005570
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005dcd
jmp 0x101a32e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], esi
mov dword [ecx], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x101a33b
push dword [ebp + 0xc]
call fcn.0101b2f8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101a426
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101f104]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x228], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], ecx
cmp ebx, ecx
je 0x101a467
mov dword [ebx], ecx
cmp dword [ebp + 0x24], ecx
jne 0x101a484
push eax
push 0x109
lea eax, [ebp - 0x218]
push eax
call fcn.0101a3db
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x21c]
push ecx
push 0x20019
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101a4d9
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x101a59e
test byte [ecx + 0x1c], 2
je 0x101a59e
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1005678
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01005dcd
jmp 0x101a59e
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x1005678
test eax, eax
je 0x101a53a
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x101a56b
test byte [ecx + 0x1c], 2
je 0x101a56b
push eax
push esi
push dword [ebp - 0x230]
push edi
push 0x16
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101508d
jmp 0x101a56b
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
cmp ecx, dword [ebp + 0x1c]
je 0x101a55b
cmp ecx, 3
jne 0x101a56b
cmp dword [ebp + 0x1c], 4
jne 0x101a56b
cmp eax, 4
jne 0x101a56b
test ebx, ebx
je 0x101a561
mov dword [ebx], eax
mov dword [ebp - 0x220], 1
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x101a59e
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x101a59e
test byte [ecx + 0x1c], 4
je 0x101a59e
push eax
push edi
push 0x17
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101a3af
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011e21
leave
ret 0x20
Function at 0x101a67f
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
je 0x101a6f6
cmp dword [ebp + 0xc], edi
je 0x101a6f6
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x101a6f6
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
lea eax, [ebp - 8]
push eax
push edi
push 1
push dword [ebp + 0xc]
mov dword [ebx], edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x101a707
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0101b2e0
mov edi, eax
test edi, edi
jne 0x101a6db
mov dword [ebp - 4], 0x8007000e
jmp 0x101a6fd
lea eax, [ebp - 8]
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x101a6fd
and dword [ebp - 4], 0
mov dword [ebx], edi
jmp 0x101a707
mov dword [ebp - 4], 0x80070057
test edi, edi
je 0x101a707
push edi
call fcn.0101b2f8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x101a716
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x101a7b3
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x101a7b3
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x101a7b3
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push 0xfffffffffffffffe
push dword [ebp + 8]
mov dword [ebx], esi
call fcn.0101a34a
mov edi, eax
cmp edi, esi
jl 0x101a7c6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
inc eax
inc eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x101a7b8
mov edi, dword [ebp - 0xc]
push edi
call fcn.0101b2e0
mov esi, eax
test esi, esi
jne 0x101a799
mov edi, 0x8007000e
jmp 0x101a7af
push edi
push dword [ebp - 8]
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
add esp, 0xc
mov dword [ebx], edi
xor edi, edi
xor esi, esi
jmp 0x101a7b8
mov edi, 0x80070057
cmp dword [ebp - 8], esi
je 0x101a7c6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101b64a
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x101f44c]
push ebx
push esi
mov esi, 0x80004005
mov ebx, 0x1005808
cmp eax, 1
je 0x101b669
cmp eax, 3
jne 0x101b70b
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [0x101fc94], eax
call esi
push 0x101fcc0
mov dword [0x101fc98], eax
call fcn.0101b3ed
mov esi, eax
test esi, esi
jge 0x101b6b5
mov eax, dword [section..data]
cmp eax, section..data
je 0x101b705
test byte [eax + 0x1c], 4
je 0x101b705
push esi
push 0x10059b8
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005dcd
jmp 0x101b700
push 0x101fcb4
call fcn.0101b73a
mov esi, eax
test esi, esi
jge 0x101b6e2
mov eax, dword [section..data]
cmp eax, section..data
je 0x101b705
test byte [eax + 0x1c], 4
je 0x101b705
push esi
push 0x1005970
push ebx
push 0xb
jmp 0x101b6a8
push edi
xor eax, eax
mov edi, 0x101fc9c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
mov dword [0x101fca8], esi
mov dword [0x101f44c], 2
pop edi
mov eax, dword [section..data]
test esi, esi
jge 0x101b730
jmp 0x101b710
mov eax, dword [section..data]
cmp eax, section..data
je 0x101b72b
test byte [eax + 0x1c], 4
je 0x101b72b
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100620a
call fcn.0101b50e
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40158a
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401c7d
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x54
push ebx
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
je 0x401df9
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0x448ba0
lea eax, [ebp - 8]
call fcn.004045e3
lea edi, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040a16d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
push 0x448ba8
mov eax, edi
push eax
call fcn.00402192
mov edi, dword [ebp - 4]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x401d05
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
jmp 0x401df4
mov eax, dword [0x456f60]
mov ecx, 0x456f60
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 8]
call fcn.0040201e
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
cmp byte [esi + 9], bl
jne 0x401d30
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 8]
push dword [ebp - 8]
push dword [esi]
push dword [esi]
push dword [esi]
push eax
lea eax, [ebp - 0xc]
call fcn.00402338
mov edi, dword [ebp - 0xc]
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
lea eax, [edi - 0x10]
call fcn.004046b1
cmp dword [ebp - 0x18], ebx
je 0x401d7e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
lea edi, [ebp - 0xc]
call fcn.00409e3e
cmp byte [esi + 8], bl
jne 0x401da5
mov edi, dword [ebp - 0xc]
push ebx
push edi
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401de6
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004302b0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
add esp, 0xc
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0x500
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [edi - 0x10]
call fcn.004046b1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.004046b1
mov eax, dword [esi]
sub eax, 0x10
call fcn.004046b1
pop edi
pop ebx
leave
ret
Function at 0x403077
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x403085
push 0xd
pop eax
jmp 0x4030b8
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40308c
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4034d9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.004034a6
mov ebx, eax
cmp ebx, esi
je 0x403541
cmp dword [ebp - 0x214], esi
je 0x40353a
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4035dc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403569
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004034d9
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x4035ed
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x403549
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x4035b4
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x4035da
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043028b
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x403601
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4035dc