joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409310
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x463b0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x54e210]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x409448
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409376
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458c43
xor eax, eax
jmp 0x4094bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00458d80
push esi
lea ecx, [esp + 0xc]
call fcn.0045900f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40949d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004092a0
test eax, eax
jne 0x40949d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.004092a0
test eax, eax
jne 0x40949d
lea eax, [esp + 0x14]
push 0x547d1c
push eax
call fcn.0044a860
mov esi, eax
add esp, 8
test esi, esi
jne 0x40947c
lea ecx, [esp + 0x14]
push 0x547d18
push ecx
call fcn.0044a7e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40947c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40947f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00458d30
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40938e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458c43
xor eax, eax
jmp 0x4094bf
mov byte [esi], 0
push 0x547d14
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00458c43
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x419ea0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x419f0e
cmp si, 0x69
ja 0x419f0e
add esi, 0xffd0
cmp si, 0x11
je 0x419ede
push 0x11
call edi
test ax, ax
jge 0x419ede
or esi, 0x2000
cmp si, 0x10
je 0x419ef3
push 0x10
call edi
test ax, ax
jge 0x419ef3
or esi, 0x4000
cmp si, 0x12
je 0x419f08
push 0x12
call edi
test ax, ax
jge 0x419f08
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419f1b
mov esi, 0xbd
jmp 0x419ecf
cmp si, 0x6e
jne 0x419f28
mov esi, 0xbe
jmp 0x419ecf
cmp si, 0x6f
jne 0x419ec9
mov esi, 0xbf
jmp 0x419ecf

Function at 0x41b580
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x55e848]
xor edx, edx
cmp eax, edx
jne 0x41b5a6
xor eax, eax
mov byte [eax + 0x55e748], al
inc eax
cmp eax, 0x100
jl 0x41b58e
mov dword [0x55e848], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x55e748
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b637
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41b60a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41b5d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41b703
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41b6ea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d250
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4659f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00427b50
test eax, eax
je 0x42d358
lea ecx, [esp + 0xc]
call fcn.00404630
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00427b50
mov ecx, eax
call fcn.00425210
test eax, eax
je 0x42d33f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42d33f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42d33f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00404830
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42d321
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42d33f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x55ec98]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x535378
call fcn.00404830
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42d3a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00427b50
test eax, eax
je 0x42d48f
mov ecx, edi
call fcn.00427b50
mov ecx, eax
call fcn.004250c0
test eax, eax
jne 0x42d48f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42d48f
mov eax, dword [0x55ec98]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42d402
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00427b50
mov ecx, eax
call fcn.004252f0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42d48f
cmp ebx, eax
jne 0x42d48f
cmp dword [esp + 0x10], eax
jne 0x42d475
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4300c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x465c88
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4300f9
inc eax
mov dword [esi + 0x10], eax
jmp 0x43020c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43010d
mov eax, 0xffffffc7
jmp 0x43020e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43011e
cmp dword [esi + 8], eax
jne 0x43010d
cmp dword [esi + 8], eax
jne 0x430137
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x430137
mov eax, 0xffffffc7
jmp 0x43020e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43014b
push eax
mov ecx, ebx
call fcn.0042f8f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00404630
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43017c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404650
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042f060
test eax, eax
mov dword [esp + 0x38], eax
je 0x4301af
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x535378
call fcn.00404830
mov eax, dword [esp + 0x38]
jmp 0x43020e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042ff20
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4301f3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042ff40
mov esi, eax
test esi, esi
jne 0x430223
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042ff20
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4301c5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x535378
call fcn.00404830
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x535378
call fcn.00404830
mov eax, esi
jmp 0x43020e

Function at 0x4332d0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x433330
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x433330
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x433330
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x433330
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x433370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x529c99
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp + 2], eax
cpuid
mov edi, ebp
inc bx
lea edi, [esp + esi]
xchg ah, bl
jmp 0x529bc4
mov word [esp + 0xf], di
mov word [esp + 0x13], di
inc edi
sub esp, 0x18
mov byte [esp + 0x25], bh
push word [esp + 0x1b]
jmp 0x529bda
mov ebp, dword [esp + 4]
xchg bh, cl
pushal
btr ebx, esp
cpuid
rdtsc
jmp 0x529bf1
rdtsc
jmp 0x529c14

