joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46afe0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov eax, 0x1414
call fcn.0047a5c0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1428]
push edi
call fcn.004674e0
add esp, 4
test al, al
jne 0x46b012
pop edi
pop esi
pop ebp
mov eax, 0xc
pop ebx
add esp, 0x1414
ret
mov esi, dword [esp + 0x142c]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push esi
push edi
call ebp
add esp, 8
test eax, eax
je 0x46b196
push 0
push esi
call fcn.0046af10
push 0
push edi
call fcn.0046af10
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
add esp, 0x10
push esi
push edi
call ebx
test eax, eax
jne 0x46b196
lea eax, [esp + 0xc1c]
push esi
push eax
call fcn.00463740
lea ecx, [esp + 0xc24]
push ecx
call fcn.00467500
add esp, 0xc
push esi
push edi
call ebx
test eax, eax
jne 0x46b196
lea edx, [esp + 0x818]
push esi
push edx
call fcn.00463780
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00463780
lea ecx, [esp + 0x20]
lea edx, [esp + 0x828]
push ecx
push edx
call ebp
add esp, 0x18
test eax, eax
je 0x46b0b8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x46b161
lea eax, [esp + 0x818]
push edi
push eax
call fcn.00463080
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00463080
lea edx, [esp + 0x20]
lea eax, [esp + 0x1030]
push edx
push eax
call fcn.00463740
add esp, 0x18
lea ecx, [esp + 0x414]
lea edx, [esp + 0x1020]
push ecx
push 0
push 0x4d5cec
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x414]
push eax
call ebp
lea ecx, [esp + 0x414]
lea edx, [esp + 0x10]
push ecx
push edx
call ebx
test eax, eax
je 0x46b155
lea eax, [esp + 0x818]
push eax
call fcn.004674e0
add esp, 4
test al, al
je 0x46b146
lea ecx, [esp + 0x414]
push ecx
call ebp
jmp 0x46b155
lea edx, [esp + 0x10]
lea eax, [esp + 0x414]
push edx
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push esi
push edi
call ebx
test eax, eax
jne 0x46b196
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x46b196
push esi
push edi
call ebp
add esp, 8
test eax, eax
je 0x46b196
push 0xffffffffffffffff
call fcn.00465ff0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1414
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1414
ret

Function at 0x46b1b0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0
je 0x46b1dc
push 0
push esi
call fcn.0046af10
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46b1dc
push 0xffffffffffffffff
call fcn.00465ff0
add esp, 4
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x46b210
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x4fb928]
sub esp, 0x94
test eax, eax
jne 0x46b271
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 0x46b24c
xor al, al
add esp, 0x94
ret
cmp dword [esp + 0x10], 2
jne 0x46b267
cmp dword [esp + 4], 5
jb 0x46b267
mov eax, dword [esp + 8]
test eax, eax
mov eax, 2
ja 0x46b26c
mov eax, 1
mov dword [0x4fb928], eax
xor ecx, ecx
cmp eax, 2
sete cl
mov al, cl
add esp, 0x94
ret

Function at 0x46b290
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x4fb92c]
sub esp, 0x94
test eax, eax
jne 0x46b2eb
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 0x46b2cc
xor al, al
add esp, 0x94
ret
cmp dword [esp + 0x10], 2
jne 0x46b2e1
mov eax, dword [esp + 4]
cmp eax, 6
mov eax, 2
jae 0x46b2e6
mov eax, 1
mov dword [0x4fb92c], eax
xor ecx, ecx
cmp eax, 2
sete cl
mov al, cl
add esp, 0x94
ret

Function at 0x46b370
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
cmp eax, 0xffffffff
jne 0x46b38b
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 0x46b3e6
push eax
call fcn.00465ff0
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 0x46b3e6
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 0x46b44d
push 0xffffffffffffffff
call fcn.00465ff0
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 0x46b460
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
jne 0x46b47b
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 0x46b4ae
push eax
call fcn.00465ff0
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 0x46b50f
push 0xffffffffffffffff
call fcn.00465ff0
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 0x46bb80
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 0x46bbc0
mov ebp, 0x80000002
jmp 0x46bc5a
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 0x46bbe6
mov ebp, 0x80000000
jmp 0x46bc5a
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 0x46bc0c
mov ebp, 0x80000001
jmp 0x46bc5a
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 0x46bc32
mov ebp, 0x80000003
jmp 0x46bc5a
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 0x46bd27
mov ebp, 0x80000005
push 0x400
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004625f0
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 0x46bc9f
lea eax, [esp + 0x18]
push 0x2f
push eax
call ebx
add esp, 8
mov edi, eax
test esi, esi
jne 0x46bcad
push 0x2f
push esi
call ebx
add esp, 8
mov esi, eax
test edi, edi
je 0x46bd27
test esi, esi
je 0x46bd27
test ebp, ebp
je 0x46bd27
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 0x46bd27
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 0x46bd1a
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 0x46ea90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b6818
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 0x46eb40
push esi
lea ecx, [esp + 8]
call fcn.0047a1ec
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 sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x46eb2e
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x46eb27
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 0x473340
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0x4d66e8
push 1
push 0
push 0x4d66d8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x473386
push esi
push str.CoCreateInstance_failed:_0x_08lx_n
jmp 0x4733ba
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x4733a3
push esi
push str.get_LocalPolicy_failed:_0x_08lx_n
jmp 0x4733ba
mov eax, dword [esp + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x4733c3
push esi
push str.get_CurrentProfile_failed:_0x_08lx_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov eax, dword [esp + 8]
test eax, eax
je 0x4733d1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4733df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
add esp, 8
ret
Function at 0x474030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b6b1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ebp, [esi + 0x30]
mov ecx, ebp
call fcn.0047a1ec
mov edx, dword [esp + 0x20]
mov ecx, 0xc
xor eax, eax
mov edi, esi
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
and eax, 0xff
push esi
push eax
push ecx
push edx
mov dword [esp + 0x28], 0
mov dword [esi], 0x30
mov dword [esi + 4], 0x37
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [esi + 8]
test ah, 8
jne 0x4741a9
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x47412e
mov edi, dword [0x4fb9ac]
test edi, edi
je 0x4740ef
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x4fb9b0]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x4740ef
cmp dword [edx + 8], ecx
je 0x4740e0
mov edx, dword [edx]
test edx, edx
jne 0x4740d3
jmp 0x4740ef
test edx, edx
je 0x4740ef
add edx, 0xc
mov ecx, ebp
push edx
call fcn.0047a360
mov edi, dword [0x4fb98c]
mov ecx, dword [esi + 0x14]
test edi, edi
je 0x4741a9
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x4fb990]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x4741a9
cmp dword [edx + 8], ecx
je 0x474128
mov edx, dword [edx]
test edx, edx
jne 0x474118
jmp 0x4741a9
test edx, edx
je 0x4741a9
jmp 0x47419d
mov edi, dword [0x4fb9cc]
mov ecx, dword [esi + 0x10]
test edi, edi
je 0x47416b
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x4fb9d0]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x47416b
cmp dword [edx + 8], ecx
je 0x47415c
mov edx, dword [edx]
test edx, edx
jne 0x47414f
jmp 0x47416b
test edx, edx
je 0x47416b
add edx, 0xc
mov ecx, ebp
push edx
call fcn.0047a360
mov edi, dword [0x4fb96c]
mov ecx, dword [esi + 0x10]
test edi, edi
je 0x4741a9
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x4fb970]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x4741a9
cmp dword [edx + 8], ecx
je 0x474199
mov edx, dword [edx]
test edx, edx
jne 0x47418c
jmp 0x4741a9
test edx, edx
je 0x4741a9
mov eax, dword [edx + 0xc]
mov dword [esi + 0x34], eax
mov ecx, dword [edx + 0x10]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x479930
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xbb8
push esi
push 0x4d27d0
push eax
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
jne 0x479959
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 0x479988
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 0x47999e
mov byte [eax], 1
mov eax, dword [esp + 0xbc4]
lea edx, [esp + 4]
push edx
push eax
call fcn.004799c0
add esp, 8
pop esi
add esp, 0xbb8
ret

Function at 0x4799c0
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 0x479a13
push 0x531717e
push 0x4a812a7
call fcn.004798b0
add esp, 8
xor esi, esi
call fcn.004798f0
mov dl, byte [esp + esi + 0x18]
xor dl, al
mov byte [esp + esi + 0x18], dl
inc esi
cmp esi, 0x800
jl 0x4799fb
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 + 0x4d6b60]
sub bl, dl
inc ecx
cmp ecx, 0x800
mov byte [eax], bl
jl 0x479a20
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 0x479a48
mov eax, dword [0x4d6f60]
xor edi, edi
test eax, eax
mov byte [esp + 0x13], 0
je 0x479abb
mov ebp, dword [esp + 0x814]
mov esi, 0x4d6f60
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 + 0x4d6b60]
and eax, 0xffffff
xor eax, edx
inc ecx
cmp ecx, 0x7fc
jl 0x479a77
cmp ebp, eax
je 0x479ab6
cmp ebp, dword [esi]
je 0x479abb
mov eax, dword [esi + 4]
add esi, 4
inc edi
test eax, eax
jne 0x479a75
jmp 0x479abb
mov byte [esp + 0x13], 1
mov eax, dword [edi*4 + 0x4d6f60]
test eax, eax
jne 0x479ad8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x479b16
mov eax, 1
jmp 0x4799cc
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 0x479ada
cmp byte [esp + 0x18], 1
jl 0x479b23
cmp byte [esp + 0x19], 0x12
jl 0x479b23
mov al, byte [esp + 0x13]
test al, al
je 0x479b16
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x479b23
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 0x479b50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [0x4d6f60]
push ebp
push esi
push edi
test edx, edx
je 0x479bd7
mov edi, dword [esp + 0x10]
mov ebp, 0x4d6f60
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 + 0x4d6b60]
and edx, 0xffffff
xor edx, eax
inc ecx
cmp ecx, 0x7fc
jl 0x479b68
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 0x479bac
cmp dword [esp + 0x10], edx
je 0x479bdd
mov edx, dword [ebp + 4]
add ebp, 4
test edx, edx
jne 0x479b66
pop edi
pop esi
xor al, al
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebp
ret

Function at 0x479c89
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 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x479ce1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4d7690
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x479cd4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x479ce3
xor eax, eax
pop esi
leave
ret 4
Function at 0x498c4e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
and eax, 0xffff
mov dword [ebp - 0x18], eax
push 0xf1
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MFC42.DLL_AfxFindResourceHandle
mov dword [ebp - 4], eax
push 0xf1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x498c96
xor eax, eax
jmp 0x498d7b
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x498cb4
xor eax, eax
jmp 0x498d7b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x498cce
xor eax, eax
jmp 0x498d7b
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dx, word [ecx + 6]
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [ebp - 0x10], 0
jmp 0x498d00
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x498d2c
mov ecx, dword [ebp - 0xc]
call fcn.00498d81
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp - 0x10]
mov dword [eax + edx*4], ecx
jmp 0x498cf7
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cx, word [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov ax, word [edx + 2]
push eax
lea ecx, [ebp - 0x24]
call fcn.0048b4f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dx, word [ecx + 6]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004996e0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x499263
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 2
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
mov dword [ebp - 8], eax
push 2
mov ecx, dword [ebp + 8]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49929f
xor eax, eax
jmp 0x4992f1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4992ba
xor eax, eax
jmp 0x4992f1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cx, word [eax + 0xe]
xor edx, edx
cmp ecx, 0x20
sete dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004996e0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x49ab62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
and eax, 0xffff
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 0x80]
call fcn.004a2e96
push 0xf1
mov edx, dword [ebp - 0x20]
push edx
call sub.MFC42.DLL_AfxFindResourceHandle
mov dword [ebp - 8], eax
push 0xf1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x49abb8
xor eax, eax
jmp 0x49acd9
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x49abd6
xor eax, eax
jmp 0x49acd9
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49abf0
xor eax, eax
jmp 0x49acd9
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 6]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], 0
jmp 0x49ac20
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x18], ecx
jge 0x49ac4a
mov ecx, dword [ebp - 0x10]
call fcn.0049acdf
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4], ecx
jmp 0x49ac17
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 6]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0049a95c
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 4]
push edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 2]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0048b4f0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 6]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048e3a0
mov ecx, eax
call fcn.004992f5
test eax, eax
jne 0x49acb1
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004996e0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4