joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d018
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d050]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d031
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d040
or bl, 4
test esi, 0x20000000
je 0x44d04b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4536f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453706
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421f24
mov eax, dword [0x463678]
mov dword [eax + 4], ebx
mov dword [eax], 0x453a98
mov eax, dword [0x463684]
mov dword [eax + 4], ebx
mov dword [eax], 0x453aa4
mov eax, ebx
call fcn.00453ab0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417ec8]
call fcn.00403978
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417ec8]
call fcn.00403978
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417ec8]
call fcn.00403978
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417ec8]
call fcn.00403978
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417ec8]
call fcn.00403978
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, 0x44ff24
push eax
push 0
push 0
mov eax, dword [0x4637a4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x423960]
call fcn.0042509c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x423960]
call fcn.0042509c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x423960]
call fcn.0042509c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453ed0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453dac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453dac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453dac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453843
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453b90
Capabilities:
Get keyboard layout

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 0x453d3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453d1c
mov dl, 1
mov eax, dword [0x4183b8]
call fcn.00403978
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404734
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453d0b
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.00441490
test al, al
je 0x453cfe
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, 0x453d4c
lea eax, [ebp - 0x254]
call fcn.0040a544
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453cfe
xor eax, eax
push ebp
push 0x453cf7
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 0x453d84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453ce0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040499c
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 0x453ce0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040499c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453cfe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453c01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c514
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 0x453d42
lea eax, [ebp - 0x260]
call fcn.00404734
ret

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

Disassembly:
push ecx
mov eax, dword [0x466e20]
cmp byte [eax + 0xa5], 0
jne 0x4546e1
cmp dword [0x466e38], 0
jne 0x4546a2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45462c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466e38], eax
cmp dword [0x466e34], 0
jne 0x4546bd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466e34], eax
cmp dword [0x466e3c], 0
jne 0x4546e1
push esp
push 0
push 0
push 0x4545d0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466e3c], eax
pop edx
ret
Function at 0x454e4c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466e20]
cmp dword [eax + 0x30], 0
je 0x454ef6
cmp dword [ebx + 0x94], 0
jne 0x454ef0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454ddc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454ef0
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 0x454eb6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454ef0
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.0041a568
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454ec5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456660
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4566a1
mov eax, esi
call fcn.0043cd58
test al, al
je 0x4566a1
mov eax, dword [ebx + 0x84]
call fcn.0043ca54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4566a1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ca54
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4573a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417544]
call fcn.00405110
xor eax, eax
push ebp
push 0x4574e4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x463428], 0
jne 0x4573f3
mov ecx, dword [0x4635d4]
mov dl, 1
mov eax, dword [0x408c10]
call fcn.0040be60
call fcn.00404174
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004032c0
mov eax, ebx
call fcn.00404f80
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4574f4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406490
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404f90
test eax, eax
jle 0x45748b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x457484
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004049b4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040499c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040993c
test eax, eax
jne 0x457484
mov ebx, 0x15
jmp 0x457490
mov ebx, 0x10
jmp 0x457490
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x463428]
call fcn.004572f8
mov eax, dword [ebp - 8]
call fcn.004572f8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004064a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4574eb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404758
lea eax, [ebp - 0x10]
mov edx, dword [0x417544]
call fcn.004051e0
ret
Function at 0x419610
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x41967f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
push 0x4ce074
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test esi, esi
mov ebx, eax
mov dword [edi], esi
je 0x419655
push 0x4ce064
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 8], eax
pop esi
test ebx, ebx
pop ebx
je 0x41967f
mov ecx, dword [0x4d1af4]
push 0x4d17e0
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [0x4d1af4]
push edx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [0x4d0fc8], eax
pop edi
pop ecx
ret

Function at 0x461fe8
Capabilities:
Encode data using xor

Disassembly:
invalid
push ecx
out dx, al
jge 0x461fdc
in eax, 0xf7
or byte [eax + 0x1d], dl
mov edx, 0xd00c531a
invalid
sahf

Function at 0x4c6fe1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ce3a8
cmp edx, dword [eax]
je 0x4c7003
add eax, 8
inc ecx
cmp eax, 0x4ce438
jl 0x4c6ff4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ce3a8]
jne 0x4c7131
mov eax, dword [0x4d3dd8]
cmp eax, 1
je 0x4c710b
test eax, eax
jne 0x4c7034
cmp dword [0x4ce2d4], 1
je 0x4c710b
cmp edx, 0xfc
je 0x4c7131
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c706b
lea eax, [ebp - 0x1a4]
push 0x4cc6d0
push eax
call fcn.004c79c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c70ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cc6cc
push edi
call fcn.004c9d20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cc6b0
push eax
call fcn.004c79c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c79d0
lea eax, [ebp - 0xa0]
push 0x4cc6ac
push eax
call fcn.004c79d0
push dword [esi + 0x4ce3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c79d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cc684
push eax
call fcn.004c9c94
add esp, 0x2c
pop edi
jmp 0x4c7131
lea eax, [ebp + 8]
lea esi, [esi + 0x4ce3ac]
push 0
push eax
push dword [esi]
call fcn.004c7e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404e61
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax + edi*8 - 0x39770001], esp
test dword [ebp - 0x58000008], esp
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
test dword [ebp - 0x77000008], ebp
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
invalid
invalid
invalid
Function at 0x401368
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x421990
call fcn.004012b0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
cmp word [0x400000], 0x5a4d
jne 0x4013b0
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x4013b0
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x4013c9
cmp ecx, 0x20b
je 0x4013b6
and dword [ebp - 0x1c], 0
jmp 0x4013dd
cmp dword [eax + 0x84], 0xe
jbe 0x4013b0
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x4013d7
cmp dword [eax + 0x74], 0xe
jbe 0x4013b0
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x82c018], edi
mov dword [0x82c01c], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x826f98]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x826f94]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x82c014], eax
call fcn.00401569
cmp dword [0x4258e0], 0
jne 0x40143d
push fcn.00401569
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401557
push 0x4213a4
push 0x4213a0
call sub.msvcrt.dll__initterm
mov eax, dword [0x826f90]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x826f8c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x42139c
push 0x42138c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x4014a2
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x401551
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x4014e3
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x4014be
cmp cx, 0x22
jne 0x4014ab
cmp word [eax], 0x22
jne 0x4014c9
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x4014d7
cmp cx, 0x20
jbe 0x4014c4
test byte [ebp - 0x54], 1
je 0x4014f0
movzx ecx, word [ebp - 0x50]
jmp 0x4014f3
cmp word [eax], 0x20
jbe 0x4014c9
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x4014e3
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.0041e7a4
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x401513
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x40154f
mov eax, esi
call fcn.004012eb
ret

Function at 0x4028b1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
lea ecx, [ebp - 0x824]
push esi
push dword [ebp + 8]
call fcn.00401ab6
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea ecx, [ebp - 0x824]
mov esi, eax
call fcn.00401bbd
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404990
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push edx
push ecx
mov esi, dword [ebp + 0xc]
sub eax, eax
test esi, esi
je 0x404a4f
mov eax, section..data
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x404a4f
test esi, 3
je 0x4049d1
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4049ba
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x404a35
jmp 0x4049e0
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4049e0
mov ecx, edx
test ecx, ecx
je 0x404a4f
jmp 0x404a40
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x404a40
pop ecx
pop edx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4054fa
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
lea ecx, [ebp - 0x824]
push esi
push dword [ebp + 8]
call fcn.00401ab6
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea ecx, [ebp - 0x824]
mov esi, eax
call fcn.00401bbd
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405532
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
lea ecx, [ebp - 0x824]
push esi
push dword [ebp + 8]
call fcn.00401ab6
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [ebp - 0x824]
mov esi, eax
call fcn.00401bbd
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405567
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
lea ecx, [ebp - 0x824]
push esi
push dword [ebp + 8]
call fcn.00401ab6
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea ecx, [ebp - 0x824]
mov esi, eax
call fcn.00401bbd
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405aa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jbe 0x405b07
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [edi + ebx + 4]
mov eax, dword [edi + ebx]
mov ebx, dword [ebp + 0x10]
push 0x11
mov dword [ebp - 4], ecx
pop edi
xor eax, dword [ebx + edi*4]
push eax
push ebx
mov esi, eax
call fcn.00405cb2
xor eax, dword [ebp - 4]
mov edx, esi
dec edi
mov dword [ebp - 4], edx
pop ecx
pop ecx
cmp edi, 1
jg 0x405ac8
mov ecx, dword [ebx + 4]
mov edi, dword [ebp - 8]
xor ecx, eax
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
xor eax, edx
mov dword [edi + ebx], eax
mov dword [edi + ebx + 4], ecx
add edi, 8
mov dword [ebp - 8], edi
cmp edi, dword [ebp + 0xc]
jb 0x405ab8
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405b8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ecx, dword [ecx]
xor ebx, ebx
mov eax, dword [eax]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
xor eax, dword [edi + ebx*4]
push eax
push edi
mov esi, eax
call fcn.00405cb2
xor eax, dword [ebp - 4]
mov edx, esi
inc ebx
mov dword [ebp - 4], edx
pop ecx
pop ecx
cmp ebx, 0x10
jl 0x405ba7
mov ecx, dword [edi + 0x40]
xor ecx, eax
mov eax, dword [edi + 0x44]
xor eax, edx
mov edx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret

Function at 0x405bde
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x400
push esi
push edi
mov esi, 0x423448
mov dword [ebp - 8], ebx
lea edi, [ebx + 0x48]
mov dword [ebp - 4], 0x12
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov eax, 0x423400
push 4
sub eax, ebx
mov ebx, esi
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
mov edi, dword [ebp + 0xc]
mov edx, esi
mov dword [ebp - 0x10], ecx
movzx eax, byte [ebx + edi]
shl edx, 8
or edx, eax
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x405c30
mov ebx, esi
dec ecx
jne 0x405c1f
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + edi]
xor eax, edx
mov dword [edi], eax
add edi, ecx
dec dword [ebp - 4]
mov dword [ebp - 8], edi
jne 0x405c17
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00405b8e
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebx + esi*4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + esi*4 + 4], eax
add esi, 2
cmp esi, 0x12
jl 0x405c56
lea esi, [ebx + 0x4c]
mov edi, 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00405b8e
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi - 4], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
add esi, 8
dec edi
jne 0x405c84
dec dword [ebp - 0xc]
jne 0x405c7f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409eb8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x58
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret

Function at 0x40a67f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
je 0x40a7e1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x40
mov esi, dword [edi + 0x24]
mov eax, esi
mov ecx, dword [edi + 0x20]
shrd ecx, eax, 3
sar eax, 3
push eax
push ecx
call fcn.00401130
mov edx, esi
mov dword [ebp - 4], eax
sar edx, 0x1f
mov eax, esi
or edx, dword [edi + 0x20]
mov edi, esi
mov ebx, edx
mov ecx, edx
shld ebx, edi, 8
shrd eax, ecx, 8
shld edx, esi, 8
shl edi, 8
xor edi, eax
shr ecx, 8
xor ebx, ecx
shl esi, 8
mov eax, 0xff00ff
and edi, eax
and ebx, eax
xor ebx, edx
xor edi, esi
mov edx, edi
mov esi, ebx
shld esi, edx, 0x10
mov eax, edi
mov ecx, ebx
shrd eax, ecx, 0x10
shl edx, 0x10
xor edx, eax
shr ecx, 0x10
xor esi, ecx
mov eax, 0xffff
shld ebx, edi, 0x10
and esi, eax
and edx, eax
mov eax, dword [ebp - 4]
xor esi, ebx
mov ebx, dword [ebp + 8]
shl edi, 0x10
xor edx, edi
push 0x38
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], esi
test eax, eax
je 0x40a775
mov byte [eax + ebx + 0x28], 0x80
inc eax
pop edi
cmp eax, edi
jae 0x40a743
sub edi, eax
add eax, 0x28
push edi
add eax, ebx
push 0
push eax
call sub.msvcrt.dll_memset
jmp 0x40a783
push 0x40
pop ecx
cmp eax, ecx
jae 0x40a75d
sub ecx, eax
add eax, 0x28
push ecx
add eax, ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea esi, [ebx + 0x28]
push esi
push ebx
call fcn.0040a87d
push edi
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0x14
jmp 0x40a786
lea esi, [ebx + 0x28]
push 0
push esi
call sub.msvcrt.dll_memset
mov byte [esi], 0x80
add esp, 0xc
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x64], eax
lea eax, [ebx + 0x28]
push eax
push ebx
call fcn.0040a87d
pop ecx
pop ecx
xor esi, esi
mov edx, dword [ebx + esi*4]
rol edx, 0x10
mov ecx, edx
mov eax, edx
shr ecx, 8
shl eax, 8
xor ecx, eax
shl edx, 8
mov eax, dword [ebp + 0xc]
and ecx, 0xff00ff
xor ecx, edx
mov dword [ebx + esi*4], ecx
mov dword [eax], ecx
add eax, 4
inc esi
mov dword [ebp + 0xc], eax
cmp esi, 8
jl 0x40a7a0
push 0x68
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a82f
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x68
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
ret
Function at 0x40ade8
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xd0
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi], 0xf3bcc908
mov dword [esi + 4], 0x6a09e667
mov dword [esi + 8], 0x84caa73b
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0xfe94f82b
mov dword [esi + 0x14], 0x3c6ef372
mov dword [esi + 0x18], 0x5f1d36f1
mov dword [esi + 0x1c], 0xa54ff53a
mov dword [esi + 0x20], 0xade682d1
mov dword [esi + 0x24], 0x510e527f
mov dword [esi + 0x28], 0x2b3e6c1f
mov dword [esi + 0x2c], 0x9b05688c
mov dword [esi + 0x30], 0xfb41bd6b
mov dword [esi + 0x34], 0x1f83d9ab
mov dword [esi + 0x38], 0x137e2179
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
ret