Function at 0x52ab47
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop eax
rdtsc
jmp 0x52ab50
lea ebp, [ebp*4]
stc
not bx
mov ax, word [esp + 0xa]
pop ecx
and bp, 0xbe22
jmp 0x52ab9b
stosb byte es:[edi], al
lds esi, [esi - 0x79]
dec esp
and al, 5
xchg word [esp + 5], cx
xchg dh, al
add ebx, ebp
rdtsc
call fcn.0052ab71
jle 0x52ab98
jnp 0x52abcd
in eax, dx
inc edx
xchg esp, eax
or al, 0x82
in eax, 0x14
mov dword [reloc.USER32.dll_ExitWindowsEx], eax
and al, 4
invalid
Function at 0x401350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401369
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4013a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401390
cmp esi, eax
jb 0x4013aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x404d70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41e208
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x42afb8]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
cmp dword [esi - 4], 1
mov dword [esp + 0x10], 0
jle 0x404db4
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x20]
call fcn.00401720
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 4
push 0
push 0
push esi
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404def
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
Function at 0x405050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41e268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x42afb8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x10], esp
mov edi, esp
push esi
mov dword [esp + 0x40], 0
call fcn.00401480
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x28]
add esp, 4
push eax
call fcn.00404e00
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add esp, 8
cmp cx, 0x7d0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
jae 0x4050f9
mov dword [esp + 0x38], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4050e5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
cmp cx, 0x7e4
jbe 0x405135
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405121
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
mov cx, word [esp + 0x16]
cmp cx, 1
jb 0x4050c4
cmp cx, 0x1f
jbe 0x405163
lea ecx, [esp + 0x40]
call fcn.00401810
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
mov cx, word [esp + 0x12]
cmp cx, 1
jb 0x405146
cmp cx, 0xc
ja 0x405146
cmp dx, 0x18
ja 0x405146
cmp word [esp + 0x1a], 0x3b
ja 0x405146
cmp ax, 0x3b
lea ecx, [esp + 0x40]
ja 0x40514a
call fcn.00401810
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x405c40
Capabilities:
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41e42b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x42afb8]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x42afb8]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x12c]
push 1
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x42b0c8]
mov eax, dword [eax + 0x1b4]
push 0x1c
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [0x434350]
mov eax, dword [edx + 0xc]
mov ecx, 0x434350
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x124], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405cc7
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004026b0
push 0x2a
push str.ACD_SystemsACDSee_MessageCenterMessages
lea ecx, [esp + 0x18]
call fcn.00402810
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x405d37
add esi, 0xfffffff0
push esi
call fcn.00401480
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x124], ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x405db2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x405db2
cmp dword [esi - 4], 1
jle 0x405d4e
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401720
mov esi, dword [esp + 0x10]
push 1
push esi
call fcn.0041ad80
add esp, 8
test eax, eax
je 0x405d86
add esi, 0xfffffff0
push esi
call fcn.00401480
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x124], ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x405db2
mov ecx, dword [esi]
push esi
jmp 0x405dab
push 0x421a65
mov ecx, edi
call fcn.00402c30
lea eax, [esi - 0x10]
mov dword [esp + 0x124], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x405db2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041ce52
add esp, 0x118
ret
Function at 0x405de0
Capabilities:
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41e42b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x42afb8]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x42afb8]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x12c]
push 1
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x42b0c8]
mov eax, dword [eax + 0x1b4]
push 0x1c
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [0x434350]
mov eax, dword [edx + 0xc]
mov ecx, 0x434350
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x124], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405e67
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004026b0
push 0x25
push str.ACD_SystemsACDSee_MessageCenterAds
lea ecx, [esp + 0x18]
call fcn.00402810
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x405ed7
add esi, 0xfffffff0
push esi
call fcn.00401480
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x124], ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x405f52
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x405f52
cmp dword [esi - 4], 1
jle 0x405eee
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401720
mov esi, dword [esp + 0x10]
push 1
push esi
call fcn.0041ad80
add esp, 8
test eax, eax
je 0x405f26
add esi, 0xfffffff0
push esi
call fcn.00401480
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x124], ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x405f52
mov ecx, dword [esi]
push esi
jmp 0x405f4b
push 0x421a65
mov ecx, edi
call fcn.00402c30
lea eax, [esi - 0x10]
mov dword [esp + 0x124], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x405f52
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041ce52
add esp, 0x118
ret
Function at 0x406be0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41e59d
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x42afb8]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
mov eax, dword [0x42afb8]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x13c]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x29]
push ebx
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x140], ebx
mov dword [esp + 0x24], esi
mov byte [esp + 0x30], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push str.SOFTWAREACD_SystemsACDSee_MessageCenter20_
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.LocalMsgRootFolder
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x434350]
mov eax, dword [edx + 0xc]
mov ecx, 0x434350
call eax
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x134], ebx
mov dword [esp + 0x14], 1
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406cc0
sub eax, edx
jne 0x406d16
lea ecx, [esp + 0xc]
push ecx
call fcn.00405c40
add esp, 4
push eax
mov ecx, esi
mov dword [esp + 0x138], 1
call fcn.00402b30
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406d38
lea eax, [esp + 0x24]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406d20
sub eax, edx
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004026b0
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041ce52
add esp, 0x12c
ret