joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ce20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x42ce39
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ce45
sub eax, edi
inc eax
add edx, eax
add esi, eax
cmp eax, 1
jne 0x42ce40
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42d990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x479700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x479310
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x47bfc8]
test al, 1
jne 0x42d9e2
or eax, 1
mov dword [0x47bfc0], 0
push 0x465ed0
mov dword [0x47bfc8], eax
mov dword [0x47bfc4], 0
call fcn.00443183
add esp, 4
cmp dword [0x47bfc0], 0
jne 0x42da81
push 4
call fcn.00443007
add esp, 4
test eax, eax
je 0x42da06
mov ecx, eax
call fcn.0042a210
jmp 0x42da08
xor eax, eax
push edi
xor edi, edi
xor esi, esi
test eax, eax
je 0x42da25
push 4
mov edi, eax
call fcn.00443007
mov esi, eax
add esp, 4
mov dword [esi], 1
cmp dword [0x47bfc0], edi
je 0x42da4d
mov ecx, 0x47bfc0
call fcn.0042dc00
test esi, esi
je 0x42db14
mov dword [0x47bfc0], edi
mov dword [0x47bfc4], esi
inc dword [esi]
test esi, esi
je 0x42da80
dec dword [esi]
jne 0x42da80
test edi, edi
je 0x42da77
mov eax, dword [edi]
test eax, eax
je 0x42da6e
push eax
call fcn.00446d75
add esp, 4
mov dword [edi], 0
push edi
call fcn.00442fe0
add esp, 4
push esi
call fcn.00442fe0
add esp, 4
pop edi
mov eax, dword [0x47bfc0]
mov esi, dword [eax]
lea eax, [ebp - 0x5c]
push eax
call fcn.00447d87
lea eax, [ebp - 0x5c]
push eax
call fcn.00447ae8
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.00447acb
push esi
push 1
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0044771c
push esi
push 1
push dword [ebp + 0xc]
push ebx
call fcn.0044771c
push esi
push 1
push 1
push 0x4709ac
call fcn.0044771c
add esp, 0x48
push esi
call fcn.00446e9f
push esi
call fcn.00447557
add esp, 8
cmp eax, 0x200000
jle 0x42daf9
push 0
push 0
push esi
call fcn.00447144
add esp, 0xc
push 0x479310
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00445a5e
mov esp, ebp
pop ebp
ret
mov dword [0x47bfc0], 0
mov dword [0x47bfc4], 0
jmp 0x42da80
Function at 0x45e8a5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0044a4c9
mov dword [ebp - 0x14], eax
cmp dword [0x47d9b0], esi
jne 0x45e998
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x45e925
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x45ea78
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x45ea78
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45ea78
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47d9b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47d9b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47d9b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47d9c0], eax
test eax, eax
je 0x45e995
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47d9bc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x45e9bd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45e9b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x45e9d2
push 4
pop eax
jmp 0x45ea7a
cmp dword [ebp - 0x14], esi
je 0x45e9d2
push dword [0x47d9b0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x45e9b7
mov eax, dword [0x47d9bc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x45ea30
cmp dword [0x47d9c0], edi
je 0x45ea30
push eax
call ebx
push dword [0x47d9c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x45ea30
test eax, eax
je 0x45ea30
call ecx
test eax, eax
je 0x45ea25
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x45ea25
test byte [ebp - 8], 1
jne 0x45ea30
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x45ea60
mov eax, dword [0x47d9b4]
cmp eax, edi
je 0x45ea5d
push eax
call ebx
test eax, eax
je 0x45ea5d
call eax
mov esi, eax
test esi, esi
je 0x45ea5d
mov eax, dword [0x47d9b8]
cmp eax, edi
je 0x45ea5d
push eax
call ebx
test eax, eax
je 0x45ea5d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47d9b0]
call ebx
test eax, eax
je 0x45ea78
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x45ea7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445a5e
mov esp, ebp
pop ebp
ret
Function at 0x401430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443ae1
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x451050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
xor eax, eax
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], edi
mov word [ebp - 0x270], ax
mov dword [ebp - 4], edi
mov ebx, str.WinSnap.key
lea esi, [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00403ca0
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
call fcn.004038b0
mov ebx, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x27c], ebx
jb 0x4014c5
mov ecx, dword [ebp - 0x290]
push ecx
call fcn.00434772
add esp, 4
mov eax, dword [ebp - 0x270]
xor edx, edx
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], edi
mov word [ebp - 0x290], dx
cmp dword [ebp - 0x25c], ebx
jae 0x4014f2
lea eax, [ebp - 0x270]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
jne 0x401596
mov ebx, str.WinSnap_key.txt
lea esi, [ebp - 0x2b0]
call fcn.00403ca0
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call fcn.004038b0
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x298], esi
jb 0x401548
mov eax, dword [ebp - 0x2ac]
push eax
call fcn.00434772
add esp, 4
mov eax, dword [ebp - 0x270]
xor ecx, ecx
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], ebx
mov word [ebp - 0x2ac], cx
cmp dword [ebp - 0x25c], esi
jae 0x401575
lea eax, [ebp - 0x270]
push eax
call edi
cmp eax, 0xffffffff
jne 0x401594
push 0x44cbc4
lea edx, [ebp - 0x278]
push edx
mov dword [ebp - 0x278], ebx
call fcn.0043519b
mov ebx, esi
mov eax, dword [ebp - 0x270]
cmp dword [ebp - 0x25c], ebx
jae 0x4015aa
lea eax, [ebp - 0x270]
push 0
push 0
push 0
push 0
push eax
call fcn.0040e140
add esp, 0x14
jmp 0x4015ea
mov esi, dword [0x459cd0]
test esi, esi
je 0x4015f9
cmp dword [esi], 0
jne 0x401662
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x256]
push ecx
mov word [ebp - 0x258], ax
call fcn.00437610
add esp, 0xc
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0x56]
push eax
mov word [ebp - 0x58], dx
call fcn.00437610
add esp, 0xc
test esi, esi
jne 0x401666
mov eax, dword [ebp - 0x270]
cmp dword [ebp - 0x25c], ebx
jae 0x401644
lea eax, [ebp - 0x270]
push eax
call edi
cmp eax, 0xffffffff
je 0x40165c
mov esi, dword [0x459f80]
mov ecx, 0x7d33
call fcn.00408930
mov esi, dword [0x459cd0]
test esi, esi
je 0x401683
mov esi, dword [esi]
cmp dword [ebp - 0x25c], ebx
jb 0x40167f
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.00434772
add esp, 4
mov eax, esi
jmp 0x40169c
cmp dword [ebp - 0x25c], ebx
jb 0x40169a
mov edx, dword [ebp - 0x270]
push edx
call fcn.00434772
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00433c32
mov esp, ebp
pop ebp
ret
Function at 0x402690
Capabilities:
Create process on windows

Disassembly:
test ecx, ecx
jne 0x4026b9
sub eax, 1
je 0x4026a5
sub eax, 1
je 0x4026af
sub eax, 0x20cf
jne 0x402709
push 1
push edx
call dword [sym.imp.USER32.dll_EndDialog]
ret
push 0
push edx
call dword [sym.imp.USER32.dll_EndDialog]
ret
cmp ecx, 0x444
jne 0x402709
sub eax, 0x20d3
je 0x402701
sub eax, 0x5b
je 0x4026e8
sub eax, 1
jne 0x402709
push 1
push eax
push eax
push str.http:__www.ntwind.com
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
push 1
push 0
push 0
push str.mailto:support_ntwind.com
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
push 1
call fcn.00403400
pop ecx
ret

Function at 0x402ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443520
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x451050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
jne 0x403057
push 0x44cbc4
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], esi
call fcn.0043519b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0x1f
jb 0x40306b
mov esi, 0x1f
push 0
lea edx, [ebp - 0x18]
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x18], esi
je 0x4030a8
push 0x44cbc4
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0
call fcn.0043519b
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov eax, 0x4030a0
ret
mov byte [esi + ebx], 0
mov esi, 1
cmp edi, 0xffffffff
je 0x4030bd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
mov eax, dword [0x459cc8]
test eax, eax
je 0x403417
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403454
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 4
push ecx
push 0x4030e0
push 0
push 0
call fcn.004342e0
add esp, 0x18
mov dword [0x459cc8], eax
test eax, eax
jne 0x40343e
pop ecx
ret
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [0x459cc8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ecx
ret
Function at 0x403ca0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x443a58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
push edi
mov eax, 0x458754
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.004038b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403cf7
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004037d0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.004038b0
cmp dword [esp + 0x24], 8
jb 0x403d40
mov edx, dword [esp + 0x10]
push edx
call fcn.00434772
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x403d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x88], eax
test dword [0x459f88], 0x40000000
je 0x403daf
mov eax, 0xb
mov dword [0x458460], eax
mov dword [0x458464], eax
test dword [0x452498], 0x800000
push esi
push edi
je 0x403dc7
mov esi, 0x45868c
jmp 0x403f03
push ebp
xor ebp, ebp
push ebp
push str.N_FRAME
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x403ef2
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebp
push str.SoftwareStardockWindowBlindsWB5.iniWBLiteFX
push 0x80000001
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403ef2
push 0x7e
lea edx, [esp + 0x1a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x20], cx
call fcn.00437610
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
push str.WBOn
mov edi, 0x80
push edx
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x403ee7
cmp word [esp + 0x14], 0x31
jne 0x403ee7
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
push str.SkinSet2
push edx
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x403ee7
mov ecx, dword [0x459f88]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
lea ebp, [edi - 0x7f]
lea edi, [eax + 2]
mov esi, 0x70
nop
mov eax, dword [esi + 0x458438]
test eax, 0x20000000
je 0x403ea5
test ecx, 0x20000000
jne 0x403ee4
test eax, 0x10000000
je 0x403ed6
test ecx, 0x20000000
jne 0x403ed6
test ecx, 0x10000000
je 0x403ed6
mov ecx, dword [esi + 0x458434]
push 0x40
lea eax, [esp + 0x1c]
push eax
push ecx
call ebx
test eax, eax
je 0x403ee4
mov ecx, dword [0x459f88]
add esi, 0x38
inc edi
cmp esi, 0x230
jb 0x403e90
jmp 0x403ee6
mov ebp, edi
pop ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp*8]
sub esi, ebp
lea esi, [esi*8 + 0x45843c]
pop ebp
mov ecx, 0xb
mov edi, 0x458660
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
xor ecx, esp
call fcn.00433c32
add esp, 0x8c
ret
Function at 0x406da0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4439f9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
mov word [esi + 4], cx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], 1
mov edi, 0x100
lea ebx, [ebx]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433c20
mov ebx, eax
xor eax, eax
mov word [ebx], ax
add esp, 4
mov eax, ebp
call fcn.004035d0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
push ebx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x406e65
push ebx
call fcn.004348cb
add esp, 4
add edi, edi
jmp 0x406e10
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406e70
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.00403960
push ebx
call fcn.004348cb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x407450
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4439b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4074b0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x1c]
call fcn.00403960
push edi
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [0x458768]
test eax, eax
jle 0x40753d
test ebx, ebx
jle 0x40753d
cmp dword [0x45876c], 8
mov eax, dword [0x458758]
jae 0x4074fb
mov eax, 0x458758
lea ecx, [ebx - 1]
push ecx
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40753d
push 9
mov eax, str._WINSNAP_
lea esi, [esp + 0x1c]
call fcn.00403960
lea eax, [edi + ebx*2 - 2]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407524
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.004037d0
mov ecx, dword [esp + 0x1c]
mov edx, 8
cmp dword [esp + 0x30], edx
jae 0x407550
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], edx
jb 0x40755e
mov eax, dword [eax + 4]
jmp 0x407561
add eax, 4
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x30], 8
mov esi, eax
jb 0x407589
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00434772
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00433c32
add esp, 0x38
ret 4
Function at 0x4075b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x443db2
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x808], eax
push esi
push edi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0x818]
mov dword fs:[0], eax
mov edi, dword [esp + 0x830]
mov esi, dword [esp + 0x82c]
mov eax, dword [esp + 0x828]
push edi
push esi
mov dword [esp + 0x828], 0
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
call fcn.00406da0
mov dword [esp + 0x820], 0
cmp dword [esi + 0x18], 8
mov dword [esp + 0xc], 1
lea edi, [esi + 4]
jb 0x40763d
mov eax, dword [edi]
jmp 0x40763f
mov eax, edi
push 9
push str._WINSNAP_
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40765d
mov eax, dword [0x458768]
dec eax
push esi
call fcn.004076d0
cmp dword [esi + 0x18], 8
jb 0x407665
mov edi, dword [edi]
push 0x400
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x3fe
ja 0x40769e
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407685
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.00403960
mov eax, esi
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00433c32
add esp, 0x818
ret 0xc

Function at 0x4089a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44397b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov ebp, dword [0x459f80]
lea eax, [esp + 0x30]
push eax
push 0x7d2c
mov ebx, 0x100
mov edi, ecx
call fcn.0040af30
xor ebx, ebx
add esp, 8
xor ecx, ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408a16
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
lea esi, [esp + 0x18]
call fcn.00403960
push 4
mov eax, str._r_n_r_n
mov ecx, esi
mov dword [esp + 0x440], ebx
call fcn.004037d0
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408a50
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x18]
call fcn.004037d0
mov esi, dword [esp + 0x18]
mov edi, 8
cmp dword [esp + 0x2c], edi
jae 0x408a7e
lea esi, [esp + 0x18]
lea edx, [esp + 0x230]
push edx
push 0x7d00
mov ebx, 0x100
call fcn.0040af30
push 0x12010
lea eax, [esp + 0x23c]
push eax
push esi
push ebp
call fcn.004087f0
add esp, 0x18
cmp dword [esp + 0x2c], edi
jb 0x408abf
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00434772
add esp, 4
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00433c32
add esp, 0x42c
ret
Function at 0x408af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408b06
test al, 0x10
je 0x408b06
mov eax, 1
ret
xor eax, eax
ret

Function at 0x408c20
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x74
push esi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x408c38
xor eax, eax
pop esi
add esp, 0x74
ret
call fcn.00408bd0
test eax, eax
jne 0x408c31
push edi
mov dword [esp + 8], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
cmp esi, edi
je 0x408d35
push ebp
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 3
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebp, dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call ebp
test eax, eax
jne 0x408d34
test edi, edi
jne 0x408c98
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push edi
call ebx
push 0
push esi
mov edi, eax
call ebx
push 1
mov ebx, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call ebp
test eax, eax
jne 0x408d29
push 0x70
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00437610
mov eax, 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], eax
add esp, 0xc
mov eax, 3
mov ecx, 0x12
mov dword [esp + 0x70], eax
mov dword [esp + 0x38], eax
push 0x1c
lea eax, [esp + 0x18]
mov edx, ecx
push eax
push 4
mov word [esp + 0x78], cx
mov word [esp + 0x5c], dx
mov word [esp + 0x40], cx
mov word [esp + 0x24], dx
call dword [sym.imp.USER32.dll_SendInput]
push esi
call ebp
mov dword [esp + 0x10], eax
push 0
push ebx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebx
pop ebp
push esi
call dword [sym.imp.USER32.dll_IsIconic]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x74
ret