joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cee0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c713
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ff60
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004755f8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00476b14
test eax, eax
je 0x43cffc
mov ecx, dword [esp + 0x3c]
call fcn.00475625
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43cfc0
push edi
mov ecx, esi
call fcn.00472c8a
mov ecx, esi
call fcn.0043d160
cmp dword [esp + 0x38], 1
jne 0x43cff5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00472dc5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43fa10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fa43
push esi
call fcn.00442b20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fa3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fac9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fab2
mov eax, dword [esi + 8]
test eax, eax
je 0x43fa67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43faae
cmp eax, 2
je 0x43fab2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fa5a
cmp eax, 3
je 0x43fa8d
cmp eax, 1
jne 0x43fa5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fa5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fa5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043faf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fad8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043faf0
add esp, 4
pop esi
ret

Function at 0x44bb00
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44bba3
test eax, eax
jbe 0x44bba3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44bba3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44bb4e
xor esi, esi
jmp 0x44bb54
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44bb7f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00404bd0
add esi, eax
push esi
mov ebx, esi
call fcn.00404bd0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44bb60
pop ebp
test edi, edi
pop edi
jne 0x44bba3
test ebx, ebx
je 0x44bba3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045f740
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44bce5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44bdfd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44bdfd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004703b2
mov esi, eax
test esi, esi
je 0x44bdfd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44bdfd
mov ecx, esi
call fcn.0044bc50
cmp edi, eax
jge 0x44bdfd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44bd83
mov dword [esp + 0x34], 1
jmp 0x44bdde
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44bdfd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044b200
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x450b9d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ce88
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x450bb3
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.00456bf0
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00456eb0
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00450c20
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x485aa8
call fcn.00456df0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x455ac0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x455b0c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x455b0c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x455af6
push eax
call ebp
test ax, ax
jl 0x455b04
inc esi
add edi, 4
cmp esi, 6
jb 0x455ae8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004557c0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x458540
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4585a0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4585a0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4585a0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4585a0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4585b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x45a590
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45a5da
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x45a609
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45a64b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x470d55
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470d8d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046ee0c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046ede4
jmp 0x470d99
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x472447
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x472489
call fcn.00478106
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x472489
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x472480
xor eax, eax
jmp 0x472491
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00472497
pop edi
pop esi
pop ebx
ret 4

