joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bf270
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x60d387
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.005f9df3
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.005f9df3
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.005bfd90
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x5bfde0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60d460
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00605c47
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x5bfe13
xor al, al
jmp 0x5bff3f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x5bfe35
xor al, al
jmp 0x5bff3f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x5bfe48
xor al, al
jmp 0x5bff3f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x5bfe5c
xor al, al
jmp 0x5bff3f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.005f9eb8
test eax, eax
jne 0x5bfe90
xor al, al
jmp 0x5bff3f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6ed0dc
mov dword [esp + 0x20], ebp
call fcn.00605c47
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00602aa1
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00602af8
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x5bff24
mov ax, word [ebx]
test ax, ax
je 0x5bff16
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.005bff60
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x5bfefa
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00602af8
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x5c0460
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00604151
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x5c04a6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.005d81d8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x7155b8
push ecx
call fcn.005d9dcf
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x5cb2d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x5cb31c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x5cb31c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x5cb306
push eax
call ebp
test ax, ax
jl 0x5cb314
inc esi
add edi, 4
cmp esi, 6
jb 0x5cb2f8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.005cafd0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5cee10
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x5cee70
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x5cee70
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x5cee70
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x5cee70
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 0x5cee80
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 0x5d0b70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x5d0bb9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x5d1030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60dd60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005d0be0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005d0c60
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005d0c60
lea ecx, [esi + 0xc]
call fcn.005fbc0c
lea ecx, [esi + 0x10]
call fcn.005fbc0c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005d21f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005d21f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005d21f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005fbc81
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005fbc81
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5d23e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x5d2446
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x5d2446
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x5d2427
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x5d4070
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x71b19c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5d4083
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5d40c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x71b244]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5d40f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5d40fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x5d40eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x5d4118
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5d411c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5d410d
xor ecx, ecx
mov eax, 0x71b1ac
xor ebx, ebx
mov bl, byte [ecx + 0x71b254]
cmp byte [esp + ebx + 0x14], 0
je 0x5d4147
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x71b26c]
cmp byte [esp + ebx + 0x14], 0
je 0x5d415e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5d412e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5d40b7
lea edx, [esp + 0x84]
push edx
call fcn.005d41a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5f1230
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x60efd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.005e620f
mov eax, dword [0x6f6e18]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.005e6141
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.005f1d30
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5f12d7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5f12ce
cmp al, 0xff
je 0x5f12ce
dec al
mov byte [ecx], al
jmp 0x5f12d7
push ecx
call fcn.005fb9eb
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5f1308
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5f12ff
cmp al, 0xff
je 0x5f12ff
dec al
mov byte [ecx], al
jmp 0x5f1308
push ecx
call fcn.005fb9eb
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x5fe064
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5fe09c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005fc0dc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005fc0b4
jmp 0x5fe0a8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5ff85b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5ff89d
call fcn.00605c47
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5ff89d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5ff894
xor eax, eax
jmp 0x5ff8a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005ff8ab
pop edi
pop esi
pop ebx
ret 4

