joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b408
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1082e43
call fcn.01002b15
sub esp, 0x28
push ebx
push edi
mov edi, ecx
mov eax, edi
neg eax
push 3
sbb eax, eax
pop ecx
and eax, 0x7ff8ffa9
add eax, 0x80070057
push 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
pop ebx
jne 0x103d174
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x103d182
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
jne 0x103d1f2
cmp eax, ebx
jl 0x103d1f2
je 0x101b52e
push ebx
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.01017af4
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x103d192
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x20], edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
call fcn.01017bbe
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jne 0x103d1a8
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
push 3
pop edi
and eax, 0x7ff8fff2
mov ecx, edi
add eax, 0x8007000e
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jne 0x103d1ca
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x103d1d8
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
jne 0x103d1e3
call fcn.0101770c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp al, bl
jne 0x101b52e
jmp 0x101b4a5
cmp eax, ebx
setl dl
cmp dl, bl
jne 0x103d18b
jmp 0x101b43b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
inc ecx
mov dword [esi], ecx
jmp 0x101b53f
cmp ecx, 3
jne 0x103d1a1
cmp eax, ebx
setl al
jmp 0x101b554
mov al, 1
jmp 0x101b554
cmp ecx, 3
jne 0x103d1b4
cmp eax, ebx
setl al
jmp 0x103d1b6
mov al, 1
cmp al, bl
je 0x101b4d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
jmp 0x101b529
cmp eax, ebx
setl al
cmp al, bl
jne 0x103d1be
jmp 0x101b4fa
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x103d1be
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x8000ffff
jmp 0x101b529
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 0x8000ffff
jmp 0x101b52e
Function at 0x101b598
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x103e033
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x101b67a
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x1031030]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x1031030]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x1031030]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x1031030]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x1031030]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x1031030]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x1031030]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x1031030]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x101b5c3
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x101b69a
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x1031030]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x101b680
mov eax, esi
not eax
pop esi
pop ebp
ret 0xc
xor eax, eax
jmp 0x101b69f
Function at 0x101f0bc
Capabilities:
Parse pe header
Terminate process

Disassembly:
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x101da21
cmp ax, 0x20
jbe 0x101da0e
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x101da6d
movzx eax, word [ebp - 0x48]
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0101da72
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x103c9a3
push esi
call dword [sym.imp.msvcrt.dll_exit]
mov dword [ebp - 0x1c], edi
jmp 0x101f114
cmp word [esi], 0x22
jne 0x101da13
jmp 0x101da0e
push 0xa
pop eax
jmp 0x101da38
push 0x70
push 0x1033a48
call fcn.01002e88
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x101da5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101da5d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
jne 0x103c946
cmp dword [ecx + 0x74], 0xe
jbe 0x101da5d
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x109927c], 0xffffffff
or dword [0x10972e8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x109926c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1099268]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1099278], eax
call fcn.01005621
cmp dword [0x1099204], edi
je 0x103c96b
call fcn.0101f43f
push 0x1033a40
push 0x1033a3c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1099264]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1099260]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x1033a38
push 0x10339f0
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
je 0x103c97c
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
je 0x103c987
cmp word [esi], 0x20
jbe 0x101da13
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x101f1d2
cmp eax, 0x20b
jne 0x101da5d
cmp dword [ecx + 0x84], 0xe
jbe 0x101da5d
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x101f10e
push fcn.01005621
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
jmp 0x101f169
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x103c9de
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x101da65
cmp ax, 0x22
jne 0x103c987
jmp 0x101da65
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x103c9d8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002ec1
ret
Function at 0x101f337
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1081050
call fcn.01002b15
sub esp, 0x28
mov al, byte [ebp + 8]
push esi
mov esi, ecx
and dword [esi + 4], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
push edi
mov byte [esi + 0x10], al
lea eax, [ebp + 0xb]
push eax
mov edi, 0x102d020
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], esi
mov dword [esi], 0x102e444
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x14]
call fcn.0101f3d8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea eax, [ebp - 0xd]
push eax
push edi
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0101f3d8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esi + 0x4c]
call fcn.01003da9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x101f754
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push 0
lea ecx, [ebp - 8]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
mov esi, dword [ebp + 0xc]
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x1034906
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
pop esi
leave
ret 8
mov eax, dword [esi]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x103493c
lea ecx, [ebp - 8]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x101f78c
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_1
jmp 0x101f77e
Function at 0x103e87b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x107eb9c
call fcn.01002b15
sub esp, 0x40
and dword [ebp - 0x10], 0
push ebx
push esi
lea ecx, [ebp - 0x1c]
call fcn.010072a1
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
push 0x5c
mov dword [ebp - 4], ebx
call fcn.0101640f
cmp eax, 0xffffffff
mov esi, 0x104
jne 0x103e96c
mov ecx, dword [ebp + 0xc]
push 0x2f
call fcn.0101640f
cmp eax, 0xffffffff
jne 0x103e96c
push esi
lea ecx, [ebp - 0x1c]
call fcn.0107ae2f
test eax, eax
jne 0x103e8e3
mov ecx, dword [ebp + 8]
push 0x102d020
call fcn.01008388
jmp 0x103e91f
push edi
push esi
push eax
push dword [0x10967b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.0107ae7f
test edi, edi
pop edi
je 0x103e912
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.0107aea1
cmp eax, 0xffffffff
jne 0x103e927
mov ecx, dword [ebp + 8]
push 0x102d020
call fcn.01008388
mov dword [ebp - 0x10], ebx
jmp 0x103ea5f
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1c]
call fcn.01016430
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0107b159
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0107add6
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.010041dd
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.010041dd
jmp 0x103e977
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.0107add6
lea ecx, [ebp - 0x28]
call fcn.010072a1
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0107ae2f
test eax, eax
je 0x103ea45
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0107ae7f
test esi, esi
je 0x103ea45
call fcn.0103e3fc
test al, al
je 0x103ea45
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x103ea45
call fcn.0103e3ce
test al, al
mov eax, 0x10836e4
jne 0x103e9e6
mov eax, 0x10836c4
push eax
lea ecx, [ebp - 0x34]
call fcn.01008388
push dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0107b23e
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call fcn.0107b159
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0107add6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.010041dd
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.010041dd
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.010041dd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.01007328
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
call fcn.010041dd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.010041dd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10432cc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x107f300
call fcn.01002b15
sub esp, 0x220
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
xor esi, esi
push 0x5c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x10433fb
cmp eax, 3
jge 0x1043306
inc eax
push ebx
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Left
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp + 8]
push eax
mov ecx, 0x1094e28
call fcn.0103ed94
lea ecx, [ebp - 0x22c]
push ecx
push eax
call fcn.01042f31
lea ecx, [ebp + 8]
mov bl, al
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x10433fa
lea eax, [ebp + 8]
push eax
push 0xf003f
push esi
push 0x1083fd8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10433fa
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, 0x1083fac
push esi
push dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, 0x1083fa4
jne 0x10433c4
cmp dword [ebp - 0x14], ebx
jne 0x10433c4
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10433f0
push 8
push edi
push ebx
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x24]
push eax
push 0x64
push 2
push 0x1083f90
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10481a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xc]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10481fc
test al, 1
je 0x10481fc
cmp byte [ebp + 0x14], bl
je 0x1048285
push dword [esi]
push dword [edi]
push ebx
jmp 0x104827d
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x104823a
cmp byte [ebp + 0x14], bl
je 0x1048215
push dword [esi]
mov ecx, dword [ebp - 4]
push ebx
push 1
call fcn.01048131
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromWin32_long_int_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
cmp byte [ebp + 0x10], bl
je 0x1048225
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 2
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [ebp + 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1048262
cmp dword [ebp + 0xc], 2
je 0x1048225
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], bl
je 0x1048285
push dword [esi]
push dword [edi]
push 2
mov ecx, dword [ebp - 4]
call fcn.01048131
push 0x80004005
lea ecx, [ebp - 0xc]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x1048233
Function at 0x104a8d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
lea ecx, [ebp - 0xc]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
mov edi, dword [ebp + 0xc]
push 0x80070057
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.01002b92
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 4]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::operator_bool_void_const]
test al, al
je 0x104a918
xor al, al
jmp 0x104a981
cmp dword [ebp + 0x10], 0
je 0x104a92c
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
pop ecx
shl esi, 1
jmp 0x104a968
test edi, edi
je 0x104a954
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0100f851
mov eax, esp
push esi
push edi
push eax
call sub.MFC42u.DLL_AfxW2AHelper
mov edi, eax
push edi
call dword [sym.imp.msvcrt.dll__mbslen]
push eax
push edi
call dword [sym.imp.msvcrt.dll__mbsnbcnt]
add esp, 0xc
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
cmp dword [ebp - 4], esi
sete al
lea esp, [ebp - 0x1c]
pop edi
pop esi
leave
ret 0xc
Function at 0x106ac61
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x55], bl
jne 0x106acba
cmp dword [0x109a35c], ebx
jne 0x106acba
push ebp
push edi
mov dword [0x109a35c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ebp, eax
push ebp
push ebx
push 0x106ac36
push 7
call edi
push ebp
push ebx
push 0x106a392
push 2
mov dword [esi + 0x14], eax
call edi
push ebp
push ebx
push 0x106a07d
push 4
mov dword [esi + 0x18], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
mov byte [esi + 0x55], 1
pop ebp
pop esi
pop ebx
ret

Function at 0x106acbd
Capabilities:
Capture webcam image

Disassembly:
mov eax, 0x10818ee
call fcn.01002b15
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call sub.MFC42u.DLL_AfxGetAppModuleState
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
xor ebx, ebx
cmp dword [esi + 0xd8], ebx
mov dword [ebp - 4], ebx
jne 0x106acf2
or edi, 0xffffffff
jmp 0x106ad76
mov eax, dword [esi + 0xd0]
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0xcc]
call fcn.010129c9
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
mov byte [ebp - 4], 1
jne 0x106ad38
push ebx
push 0x5408
push 0x419
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0xc], ebx
push 0x10
sete cl
dec cl
and ecx, 8
push ecx
push ebx
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.01005d17
cmp eax, ebx
je 0x106ad68
mov ecx, esi
call fcn.010058ff
mov ecx, esi
call fcn.01012703
jmp 0x106ad6b
or edi, 0xffffffff
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x106dced
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 8]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x110]
test eax, eax
je 0x106dd2d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x110]
add eax, 4
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x60]
call fcn.0106d705
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
pop esi
leave
ret 4
Function at 0x1072138
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1081acc
call fcn.01002b15
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
mov ebx, ecx
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.0100f851
mov dword [ebp - 0x18], esp
inc esi
push esi
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x102d020
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebp + 0x10]
test esi, esi
mov dword [ebp - 0x1c], edi
je 0x107219f
mov eax, dword [esi]
test eax, eax
je 0x107219f
movzx edi, word [eax]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
je 0x10721f2
cmp edi, ecx
je 0x10721f2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esi]
push dword [ebp + 0x10]
mov ecx, edi
mov edi, eax
mov eax, ecx
inc esi
shr ecx, 2
inc esi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp + 0x10]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx + 4]
push ecx
push 0x102cdb4
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x18]
call fcn.010722da
test eax, eax
mov eax, dword [ebp - 0x10]
jl 0x107222f
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x1083610
push eax
call dword [ecx]
test eax, eax
jge 0x1072253
mov eax, dword [ebp - 0x10]
and byte [ebp - 4], 0
test eax, eax
je 0x107223d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x107224e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
jmp 0x10722c6
push dword [ebp - 0x1c]
push 0xffffffffffffffeb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x1072299
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push eax
call esi
mov edi, 0x10000
test edi, eax
je 0x1072299
push 0xffffffffffffffec
push dword [ebx + 4]
call esi
or eax, edi
push eax
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 0x14]
and byte [ebp - 4], 0
mov dword [eax], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10722b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10722c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10