joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10083980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100d0350]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ebx, ecx
mov ecx, dword [ebp + 8]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x10083aae
lea edx, [ebp - 0x414]
push edx
push str..htm
push SysReAllocStringLen
mov ecx, ebx
call fcn.10083730
test eax, eax
jne 0x10083aae
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._shellopencommand
lea eax, [ebp - 0x414]
push eax
call edi
lea ecx, [ebp - 0x414]
push ecx
mov edx, ecx
push edx
push SysReAllocStringLen
mov ecx, ebx
call fcn.10083730
test eax, eax
jne 0x10083aae
lea eax, [ebp - 0x414]
push str.__1_
push eax
call dword [sym.imp.MSVCR71.dll_wcsstr]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10083a5a
lea ecx, [ebp - 0x414]
push 0x100bb5b8
push ecx
call dword [sym.imp.MSVCR71.dll_wcsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10083a5a
lea edx, [ebp - 0x414]
push edx
call ebx
lea esi, [ebp + eax*2 - 0x416]
jmp 0x10083a5f
mov word [esi], 0
push 0x100ad754
push esi
call edi
mov eax, dword [ebp + 8]
push eax
push esi
call edi
call dword [0x100cf100]
lea ecx, [ebp - 0x414]
push ecx
mov edi, eax
call ebx
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.1007bf80
mov eax, esp
push edi
push esi
lea edx, [ebp - 0x414]
push edx
push eax
call fcn.100725d0
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x10083ab0
mov eax, esi
lea esp, [ebp - 0x420]
mov ecx, dword [ebp - 4]
call fcn.1007c3d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10089610
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100a77d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov edi, dword [eax + 0xc]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0x100be564
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
jne 0x100896bc
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x10089694
movzx edx, word [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push edx
push edi
mov dword [esi], 0x100ad490
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipCreateBitmapFromResource
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
jmp 0x10089696
xor esi, esi
mov ecx, dword [esp + 0x2c]
mov dword [ecx], esi
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebx
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
movzx edx, word [esp + 0x28]
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x100896f9
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100896db
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [esp + 0x14]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x1008977b
lea edx, [esp + 0x10]
push edx
push edi
mov dword [esi], 0x100ad490
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
jmp 0x1008977d
xor esi, esi
mov ecx, dword [esp + 0x30]
push ebx
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x18]
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x1008aca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100a78c1
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x40]
push esi
xor esi, esi
cmp ebx, esi
jne 0x1008acde
mov eax, dword [esp + 0x3c]
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push edi
push esi
push esi
push esi
push 0x100be5c4
call dword [sym.imp.GDI32.dll_CreateDCW]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], esi
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
push edi
mov dword [esp + 0x3c], esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x44]
push edx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
push 0x100abfb0
push 0x100be5c0
lea ecx, [esp + 0x50]
mov byte [esp + 0x40], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
push 0x100abfb0
push 0x100bb600
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_CHtmlView::GetLeft]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x30]
call fcn.10089c80
fld dword [esp + 0x28]
call fcn.1007c094
fld dword [esp + 0x2c]
mov edi, eax
call fcn.1007c094
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov edx, dword [esp + 0x18]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x1008c2c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100a79bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
mov eax, dword [0x100d0350]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x208], eax
mov dword [esp + 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x100be76c
mov dword [esp + 0x214], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
lea ebx, [esi + 0x34]
mov dword [ebx + 4], edi
mov dword [ebx], 0x100ae228
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0x50]
mov byte [esp + 0x214], 4
call sub.MFC71U.DLL_CHttpFile::CHttpFile
lea ecx, [esi + 0x58]
mov byte [esp + 0x214], 5
call sub.MFC71U.DLL_CHttpFile::CHttpFile
lea ecx, [esi + 0x60]
mov byte [esp + 0x214], 6
call sub.MFC71U.DLL_CHttpFile::CHttpFile
push edi
lea eax, [esp + 0x18]
push eax
push 0x1f4
push 0x29
mov byte [esp + 0x224], 7
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0xffffffff
mov dword [esp + 0x24], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea ecx, [esp + 0xf4]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, ebx
call sub.MFC71U.DLL_CDC::Attach
push 0x14
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x214], 8
je 0x1008c3bf
mov ecx, eax
call fcn.10092530
jmp 0x1008c3c1
xor eax, eax
mov dword [esi + 0x10], eax
xor eax, eax
lea ebx, [esi + 0x68]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x20c]
xor edx, edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x200]
pop ebx
call fcn.1007c3d4
add esp, 0x20c
ret
Function at 0x1009a610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a8fe9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.1009d350
lea ecx, [esi + 0x14]
mov dword [esp + 0x10], 0
mov dword [esi], 0x100bf9fc
call fcn.10089a90
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call fcn.10089a90
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 2
call fcn.10089a90
push str.CUIComboBoxDraw
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 3
mov dword [esi + 8], 5
call dword [0x100ab7e8]
mov eax, dword [esi + 8]
push eax
mov ecx, esi
call fcn.1009d310
mov ecx, dword [esp + 8]
mov dword [esi + 0xc], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1009ad40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov al, byte [esp + 0x1c]
test al, 6
push ebp
push esi
push edi
jne 0x1009ad6b
test al, 0x40
je 0x1009ad57
lea eax, [ecx + 0x150]
jmp 0x1009ad71
test al, 1
je 0x1009ad63
lea eax, [ecx + 0x1cc]
jmp 0x1009ad71
lea eax, [ecx + 0xd4]
jmp 0x1009ad71
lea eax, [ecx + 0x248]
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
add ecx, edx
add esi, dword [eax + 0x10]
mov edx, edi
sub edx, ecx
test edx, edx
jle 0x1009addf
mov edx, ebp
sub edx, esi
test edx, edx
jle 0x1009addf
mov edx, dword [eax + 4]
test edx, edx
je 0x1009addf
mov edx, dword [eax + 0x78]
push 0
push 0
push edx
lea edx, [eax + 0x1c]
push edx
xor edx, edx
mov dl, byte [eax + 9]
movzx eax, byte [eax + 8]
push edx
push eax
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 4], esi
mov dword [edx + 8], edi
mov dword [edx + 0xc], ebp
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.1008a5b0
add esp, 0x30
pop edi
pop esi
pop ebp
ret 0x1c
Function at 0x40149b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.00401494
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d5eaac]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401524
push 0x418238
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d5eaac]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d5eaa8]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d5eaa8], eax
mov eax, dword [0x2d5ea00]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d5ea00], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d5eaa4], 0xf4ea3dee
call fcn.00401471
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014ec
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015f4
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d5eaac]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d5ea04]
test esi, esi
je 0x40163a
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x401625
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.0040149b
add edi, 8
dec esi
je 0x401639
mov eax, dword [0x2d5eaac]
jmp 0x40160d
pop ebx
pop edi
pop esi
ret 4
Function at 0x40cb08
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404de5
mov dword [ebp - 0x14], eax
cmp dword [0x465160], esi
jne 0x40cbfb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cb88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ccdb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ccdb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ccdb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x465160], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x465164], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x465168], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465170], eax
test eax, eax
je 0x40cbf8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46516c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cc20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cc13
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cc35
push 4
pop eax
jmp 0x40ccdd
cmp dword [ebp - 0x14], esi
je 0x40cc35
push dword [0x465160]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cc1a
mov eax, dword [0x46516c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cc93
cmp dword [0x465170], edi
je 0x40cc93
push eax
call ebx
push dword [0x465170]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cc93
test eax, eax
je 0x40cc93
call ecx
test eax, eax
je 0x40cc88
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cc88
test byte [ebp - 8], 1
jne 0x40cc93
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ccc3
mov eax, dword [0x465164]
cmp eax, edi
je 0x40ccc0
push eax
call ebx
test eax, eax
je 0x40ccc0
call eax
mov esi, eax
test esi, esi
je 0x40ccc0
mov eax, dword [0x465168]
cmp eax, edi
je 0x40ccc0
push eax
call ebx
test eax, eax
je 0x40ccc0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x465160]
call ebx
test eax, eax
je 0x40ccdb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ccdd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040cb
mov esp, ebp
pop ebp
ret
Function at 0x40149f
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22c]
push ebx
sub esp, 0x24c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.004081be
sub esp, 0x10
test eax, eax
jne 0x401608
test byte [ebp + 0x10], 2
je 0x401565
lea eax, [ebp - 0x228]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x222]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x228], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
je 0x401565
jmp 0x4015a7
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0040149f
sub esp, 0xc
test eax, eax
jne 0x4015be
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x4015be
mov eax, dword [ebp - 0x22c]
test byte [ebp + 0x10], 1
je 0x40154b
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x401608
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408f5b
push edx
test eax, eax
jne 0x4015f0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
jmp 0x401608
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403d43
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42a880]
cmp dword [ebp + 8], 0
je 0x403d6e
test eax, eax
je 0x403d62
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x42a880], 0
jmp 0x403dd8
test eax, eax
je 0x403d81
mov dword [esp], 0
call fcn.00408fcd
push edx
jmp 0x403dd8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x431de0]
jbe 0x403dd8
mov eax, dword [0x431e0c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403c88
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x42a880], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x407aa4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40c8d0
mov dword [ebp - 0x24], 0x40c8d0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40c8c0
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edx
push edx
test eax, eax
je 0x407b01
xor eax, eax
jmp 0x407b2e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x407b2e
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
sub esp, 0xc
test eax, eax
jne 0x407afd
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x407b66
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x431880], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x431880
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x407be2
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
leave
mov eax, edx
ret 4

Function at 0x407be8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x407e61
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407e8f
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407e9a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00407e61
push ecx
cmp eax, 0xffffffff
jne 0x407ebb
xor edi, edi
jmp 0x407ef8
mov esi, eax
mov dword [esp], ebx
test edi, 1
je 0x407ef0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x407ee9
and edi, 4
jne 0x407eb7
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407ef8
mov edi, 1
jmp 0x407ef8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407ece
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8