joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4148c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4148d3
xor al, al
ret
shr eax, 4
and eax, 1
ret

Function at 0x4148e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x414911
cmp byte [esi], 0
je 0x414911
push esi
call fcn.00414920
add esp, 4
test al, al
jne 0x414911
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414911
not eax
shr eax, 4
and eax, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x414930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call fcn.00412300
add esp, 4
test al, al
je 0x41496b
mov al, byte [ebx + 2]
lea edi, [ebx + 2]
test al, al
je 0x414959
cmp al, 0x5c
jne 0x4149c4
mov al, byte [ebx + 3]
test al, al
jne 0x4149c4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4149b6
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
call fcn.004122e0
add esp, 4
test al, al
je 0x414a88
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebx + 2]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x414a88
inc eax
push 0x5c
push eax
call esi
mov edi, eax
add esp, 8
test edi, edi
jne 0x4149c4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4149b6
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
pop edi
pop esi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jb 0x4149f5
cmp eax, 0x578
ja 0x4149f5
push eax
call fcn.00413530
add esp, 4
pop edi
pop esi
pop ebx
ret
push 0x5c
push ebx
xor esi, esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x414a10
pop edi
pop esi
mov eax, 0x35
pop ebx
ret
cmp eax, edi
je 0x414a5a
sub eax, ebx
push ebp
mov ebp, eax
mov esi, ebx
lea ecx, [ebp + 1]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
call fcn.00414930
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
test esi, esi
pop ebp
jne 0x414a73
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x414a73
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
and al, 0x10
pop edi
neg al
sbb eax, eax
pop esi
and al, 0xd2
pop ebx
add eax, 0x2e
ret
pop edi
pop esi
mov eax, 0x2e
pop ebx
ret
Function at 0x414aa0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x41ee10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push 0
push 0
push 0
lea ecx, [esp + 0x10]
call fcn.0041de2c
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], 0
test eax, eax
jne 0x414adb
lea eax, [esp + 4]
push ebp
push esi
push edi
push 0
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CSingleLock::Lock
mov edi, dword [esp + 0x38]
push edi
call sub.WSOCK32.dll_inet_addr
mov ebp, dword [esp + 0x34]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
mov byte [ebp], 0
jne 0x414b2e
or ecx, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x414b5e
push 2
lea ecx, [esp + 0x10]
push 4
push ecx
mov byte [ebp], 0x2a
call sub.WSOCK32.dll_gethostbyaddr
test eax, eax
je 0x414b46
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov byte [esp + 0x2c], 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CMutex::CMutex
mov ecx, dword [esp + 0x24]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x414e00
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414e36
mov eax, dword [esp + 0x10]
test eax, eax
je 0x414e70
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x414e75
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x414e70
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x414e8a
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov eax, edi
pop edi
pop esi
ret
Function at 0x4171b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4171e5
mov cl, byte [esp + 0xc]
test cl, cl
je 0x4171d7
or al, 1
push eax
push esi
call fcn.00418c00
add esp, 8
pop esi
ret
and al, 0xfe
push eax
push esi
call fcn.00418c00
add esp, 8
pop esi
ret
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
pop esi
ret

Function at 0x4172e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
push esi
call fcn.00417230
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov bl, al
test bl, bl
jne 0x417330
mov al, byte [esp + 0xa0]
test al, al
je 0x417330
mov eax, dword [0x42b01c]
push 0x2010
test eax, eax
je 0x417322
mov ecx, dword [eax + 0x508]
mov edx, dword [eax + 0x1000]
push ecx
push edx
jmp 0x41732c
push str.Error_
push str.You_most_login_as_Administrator_to_run_this_program_
push 0
call esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x417361
pop esi
xor al, al
pop ebx
add esp, 0x94
ret
cmp dword [esp + 0x18], 2
je 0x417373
pop esi
xor al, al
pop ebx
add esp, 0x94
ret
cmp dword [esp + 0xc], 6
jae 0x417385
pop esi
xor al, al
pop ebx
add esp, 0x94
ret
test bl, bl
je 0x4173d6
mov cl, byte [esp + 0xa0]
test cl, cl
je 0x4173d6
mov eax, dword [0x42b01c]
test eax, eax
je 0x4173bf
mov ecx, dword [eax + 0x510]
mov edx, dword [eax + 0x1004]
push 0x2040
push ecx
push edx
push 0
call esi
pop esi
mov al, 1
pop ebx
add esp, 0x94
ret
test cl, cl
je 0x4173d6
push 0x2040
push str.Notice_
push str.Remember_to_right_click_on_the_program_icon_and_select_Run_As_Administror_to_start_this_program_
push 0
call esi
pop esi
mov al, 1
pop ebx
add esp, 0x94
ret

Function at 0x4173f0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x42c45c]
sub esp, 0x94
test eax, eax
jne 0x41744b
push edi
mov ecx, 0x25
lea edi, [esp + 4]
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x41742c
xor al, al
add esp, 0x94
ret
cmp dword [esp + 0x10], 2
jne 0x417441
mov eax, dword [esp + 4]
cmp eax, 6
mov eax, 2
jae 0x417446
mov eax, 1
mov dword [0x42c45c], eax
xor ecx, ecx
cmp eax, 2
sete cl
mov al, cl
add esp, 0x94
ret
Function at 0x4174d0
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
cmp eax, 0xffffffff
jne 0x4174eb
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov edi, dword [esp + 0x38]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x417546
push eax
call fcn.00413530
add esp, 4
mov ebp, eax
push 0
push 0x2000080
push 3
push 0
push 3
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x417546
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CTime::GetAsSystemTime
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4175ad
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret

Function at 0x4175c0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
jne 0x4175db
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41760e
push eax
call fcn.00413530
add esp, 4
pop edi
pop esi
add esp, 0x20
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edi
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CTime::GetAsSystemTime
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41766f
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
Function at 0x417ae0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x408
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, str.HKEY_LOCAL_MACHINE
mov esi, dword [esp + 0x41c]
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
not ecx
dec ecx
push ecx
push str.HKEY_LOCAL_MACHINE
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417b20
mov ebp, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x417bba
mov edi, str.HKEY_CLASSES_ROOT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_CLASSES_ROOT
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417b46
mov ebp, closesocket
jmp 0x417bba
mov edi, str.HKEY_CURRENT_USER
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_CURRENT_USER
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417b6c
mov ebp, reloc.WSOCK32.dll_accept
jmp 0x417bba
mov edi, str.HKEY_USERS
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_USERS
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417b92
mov ebp, reloc.WSOCK32.dll_closesocket
jmp 0x417bba
mov edi, str.HKEY_CURRENT_CONFIG
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_CURRENT_CONFIG
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417c87
mov ebp, SysStringLen
push 0x400
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00411fe0
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call ebx
lea edx, [esp + 0x2c]
push 0x5c
push edx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x1c
mov esi, eax
test edi, edi
jne 0x417bff
lea eax, [esp + 0x18]
push 0x2f
push eax
call ebx
add esp, 8
mov edi, eax
test esi, esi
jne 0x417c0d
push 0x2f
push esi
call ebx
add esp, 8
mov esi, eax
test edi, edi
je 0x417c87
test esi, esi
je 0x417c87
test ebp, ebp
je 0x417c87
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
mov byte [esi], 0
push 0xf003f
inc esi
push 0
push 0
inc edi
push 0
push edi
push ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x417c87
mov edi, dword [esp + 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push esi
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
test esi, esi
je 0x417c7a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x408
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret
Function at 0x417ca0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x408
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, str.HKEY_LOCAL_MACHINE
mov esi, dword [esp + 0x41c]
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
not ecx
dec ecx
push ecx
push str.HKEY_LOCAL_MACHINE
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417ce0
mov ebp, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x417d7a
mov edi, str.HKEY_CLASSES_ROOT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_CLASSES_ROOT
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417d06
mov ebp, closesocket
jmp 0x417d7a
mov edi, str.HKEY_CURRENT_USER
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_CURRENT_USER
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417d2c
mov ebp, reloc.WSOCK32.dll_accept
jmp 0x417d7a
mov edi, str.HKEY_USERS
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_USERS
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417d52
mov ebp, reloc.WSOCK32.dll_closesocket
jmp 0x417d7a
mov edi, str.HKEY_CURRENT_CONFIG
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_CURRENT_CONFIG
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x417e48
mov ebp, SysStringLen
push 0x400
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00411fe0
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call ebx
lea edx, [esp + 0x2c]
push 0x5c
push edx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x1c
mov esi, eax
test edi, edi
jne 0x417dbf
lea eax, [esp + 0x18]
push 0x2f
push eax
call ebx
add esp, 8
mov edi, eax
test esi, esi
jne 0x417dcd
push 0x2f
push esi
call ebx
add esp, 8
mov esi, eax
test edi, edi
je 0x417e48
test esi, esi
je 0x417e48
test ebp, ebp
je 0x417e48
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
mov byte [esi], 0
push 0xf003f
inc esi
push 0
push 0
inc edi
push 0
push edi
push ebp
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x417e48
mov eax, dword [esp + 0x420]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push esi
mov esi, dword [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
test esi, esi
je 0x417e3b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x408
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret
Function at 0x418b40
Capabilities:
Copy file

Disassembly:
sub esp, 0x404
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
push 0
push esi
call fcn.004171b0
mov edi, dword [esp + 0x41c]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 8
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x418bb7
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004124b0
lea ecx, [esp + 0x14]
push ecx
call fcn.00414930
add esp, 0xc
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x418bb7
push esi
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x418bb7
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x404
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x404
ret

Function at 0x418bd0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0
je 0x418bfc
push 0
push esi
call fcn.004171b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x418bfc
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x418c00
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x418c1f
push 0xffffffffffffffff
call fcn.00413530
add esp, 4
ret
xor eax, eax
ret
Function at 0x41aed0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41f048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x14b4]
test eax, eax
jne 0x41af80
push esi
lea ecx, [esp + 8]
call fcn.0041e08a
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0041e10e
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41af6e
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x41af67
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x14b4], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41d990
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xbb8
push esi
push 0x424400
push eax
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
jne 0x41d9b9
xor al, al
pop esi
add esp, 0xbb8
ret
push esi
push 0xbb8
lea ecx, [esp + 0xc]
push 1
push ecx
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 0x800
push esi
je 0x41d9e8
call sub.MSVCRT.dll_fclose
add esp, 4
xor al, al
pop esi
add esp, 0xbb8
ret
call sub.MSVCRT.dll_fclose
mov eax, dword [esp + 0xbcc]
add esp, 4
test eax, eax
je 0x41d9fe
mov byte [eax], 1
mov eax, dword [esp + 0xbc4]
lea edx, [esp + 4]
push edx
push eax
call fcn.0041da20
add esp, 8
pop esi
add esp, 0xbb8
ret
Function at 0x41da20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0xbc0
xor eax, eax
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0xbd8]
mov ecx, 0x200
lea edi, [esp + 0x18]
cmp eax, 1
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
jne 0x41da73
push 0x531717e
push 0x4a812a7
call fcn.0041d910
add esp, 8
xor esi, esi
call fcn.0041d950
mov dl, byte [esp + esi + 0x18]
xor dl, al
mov byte [esp + esi + 0x18], dl
inc esi
cmp esi, 0x800
jl 0x41da5b
mov esi, 3
lea eax, [esp + 0x18]
xor ecx, ecx
sub esi, eax
lea eax, [esp + ecx + 0x18]
mov bl, byte [eax]
lea edx, [esi + eax]
and edx, 0xff
mov dl, byte [edx*4 + 0x426064]
sub bl, dl
inc ecx
cmp ecx, 0x800
mov byte [eax], bl
jl 0x41da80
mov eax, 0x7ff
mov cl, byte [esp + eax + 0x17]
mov dl, byte [esp + eax + 0x18]
xor dl, cl
mov byte [esp + eax + 0x18], dl
dec eax
jne 0x41daa8
mov eax, dword [0x426464]
xor edi, edi
test eax, eax
mov byte [esp + 0x13], 0
je 0x41db1b
mov ebp, dword [esp + 0x814]
mov esi, 0x426464
xor ecx, ecx
xor edx, edx
mov ebx, eax
mov dl, byte [esp + ecx + 0x18]
and ebx, 0xff
xor edx, ebx
sar eax, 8
mov edx, dword [edx*4 + 0x426064]
and eax, 0xffffff
xor eax, edx
inc ecx
cmp ecx, 0x7fc
jl 0x41dad7
cmp ebp, eax
je 0x41db16
cmp ebp, dword [esi]
je 0x41db1b
mov eax, dword [esi + 4]
add esi, 4
inc edi
test eax, eax
jne 0x41dad5
jmp 0x41db1b
mov byte [esp + 0x13], 1
mov eax, dword [edi*4 + 0x426464]
test eax, eax
jne 0x41db38
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41db76
mov eax, 1
jmp 0x41da2c
xor ecx, ecx
mov al, byte [esp + ecx + 0x18]
mov dl, al
sar dl, 4
and dl, 0xf
shl al, 4
or dl, al
mov byte [esp + ecx + 0x18], dl
inc ecx
cmp ecx, 0x800
jl 0x41db3a
cmp byte [esp + 0x18], 1
jl 0x41db83
cmp byte [esp + 0x19], 0x12
jl 0x41db83
mov al, byte [esp + 0x13]
test al, al
je 0x41db76
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41db83
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xbc0
ret
mov ecx, dword [esp + 0xbd4]
lea eax, [esp + 0x18]
push 0x800
push eax
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc0
ret

Function at 0x41dbb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [0x426464]
push ebp
push esi
push edi
test edx, edx
je 0x41dc37
mov edi, dword [esp + 0x10]
mov ebp, 0x426464
xor ecx, ecx
movsx eax, byte [ecx + edi]
mov esi, eax
and eax, 0xf
sar esi, 4
and esi, 0xf
shl eax, 4
or esi, eax
mov eax, edx
and eax, 0xff
xor esi, eax
sar edx, 8
mov eax, dword [esi*4 + 0x426064]
and edx, 0xffffff
xor edx, eax
inc ecx
cmp ecx, 0x7fc
jl 0x41dbc8
mov ecx, dword [edi + 0x7fc]
xor esi, esi
mov dword [esp + 0x10], ecx
mov al, byte [esp + esi + 0x10]
mov cl, al
sar cl, 4
and cl, 0xf
shl al, 4
or cl, al
mov byte [esp + esi + 0x10], cl
inc esi
cmp esi, 4
jl 0x41dc0c
cmp dword [esp + 0x10], edx
je 0x41dc3d
mov edx, dword [ebp + 4]
add ebp, 4
test edx, edx
jne 0x41dbc6
pop edi
pop esi
xor al, al
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebp
ret
Function at 0x41dce9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41dd41
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x42a800
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41dd34
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41dd43
xor eax, eax
pop esi
leave
ret 4