joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee44
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4241a0
push 0x41ef40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, 0x40eff4
mov edi, 0x40efd5
sub esi, edi
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
push pe_nt_image_headers32
push 0x1000
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x40efc4
mov dword [ebp - 4], ebx
push ebx
push esi
push edi
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.kernel32.dll_WriteProcessMemory]
call edi
test eax, eax
je 0x40ef6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x134]
push eax
call sub.msvcrt.dll__mbscpy
pop ecx
pop ecx
push str.kernel32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [ebp - 0x138], eax
cmp eax, ebx
je 0x40ef6e
push str.LoadLibraryA
push eax
call fcn.0040e5b9
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40ef6e
push 4
push 0x1000
mov esi, 0x108
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x40ef6e
push ebx
push esi
lea ecx, [ebp - 0x134]
push ecx
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x40ef6e
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push 0x10000
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x40ef6e
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x13c]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
test eax, eax
je 0x40ef6e
mov ebx, dword [ebp - 0x13c]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll__local_unwind2
pop ecx
pop ecx
mov eax, ebx
jmp 0x40efc6
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f002
Capabilities:
Copy file
Delete file
Move file

Disassembly:
and dword [ecx + 0x208], 0
and dword [ecx + 0x210], 0
jmp fcn.0040f015

Function at 0x40ff27
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ecx + 0xc]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
leave
ret 0xc
Function at 0x40ff4c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x1000
push esi
mov edi, ecx
call fcn.0040fd73
test eax, eax
je 0x40ffb5
push esi
xor esi, esi
push esi
push dword [edi + 0x3ac]
call sub.msvcrt.dll_memset
mov ebx, dword [ebp + 0xc]
add esp, 0xc
cmp ebx, esi
jbe 0x40ffab
push 4
pop eax
cmp ebx, eax
ja 0x40ff85
mov eax, ebx
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [edi + 0x3ac]
mov dword [ebp + 0xc], esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40ffb5
cmp dword [ebp + 0xc], esi
je 0x40ffab
sub ebx, dword [ebp + 0xc]
jne 0x40ff7c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
xor eax, eax
jmp 0x40ffae
Function at 0x411252
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
xor esi, esi
push 7
mov dword [ebp - 4], esi
pop edi
mov eax, esi
sar eax, 5
and eax, edi
imul eax, eax, 0xff
cdq
mov ebx, edi
idiv ebx
mov ecx, esi
shl ecx, 2
push 3
and byte [ebp + ecx - 0x401], 0
mov byte [ebp + ecx - 0x404], al
mov eax, esi
sar eax, 2
and eax, edi
imul eax, eax, 0xff
cdq
idiv ebx
pop ebx
mov byte [ebp + ecx - 0x403], al
mov eax, esi
and eax, 3
imul eax, eax, 0xff
cdq
idiv ebx
inc esi
cmp esi, 0x100
mov byte [ebp + ecx - 0x402], al
jl 0x411266
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_FindResourceA]
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x4113a1
cmp eax, edi
je 0x4113a1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
cmp eax, edi
je 0x4113a1
mov ecx, dword [eax]
cmp ecx, 0x28
lea ebx, [ecx + eax]
jb 0x411324
mov cx, word [eax + 0xe]
cmp cx, 8
ja 0x411324
mov eax, dword [eax + 0x20]
cmp eax, edi
jne 0x411320
xor edx, edx
inc edx
shl edx, cl
jmp 0x411326
mov edx, eax
jmp 0x411326
xor edx, edx
cmp edx, edi
jle 0x41135a
lea ecx, [ebp - 0x404]
lea esi, [ebp - 0x403]
sub ecx, ebx
lea eax, [ebx + 1]
sub esi, ebx
mov bl, byte [eax + 1]
mov byte [ebp + edi*4 - 0x404], bl
mov bl, byte [eax]
mov byte [ecx + eax], bl
mov bl, byte [eax - 1]
mov byte [esi + eax], bl
inc edi
add eax, 4
cmp edi, edx
jl 0x41133d
push 0x404
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x4113a1
push 0x400
lea eax, [ebp - 0x404]
push eax
lea eax, [esi + 4]
push eax
mov word [esi], 0x300
mov word [esi + 2], 0x100
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.gdi32.dll_CreatePalette]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4113a9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42d54c]
push edi
xor edi, edi
cmp eax, edi
jne 0x411508
push 0x28
mov eax, 0x42d524
push edi
push eax
mov dword [0x42d54c], eax
call sub.msvcrt.dll_memset
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push str.imagehlp.dll
mov dword [0x42d524], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x42d528], eax
je 0x411506
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
push str.SymInitialize
push dword [0x42d528]
mov dword [0x42d52c], eax
call esi
push str.SymSetOptions
push dword [0x42d528]
mov dword [0x42d530], eax
call esi
push str.SymGetOptions
push dword [0x42d528]
mov dword [0x42d534], eax
call esi
push str.SymLoadModule
push dword [0x42d528]
mov dword [0x42d538], eax
call esi
push str.SymGetModuleInfo
push dword [0x42d528]
mov dword [0x42d53c], eax
call esi
push str.SymGetSymFromName
push dword [0x42d528]
mov dword [0x42d540], eax
call esi
push str.BindImage
push dword [0x42d528]
mov dword [0x42d544], eax
call esi
push 8
mov dword [0x42d548], eax
lea eax, [ebp - 8]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x42d52c]
add esp, 0xc
cmp eax, edi
mov word [ebp - 8], 9
pop esi
je 0x4114f4
lea ecx, [ebp - 8]
push ecx
call eax
cmp dword [0x42d52c], edi
je 0x4114f4
cmp word [ebp - 8], 9
jb 0x4114f4
mov eax, dword [0x42d530]
cmp eax, edi
je 0x4114d0
push edi
push edi
push dword [0x42d524]
call eax
mov eax, dword [0x42d538]
cmp eax, edi
je 0x4114ed
cmp dword [0x42d534], edi
je 0x4114ed
call eax
and eax, 7
push eax
call dword [0x42d534]
mov eax, dword [0x42d54c]
jmp 0x411508
push dword [0x42d528]
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [0x42d528], edi
xor eax, eax
pop edi
leave
ret

