joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436a38
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x436a54
cmp dword [esi + 4], 0
je 0x436a81
test byte [ebx + 0x55], 1
jne 0x436a73
mov eax, ebx
call fcn.004355d8
test eax, eax
jne 0x436a73
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x436b91
mov edx, esi
mov eax, ebx
call fcn.0043655c
jmp 0x436b91
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x436b8a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004388a8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00433274
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00436a38
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004388a8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436b91
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d220
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4551a8]
cmp byte [eax + 0xc], 0
je 0x43d38d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d386
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x456b64], 0
jne 0x43d274
push 0x43d394
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43d39c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b64], eax
cmp dword [0x454b80], 0
jne 0x43d36f
push 0x43d3ac
call sub.kernel32.dll_LoadLibraryA
mov dword [0x454b80], eax
cmp dword [0x454b80], 0
je 0x43d36f
push 0x43d3b8
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b68], eax
push 0x43d3c8
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b6c], eax
push 0x43d3dc
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b70], eax
push 0x43d3f4
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b74], eax
push 0x43d40c
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b78], eax
push 0x43d420
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b7c], eax
push 0x43d438
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b80], eax
push 0x43d450
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b84], eax
push 0x43d46c
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b88], eax
push 0x43d478
mov eax, dword [0x454b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d38d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441218
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e28
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441267
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404098
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4489a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4489f4]
test si, 4
je 0x4489b8
or bl, 1
test si, 8
je 0x4489c2
or bl, 4
test si, 1
je 0x4489cc
or bl, 8
test si, 2
je 0x4489d6
or bl, 0x10
test si, 0x10
je 0x4489e0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4489ef
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4489f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448a30]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448a11
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448a20
or bl, 4
test esi, 0x20000000
je 0x448a2b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f0d8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f0ea
add esp, 0xfffffff0
call fcn.004033fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419430
mov eax, dword [0x454e7c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f47c
mov eax, dword [0x454e88]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f488
mov eax, ebx
call fcn.0044f494
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411728]
call fcn.004030a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411728]
call fcn.004030a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411728]
call fcn.004030a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411728]
call fcn.004030a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411728]
call fcn.004030a8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44b8b0
push eax
push 0
push 0
mov eax, dword [0x454fc8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ae74]
call fcn.0041c510
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ae74]
call fcn.0041c510
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ae74]
call fcn.0041c510
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f8b4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f790
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f790
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f790
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f227
call fcn.00403454
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f574
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f71f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f700
mov dl, 1
mov eax, dword [0x411b44]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e28
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f6ef
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d580
test al, al
je 0x44f6e2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44f730
lea eax, [ebp - 0x254]
call fcn.00408ad0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f6e2
xor eax, eax
push ebp
push 0x44f6db
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44f768
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f6c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404098
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44f6c4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f6e2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f5e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415620
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f726
lea eax, [ebp - 0x260]
call fcn.00403e28
ret

