joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4366c0
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 0x4366dc
cmp dword [esi + 4], 0
je 0x436709
test byte [ebx + 0x55], 1
jne 0x4366fb
mov eax, ebx
call fcn.004352cc
test eax, eax
jne 0x4366fb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x436819
mov edx, esi
mov eax, ebx
call fcn.004361e4
jmp 0x436819
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 0x436812
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00438530
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.00432fe8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004366c0
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.00438530
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436819
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 0x43cc28
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4732e4]
cmp byte [eax + 0xc], 0
je 0x43cd95
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43cd8e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x474b68], 0
jne 0x43cc7c
push 0x43cd9c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43cda4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b68], eax
cmp dword [0x471b1c], 0
jne 0x43cd77
push 0x43cdb4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x471b1c], eax
cmp dword [0x471b1c], 0
je 0x43cd77
push 0x43cdc0
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b6c], eax
push 0x43cdd0
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b70], eax
push 0x43cde4
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b74], eax
push 0x43cdfc
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b78], eax
push 0x43ce14
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b7c], eax
push 0x43ce28
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b80], eax
push 0x43ce40
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b84], eax
push 0x43ce58
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b88], eax
push 0x43ce74
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b8c], eax
push 0x43ce80
mov eax, dword [0x471b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x474b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cd95
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x440c20
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.00404494
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x440c6f
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.00404704
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448384
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4483d4]
test si, 4
je 0x448398
or bl, 1
test si, 8
je 0x4483a2
or bl, 4
test si, 1
je 0x4483ac
or bl, 8
test si, 2
je 0x4483b6
or bl, 0x10
test si, 0x10
je 0x4483c0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4483cf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4483d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448410]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4483f1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448400
or bl, 4
test esi, 0x20000000
je 0x44840b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44eab8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44eaca
add esp, 0xfffffff0
call fcn.00403a68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ce50
mov eax, dword [0x472e78]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ee5c
mov eax, dword [0x472e84]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ee68
mov eax, ebx
call fcn.0044ee74
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415148]
call fcn.00403714
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415148]
call fcn.00403714
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415148]
call fcn.00403714
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415148]
call fcn.00403714
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415148]
call fcn.00403714
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, 0x44b290
push eax
push 0
push 0
mov eax, dword [0x473054]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e8ac]
call fcn.0041ff48
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e8ac]
call fcn.0041ff48
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e8ac]
call fcn.0041ff48
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f294
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f170
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f170
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f170
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ec07
call fcn.00403ac0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44ef54
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 0x44f0ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f0e0
mov dl, 1
mov eax, dword [0x415564]
call fcn.00403714
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404494
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f0cf
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.0043cf88
test al, al
je 0x44f0c2
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, 0x44f110
lea eax, [ebp - 0x254]
call fcn.0040930c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f0c2
xor eax, eax
push ebp
push 0x44f0bb
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 0x44f148
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f0a4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404704
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 0x44f0a4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f0c2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44efc5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419040
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 0x44f106
lea eax, [ebp - 0x260]
call fcn.00404494
ret

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

