joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10006329
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006364
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10006360
lea ebx, [ebx]
cmp esi, edx
jae 0x10006364
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10006350
cmp esi, edx
jb 0x1000636b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100173f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc94
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
mov edi, ecx
call fcn.100067f0
mov eax, 0x43
mov dword [ebp - 0x4e], 0x720075
mov word [ebp - 0x50], ax
mov esi, 0x6f
mov eax, 0x52
mov dword [ebp - 0x66], 0x690057
mov word [ebp - 0x80], ax
mov ecx, 0x72
mov eax, 0x4d
mov word [ebp - 0x4a], cx
mov word [ebp - 0x7a], ax
mov eax, 0x65
mov word [ebp - 0x40], ax
mov eax, 0x72
push 0x7fc
mov word [ebp - 0x20], ax
lea eax, [ebp - 0xc88]
mov word [ebp - 0x74], cx
lea ecx, [esi + 5]
push 0
push eax
mov dword [ebp - 0x78], 0x630069
mov dword [ebp - 0x84], 0x410057
mov dword [ebp - 0x7e], 0x5c0045
mov dword [ebp - 0x8c], 0x4f0053
mov dword [ebp - 0x72], 0x73006f
mov dword [ebp - 0x6e], 0x66006f
mov dword [ebp - 0x3e], 0x730072
mov dword [ebp - 0x88], 0x540046
mov dword [ebp - 0x58], 0x4e0020
mov dword [ebp - 0x48], 0x6e0065
mov dword [ebp - 0x3a], 0x6f0069
mov dword [ebp - 0x6a], 0x5c0074
mov dword [ebp - 0x54], 0x5c0054
mov dword [ebp - 0x44], 0x560074
mov dword [ebp - 0x5c], 0x730077
mov dword [ebp - 0x62], 0x64006e
mov dword [ebp - 0x36], 0x6e
mov word [ebp - 0x5e], si
mov dword [ebp - 0x1e], 0x64006f
mov dword [ebp - 0x1a], 0x630075
mov dword [ebp - 0x24], 0x50006c
mov dword [ebp - 0x28], 0x610074
mov dword [ebp - 0x16], 0x490074
mov dword [ebp - 0x2c], 0x690067
mov dword [ebp - 0x12], 0x64
mov dword [ebp - 0x30], 0x690044
mov dword [ebp - 0xc8c], 0
call fcn.10009820
add esp, 0xc
mov dword [ebp - 0xc90], 0x800
lea eax, [ebp - 0xc94]
lea edx, [ebp - 0x8c]
push eax
push 0x101
push ecx
call fcn.10003900
add esp, 0xc
test eax, eax
jne 0x10017629
lea eax, [ebp - 0xc90]
push eax
lea eax, [ebp - 0xc8c]
push eax
push 0
push ecx
mov ecx, dword [ebp - 0xc94]
lea edx, [ebp - 0x30]
call fcn.10018800
add esp, 0x10
test eax, eax
jne 0x1001761e
push 0x3ff
push eax
mov byte [ebp - 0x48c], al
lea eax, [ebp - 0x48b]
push eax
call fcn.10009820
push dword [ebp - 0xc90]
lea edx, [ebp - 0x48c]
lea ecx, [ebp - 0xc8c]
call fcn.10001300
add esp, 0x10
mov dword [ebp - 0xc], 0x730025
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x48c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100175e0
sub eax, edx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x100175f8
xor eax, eax
jmp 0x10017610
lea eax, [esi + esi]
call fcn.100136d0
mov ecx, esp
lea edx, [ebp - 0x48c]
push 3
push esi
call fcn.100061e0
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.10007010
add esp, 0xc
mov ecx, dword [ebp - 0xc94]
call fcn.10003990
lea esp, [ebp - 0xca0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret
Function at 0x100186a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov word [ebp - 0xe], 0x3233
push eax
mov dword [ebp - 0x13], 0x656e7265
mov byte [ebp - 0xf], 0x6c
mov dword [ebp - 0xb], 0x6c6c64
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0x14], 0x4b
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret

Function at 0x10018730
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0x6c
push eax
mov dword [ebp - 0xd], 0x642e6c6c
mov word [ebp - 0x10], 0x746e
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0xe], 0x64
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret

Function at 0x10018800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x28], eax
mov esi, 1
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
call fcn.10002220
mov edi, eax
test edi, edi
je 0x1001888f
lea eax, [ebp - 0x18]
mov dword [ebp - 0xb], 0x577845
push eax
push edi
mov word [ebp - 0x15], 0x7551
mov word [ebp - 0x12], 0x7972
mov word [ebp - 0x17], 0x6765
mov dword [ebp - 0xf], 0x65756c61
mov byte [ebp - 0x18], 0x52
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x10], 0x56
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018888
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push 0
push dword [ebp - 0x20]
push ebx
call eax
mov esi, eax
mov ecx, edi
call fcn.100025e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000765b
mov esp, ebp
pop ebp
ret

Function at 0x100188b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0x746f6873
push eax
mov dword [ebp - 0x19], 0x686c6f6f
mov dword [ebp - 0x20], 0x61657243
mov word [ebp - 0x14], 0x706c
mov word [ebp - 0x11], 0x5332
mov word [ebp - 0xe], 0x7061
mov word [ebp - 0x1c], 0x6574
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x12], 0x33
mov byte [ebp - 8], 0
mov byte [ebp - 0xf], 0x6e
mov byte [ebp - 0x1a], 0x54
call fcn.100186a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018929
push 0
push 2
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret
Function at 0x10018940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x14], 0x636f7250
mov dword [ebp - 0xb], 0x73726946
mov dword [ebp - 0xf], 0x32337373
mov word [ebp - 7], 0x74
mov byte [ebp - 0x10], 0x65
call fcn.100186a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001899f
push edi
push esi
call eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1000765b
mov esp, ebp
pop ebp
ret

Function at 0x100189c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], 0x704f
mov dword [ebp - 0xa], 0x7365636f
mov word [ebp - 0xd], 0x506e
mov byte [ebp - 0xe], 0x65
mov word [ebp - 6], 0x73
mov byte [ebp - 0xb], 0x72
call fcn.100186a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018a1f
push esi
push 0
push 1
call eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1000765b
mov esp, ebp
pop ebp
ret

Function at 0x10018a30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], 0x6547
push eax
mov dword [ebp - 0x11], 0x50746e65
mov word [ebp - 0xd], 0x6f72
mov dword [ebp - 0xa], 0x737365
mov dword [ebp - 0x15], 0x72727543
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0x16], 0x74
call fcn.100186a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018a8d
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret
Function at 0x10018aa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x20], eax
xor esi, esi
call fcn.10002220
mov edi, eax
test edi, edi
je 0x10018b22
lea eax, [ebp - 0x1c]
mov word [ebp - 0xc], 0x656c
push eax
push edi
mov dword [ebp - 0x1b], 0x73756a64
mov dword [ebp - 0x13], 0x72506e65
mov byte [ebp - 0x1c], 0x41
mov word [ebp - 9], 0x7365
mov byte [ebp - 0xa], 0x67
mov word [ebp - 0xf], 0x7669
mov dword [ebp - 0x17], 0x6b6f5474
mov byte [ebp - 7], 0
mov byte [ebp - 0xd], 0x69
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018b1b
push esi
push esi
push 0x10
push dword [ebp - 0x20]
push esi
push ebx
call eax
mov esi, eax
mov ecx, edi
call fcn.100025e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000765b
mov esp, ebp
pop ebp
ret

Function at 0x10018b40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x24], edx
mov ebx, ecx
xor esi, esi
call fcn.100021e0
mov edi, eax
test edi, edi
je 0x10018bc9
lea eax, [ebp - 0x20]
mov word [ebp - 0x1a], 0x6f64
push eax
push edi
mov word [ebp - 0xc], 0x7373
mov dword [ebp - 0x17], 0x65726854
mov dword [ebp - 0x11], 0x636f7250
mov word [ebp - 0x20], 0x6547
mov word [ebp - 0x1d], 0x6957
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0x1b], 0x6e
mov word [ebp - 0x13], 0x6461
mov word [ebp - 9], 0x64
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x18], 0x77
mov byte [ebp - 0xa], 0x49
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018bc2
push dword [ebp - 0x24]
push ebx
call eax
mov esi, eax
mov ecx, edi
call fcn.100025e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000765b
mov esp, ebp
pop ebp
ret

Function at 0x10018c50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x13], 0x4c64616f
push eax
mov esi, ecx
mov dword [ebp - 0xc], 0x41797261
mov byte [ebp - 8], 0
mov word [ebp - 0xf], 0x6269
mov byte [ebp - 0x14], 0x4c
mov byte [ebp - 0xd], 0x72
call fcn.100186a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018ca9
push esi
call eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000765b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1000765b
mov esp, ebp
pop ebp
ret
Function at 0x10018cc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.100034b0
mov edi, eax
test edi, edi
je 0x10018d18
lea eax, [ebp - 0x10]
mov dword [ebp - 0xd], 0x6e496f54
push eax
push edi
mov word [ebp - 9], 0x4174
mov word [ebp - 0xf], 0x7274
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 7], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018d11
push ebx
call eax
mov esi, eax
mov ecx, edi
call fcn.100025e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000765b
mov esp, ebp
pop ebp
ret

Function at 0x10018da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10021010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
call fcn.10002220
mov esi, eax
test esi, esi
je 0x10018dff
lea eax, [ebp - 0x10]
mov word [ebp - 0x10], 0x444d
push eax
push esi
mov word [ebp - 0xa], 0x7461
mov word [ebp - 0xd], 0x7055
mov byte [ebp - 0xe], 0x35
mov byte [ebp - 0xb], 0x64
mov word [ebp - 8], 0x65
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018df8
push dword [ebp + 8]
push ebx
push edi
call eax
mov ecx, esi
call fcn.100025e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000765b
mov esp, ebp
pop ebp
ret
Function at 0x401c50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x5acd88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa30], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
mov dword [ebp - 0xa34], ecx
mov dword [ecx], vtable.CLimitSingleInstance.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0xffffffff
call fcn.005265d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.005265d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.005265d0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005265d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push eax
call fcn.005265d0
add esp, 0x3c
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0052546f
push 0x555890
mov eax, str.startup
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
call fcn.0052534c
mov ecx, dword [ebp - 0xa30]
add esp, 0x3c
lea eax, [ebp - 0xa2c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
test ebx, ebx
push edi
mov eax, str.Mutex
cmovne eax, ebx
push eax
test ecx, ecx
lea eax, [ebp - 0x20c]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea eax, [ebp - 0x824]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [ebp - 0xa34]
mov dword [edi + 8], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525af7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4050f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40512f
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret
Function at 0x407b50
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543a8b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x5acd88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str._RegisterAppForNotificationSupport__RegisterAppForNotificationSupport
call fcn.0040be80
add esp, 4
mov dword [ebp - method.Microsoft::WRL::Wrappers::HandleT_struct_CoTaskMemStringTraits_.virtual_0], vtable.Microsoft::WRL::Wrappers::HandleT_struct_CoTaskMemStringTraits_.0
mov dword [ebp - 0x834], 0
lea eax, [ebp - 0x834]
push eax
push 0
push 0
push 0x587ba4
mov dword [ebp - 4], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, eax
test esi, esi
js 0x407cc3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005265d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
push str._sCLToast_XML.ini
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00525204
add esp, 0x10
lea eax, [ebp - 0x420]
push str.MicrosoftWindowsStart_MenuProgramsCyberLink_Notification_Center.lnk
push dword [ebp - 0x834]
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
mov esi, eax
test esi, esi
js 0x407cc3
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
setb al
test al, al
jne 0x407cc3
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x407c96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407c94
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x407cc3
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00407410
mov esi, eax
add esp, 8
test esi, esi
js 0x407cc3
lea eax, [ebp - 0x628]
push eax
call fcn.00407d60
add esp, 4
mov esi, eax
cmp dword [ebp - 0x834], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.Microsoft::WRL::Wrappers::HandleT_struct_CoTaskMemStringTraits_.virtual_0], vtable.Microsoft::WRL::Wrappers::HandleT_struct_CoTaskMemStringTraits_.0
je 0x407d0c
lea ecx, [ebp - 0x838]
call dword [vtable.Microsoft::WRL::Wrappers::HandleT_struct_CoTaskMemStringTraits_.0]
test al, al
jne 0x407d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407cff
movzx eax, ax
or eax, 0x80070000
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525af7
mov esp, ebp
pop ebp
ret
Function at 0x407d60
Capabilities:
Persist via com hijack
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.RegisterComServer
push str.__S__RegisterComServer
call fcn.0040bef0
mov edx, dword [ebp + 8]
mov ecx, edx
add esp, 8
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d80
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SOFTWAREClassesCLSIDFFA5B06E_20BB_4E7E_A0AC_6982ED6A6041LocalServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
pop esi
test eax, eax
jle 0x407db9
movzx eax, ax
or eax, 0x80070000
pop ebp
ret
Function at 0x409aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409ab5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409af0
lea ebx, [ebx]
cmp esi, edx
jae 0x409af4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409ae0
cmp esi, edx
jb 0x409af9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40be80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00525f50
mov eax, dword [0x5acd88]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5ae9a0], 0
je 0x40bed8
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0xfff
push 0x1000
push eax
call fcn.00526958
add esp, 0x14
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x5583d8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525af7
mov esp, ebp
pop ebp
ret

Function at 0x40bef0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00525f50
mov eax, dword [0x5acd88]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5ae9a0], 0
je 0x40bf48
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0xfff
push 0x1000
push eax
call fcn.00526ae6
add esp, 0x14
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x5583d4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525af7
mov esp, ebp
pop ebp
ret
Function at 0x40c1b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1828
call fcn.00525f50
mov eax, dword [0x5acd88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1828], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.005265d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.005265d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005265d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.005265d0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1024], ax
lea eax, [ebp - 0x1022]
push eax
call fcn.005265d0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1824], ax
lea eax, [ebp - 0x1822]
push eax
call fcn.005265d0
add esp, 0x48
lea eax, [ebp - 0x824]
push esi
push 0x55539c
push 0x104
push eax
call fcn.00525204
push edi
push 0x55539c
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00525204
push ebx
push 0x55539c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00525204
push dword [ebp - 0x1828]
lea eax, [ebp - 0x61c]
push 0x55539c
push 0x104
push eax
call fcn.00525204
add esp, 0x40
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040df30
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
push 0x400
lea eax, [ebp - 0x1024]
push eax
push 0x55514c
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1024]
push 0x55514c
push eax
call fcn.00525079
add esp, 8
pop edi
pop esi
pop ebx
test eax, eax
jne 0x40c35f
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
jmp 0x40c393
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x1024]
push eax
push str._s__s
lea eax, [ebp - 0x1824]
push 0x400
push eax
call fcn.00525204
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x1824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525af7
mov esp, ebp
pop ebp
ret