Function at 0x450054
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x456bb0]
cmp byte [eax + 0xa5], 0
jne 0x4500c5
cmp dword [0x456bc8], 0
jne 0x450086
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450010
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x456bc8], eax
cmp dword [0x456bc4], 0
jne 0x4500a1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x456bc4], eax
cmp dword [0x456bcc], 0
jne 0x4500c5
push esp
push 0
push 0
push 0x44ffb4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x456bcc], eax
pop edx
ret
Function at 0x4501bc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4501d3
add esp, 0xfffffff0
call fcn.004033fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419430
mov eax, dword [0x454fb4]
cmp word [eax + 2], 0
jne 0x4501fb
mov eax, dword [0x454fb4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045193c
mov eax, dword [0x45505c]
cmp word [eax + 2], 0
jne 0x450215
mov eax, dword [0x45505c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451b34
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411728]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411728]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b87c]
call fcn.00422998
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45039c
mov eax, dword [0x454edc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422d68
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4520d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x454edc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c198
test eax, eax
je 0x45030a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084c4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1c0
test eax, eax
je 0x45031e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404098
mov eax, dword [0x454dd8]
cmp byte [eax], 0
jne 0x450352
mov eax, ebx
call fcn.004504c4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004522b0
mov eax, ebx
call fcn.00452c74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450392
call fcn.00403454
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450744
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x456bb0]
cmp dword [eax + 0x30], 0
je 0x4507ee
cmp dword [ebx + 0x94], 0
jne 0x4507e8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4506d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4507e8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4507ae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4507e8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413a90
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4507bd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451350
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451385
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f18
jmp 0x451392
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e7c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45248c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4524cd
mov eax, esi
call fcn.00438bac
test al, al
je 0x4524cd
mov eax, dword [ebx + 0x84]
call fcn.004388a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4524cd
push 0
mov eax, dword [ebx + 0x84]
call fcn.004388a8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x453230
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x455040]
mov eax, dword [eax]
call fcn.00451690
call sub.kernel32.dll_GetTickCount
mov edx, eax
sub edx, ebx
cmp esi, edx
jle 0x453258
cmp ebx, eax
jle 0x45323b
pop esi
pop ebx
ret
Function at 0x403c30
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x413826
call fcn.0040b0c0
sub esp, 0x1b8
cmp byte [0x419ceb], 0
push ebx
push esi
mov byte [ebp - 0xd], 1
je 0x403cb3
push dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
call fcn.00407480
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00407560
add esp, 0x10
mov esi, dword [0x419d30]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x419d2c
mov byte [ebp - 4], 1
call fcn.00403af4
cmp dword [eax], esi
push 1
lea ecx, [ebp - 0x84]
setne bl
call fcn.004012d4
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x4c]
call fcn.004012d4
test bl, bl
je 0x403cb3
mov al, 1
jmp 0x403e24
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00401896
mov ecx, dword [ebp - 0x18]
push 2
pop eax
cmp ecx, eax
mov dword [ebp - 4], eax
jae 0x403cd2
xor bl, bl
jmp 0x403e18
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x403cde
lea eax, [ebp - 0x28]
cmp byte [eax + ecx - 1], 0x5c
jne 0x403cf8
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x403cf1
lea eax, [ebp - 0x28]
cmp byte [eax + ecx - 1], 0x2f
je 0x403d05
push 0x415348
lea ecx, [ebp - 0x2c]
call fcn.00401879
push 0x415344
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00401f6a
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x403d25
mov eax, dword [eax + 4]
jmp 0x403d28
add eax, 4
lea ecx, [ebp - 0x1c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 1
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.004012d4
cmp esi, 0xffffffff
je 0x403ccb
test byte [ebp - 0x1c4], 0x10
lea eax, [ebp - 0x198]
je 0x403dc3
push 0x415340
push eax
call fcn.0040b370
test eax, eax
pop ecx
pop ecx
je 0x403df8
lea eax, [ebp - 0x198]
push 0x41533c
push eax
call fcn.0040b370
test eax, eax
pop ecx
pop ecx
je 0x403df8
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00401f6a
push eax
mov byte [ebp - 4], 3
call fcn.00403e32
add esp, 0x10
mov bl, al
neg bl
sbb bl, bl
push 1
lea ecx, [ebp - 0x4c]
inc bl
mov byte [ebp - 4], 2
call fcn.004012d4
test bl, bl
je 0x403df8
and byte [ebp - 0xd], 0
jmp 0x403df8
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00401f6a
mov eax, dword [ebp - 0x64]
add esp, 0xc
cmp dword [ebp - 0x50], 0x10
jae 0x403de0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403dee
and byte [ebp - 0xd], al
push 1
lea ecx, [ebp - 0x68]
call fcn.004012d4
lea eax, [ebp - 0x1c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403d47
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 0xd]
push 1
lea ecx, [ebp - 0x2c]
call fcn.004012d4
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403eae
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x413860
call fcn.0040b0c0
sub esp, 0x24c
push ebx
push esi
push edi
xor ebx, ebx
cmp byte [0x419ceb], bl
mov dword [ebp - 4], ebx
je 0x403f2a
push dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push eax
call fcn.00407480
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 1
call fcn.00407560
add esp, 0x10
mov esi, dword [0x419d48]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x419d44
mov byte [ebp - 4], 2
call fcn.00403af4
cmp dword [eax], esi
push 1
lea ecx, [ebp - 0x58]
setne byte [ebp - 0xd]
call fcn.004012d4
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.004012d4
cmp byte [ebp - 0xd], bl
jne 0x404056
cmp dword [ebp + 0x28], 0x10
mov eax, dword [ebp + 0x14]
jae 0x403f36
lea eax, [ebp + 0x14]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404058
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, 0xff
jmp 0x403f6d
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x403f8c
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
call edi
test eax, eax
je 0x403f59
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x404007
sub esp, 0x1c
lea eax, [ebp - 0x158]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401a09
push 0x415348
push dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.00401f6a
lea ecx, [ebp - 0x158]
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00401f6a
add esp, 0x18
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00403eae
add esp, 0x24
cmp al, bl
push 1
lea ecx, [ebp - 0x3c]
sete byte [ebp - 0xd]
call fcn.004012d4
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.004012d4
cmp byte [ebp - 0xd], bl
jne 0x404033
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x258]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
call edi
test eax, eax
je 0x403f94
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x28], 0x10
mov eax, dword [ebp + 0x14]
jae 0x404048
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x404058
mov bl, 1
push 1
lea ecx, [ebp + 0x10]
call fcn.004012d4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404073
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x41387a
call fcn.0040b0c0
sub esp, 0x9b0
push esi
push edi
push str.popun
push 0x415275
call fcn.0040b4b3
pop ecx
pop ecx
mov edi, eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00401a09
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0040b3f8
lea ecx, [ebp - 0x28]
mov dword [esp], str..bat
call fcn.00401879
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x4040c7
lea eax, [ebp - 0x24]
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404230
push 0x104
lea eax, [ebp - 0x1bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x74]
call fcn.00401a09
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 1
call fcn.00407870
pop ecx
pop ecx
push 1
lea ecx, [ebp - 0x74]
call fcn.004012d4
cmp dword [ebp - 0x10], 0x10
mov ecx, dword [ebp - 0x24]
jae 0x404133
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x40413f
lea eax, [ebp - 0x54]
push ecx
push eax
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x9bc]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x9bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x9bc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0x44
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.0040b310
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
mov dword [ebp - 0xb8], 0x44
mov dword [ebp - 0x8c], 1
mov word [ebp - 0x88], si
jae 0x4041c7
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
push 0x415348
push esi
push 0x44
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404226
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x34]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x38]
call edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x34]
call edi
push 1
lea ecx, [ebp - 0x58]
call fcn.004012d4
push 1
lea ecx, [ebp - 0x28]
call fcn.004012d4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret