joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100080e0
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x1000a99c
call fcn.1000a687
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.Utility.dll_public:_bool___thiscall_util::CppSQLite3DB::IsOpen_void_]
add eax, 4
mov ecx, eax
mov dword [ebp - 0x4c], eax
call ebx
test al, al
je 0x1000810e
xor eax, eax
inc eax
call fcn.1000a70a
ret 4
xor edi, edi
lea eax, [ebp - 0x5c]
push edi
push eax
call dword [sym.imp.Utility.dll_public:_static_class_util::AutoPtr_wchar_t____cdecl_util::PathHelper::GetModuleDir_struct_HINSTANCE____]
pop ecx
pop ecx
mov dword [ebp - 4], edi
push dword [eax]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 2
push dword [ebp - 0x5c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
jae 0x1000814c
lea eax, [ebp - 0x44]
push str.as.db
push eax
lea eax, [ebp - 0x54]
push str._sConfigDB_s
push eax
call dword [sym.imp.Utility.dll_public:_static_class_util::AutoPtr_wchar_t____cdecl_util::StringHelper::FormatW_wchar_t_const__]
add esp, 0x10
mov byte [ebp - 4], 3
push dword [eax]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 5
push dword [ebp - 0x54]
call esi
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
jae 0x1000818e
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
push 0x1000dd3c
push eax
call dword [sym.imp.Utility.dll_public:_void___thiscall_util::CppSQLite3DB::open_wchar_t_const___char_const__]
mov ecx, dword [ebp - 0x4c]
call ebx
test al, al
jne 0x100081d2
push str.Open_DB_Failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
jmp 0x10008106
xor edi, edi
inc edi
jmp 0x100081b1

Function at 0x10009b9e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014018]
jne 0x10009ba8
repz ret
jmp fcn.1000a0c3
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x403bf3
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x487000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov edi, 0x487000
je 0x403c12
push edi
call fcn.00405ec4
jmp 0x403c18
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x456764]
mov ecx, esi
dec esi
test ecx, ecx
je 0x403c6c
mov ecx, dword [0x456728]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x456760]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x403c53
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x403c3b
jmp 0x403c6c
mov edx, dword [ecx + 2]
mov dword [0x452700], edx
mov edx, dword [ecx + 6]
mov dword [0x4567c8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403c7e
cmp bx, 0xffff
jne 0x403c7a
mov ebx, 0x3ff
jmp 0x403c18
xor ebx, ebx
jmp 0x403c18
mov dword [0x4526fc], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.00405eab
push 0xfffffffffffffffe
push 0x452720
call fcn.00405f7d
push eax
push dword [0x43ef2c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x45674c]
mov esi, dword [0x456748]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403cd8
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403cd1
push eax
push ebx
call fcn.00405f7d
add esi, edi
add ebx, edi
dec ebp
jne 0x403cc4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40577e
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x444750], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4057a2
test al, 0x10
jne 0x4057a5
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x444750
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057d0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405850
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405b35
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405884
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4567a8], eax
jmp 0x405a4d
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x4058a2
test eax, eax
je 0x4059d1
test byte [ebp + 0xc], 2
je 0x4059d1
mov esi, 0x43ff50
push edi
push esi
call fcn.00405f4e
test ebx, ebx
je 0x4058bf
push str..
push esi
call fcn.00405f6c
jmp 0x4058c5
push edi
call fcn.00405a9a
push 0x40a228
push edi
call fcn.00405f6c
push edi
call fcn.00405f5f
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059c7
cmp byte [ebp - 0x118], 0x2e
jne 0x405916
cmp byte [ebp - 0x117], 0x2e
je 0x4059aa
cmp byte [ebp - 0x117], 0
je 0x4059aa
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00405f4e
test byte [ebp - 0x144], 0x10
je 0x405941
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059aa
push dword [ebp + 0xc]
push edi
call fcn.00405850
jmp 0x4059aa
push edi
push str.Delete:_DeleteFile___s__
call fcn.004062f4
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4059a2
test byte [ebp + 0xc], 4
push edi
je 0x40598e
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004062f4
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040525b
push 0
push edi
call fcn.00405c97
jmp 0x4059aa
push str.Delete:_DeleteFile_failed___s__
call fcn.004062f4
inc dword [0x4567a8]
pop ecx
pop ecx
jmp 0x4059aa
push edi
push 0xfffffffffffffff2
call fcn.0040525b
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4059d1
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405a4d
cmp dword [ebp - 4], esi
push edi
jne 0x4059f3
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004062f4
inc dword [0x4567a8]
pop ecx
pop ecx
jmp 0x405a4d
call fcn.00406310
test eax, eax
je 0x405a4d
push edi
call fcn.00405a53
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004062f4
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405a45
test byte [ebp + 0xc], 4
push edi
je 0x405a3e
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004062f4
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040525b
push esi
push edi
call fcn.00405c97
jmp 0x405a4d
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4059e4
push edi
push 0xffffffffffffffe5
call fcn.0040525b
pop edi
pop esi
leave
ret 8
Function at 0x405b35
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x441f50
push esi
call fcn.00405f4e
push esi
call fcn.00405ae6
mov edi, eax
test edi, edi
jne 0x405b56
xor eax, eax
jmp 0x405ba8
push edi
call fcn.004061be
test byte [0x456730], 0x80
je 0x405b6f
mov al, byte [edi]
test al, al
je 0x405b52
cmp al, 0x5c
je 0x405b52
sub edi, esi
push esi
call fcn.00405f5f
cmp eax, edi
push esi
jle 0x405b92
call fcn.00406310
test eax, eax
je 0x405b8a
test byte [eax], 0x10
je 0x405b52
push esi
call fcn.00405a9a
jmp 0x405b71
call fcn.00405a53
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c1f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c4e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c93
mov eax, edi
dec edi
test eax, eax
jne 0x405c59
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c8d
Function at 0x405c97
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.0040634e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cc3
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e07
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4448d8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4448d8
je 0x405d07
push 1
push 0
push esi
call fcn.00405c1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e0d
cmp eax, edi
jg 0x405e0d
mov esi, 0x444350
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e0d
cmp eax, edi
jg 0x405e0d
push esi
push ebp
push str._s_s_r_n
push 0x443f50
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.00405f6c
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405e07
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405def
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405de3
push str._Rename__r_n
push edi
call fcn.00405bad
test eax, eax
jne 0x405e14
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00405f4e
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x443f50
push eax
call fcn.00405bf9
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4567b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9bc
push eax
call fcn.00405bad
test eax, eax
je 0x405dca
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405e3d
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405e30
sub eax, edi
jmp 0x405dcc
Function at 0x405e41
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ea5
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e94
cmp dword [ebp + 0x14], 1
je 0x405e96
cmp dword [ebp + 0x14], 2
je 0x405e96
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406257
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40627c
mov eax, dword [0x40a8b8]
cmp eax, 0xffffffff
je 0x406273
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8b8], 0xffffffff
jmp 0x4062ef
cmp dword [0x446680], ebx
je 0x4062ef
cmp byte [0x446280], bl
je 0x4062bb
cmp dword [0x40a8b8], 0xffffffff
jne 0x4062c4
push 4
push 0x40000000
push 0x446280
call fcn.00405c1f
cmp eax, 0xffffffff
mov dword [0x40a8b8], eax
je 0x4062ef
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8b8], 0xffffffff
je 0x4062ef
push esi
mov esi, 0x44a6c0
push 0x40aa8c
push esi
call fcn.00405f6c
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f5f
push eax
push esi
push dword [0x40a8b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x444cdc], esi
push edi
jne 0x4063ef
mov ecx, 0x444cd8
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4063cb
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x4450d8
jl 0x4063c6
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406424
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x444cd8]
xor eax, esi
inc ecx
dec edx
jne 0x406407
pop edi
pop esi
not eax
ret 0xc
Function at 0x404590
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65062d
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0062db60
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0062db60
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0x67eaf4
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x438], esp
call fcn.004d0e50
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x218]
push edx
push str.http:__apps.corel.com_redirect__redirectcommandappcuhversion2.0functiontestonline
mov dword [ebp - 4], 0xffffffff
call fcn.004380f0
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x430], 0
jne 0x4046a5
mov dword [ebp - 0x424], 1
jmp 0x4046af
mov dword [ebp - 0x424], 0
mov al, byte [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret
Function at 0x408f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408f34
xor eax, eax
jmp 0x408fb4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408f4b
xor eax, eax
jmp 0x408fb4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x408f97
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x408f97
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x408f6e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x408fa3
xor eax, eax
jmp 0x408fb4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x408fb1
xor eax, eax
jmp 0x408fb4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x409950
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40997f
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
je 0x40997d
mov byte [ebp - 1], 1
jmp 0x409996
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x80
je 0x409996
mov byte [ebp - 1], 1
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4099b2
push 0
push 0xf012
push 0x112
mov ecx, dword [ebp - 8]
call fcn.0040d440
mov esp, ebp
pop ebp
ret
Function at 0x40b8a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x650e32
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x750990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
push 0
push str.CUH:_CheckCuhMutex_called
call fcn.0043c480
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push str.corel.cuh.msg
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xb7
jne 0x40b95a
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x78], 0
je 0x40b94f
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp - 0x14]
call fcn.0040b8a0
mov dword [ebp - 0x18], eax
jmp 0x40b962
mov dword [ebp - 4], 0xffffffff
jmp 0x40b972
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d8f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65104b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x750990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041aa50
mov dword [ebp - 4], 0
push 3
mov ecx, dword [ebp + 0x10]
push ecx
push 0x6813e8
lea ecx, [ebp - 0x18]
call fcn.0041ae70
push eax
push 0x6813ec
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041a9d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40dbe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651071
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0
push 0x681444
lea ecx, [ebp - 0x238]
call fcn.0041aa50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0041ae70
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40dcb6
push 0x681460
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x40dca9
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [ebp - 0x228]
test eax, eax
jl 0x40dca9
mov dword [ebp - 0x220], 1
mov byte [ebp - 0x219], 0
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x219]
test eax, eax
je 0x40dd12
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.0062db60
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Common_Application_Data
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0041a9d0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret 4
Function at 0x40e550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e5cd
mov eax, dword [ebp + 0x14]
push eax
call fcn.0062eae8
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e5c3
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40e5e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e646
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e63c
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret