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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4015b6
cmp dword [ebp + 0x10], 1
je 0x40158f
cmp dword [ebp + 0x10], 2
je 0x40158f
push 0xd
pop eax
jmp 0x4015b6
test edi, edi
mov eax, dword [ebp - 4]
je 0x4015b0
test eax, eax
je 0x4015ac
test al, 1
jne 0x40158a
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4015b0
jmp 0x40158a
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4017d5
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00446480
mov eax, dword [0x489190]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push esi
mov esi, dword [ebp + 0xf9c]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x401885
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x78]
push ecx
mov ebx, 0x1000
push ebx
lea ecx, [ebp - 0x74]
push ecx
push eax
jmp 0x40186d
cmp dword [ebp - 0x78], 0
je 0x401873
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call fcn.00416e3e
add esp, 0xc
push 0
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push ebx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call edi
test eax, eax
jne 0x401844
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
xor edi, edi
mov dword [esi], eax
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp + 0xf8c]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00445f93
add ebp, 0xf90
leave
ret
Function at 0x4018ed
Capabilities:
Get cpu information
Get memory capacity
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebx], esi
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
push 8
pop ecx
mov dword [eax], esi
xor eax, eax
lea edi, [ebp - 0x28]
push 0x3c
mov dword [ebp - 0x2c], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 0x6c], esi
call fcn.004456a0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov dword [ebx], eax
jg 0x401940
xor eax, eax
jmp 0x4019e1
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x401939
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, dword [ebp + 0xc]
jne 0x4019ad
lea eax, [ebp + 0x10]
push eax
push edi
push esi
push esi
push str.MHz
push dword [ebp + 8]
mov dword [ebp + 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi], esi
jg 0x4019de
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x401939
push esi
push 0xf4240
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004464b0
cmp eax, esi
mov dword [edi], eax
jle 0x401939
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401bd1
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push dword [esp + 0x14]
mov esi, ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp dword [esp + 0x10], 0xf020
mov edi, eax
jne 0x401c01
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x4020a1
Capabilities:
Read file via mapping

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
xor ebx, ebx
push 0x34
push ebx
push 4
push ebx
mov edi, ecx
push 0xffffffffffffffff
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [edi], eax
je 0x4020f7
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
mov esi, eax
sub esi, 0xb7
push ebx
neg esi
push 6
push dword [edi]
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp esi, ebx
mov dword [edi + 4], eax
pop esi
jne 0x4020f7
push 0x34
push ebx
push eax
call fcn.004456a0
add esp, 0xc
mov eax, edi
pop edi
pop ebx
ret 4
Function at 0x402744
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 8
call fcn.004451bd
mov esi, eax
test esi, esi
pop ecx
je 0x402798
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esi], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 4], eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x401737
push 0
push 0
call fcn.00445a10
mov esi, eax
add esp, 0x18
test esi, esi
je 0x402791
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
setne al
pop esi
leave
ret

Function at 0x402851
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40286a
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x4030c8
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, ecx
push dword [esi + 0x3c]
mov ebx, str.Product
push 1
push str.autorun
push ebx
call edi
push dword [esi + 0x3c]
mov dword [esi], eax
push 1
push str.trayico
push ebx
call edi
push dword [esi + 0x3c]
mov dword [esi + 4], eax
push 1
push 0x46c9f8
push ebx
call edi
push dword [esi + 0x3c]
mov dword [esi + 0x14], eax
push 0
push str.ltbid
push ebx
call edi
push dword [esi + 0x3c]
mov dword [esi + 0x18], eax
push 0xa
push str.speed
push ebx
call edi
push dword [esi + 0x3c]
mov word [esi + 0x20], ax
push 0
push str.cltnum
push ebx
call edi
push dword [esi + 0x3c]
mov ebx, str.Hotkey
push 1
push 0x46c9b8
push ebx
mov dword [esi + 0x1c], eax
call edi
push dword [esi + 0x3c]
mov dword [esi + 8], eax
push 0x7b
push str.keycode
push ebx
call edi
push dword [esi + 0x3c]
mov word [esi + 0xc], ax
push 6
push str.modifiers
push ebx
call edi
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebx
ret

Function at 0x40350c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40356f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x403568
push dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403568
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x40356f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
ret 4
Function at 0x404307
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x3e9
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x404334
leave
ret
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x404386
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push esi
push 1
push esi
push 0x46ca4c
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x4043a1
mov esi, eax
jmp 0x404376
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call edi
call ebx
test eax, eax
je 0x4043bc
mov esi, dword [ebp - 8]
jmp 0x404376
push esi
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4043b7
Function at 0x405478
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
push edi
mov byte [ebp - 1], 1
jne 0x4054c5
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x4054ec
shr eax, 2
test al, 1
je 0x4054f5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x405528
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push 0x46c864
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x405527
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret
Function at 0x407df9
Capabilities:
Hide graphical window
Set global application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, ecx
jl 0x407f16
mov eax, dword [esi + 0x114]
cmp ebx, dword [eax + 4]
jge 0x407f16
and dword [ebp - 0x20], 0
and dword [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 2
push 1
lea edi, [esi + 4]
push ebx
mov ecx, edi
call fcn.004078ed
lea eax, [ebp - 0x10]
push eax
push 2
push 4
push ebx
mov ecx, edi
call fcn.004078ed
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00407840
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00407840
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x407e87
push eax
push dword [edi]
lea ecx, [esi + 0x2c]
call fcn.00407da9
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x1c]
push 4
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push 0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 0x114]
push ebx
mov dword [esi + 0x108], eax
mov dword [esi + 0x104], ebx
call fcn.00401ef2
add eax, 8
push dword [eax]
push 0x418
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebx
mov ecx, edi
call fcn.00407b63
push 1
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
mov esi, dword [0x48cc10]
mov dword [0x48a664], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push 0x40770c
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x48a660], eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x407f38
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0xc]
lea edi, [eax + 1]
push edi
call fcn.00404ab9
push edi
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
call fcn.00402e08
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x407fb1
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x407ff3
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0x10]
lea esi, [eax + 1]
push esi
call fcn.00404ab9
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
call fcn.00402e08
mov eax, esi
pop esi
jmp 0x407ffe
mov ecx, dword [esp + 0xc]
call fcn.00402dc4
xor eax, eax
pop edi
ret 8
Function at 0x40808c
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4080b5
push 1
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
inc eax
jmp 0x4080cf
push 0
push dword [esi + 4]
lea ecx, [esi + 0x48]
call fcn.00406c3b
push 1
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x409e5a
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x489190]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 0x1c
mov eax, 0x465841
call fcn.00445fa2
mov eax, dword [ebp + 0x238]
mov ebx, ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.00403574
xor eax, eax
mov dword [ebp - 4], eax
mov word [ebp - 0x28], ax
mov word [ebp - 0x26], ax
mov word [ebp - 0x24], ax
mov word [ebp - 0x22], ax
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [0x48a7c4]
cmp ax, 0x76c
jbe 0x409eee
cmp ax, word [ebp - 0x28]
jne 0x409eee
mov ax, word [0x48a7c6]
cmp ax, word [ebp - 0x26]
jne 0x409eee
mov ax, word [0x48a7ca]
cmp ax, word [ebp - 0x22]
je 0x40a02f
lea esi, [ebp - 0x28]
mov edi, 0x48a7c4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004215d9
neg eax
sbb eax, eax
neg eax
push eax
xor eax, eax
xor esi, esi
cmp dword [ebx + 0x678], esi
setne al
push eax
xor eax, eax
cmp dword [ebx + 0x674], esi
setne al
push eax
mov eax, dword [ebp - 0x14]
push 0x67
push 3
push 4
push 3
push dword [eax]
lea eax, [ebp - 0x18]
push str._s_v_d._d._d._d__d_d_d
push eax
call fcn.0040907a
add esp, 0x28
push 2
push dword [ebp - 0x18]
lea ecx, [ebx + 0x80]
call fcn.0040171c
cmp dword [ebx + 0x674], esi
mov dword [ebp - 0x10], 0x34370000
je 0x409f64
mov dword [ebp - 0x10], 0x34378000
cmp dword [ebx + 0x678], esi
je 0x409f73
or dword [ebp - 0x10], 0x4000
cmp dword [ebx + 0x698], esi
je 0x409f82
or dword [ebp - 0x10], 0x400
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40a01f
call fcn.004099e3
push 0x228
mov ebx, eax
lea eax, [ebp + 4]
push esi
push eax
call fcn.004456a0
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40a012
xor edi, edi
cmp dword [ebx + 0x98], esi
jle 0x40a006
push edi
lea ecx, [ebx + 0x94]
call fcn.00401fdb
mov eax, dword [eax]
lea ecx, [ebp + 0x24]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x409ffd
push edi
lea ecx, [ebx + 0x94]
call fcn.00401fdb
mov eax, dword [eax + 4]
or dword [ebp - 0x10], eax
inc edi
cmp edi, dword [ebx + 0x98]
jl 0x409fce
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409fc4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push esi
push dword [ebp - 0x10]
push 1
call fcn.00417881
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040359a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.00445f93
add ebp, 0x230
leave
ret 4
Function at 0x40a33b
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x489190]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x465871
call fcn.00445fa2
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.00403574
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [esi + 0x44]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408f06
push 0x46d268
lea ecx, [ebp - 0x10]
call fcn.00408fdd
cmp dword [esi], edi
je 0x40a406
push 0x206
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.004456a0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
mov ebx, str.urlspace
push ebx
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRun
push edi
mov esi, SysReAllocString
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40a41b
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x18]
push 1
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x40a41b
push str.urlspace
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040359a
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00445f93
add ebp, 0x20c
leave
ret

Function at 0x40bfa1
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x489190]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x465a82
call fcn.00445fa2
mov eax, dword [ebp + 0x814]
mov esi, dword [ebp + 0x80c]
mov ebx, dword [ebp + 0x810]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x818]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x7fe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov edi, ecx
mov dword [ebp - 0x1c], esi
call fcn.004456a0
add esp, 0xc
push dword [edi + 0x3c]
lea eax, [ebp]
push 0x3ff
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040bf31
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00445f93
add ebp, 0x804
leave
ret 0x10
Function at 0x40d49b
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x48a800
call fcn.0040595d
mov ecx, esi
neg ecx
sbb ecx, ecx
lea edx, [esi + 0x20]
and ecx, edx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [eax + 4]
call fcn.00403ac4
push 0
mov ecx, esi
call fcn.0040b083
push dword [esi + 0x38]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UnregisterHotKey]
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d4f8
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esi + 0x24]
call fcn.0040132c
test eax, eax
je 0x40d50d
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [esi + 0x69c]
call fcn.004234cf
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40dc55
Capabilities:
Read .ini file

Disassembly:
push 0x1c
mov eax, 0x465d0b
call fcn.00445fa2
mov edi, ecx
mov ecx, dword [ebp + 8]
call fcn.00406b1e
push dword [edi + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push str.urlct_clt
push str.Product
call esi
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
jle 0x40dd4a
lea ecx, [ebp - 0x10]
call fcn.00403574
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str.URLINFO_CLT_d
push eax
call fcn.0040907a
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00403efa
mov byte [ebp - 4], 1
push dword [edi + 0x3c]
push ebx
push str.status
push dword [ebp - 0x10]
call esi
push dword [edi + 0x3c]
mov dword [ebp - 0x28], eax
push ebx
push str.uuid
push dword [ebp - 0x10]
call esi
push 0x46d1ac
push 0x46d138
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0040bfa1
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x20]
call fcn.00408f06
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040359a
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], ebx
jle 0x40dd24
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00408c86
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00417efb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040359a
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x40dc92
call fcn.00446041
ret 4

Function at 0x40eefa
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x48a800
call fcn.0040595d
mov ecx, esi
neg ecx
sbb ecx, ecx
lea edx, [esi + 0x20]
and ecx, edx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [eax + 4]
call fcn.00403ac4
push 0
mov ecx, esi
call fcn.0040b083
push 0
mov ecx, esi
call fcn.00401c08
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ef54
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esi + 0x24]
call fcn.0040132c
test eax, eax
je 0x40ef69
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [esi + 0x69c]
call fcn.004234cf
xor eax, eax
pop esi
leave
ret 0x10