Function at 0x4122b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x420518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x41235a
push esi
lea ecx, [esp + 8]
call sub.mfc42.dll_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.mfc42.dll_CString::GetBuffer
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.mfc42.dll_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.mfc42.dll_CString::operator_2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x412341
push 0x6a
push esi
call dword [sym.imp.user32.dll_LoadCursorA]
test eax, eax
je 0x412341
push eax
call dword [sym.imp.user32.dll_CopyIcon]
mov dword [edi + 0x70], eax
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.mfc42.dll_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x413070
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4206a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x41311a
push esi
lea ecx, [esp + 8]
call sub.mfc42.dll_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.mfc42.dll_CString::GetBuffer
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.mfc42.dll_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.mfc42.dll_CString::operator_2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x413101
push 0x6a
push esi
call dword [sym.imp.user32.dll_LoadCursorA]
test eax, eax
je 0x413101
push eax
call dword [sym.imp.user32.dll_CopyIcon]
mov dword [edi + 0x50], eax
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.mfc42.dll_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x413690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0xc]
call sub.mfc42.dll_CDC::CDC
mov edi, dword [esp + 0x30]
test edi, edi
mov dword [esp + 0x24], 0
jne 0x4136ca
xor eax, eax
jmp 0x4136cd
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x10]
call sub.mfc42.dll_CDC::Attach
lea ecx, [esp + 0xc]
call sub.mfc42.dll_CDC::SaveDC
mov esi, eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4136f4
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.mfc42.dll_CDC::SelectGdiObject
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004132e0
push esi
lea ecx, [esp + 0x10]
call sub.mfc42.dll_CDC::RestoreDC
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041ed40
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
Function at 0x4189f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 0x2c]
push edi
mov ecx, ebp
mov dword [esp + 0xc], esi
call sub.mfc42.dll_CString::CString_2
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov ecx, 0xb
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push esi
and eax, 0xff
push eax
push ecx
push edx
mov dword [esp + 0x28], 0
mov dword [esi], 0x2c
mov dword [esi + 4], 0x37
call dword [sym.imp.user32.dll_GetMenuItemInfoA]
mov eax, dword [esi + 8]
test ah, 8
jne 0x418ae5
mov edi, dword [0x42d57c]
test edi, edi
mov ecx, dword [esi + 0x10]
je 0x418aa7
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x42d580]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x418aa7
cmp dword [edx + 8], ecx
je 0x418a98
mov edx, dword [edx]
test edx, edx
jne 0x418a8b
jmp 0x418aa7
test edx, edx
je 0x418aa7
add edx, 0xc
push edx
mov ecx, ebp
call sub.mfc42.dll_CString::operator
mov edi, dword [0x42d55c]
test edi, edi
mov ecx, dword [esi + 0x10]
je 0x418ae5
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x42d560]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x418ae5
cmp dword [edx + 8], ecx
je 0x418ad5
mov edx, dword [edx]
test edx, edx
jne 0x418ac8
jmp 0x418ae5
test edx, edx
je 0x418ae5
mov eax, dword [edx + 0xc]
mov dword [esi + 0x30], eax
mov ecx, dword [edx + 0x10]
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x41a990
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0xa4]
push 0x214
push eax
mov eax, dword [esi + 0xa0]
push ecx
push edx
push eax
push 0
mov ecx, esi
call sub.mfc42.dll_CWnd::SetWindowPos
call fcn.0040d0af
test eax, eax
je 0x41a9eb
test byte [esi + 0x5c], 1
je 0x41a9eb
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41a9eb
mov ecx, dword [esi + 0x20]
push 0x80000
push 0x1f4
push ecx
call eax
jmp 0x41a9f4
push 5
mov ecx, esi
call sub.mfc42.dll_CWnd::ShowWindow
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x41aa20
mov eax, dword [esi + 0x60]
test eax, eax
je 0x41aa9d
mov edx, dword [esi + 0x20]
push 0
push eax
push 0
push edx
call dword [sym.imp.user32.dll_SetTimer]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edi, dword [sym.imp.user32.dll_PeekMessageA]
mov ebx, dword [sym.imp.user32.dll_TranslateMessage]
mov ebp, dword [sym.imp.user32.dll_DispatchMessageA]
mov dword [esp + 0x10], eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x41aa83
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x98]
test eax, eax
jne 0x41aa9d
lea ecx, [esp + 0x14]
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call ebp
push 1
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
jne 0x41aa4f
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x60]
sub eax, edx
cmp eax, ecx
jb 0x41aa3c
mov ecx, esi
call fcn.0041aab0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x41ce50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x421168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.user32.dll_GetParent]
push eax
call edi
push eax
call sub.mfc42.dll_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.mfc42.dll_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.user32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.user32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.mfc42.dll_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.mfc42.dll_CWnd::ScreenToClient
mov eax, dword [esi + 0xf4]
test eax, eax
mov ebx, dword [sym.imp.gdi32.dll_BitBlt]
jne 0x41cf86
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call sub.mfc42.dll_CDC::Attach
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.mfc42.dll_CGdiObject::Attach
test edi, edi
je 0x41cf32
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call sub.mfc42.dll_CDC::SelectGdiObject
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
sub edx, eax
push 0xcc0020
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x41cfa7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [edx + 4]
push ecx
push 0
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0041ee48
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x41e849
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_3
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e8a1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x42c0ec
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e894
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x41e8a3
xor eax, eax
pop esi
leave
ret 4

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x40c050
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x469e3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045e7ce
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c0d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045c54d
mov eax, dword [eax]
push 0x4971c0
push eax
call fcn.0044f3d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045ea59
test bl, bl
je 0x40c0d2
push 0x4971c0
lea ecx, [esp + 0xc]
call fcn.0045ede9
push 0x49ad34
lea ecx, [esp + 0xc]
call fcn.0045ede9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40c10e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045ea59
jmp 0x40c1d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40c192
lea edx, [esp + 0x7c]
push 0x49ad30
push edx
call fcn.0044f3d4
add esp, 8
test eax, eax
je 0x40c192
lea eax, [esp + 0x7c]
push 0x49ad2c
push eax
call fcn.0044f3d4
add esp, 8
test eax, eax
je 0x40c192
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c122
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045ea59
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c9d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ca32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ca40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x469ebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a1278]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40cb78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40caa6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045ea59
xor eax, eax
jmp 0x40cbef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045eb96
push esi
lea ecx, [esp + 0xc]
call fcn.0045ee25
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40cbcd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040c9d0
test eax, eax
jne 0x40cbcd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.0040c9d0
test eax, eax
jne 0x40cbcd
lea eax, [esp + 0x14]
push 0x49ad48
push eax
call fcn.004504e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cbac
lea ecx, [esp + 0x14]
push 0x49ad44
push ecx
call fcn.00450460
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cbac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cbaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045eb46
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cabe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045ea59
xor eax, eax
jmp 0x40cbef
mov byte [esi], 0
push 0x49ad40
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045ea59
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4