Disassembly:
push ecx
mov eax, dword [0x474bb4]
cmp byte [eax + 0xa5], 0
jne 0x44faa5
cmp dword [0x474bcc], 0
jne 0x44fa66
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f9f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x474bcc], eax
cmp dword [0x474bc8], 0
jne 0x44fa81
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x474bc8], eax
cmp dword [0x474bd0], 0
jne 0x44faa5
push esp
push 0
push 0
push 0x44f994
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x474bd0], eax
pop edx
ret
Function at 0x44fb9c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44fbb3
add esp, 0xfffffff0
call fcn.00403a68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ce50
mov eax, dword [0x473038]
cmp word [eax + 2], 0
jne 0x44fbdb
mov eax, dword [0x473038]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004511f4
mov eax, dword [0x473128]
cmp word [eax + 2], 0
jne 0x44fbf5
mov eax, dword [0x473128]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004513ec
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415148]
call fcn.00403714
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415148]
call fcn.00403714
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 [0x41f2b4]
call fcn.00426704
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44fd7c
mov eax, dword [0x472f10]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426ad4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45198c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x472f10]
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.0040cac4
test eax, eax
je 0x44fcea
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d00
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040caec
test eax, eax
je 0x44fcfe
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.00404704
mov eax, dword [0x472d64]
cmp byte [eax], 0
jne 0x44fd32
mov eax, ebx
call fcn.0044fea4
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.00451b68
mov eax, ebx
call fcn.0045252c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fd72
call fcn.00403ac0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450124
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x474bb4]
cmp dword [eax + 0x30], 0
je 0x4501ce
cmp dword [ebx + 0x94], 0
jne 0x4501c8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4500b4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4501c8
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 0x45018e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4501c8
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.004174b0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45019d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450d30
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 0x450d65
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.00404584
jmp 0x450d72
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451d44
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451d85
mov eax, esi
call fcn.00438790
test al, al
je 0x451d85
mov eax, dword [ebx + 0x84]
call fcn.00438530
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451d85
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438530
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452ebc
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.0040704c
ret
Function at 0x45bb54
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45bb82
mov eax, ebx
call fcn.0045c608
cmp dword [ebx + 0x40], 0
je 0x45bb7b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45bbf3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45bbe5
cmp dword [ebx + 8], 0
je 0x45bba4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45bbb6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45bbe5
cmp dword [ebx + 8], 0
je 0x45bb97
cmp eax, 3
je 0x45bbc9
dec eax
jne 0x45bb97
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45bb97
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45bb97
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45bc11
cmp dword [ebx + 0x14], 0xcc
je 0x45bc11
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045bc1c
pop ebx
ret
Function at 0x46faa8
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404944
mov eax, dword [ebp - 8]
call fcn.00404944
xor eax, eax
push ebp
push 0x46fcb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404494
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x46fc77
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ff0
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.0040452c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404954
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 4]
mov edx, 0x46fcc8
call fcn.004047a0
mov eax, dword [ebp - 0x17c]
call fcn.00404954
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x46fc60
xor eax, eax
push ebp
push 0x46fc59
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
push eax
push 0xff
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x14], 0
jbe 0x46fc24
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x178], 0
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x178]
mov ecx, pe_nt_image_headers32
call fcn.00404704
mov edx, dword [ebp - 0x180]
mov eax, esi
call fcn.0040475c
test bl, bl
je 0x46fc2e
cmp dword [ebp - 0x14], 0
jne 0x46fbcf
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fc60
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fc7e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x438cbe
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
dec edx
sub edx, 0x1ac048e
or edi, edx
call fcn.00438cef
push edi
pop edi
and edx, edi
xor dword [ebx], ecx
sub edi, edx
inc ebx
sub edx, edi
add edx, edi
cmp ebx, eax
jne fcn.00438cbe
or edx, edi
ret
Function at 0x404420
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x4045a5
push esi
call fcn.0041233b
add esp, 4
test eax, eax
je 0x4045a5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4045a5
test bl, 1
je 0x40446d
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x404594
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push eax
call fcn.00412382
lea ecx, [esp + 0x470]
push 0x49e8f4
push ecx
call fcn.00412358
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404582
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x49e940
push ecx
call ebp
test eax, eax
je 0x404567
lea edx, [esp + 0x3c]
push 0x49e93c
push edx
call ebp
test eax, eax
je 0x404567
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push esi
push eax
call fcn.00412382
lea ecx, [esp + 0x268]
push 0x49e804
push ecx
call fcn.00412358
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.00412358
lea ecx, [esp + 0x278]
push ecx
call fcn.00404420
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4044e9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
Function at 0x4045c0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
cmp esi, ebx
je 0x404766
push esi
call fcn.0041233b
add esp, 4
test eax, eax
je 0x404766
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.00401ca0
add esp, 0x1c
test eax, eax
je 0x404766
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x404766
test al, 1
je 0x40462c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x404756
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bx
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push ecx
stosw word es:[edi], ax
call fcn.00412382
lea edx, [esp + 0x470]
push 0x49e8f4
push edx
call fcn.00412358
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
mov dword [esp + 0x228], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
lea ecx, [esp + 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404745
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x49e940
push edx
call ebp
test eax, eax
je 0x404726
lea eax, [esp + 0x248]
push 0x49e93c
push eax
call ebp
test eax, eax
je 0x404726
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00412382
lea edx, [esp + 0x1c]
push 0x49e804
push edx
call fcn.00412358
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00412358
lea edx, [esp + 0x2c]
push edx
call fcn.004045c0
add esp, 0x1c
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4046b1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret