joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fae8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4acd6c]
cmp byte [eax + 0xc], 0
je 0x44fc55
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44fc4e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4adb28], 0
jne 0x44fb3c
push 0x44fc5c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44fc64
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb28], eax
cmp dword [0x4abdfc], 0
jne 0x44fc37
push 0x44fc74
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4abdfc], eax
cmp dword [0x4abdfc], 0
je 0x44fc37
push 0x44fc80
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb2c], eax
push 0x44fc90
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb30], eax
push 0x44fca4
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb34], eax
push 0x44fcbc
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb38], eax
push 0x44fcd4
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb3c], eax
push 0x44fce8
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb40], eax
push 0x44fd00
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb44], eax
push 0x44fd18
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb48], eax
push 0x44fd34
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb4c], eax
push 0x44fd40
mov eax, dword [0x4abdfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adb50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fc55
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Function at 0x45b6d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45b728]
test si, 4
je 0x45b6ec
or bl, 1
test si, 8
je 0x45b6f6
or bl, 4
test si, 1
je 0x45b700
or bl, 8
test si, 2
je 0x45b70a
or bl, 0x10
test si, 0x10
je 0x45b714
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b723
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45b72c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45b764]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b745
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b754
or bl, 4
test esi, 0x20000000
je 0x45b75f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x461e28
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x461e3a
add esp, 0xfffffff0
call fcn.004039dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425c84
mov eax, dword [0x4ac868]
mov dword [eax + 4], ebx
mov dword [eax], 0x4621cc
mov eax, dword [0x4ac87c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4621d8
mov eax, ebx
call fcn.004621e4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b05c]
call fcn.00403634
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b05c]
call fcn.00403634
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b05c]
call fcn.00403634
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b05c]
call fcn.00403634
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b05c]
call fcn.00403634
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, 0x45e5fc
push eax
push 0
push 0
mov eax, dword [0x4aca7c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42775c]
call fcn.00428ef4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42775c]
call fcn.00428ef4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42775c]
call fcn.00428ef4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00462634
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4624fc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4624fc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4624fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x461f77
call fcn.00403a34
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4622e0
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 0x46248b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46246c
mov dl, 1
mov eax, dword [0x41b6c0]
call fcn.00403634
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404510
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46245b
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.0044ff4c
test al, al
je 0x46244e
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, 0x46249c
lea eax, [ebp - 0x254]
call fcn.00409bf0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46244e
xor eax, eax
push ebp
push 0x462447
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 0x4624d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x462430
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404780
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 0x462430
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46244e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x462351
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041fcb0
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 0x462492
lea eax, [ebp - 0x260]
call fcn.00404510
ret

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

Disassembly:
push ecx
mov eax, dword [0x4adb74]
cmp byte [eax + 0xa5], 0
jne 0x462e45
cmp dword [0x4adb8c], 0
jne 0x462e06
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462d90
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4adb8c], eax
cmp dword [0x4adb88], 0
jne 0x462e21
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4adb88], eax
cmp dword [0x4adb90], 0
jne 0x462e45
push esp
push 0
push 0
push 0x462d34
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4adb90], eax
pop edx
ret
Function at 0x4634d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4adb74]
cmp dword [eax + 0x30], 0
je 0x463582
cmp dword [ebx + 0x94], 0
jne 0x46357c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x463468
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46357c
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 0x463542
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46357c
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.0041d8a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x463551
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4640e0
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 0x464115
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.00404600
jmp 0x464122
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404564
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4652dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46531d
mov eax, esi
call fcn.0044b37c
test al, al
je 0x46531d
mov eax, dword [ebx + 0x84]
call fcn.0044b078
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46531d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b078
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x482fa4
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x482fc9
cmp dword [esp + 4], 5
jb 0x482fc9
mov al, 1
jmp 0x482fcb
xor eax, eax
add esp, 0x94
ret
Function at 0x493fa8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x494208
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49400b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00493a70
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d5cc
cmp al, 1
jne 0x49400b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00493d88
test al, al
je 0x494197
cmp dword [ebp - 8], 0
jge 0x494029
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00493a70
mov eax, dword [ebp - 0x210]
call fcn.004047d0
cmp ebx, eax
jge 0x494073
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00493a70
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4acd50]
and eax, 0xff
bt dword [edx], eax
jae 0x494073
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x494087
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00493f84
cmp ebx, dword [ebp - 8]
je 0x494189
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4940b3
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040386c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ac654]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x494176
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040386c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ac654]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044b078
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040386c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ac654]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044b078
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49417d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4941ea
cmp dword [ebp - 8], 0
jge 0x4941a2
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00493a70
mov eax, dword [ebp - 0x218]
call fcn.004047d0
cmp eax, dword [ebp - 8]
jg 0x4941dc
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00493a70
mov eax, dword [ebp - 0x21c]
call fcn.004047d0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00493f84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49420f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404534
ret
Function at 0x406fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp ebp, 0x24
push ebx
push esi
mov esi, dword [ebp - 0x78]
xor eax, dword [ebp - 0x76a80c67]
jne 0x406fa7
jne 0x406fba
mov esi, 0x40af40
mov al, byte [esi]
cmp al, 0xdd
jl 0x40927d
xchg byte [ecx], bh
cmove esi, dword [ecx + 0x68000000]
dec eax
hlt
and eax, 0x3c04742f
pop esp
jne 0x40929f
push str.__
push esi
pop ss
loopne 0x409288
inc ecx
add byte [esi + 0x17], dl
adc eax, sym.imp.MSVCRT.dll_wcscpy
mov eax, dword [ebp + 0x10]
add esp, 8
sub eax, 4
add dword [eax + ecx - 0x15], 0x49
mov al, byte [ebx]
cmp al, 0x2f
je 0x4092a9
cmp al, 0x5c
jne 0x4092dd
cmp dl, 0x2f
je 0x4092b3
cmp dl, 0x5c
jne 0x409286
cmp byte [ebx - 0x77], 0x3f
je 0x4092dd
or ebp, ecx
add ch, byte [eax - 0x34]
into
inc ecx
add byte [esi - 0x7d], dl
ret
lea eax, [ebp + 0xc]
lea esp, [edx]
adc byte [eax - 0x3f], dl
invalid
Function at 0x4019e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x81d0d0]
jne 0x4019ea
repz ret
jmp fcn.00402886

Function at 0x40f868
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040340a
and dword [ebp - 4], 0
cmp dword [0x826100], 0
mov ebx, eax
jne 0x40f919
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f9ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f9ca
push eax
call fcn.00403398
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x826100], eax
call esi
push eax
call fcn.00403398
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x826104], eax
call esi
push eax
call fcn.00403398
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x826108], eax
call esi
push eax
call fcn.00403398
pop ecx
mov dword [0x826110], eax
test eax, eax
je 0x40f919
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403398
pop ecx
mov dword [0x82610c], eax
mov eax, dword [0x82610c]
cmp eax, ebx
je 0x40f971
cmp dword [0x826110], ebx
je 0x40f971
push eax
call fcn.00403413
push dword [0x826110]
mov esi, eax
call fcn.00403413
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f971
test edi, edi
je 0x40f971
call esi
test eax, eax
je 0x40f968
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f968
test byte [ebp - 0xc], 1
jne 0x40f971
or dword [ebp + 0x10], 0x200000
jmp 0x40f9aa
mov eax, dword [0x826104]
cmp eax, ebx
je 0x40f9aa
push eax
call fcn.00403413
pop ecx
test eax, eax
je 0x40f9aa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f9aa
mov eax, dword [0x826108]
cmp eax, ebx
je 0x40f9aa
push eax
call fcn.00403413
pop ecx
test eax, eax
je 0x40f9aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x826100]
call fcn.00403413
pop ecx
test eax, eax
je 0x40f9ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f9cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x818a39
Capabilities:
Create pipe

Disassembly:
mov eax, dword [eax]
sub esp, 0x18
push ebx
mov ebx, dword [0x8265ac]
push esi
mov esi, dword [0x8264f4]
call fcn.0081898c
cmp dword [0x8265ac], 0x2f
jne 0x818a7e
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
pop edi
push esi
call fcn.008189b2
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x818d80
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
mov edi, 0x1540bf
xor esi, esi
cmp dword [0x8265ac], 0xbf9
jne 0x818d9b
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
cmp dword [0x8265ac], 0x3dc
mov dword [0x8265a0], 0x8e468c6a
jne 0x818dca
push esi
push 0x81b80c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.nokiwubuferugenalef
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
dec edi
jne 0x818d89
cmp esi, 0x8465cb
jne 0x818de4
mov eax, dword [0x825564]
add eax, 0xa231
mov dword [0x8265ac], eax
cmp dword [0x8265ac], 0x141
jne 0x818e01
or dword [0x826274], 0xffffffff
mov dword [0x826270], 0xec58acac
inc esi
cmp esi, 0x123c19c
jl 0x818dcd
call fcn.00818a8b
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.00408964
dec edi
xor dword [edx], esi
inc eax
add edx, 1
cmp edx, ecx
jne fcn.00408947
or eax, eax
ret
Function at 0x41d4d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x41d658
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41d4fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d4f0
mov eax, 1
add ebx, ebx
jne 0x41d513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d508
jne 0x41d524
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d508
xor ecx, ecx
sub eax, 3
jb 0x41d538
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d5aa
mov ebp, eax
add ebx, ebx
jne 0x41d543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d550
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d574
inc ecx
add ebx, ebx
jne 0x41d560
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d555
jne 0x41d571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d555
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d594
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d585
jmp 0x41d4f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d594
add edi, ecx
jmp 0x41d4f6
pop esi
mov edi, esi
mov ecx, 0x861
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d5b2
cmp byte [edi], 6
jne 0x41d5b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41d5b7
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d626
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1edd8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ee50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d5e4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ee54]
or eax, eax
je 0x41d620
mov dword [ebx], eax
add ebx, 4
jmp 0x41d601
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41d657
cmp al, 0xef
ja 0x41d64a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41d62c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41d639
popal
jmp 0x4123b0