Function at 0x478636
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x478664
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x478682
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047859c
jmp 0x478682
mov eax, dword [esi + 0x14]
test eax, eax
je 0x478682
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047859c
test edi, edi
mov eax, edi
jne 0x47866c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x402820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push eax
call fcn.004024ea
push 0x5c
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], 2
jne 0x401270
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x4012ed
test eax, eax
je 0x4012ed
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x2c]
push 0
push ecx
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4012df
lea ecx, [esp]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [esp]
push 0x10
lea ecx, [esp + 4]
call dword [edx + 0x40]
test eax, eax
je 0x4012df
lea ecx, [esp]
mov byte [esp + 0x24], 0
call fcn.00402508
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp]
mov byte [esp + 0x24], 0
call fcn.00402508
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x401310
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40284f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_2
push 0x104
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.pmetprv_
lea ecx, [esp + 8]
call fcn.00402526
mov eax, dword [esp + 4]
push eax
call fcn.004011f0
add esp, 4
test eax, eax
jne 0x4013bc
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
mov edx, dword [esp + 8]
push edx
call fcn.004011f0
add esp, 8
test eax, eax
jne 0x4013bc
mov esi, dword [esp + 0x1c]
push 0x404250
mov ecx, esi
call fcn.004024ea
mov dword [esp + 8], 1
jmp 0x4013d4
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401720
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4028f8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 8]
and ecx, 0xffff
push str.RT_RCDATA
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40184f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea ecx, [esp + 0xc]
mov ebp, eax
call sub.MFC42.DLL_CFile::CFile
mov esi, dword [esp + 0x30]
push 0
push 0x1001
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x401815
push esi
lea ecx, [esp + 0x34]
call fcn.004024ea
push str.__err_copy_res_to_file
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040254a
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040254a
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0
push 0
push str.res_error_
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f90]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405be2
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423f90]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f90], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x402e44
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e61
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e70
mov ebx, 0x40f080
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e85
mov ecx, dword [0x423f38]
add ecx, eax
push ecx
call fcn.00403073
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403041
test eax, eax
je 0x402fec
test byte [ebp + 0x17], 0x80
je 0x402fd5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40aff0
mov dword [ebp - 0xc], eax
call fcn.00405cbc
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403037
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ed5
mov esi, dword [ebp + 0x14]
mov edi, 0x40b080
push esi
push edi
call fcn.00403041
test eax, eax
je 0x402fec
sub dword [ebp + 0x14], esi
mov dword [0x40b008], edi
mov dword [0x40b00c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40aff0
mov dword [0x40b010], ebx
mov dword [0x40b014], eax
call fcn.00405cdc
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fcd
mov esi, dword [0x40b010]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f94], 1
mov edi, eax
je 0x402f77
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f44
cmp dword [ebp + 0x14], 0
jne 0x402f77
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404c62
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fc2
cmp dword [ebp + 0x10], eax
jne 0x402fa0
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd1
cmp dword [ebp - 0x10], esi
jne 0x402fd1
add dword [ebp - 4], esi
jmp 0x402fb6
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b010]
jl 0x403037
cmp dword [ebp - 0x14], 1
jne 0x402ef8
jmp 0x403037
cmp dword [ebp + 0x14], eax
jg 0x402ec8
jmp 0x403037
push 0xfffffffffffffffc
jmp 0x402fee
push 0xfffffffffffffffe
jmp 0x402fee
test edi, edi
je 0x40302c
cmp dword [ebp + 0x14], esi
jge 0x402fe1
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403041
test eax, eax
jne 0x403034
push 0xfffffffffffffffd
pop eax
jmp 0x40303a
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402ffc
mov esi, dword [ebp + 0x14]
mov edi, 0x40b080
push esi
push edi
call fcn.00403041
test eax, eax
je 0x402fec
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd1
cmp esi, dword [ebp + 0x10]
jne 0x402fd1
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ff1
jmp 0x403037
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405124
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224e0], 0x44
push eax
xor eax, eax
push 0x4224e0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40515f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4051e9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405498
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40521d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f68], eax
jmp 0x4053b1
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40523b
test eax, eax
je 0x40535c
test byte [ebp + 0xc], 2
je 0x40535c
mov esi, 0x4214e0
push edi
push esi
call fcn.004058c4
test ebx, ebx
je 0x405258
push 0x409388
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40525e
push edi
call fcn.004053fe
cmp byte [edi], 0
jne 0x40526c
cmp byte [0x4214e0], 0x5c
jne 0x405277
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405352
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004053e2
cmp byte [eax], 0
je 0x4052bd
cmp byte [ebp - 0x18], 0
je 0x4052bd
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4052d3
mov al, byte [esi + 1]
test al, al
je 0x405331
cmp al, 0x2e
jne 0x4052d3
cmp byte [esi + 2], 0
je 0x405331
push esi
push ebx
call fcn.004058c4
test byte [ebp - 0x148], 0x10
je 0x4052f8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405331
push dword [ebp + 0xc]
push edi
call fcn.004051e9
jmp 0x405331
push edi
call fcn.0040557c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405329
test byte [ebp + 0xc], 4
je 0x405321
push edi
push 0xfffffffffffffff1
call fcn.00404c62
push 0
push edi
call fcn.00405612
jmp 0x405331
inc dword [0x423f68]
jmp 0x405331
push edi
push 0xfffffffffffffff2
call fcn.00404c62
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40529b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40535c
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4053b1
cmp dword [ebp - 8], esi
jne 0x405371
inc dword [0x423f68]
jmp 0x4053b1
push edi
call fcn.00405bbb
test eax, eax
je 0x4053b1
push edi
call fcn.004053b7
push edi
call fcn.0040557c
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053a9
test byte [ebp + 0xc], 4
je 0x405369
push edi
push 0xfffffffffffffff1
call fcn.00404c62
push esi
push edi
call fcn.00405612
jmp 0x4053b1
push edi
push 0xffffffffffffffe5
call fcn.00404c62
pop edi
pop esi
leave
ret 8