joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024d1
Capabilities:
Create service
Persist via windows service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x100a068]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x204]
push eax
xor edi, edi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1002510
call esi
mov ebx, eax
cmp ebx, edi
jne 0x1002588
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 0x208], eax
jne 0x100252f
call esi
mov ebx, eax
cmp ebx, edi
jne 0x1002574
push edi
push edi
push dword [0x100a048]
lea eax, [ebp - 0x204]
push edi
push edi
push eax
push 1
push 2
push 0x10
push 0xf01ff
push dword [0x100a044]
push dword [0x100a040]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, edi
jne 0x100256d
call esi
mov ebx, eax
jmp 0x1002574
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x208], edi
je 0x1002588
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.01006e5a
leave
ret
Function at 0x1006e5a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a068]
jne 0x1006e6b
test ecx, 0xffff0000
jne 0x1006e6b
ret
jmp fcn.01006e75

Function at 0x1006f5a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001c30
call fcn.010070e4
cmp word [0x1000000], 0x5a4d
jne 0x1006f99
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1006f99
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1006fb2
cmp ecx, 0x20b
je 0x1006f9f
and dword [ebp - 0x1c], 0
jmp 0x1006fc9
cmp dword [eax + 0x1000084], 0xe
jbe 0x1006f99
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1006fc3
cmp dword [eax + 0x1000074], 0xe
jbe 0x1006f99
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100a6d8], 0xffffffff
or dword [0x100a6dc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100a68c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100a688]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100a6d4], eax
call fcn.010071e4
cmp dword [0x100a070], 0
jne 0x1007026
push fcn.010071e4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010071cd
push 0x1001280
push 0x100127c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100a684]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100a680]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1001278
push 0x100126c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010065de
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x100709e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10070d3
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100711f
ret
Function at 0x1008626
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push 0x14
push 0x1002038
call fcn.010070e4
xor ebx, ebx
cmp dword [0x100a1b0], ebx
jne 0x100866f
mov dword [ebp - 4], ebx
push 0x100a1b4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x100a1b0], 1
or dword [ebp - 4], 0xffffffff
jmp 0x1008667
cmp dword [0x100a1b0], ebx
je 0x10086a7
cmp dword [0x100a690], ebx
jne 0x100868b
push 0x1002028
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x100a690], eax
cmp eax, ebx
je 0x10086a7
cmp dword [0x100a694], ebx
jne 0x10086b3
push 0x100201c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x100a694], eax
cmp eax, ebx
jne 0x10086b3
call fcn.01007ca6
xor eax, eax
jmp 0x100876c
cmp dword [0x100a6a4], ebx
jne 0x10086dc
push 0x100a6a4
push 0x1001fe8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [0x100a6a4], ebx
je 0x1008767
xor esi, esi
push 4
pop edi
mov eax, dword [esi + 0x100a098]
cmp eax, ebx
je 0x100872b
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 0x100a094]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push dword [0x100a6a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100872b
mov dword [ebp - 0x20], ebx
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push dword [esi + 0x100a098]
push dword [0x100a6a4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 0xc
cmp esi, 0x120
jb 0x10086e1
call fcn.010084c3
mov eax, dword [0x100a6a8]
cmp eax, ebx
jne 0x1008754
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x100a6a8], eax
push 1
push eax
push 7
push 1
push dword [0x100a6a4]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov eax, dword [0x100a6a8]
call fcn.0100711f
ret
Function at 0x404440
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x834
cmp dword [0x5e8580], 0x400
push ebx
push esi
push edi
jne 0x4044ec
push 0
lea eax, [esp + 0x44]
push eax
push 0x403d9c
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0
call fcn.004046e9
add esp, 4
push 0
push 0
call fcn.00404bfc
push 0
push 0
call fcn.004049ac
push 0
call fcn.00404e1c
add esp, 0x14
push 0
push 0
push 0
call fcn.00404d33
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.004045a0
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004045c0
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004048c0
fstp st(0)
push 0
call fcn.00404e90
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x97f
jge 0x404516
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
call edi
cmp esi, 0x160d5c2
jg 0x404531
inc esi
cmp esi, 0x33cd5b9
jl 0x404500
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
nop
call edi
call ebx
cmp esi, 0x12e8236
jg 0x404555
inc esi
cmp esi, 0x2ff8d
jl 0x404540
mov ecx, dword [0x444c5c]
mov dword [0x5e8580], ecx
call fcn.00404130
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x2ec37
mov ebx, 0x51f
cmp dword [0x5e8580], ebx
jne 0x404587
lea edx, [esp + 0x40]
push edx
push 0
call esi
dec edi
jne 0x404576
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4099f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441420]
jne 0x4099fd
repz ret
jmp fcn.0040e37c
Function at 0x40b03c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040872d
and dword [ebp - 0x14], 0
cmp dword [0x4594bc], 0
mov dword [ebp - 0x18], eax
jne 0x40b0ef
push 0x402c34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b197
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c28
push ebx
call edi
test eax, eax
je 0x40b197
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402c18
push ebx
mov dword [0x4594bc], eax
call edi
push eax
call esi
push 0x402c04
push ebx
mov dword [0x4594c0], eax
call edi
push eax
call esi
push 0x402be8
push ebx
mov dword [0x4594c4], eax
call edi
push eax
call esi
mov dword [0x4594cc], eax
test eax, eax
je 0x40b0ef
push 0x402bd0
push ebx
call edi
push eax
call esi
mov dword [0x4594c8], eax
mov eax, dword [0x4594c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b148
cmp dword [0x4594cc], ecx
je 0x40b148
push eax
call esi
push dword [0x4594cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b148
test ebx, ebx
je 0x40b148
call edi
test eax, eax
je 0x40b13f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b13f
test byte [ebp - 8], 1
jne 0x40b148
or dword [ebp + 0x10], 0x200000
jmp 0x40b17b
mov eax, dword [0x4594c0]
cmp eax, dword [ebp - 0x18]
je 0x40b17b
push eax
call esi
test eax, eax
je 0x40b17b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b17b
mov eax, dword [0x4594c4]
cmp eax, dword [ebp - 0x18]
je 0x40b17b
push eax
call esi
test eax, eax
je 0x40b17b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4594bc]
call esi
test eax, eax
je 0x40b197
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b199
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004099f3
leave
ret
Function at 0x401377
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x1c
mov eax, 0x46aa87
call fcn.00463fe0
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp + 8]
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401470
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], esi
jne 0x4013e6
lea eax, [ebp - 0x14]
push eax
push esi
mov eax, edi
push eax
push 0x40119f
push esi
push esi
mov dword [ebp - 0x10], esi
call fcn.00447992
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], esi
je 0x401456
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401436
call fcn.004012ee
test al, al
je 0x40140e
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4013e1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
xor al, al
call fcn.0046407f
ret
cmp eax, esi
jne 0x401450
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov al, 1
jmp 0x401430

Function at 0x40208d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4020a4
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4020d9
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4020d5
cmp edi, eax
jae 0x4020d9
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4020c7
cmp edi, eax
jb 0x4020dd
xor eax, eax
jmp 0x4020e6
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4026c3
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x468f9f
call fcn.00463fe0
and dword [ebp - 0x10], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402730
cmp eax, esi
jge 0x402730
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004021f0
and dword [ebp - 4], 0
push 0x46ed0c
push edi
mov ecx, eax
call fcn.00405274
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017c3
jmp 0x40273b
push 0x46f164
push edi
call fcn.004021f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00447882
add ebp, 0x20c
leave
ret

Function at 0x4027bd
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x46782d
call fcn.00463fe0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4027f0
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
call fcn.0046407f
ret
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ebx, 0x46ed0c
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040516b
inc eax
mov ecx, eax
jmp 0x402853
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.00401c28
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401470
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov edi, dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esi + 1]
push ebx
lea esi, [ebp + 8]
call fcn.0040516b
mov esi, eax
cmp esi, 0xffffffff
jne 0x40281c
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
neg esi
call fcn.004017c3
jmp 0x4027dd

Function at 0x402e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.C:Program_Files
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e85
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x403523
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x1c
mov eax, 0x468f4c
call fcn.00463fe0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004021f0
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004021f0
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.004021f0
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.004021f0
lea eax, [ebp - 0x10]
push eax
push 0x46c5ac
push 1
push ebx
push 0x46c5cc
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoCreateInstance]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x28], eax
call fcn.004034bd
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x18]
call fcn.004034bd
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
cmp dword [ebp - 0x28], ebx
jl 0x403688
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x46c5dc
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x40367b
cmp dword [ebp - 0x18], ebx
je 0x40367b
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402d0f
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], ebx
je 0x40364c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx - 0xc], ebx
je 0x40365e
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
cmp esi, ebx
jl 0x403672
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jge 0x4036bc
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, ebx
call fcn.0046407f
ret
xor ebx, ebx
inc ebx
jmp 0x403688
Function at 0x403d89
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
mov esi, dword [ebp + 0x1a4]
push edi
mov edi, dword [ebp + 0x1a8]
xor ebx, ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
cmp dword [0x4853fc], ebx
je 0x403de9
push str.Advapi32.dll
mov dword [0x4853fc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x403de9
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48878c], eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp + 0x1ac]
or eax, 8
push eax
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x403e68
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x403e2a
push dword [ebp + 0x1ac]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00403d89
add esp, 0xc
test eax, eax
jne 0x403e39
push edi
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x403e11
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x48878c]
cmp eax, ebx
je 0x403e5c
push ebx
push dword [ebp + 0x1ac]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call eax
jmp 0x403e68
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447882
add ebp, 0x19c
leave
ret

Function at 0x4042c8
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x468e69
call fcn.00464049
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4042e8
mov ecx, ebx
call fcn.00436c45
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004015e7
add eax, 0x10
mov dword [ebp - 0x264], eax
push 0x5c
push 0x2f
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00404f87
lea esi, [ebp - 0x264]
call fcn.0040519c
mov ecx, eax
inc ecx
lea edx, [ebp - 0x268]
mov eax, esi
call fcn.00401c28
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00401470
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.004017c3
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4043ce
test byte [ebp - 0x260], 0x10
jne 0x4043b5
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x264]
call fcn.00405274
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [ebx + 4]
mov eax, dword [eax]
push eax
mov edi, ebx
call fcn.004053e2
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40439e
mov dword [ecx], eax
jmp 0x4043a0
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.004017c3
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40435e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
call fcn.00464093
ret
Function at 0x404455
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x468f9f
call fcn.00463fe0
and dword [ebp - 0x10], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
jae 0x4044be
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004021f0
and dword [ebp - 4], 0
push 0x46ed0c
push edi
mov ecx, eax
call fcn.00405274
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017c3
jmp 0x4044c9
push 0x46f164
push edi
call fcn.004021f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00447882
add ebp, 0x20c
leave
ret
Function at 0x40477a
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x469d8e
call fcn.00463fe0
mov dword [ebp - 4], 2
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push 0x46ef60
call fcn.00402523
pop ecx
pop ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x46ed0c
push eax
call fcn.004021f0
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x20], esp
push str.temp.lnk
push eax
call fcn.004021f0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x214]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.004015e7
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040288c
mov byte [ebp - 4], 5
push 0x46f164
push dword [ebp + 0x21c]
push dword [ebp + 0x218]
push dword [ebp - 0x10]
call fcn.004036c1
add esp, 0x20
test eax, eax
jne 0x40488a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x214]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x21c]
add eax, 0xfffffff0
call fcn.004017c3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00447882
add ebp, 0x20c
leave
ret
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4048e1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x214]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x21c]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
jmp 0x404867
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004021f0
lea ecx, [ebp - 0x14]
push str.explorer.exe
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00405274
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004017c3
push 5
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
cmp esi, 0x20
jle 0x4048a6
xor esi, esi
inc esi
jmp 0x4048a8