Function at 0x606177
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x6061a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6061c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006060dd
jmp 0x6061c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6061c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006060dd
test edi, edi
mov eax, edi
jne 0x6061ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001370
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x1003a180]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x1000151a
test edi, edi
je 0x1000151a
push str.LoadDll
push esi
call fcn.10011b01
add esp, 8
test eax, eax
jne 0x10001415
push 0x410
call fcn.10011c6f
push edi
mov esi, eax
push 0x104
push esi
call fcn.10011d01
push ebx
lea ecx, [esi + 0x208]
push 0x104
push ecx
call fcn.10011d01
add esp, 0x1c
push 0
push 0
push esi
push 0x10001220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000151a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10011984
mov esp, ebp
pop ebp
ret
push str.CreateProcess
push esi
call fcn.10011b01
add esp, 8
test eax, eax
jne 0x100014ef
push 0x40
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.1001cf60
xor eax, eax
xorps xmm0, xmm0
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
movdqu xmmword [ebp - 0x224], xmm0
call fcn.1001cf60
push ebx
mov eax, 5
mov dword [ebp - 0x274], 0x44
push edi
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x214]
push str._s__s
push eax
mov dword [ebp - 0x248], 1
call fcn.10011d5d
add esp, 0x28
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000151a
push dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x220]
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10011984
mov esp, ebp
pop ebp
ret
push 5
push 0
push ebx
push edi
push esi
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10011984
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011984
mov esp, ebp
pop ebp
ret
Function at 0x10001df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push str.IsaTrayMenu
push 0xcc
push 0x1002d414
push str.dllmain.cpp
push 2
call fcn.100098c0
add esp, 0x14
push str.IsaTrayMenu
push 0xcc
push 0x1002d414
push str.dllmain.cpp
push 2
call fcn.10009560
add esp, 0x14
cmp dword [0x1003ec18], 0
jne 0x10001e59
push 0
push 0
push dword [0x1003eb84]
push 0x10001a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1003ec18], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x100023b0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003a180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
push 0
push str.SysPager
mov edi, eax
push 0
push edi
call esi
push 0
push str.ToolbarWindow32
push 0
test eax, eax
je 0x10002400
push eax
jmp 0x10002401
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
je 0x10002467
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
mov esi, 1
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp eax, esi
jle 0x10002461
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
lea esp, [esp]
movzx edx, ax
shl edx, 0x10
movzx ecx, si
or edx, ecx
push edx
push 0
push 0x200
push edi
call ebx
mov eax, dword [ebp - 0x1c]
add esi, 0xa
cmp esi, dword [ebp - 0x18]
jl 0x10002440
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.NotifyIconOverflowWindow
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x100024f0
push 0
push str.ToolbarWindow32
push 0
push eax
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100024f0
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0xc]
mov eax, 5
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
cmp ecx, eax
jle 0x100024f0
jmp 0x100024b0
mov esi, 5
cmp edi, esi
jle 0x100024e6
movzx ebx, ax
lea esp, [esp]
movzx eax, si
shl eax, 0x10
or eax, ebx
push eax
push 0
push 0x200
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 0xa
cmp esi, edi
jl 0x100024c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add eax, 0xa
mov dword [ebp - 0x18], eax
cmp eax, ecx
jl 0x100024b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011984
mov esp, ebp
pop ebp
ret
Function at 0x10002680
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1003a180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100026ac
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011984
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x88]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
lea eax, [esi + 0xca0]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x88]
push str.AddTrayMenu__s___s_n
push eax
call dword [sym.imp.DuiLib.dll_public:_int___cdecl_DuiLib::CDuiString::Format_wchar_t_const__]
add esp, 0x10
lea ecx, [ebp - 0x88]
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x1003ebc8], 0
je 0x100026fe
push esi
call fcn.10004f90
mov esi, eax
jmp 0x10002700
xor esi, esi
lea ecx, [ebp - 0x88]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10011984
mov esp, ebp
pop ebp
ret
Function at 0x10004570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1003a180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
lea ecx, [ebp - 0x90]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x1002d78c
push 0x65
push dword [edi + 4]
lea ecx, [edi + 0x480]
call dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::CTrayIcon::CreateTrayIcon_struct_HWND_____unsigned_int__wchar_t_const___unsigned_int_]
movzx ebx, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [edi + 4]
push str._IsaTrayMenu_
push 0x115
push str.CTrayMenu::TrayIcon_Add
push str.TrayMenu.cpp
push 2
call fcn.100098c0
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [edi + 4]
push str._IsaTrayMenu_
push 0x115
push str.CTrayMenu::TrayIcon_Add
push str.TrayMenu.cpp
push 2
call fcn.10009560
add esp, 0x20
test ebx, ebx
jne 0x1000466b
cmp dword [edi + 0x86c], ebx
jne 0x10004676
push ebx
push ebx
push edi
push 0x10006670
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.Shell_NotifyIcon_NIM_ADD__Create_Thread_to_delay_loop_do_it
push 0x11c
push str.CTrayMenu::TrayIcon_Add
push str.TrayMenu.cpp
push 1
mov dword [edi + 0x86c], eax
call fcn.100098c0
add esp, 0x14
push str.Shell_NotifyIcon_NIM_ADD__Create_Thread_to_delay_loop_do_it
push 0x11c
push str.CTrayMenu::TrayIcon_Add
push str.TrayMenu.cpp
push 1
call fcn.10009560
add esp, 0x14
jmp 0x10004676
push 1
push ecx
call fcn.100094e0
add esp, 8
lea ecx, [ebp - 0x90]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.10011984
mov esp, ebp
pop ebp
ret
Function at 0x10009360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100093f0
test edx, edx
je 0x100093ca
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100093e8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x100093e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100093e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x100093f0
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x80000002
mov dword [ebp - 8], eax
mov esi, edx
mov dword [ebp - 4], 0
test edi, edi
jne 0x10009428
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1000944a
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009420
mov eax, dword [ebp - 8]
push ebx
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100094bc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100094bc
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
cmp eax, ebx
cmova eax, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push 0
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 0xea
jne 0x100094af
test esi, esi
je 0x100094a5
mov eax, dword [ebp - 8]
test eax, eax
je 0x100094a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
xor edx, edx
test ecx, ecx
cmovne eax, edx
mov dword [ebp - 4], eax
test esi, esi
je 0x100094ce
mov eax, dword [ebp - 8]
test eax, eax
je 0x100094ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100094e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREISADB
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
test eax, eax
cmove esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x10009549
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.NeedRefreshTrayIcon
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret