joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42eead
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x14], ebx
lea eax, [esp + 0xc]
mov dword [esp + 0x130], 1
push eax
push str.SoftwareMetasoft_PlusLPrint
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c547
mov eax, dword [esp + 0x140]
mov dword [esp + 0x10], 0x100
cmp eax, ebx
jne 0x40c433
mov eax, 0x43127c
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x2c]
push ecx
push edx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40c4c8
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call fcn.00402f10
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.00403300
test al, al
je 0x40c4b1
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.004032e0
mov ebx, 1
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x1c]
mov byte [esp + 0x134], 2
jmp 0x40c4cf
lea edi, [esp + 0x150]
mov esi, dword [esp + 0x13c]
mov cl, byte [edi]
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00402f10
mov edx, dword [0x431288]
mov ecx, esi
push edx
push 0
push edi
call fcn.00402a50
or ebx, 2
mov dword [esp + 0x134], 1
test bl, 1
pop edi
je 0x40c513
push 1
lea ecx, [esp + 0x1c]
call fcn.00402f10
push 1
lea ecx, [esp + 0x140]
mov byte [esp + 0x134], 0
call fcn.00402f10
push 1
lea ecx, [esp + 0x150]
mov dword [esp + 0x134], 0xffffffff
call fcn.00402f10
jmp 0x40c5d9
mov esi, dword [esp + 0x138]
mov al, byte [esp + 0x14c]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00402f10
mov ecx, dword [0x431288]
lea edx, [esp + 0x14c]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00402a50
mov ecx, dword [esp + 0x140]
cmp ecx, ebx
je 0x40c59d
mov al, byte [ecx - 1]
test al, al
je 0x40c593
cmp al, 0xff
je 0x40c593
dec al
mov byte [ecx - 1], al
jmp 0x40c59d
dec ecx
push ecx
call fcn.0041615c
add esp, 4
mov ecx, dword [esp + 0x150]
mov dword [esp + 0x140], ebx
cmp ecx, ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
je 0x40c5d9
mov al, byte [ecx - 1]
test al, al
je 0x40c5cf
cmp al, 0xff
je 0x40c5cf
dec al
mov byte [ecx - 1], al
jmp 0x40c5d9
dec ecx
push ecx
call fcn.0041615c
add esp, 4
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x40c8a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42ef71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
lea eax, [esp + 0xc]
mov dword [esp + 0xb0], ebx
push eax
push str.SoftwareMetasoft_PlusLPrint
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [esp + 0xbc]
test eax, eax
jne 0x40ca51
lea ecx, [esp + 0x74]
mov dword [esp + 0x24], 0x431344
call fcn.00403010
mov dword [esp + 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 8], 1
push ebx
push 1
lea ecx, [esp + 0x30]
push ebx
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0xc0], 1
call fcn.0040d970
push 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb4], 2
call fcn.0040da30
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x24], 0x431340
mov ecx, dword [esp + 0xc8]
mov byte [esp + 0xb0], 3
push ecx
lea ecx, [esp + 0x28]
call fcn.0040d1f0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.0040d8f0
mov eax, dword [esp + 0x14]
mov ecx, 0x43127c
cmp eax, ebx
je 0x40c984
mov ecx, eax
cmp esi, ebx
mov eax, 0x43127c
je 0x40c98f
mov eax, esi
mov edx, dword [esp + 0x18]
inc edx
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c9d5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40c9cc
cmp al, 0xff
je 0x40c9cc
dec al
mov byte [ecx], al
jmp 0x40c9d5
push ecx
call fcn.0041615c
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x74]
mov dword [esp + 8], edx
mov dword [esp + ecx + 0x24], 0x431340
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0x431298
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 5
call fcn.0040dd30
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 4
call fcn.004029c0
mov eax, dword [esp + 0x24]
mov byte [esp + 0xb0], bl
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x24], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0041671f
cmp esi, ebx
je 0x40ca86
mov al, byte [esi - 1]
cmp al, bl
je 0x40ca7c
cmp al, 0xff
je 0x40ca7c
dec al
mov byte [esi - 1], al
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
dec esi
push esi
call fcn.0041615c
add esp, 4
mov ecx, dword [esp + 0xa8]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x40cac0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42efd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
lea eax, [esp + 0xc]
mov dword [esp + 0xb0], ebx
push eax
push str.SoftwareMetasoft_PlusLPrint
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [esp + 0xbc]
test eax, eax
jne 0x40cc79
lea ecx, [esp + 0x74]
mov dword [esp + 0x24], 0x431344
call fcn.00403010
mov dword [esp + 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 8], 1
push ebx
push 1
lea ecx, [esp + 0x30]
push ebx
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0xc0], 1
call fcn.0040d970
push 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb4], 2
call fcn.0040da30
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x24], 0x431340
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 3
call fcn.0040d420
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
call fcn.0040d8f0
mov eax, dword [esp + 0x14]
mov ecx, 0x43127c
cmp eax, ebx
je 0x40cbac
mov ecx, eax
cmp esi, ebx
mov eax, 0x43127c
je 0x40cbb7
mov eax, esi
mov edx, dword [esp + 0x18]
inc edx
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40cbfd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40cbf4
cmp al, 0xff
je 0x40cbf4
dec al
mov byte [ecx], al
jmp 0x40cbfd
push ecx
call fcn.0041615c
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x74]
mov dword [esp + 8], edx
mov dword [esp + ecx + 0x24], 0x431340
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0x431298
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 5
call fcn.0040dd30
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 4
call fcn.004029c0
mov eax, dword [esp + 0x24]
mov byte [esp + 0xb0], bl
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x24], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0041671f
cmp esi, ebx
je 0x40ccae
mov al, byte [esi - 1]
cmp al, bl
je 0x40cca4
cmp al, 0xff
je 0x40cca4
dec al
mov byte [esi - 1], al
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
dec esi
push esi
call fcn.0041615c
add esp, 4
mov ecx, dword [esp + 0xa8]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x40ccd0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42f02e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
xor ebx, ebx
push ebp
push edi
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x10]
mov dword [esp + 0xb0], 1
push eax
push str.SoftwareMetasoft_PlusLPrint
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, dword [esp + 0xcc]
mov ebp, dword [esp + 0xbc]
test eax, eax
jne 0x40ce73
lea ecx, [esp + 0x74]
mov dword [esp + 0x24], 0x431344
call fcn.00403010
mov dword [esp + 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0xc], 1
push ebx
push 1
lea ecx, [esp + 0x30]
push ebx
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0xc0], 2
call fcn.0040d970
push 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb4], 3
call fcn.0040da30
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x24], 0x431340
cmp edi, ebx
mov byte [esp + 0xb0], 4
mov eax, 0x43127c
je 0x40cd9d
mov eax, edi
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0040ab30
add esp, 8
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
call fcn.0040d8f0
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x40cdc6
mov ecx, 0x43127c
cmp ebp, ebx
mov eax, 0x43127c
je 0x40cdd1
mov eax, ebp
mov edx, dword [esp + 0x1c]
inc edx
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40ce17
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40ce0e
cmp al, 0xff
je 0x40ce0e
dec al
mov byte [ecx], al
jmp 0x40ce17
push ecx
call fcn.0041615c
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x74]
mov dword [esp + 0xc], edx
mov dword [esp + ecx + 0x24], 0x431340
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 5
call fcn.00402420
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x74]
mov byte [esp + 0xb0], 1
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x24], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0041671f
cmp ebp, ebx
je 0x40ce93
mov al, byte [ebp - 1]
cmp al, bl
je 0x40ce89
cmp al, 0xff
je 0x40ce89
dec al
mov byte [ebp - 1], al
jmp 0x40ce93
dec ebp
push ebp
call fcn.0041615c
add esp, 4
cmp edi, ebx
je 0x40ceb3
mov al, byte [edi - 1]
cmp al, bl
je 0x40cea9
cmp al, 0xff
je 0x40cea9
dec al
mov byte [edi - 1], al
jmp 0x40ceb3
dec edi
push edi
call fcn.0041615c
add esp, 4
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret
Function at 0x40ced0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42f091
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
xor esi, esi
push edi
mov dword [esp + 8], esi
lea eax, [esp + 0xc]
mov dword [esp + 0xb0], esi
push eax
push str.SoftwareMetasoft_PlusLPrint
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, dword [esp + 0xbc]
test eax, eax
jne 0x40d0cd
push ebx
lea ecx, [esp + 0x78]
mov dword [esp + 0x28], 0x431344
call fcn.00403010
mov dword [esp + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0xc], 1
push esi
push 1
lea ecx, [esp + 0x34]
push esi
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0xc4], 1
call fcn.0040d970
push 2
lea ecx, [esp + 0x30]
mov dword [esp + 0xb8], 2
call fcn.0040da30
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x28], 0x431340
mov ebx, dword [esp + 0xcc]
push 0x4384a0
mov ecx, ebx
mov byte [esp + 0xb8], 3
and ecx, 0xff
push ecx
lea ecx, [esp + 0x30]
call fcn.0040d1f0
push eax
call fcn.0040ab30
xor edx, edx
add esp, 8
mov dl, bh
lea ecx, [esp + 0x28]
and edx, 0xff
push 0x4384a0
push edx
call fcn.0040d1f0
push eax
call fcn.0040ab30
shr ebx, 0x10
add esp, 8
and ebx, 0xff
lea ecx, [esp + 0x28]
push ebx
call fcn.0040d1f0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
call fcn.0040d8f0
mov eax, dword [esp + 0x18]
pop ebx
cmp eax, esi
jne 0x40cfff
mov eax, 0x43127c
cmp edi, esi
mov ecx, 0x43127c
je 0x40d00a
mov ecx, edi
mov edx, dword [esp + 0x18]
inc edx
push edx
push eax
mov eax, dword [esp + 0x14]
push 1
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40d050
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d047
cmp al, 0xff
je 0x40d047
dec al
mov byte [ecx], al
jmp 0x40d050
push ecx
call fcn.0041615c
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov ecx, dword [eax + 4]
lea edx, [esp + 0x74]
mov dword [esp + 8], edx
mov dword [esp + ecx + 0x24], 0x431340
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0x431298
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 5
call fcn.0040dd30
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 4
call fcn.004029c0
mov eax, dword [esp + 0x24]
mov byte [esp + 0xb0], 0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x24], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0041671f
cmp edi, esi
je 0x40d102
mov al, byte [edi - 1]
test al, al
je 0x40d0f8
cmp al, 0xff
je 0x40d0f8
dec al
mov byte [edi - 1], al
pop edi
pop esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
dec edi
push edi
call fcn.0041615c
add esp, 4
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x40da30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f193
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.004168c0
mov dword [esi + 0x34], eax
mov eax, dword [0x43c93c]
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jae 0x40da66
inc ecx
mov dword [eax + 4], ecx
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], 0
mov eax, dword [esi + 0x20]
push 0
push 0
push 0
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x1c], 0
mov dword [ecx], 0
mov ecx, esi
call fcn.004094f0
mov cl, byte [esp + 0x18]
xor eax, eax
test cl, 1
mov dword [esi], 0x431298
jne 0x40dad3
mov eax, 4
test cl, 2
jne 0x40dada
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov eax, esi
pop esi
mov dword [ecx], 0
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x412e80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42f598
push eax
mov eax, dword [0x43c8b8]
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [eax + 0x28]
push ebx
push esi
mov esi, ecx
push eax
call fcn.00412d40
mov ecx, dword [0x43c8b8]
add esp, 4
xor ebx, ebx
mov eax, dword [ecx + 0x28]
push ebx
push eax
push ebx
push ebx
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xff0000
push str.LPrint
push str.LPrintWndClass
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x412f6b
push ebp
push edi
mov edi, str.cant_CreateWindow
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00403300
test al, al
je 0x412f48
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.cant_CreateWindow
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], bl
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
mov dword [esp + 0x44], ebx
call fcn.0040a3f0
lea eax, [esp + 0x24]
push 0x433938
push eax
call fcn.004220ee
pop edi
pop ebp
push esi
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, esi
call fcn.00413cc0
mov ecx, dword [esi + 4]
push 3
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, esi
call fcn.00415900
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x414110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42f648
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov ebp, dword [esp + 0xa0]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
cmp eax, ecx
je 0x41414d
cmp dword [eax], ebp
je 0x41414d
add eax, 0x20
cmp eax, ecx
jne 0x414142
cmp eax, ecx
je 0x4141d7
mov al, byte [esp + 0x13]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00402f10
mov edi, str.duplicate_document_in_Window::addDocument
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00403300
test al, al
je 0x4141ad
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
mov esi, str.duplicate_document_in_Window::addDocument
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.004032e0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x80]
push eax
mov dword [esp + 0xa0], ebx
call fcn.0040a3f0
lea ecx, [esp + 0x80]
push 0x433938
push ecx
call fcn.004220ee
mov edx, dword [edi + 8]
mov eax, dword [edi + 0x14]
xor ebx, ebx
lea esi, [edi + 0x10]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
cmp eax, ebx
fld qword [edx + 0x48]
fstp qword [esp + 0x44]
je 0x414222
mov edx, dword [esi + 8]
sub edx, eax
test edx, 0xffffffe0
jne 0x41422c
mov dword [esp + 0x4c], 0x80e8
jmp 0x414234
mov eax, dword [ecx - 8]
inc eax
mov dword [esp + 0x4c], eax
mov edx, dword [esi + 8]
lea ecx, [esp + 0x34]
push ecx
push 1
push edx
mov ecx, esi
call fcn.00415d60
push edi
mov ecx, ebp
call fcn.00405bc0
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.0040b7a0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], 0x2c
cmp eax, ebx
mov dword [esp + 0x58], 0x12
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x78], 0x43127c
je 0x414282
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
mov dword [esp + 0x64], ecx
mov ecx, dword [edi + 4]
push eax
push ebx
push 0x800a
push ecx
mov dword [esp + 0x8c], edx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_InsertMenuItemA]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4142d5
mov al, byte [ecx - 1]
cmp al, bl
je 0x4142cb
cmp al, 0xff
je 0x4142cb
dec al
mov byte [ecx - 1], al
jmp 0x4142d5
dec ecx
push ecx
call fcn.0041615c
add esp, 4
mov eax, dword [esi + 4]
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jne 0x4142ec
xor esi, esi
jmp 0x4142f4
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 5
dec esi
mov ecx, edi
push esi
call fcn.00414520
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 4
Function at 0x1000cd31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002cd97
call fcn.10017073
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000cdae
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000cdae
call fcn.10005a99
mov esi, eax
jmp 0x1000ce85
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000cdd1
call fcn.10005a99
jmp 0x1000ce78
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000cdc7
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000ce01
mov esi, 0x8007000e
jmp 0x1000ce7a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10012745
jmp 0x1000ce27
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cdfa
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000cdc7
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10012745
mov esi, eax
test edi, edi
je 0x1000ce85
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000ce9e
lea ecx, [ebp - 0x418]
call fcn.1000c4af
mov eax, esi
call fcn.10016fc0
ret 0x10
Function at 0x100123e7
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x1002d2cf
call fcn.10016fd1
mov ebx, ecx
mov eax, dword [ebx]
xor edi, edi
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10012745
and dword [ebp - 4], edi
lea esi, [ebx + 0x44]
cmp dword [esi], edi
je 0x10012492
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.10012745
mov ecx, dword [esi]
test al, al
je 0x10012474
push 0xb
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x18], ax
sub esp, 0x10
mov byte [ebp - 4], 1
mov edi, esp
lea esi, [ebp - 0x20]
push 1
movsd dword es:[edi], dword [esi]
push str.Close
push ecx
push eax
movsd dword es:[edi], dword [esi]
push 1
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10012745
add esp, 0x28
mov byte [ebp - 4], 0
mov edi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
lea esi, [ebx + 0x44]
jmp 0x1001248b
push 0
push str.Close
push ecx
push 0
push 1
push ebx
call fcn.10012745
add esp, 0x18
mov edi, eax
mov ecx, esi
call fcn.10009bb3
cmp dword [ebx + 0x24], 0
je 0x100124b2
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.10012745
test al, al
je 0x100124b2
push dword [ebx + 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, edi
call fcn.10016f9a
ret