joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
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.00405435
mov dword [ebp - 0x14], eax
cmp dword [0x453704], esi
jne 0x40d3f1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d37e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4d1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4d1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4d1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x453704], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x453708], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45370c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453714], eax
test eax, eax
je 0x40d3ee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453710], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d416
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d409
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d42b
push 4
pop eax
jmp 0x40d4d3
cmp dword [ebp - 0x14], esi
je 0x40d42b
push dword [0x453704]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d410
mov eax, dword [0x453710]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d489
cmp dword [0x453714], edi
je 0x40d489
push eax
call ebx
push dword [0x453714]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d489
test eax, eax
je 0x40d489
call ecx
test eax, eax
je 0x40d47e
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 0x40d47e
test byte [ebp - 8], 1
jne 0x40d489
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4b9
mov eax, dword [0x453708]
cmp eax, edi
je 0x40d4b6
push eax
call ebx
test eax, eax
je 0x40d4b6
call eax
mov esi, eax
test esi, esi
je 0x40d4b6
mov eax, dword [0x45370c]
cmp eax, edi
je 0x40d4b6
push eax
call ebx
test eax, eax
je 0x40d4b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x453704]
call ebx
test eax, eax
je 0x40d4d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404748
mov esp, ebp
pop ebp
ret
Function at 0x417846
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0xc6
mov dh, 0xc6
mov dh, 0xc6
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
mov dh, 0xc6
mov byte [eax], 0x55
invalid
push ebp
mov ebp, esp
sub esp, 0x6d8
push ebx
push esi
push edi
mov eax, 0x417802
mov ecx, 0
mov bh, byte [eax]
add bh, 6
mov byte [eax], bh
add ecx, 1
add eax, 1
cmp ecx, 0x590
jne 0x4177ed
mov dl, 0xb1
jo 0x417841
cli
mov bl, 0xfa
cli
cli
cli
test byte [edx], dl
jp 0x4177cd
xor al, 0x82
adc bh, byte [ebp - 0x45]
sti
jge 0x4177d2
sti
jnp 0x41780e
sbb ebx, edi
cli
cli
jbe 0x417806
mov bl, 0
cli
cli
cli
mov eax, 0xfa3b71a9
xchg dword [edi - 0x60608f6], esi
sub eax, 0x609fedd5
lahf
mov bl, 0x3e
cli
cli
cli
sub eax, 0x24b787ba
idiv ecx
stc
adc dword [edi - 0xe], 0xffffffed
in eax, dx
movsd dword es:[edi], dword [esi]
pushal
movsd dword es:[edi], dword [esi]
mov ecx, 0xfa3b719d
sar dword [edi], 0xea
lea esi, [ecx + 0x3b]
cli
xor dword [edi - 0x12], 0xffffff83
adc dword [edi - 0xa], 0xffffff9b
push ecx
ja fcn.0041789c
cli
jge 0x417856
cli
outsd dx, dword [esi]
or cl, bh
outsd dx, dword [esi]
Function at 0x4010d5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0040c850
mov ebx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
mov dword [ebp - 0x94], edi
mov edi, dword [ebp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401161
push 0x3c
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040c850
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401166
mov eax, dword [ebp - 8]
jmp 0x401168
mov eax, dword [ebp - 0x50]
jmp 0x401168
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40116d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREIntelTvWizard_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011cd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.IsTvWizardInstalled
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
je 0x4011cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 1
pop esi
sete al
leave
ret

Function at 0x4011d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREIntelDisplayigfxcuihkcmd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40123e
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.ExpansionAllDisplay
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401235
cmp dword [ebp - 8], 1
jne 0x401235
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x403f07
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x423720]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x41b29d
call fcn.0040cfe5
mov edi, dword [ebp + 0x12c]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.0040c850
add esp, 0xc
push ebx
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
mov dword [ebp + 0x18], 0xf
call fcn.00401423
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 4], ebx
jmp 0x403fe5
cmp byte [ebp - 0xd], bl
je 0x403f9f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401c86
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x403fca
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401c86
inc dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x403f7f
mov eax, dword [ebp - 0x14]
cmp dword [0x424c48], eax
jne 0x40400c
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x404002
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push 1
lea ecx, [ebp]
call fcn.004014cf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0040c8ca
add ebp, 0x124
leave
ret 4

Function at 0x404b40
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x404b93
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x404ba9
push 0x80004005
call fcn.0040489e
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x404bac
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x4056b6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x423720]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00404b0b
mov edi, eax
cmp edi, esi
je 0x40571e
lea ecx, [ebp - 0x70]
call fcn.00404aa6
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8ca
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x405736
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004056b6
cmp eax, esi
jne 0x405769
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x405726
lea ecx, [ebp - 0x70]
call fcn.00404aa6
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00404aa6
mov eax, esi
jmp 0x405704
Function at 0x40708e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
in al, dx
add al, 4
add byte [eax], al
lea ebp, [esp - 4]
mov eax, dword [0x423720]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x41b534
call fcn.0040d018
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
Function at 0x408502
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x423720]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
or dword [ebp - 0x78], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
xor ebx, ebx
mov esi, 0x422cb8
mov edi, 0x104
push edi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0040c850
lea eax, [esi + 4]
push eax
push dword [ebp - 0x80]
call fcn.0040e1fc
add esp, 0x14
test eax, eax
je 0x4085b9
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004084dd
pop ecx
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
lea ecx, [ebx - 0xf]
or eax, 1
cmp ecx, 3
ja 0x40858d
or eax, 0x1000000
push edi
lea ecx, [ebp - 0x74]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call fcn.0040e1fc
test eax, eax
pop ecx
pop ecx
je 0x4085b9
add esi, 0x18
inc ebx
cmp esi, 0x4232e8
jl 0x408539
jmp 0x4085bc
mov dword [ebp - 0x78], ebx
mov ecx, dword [ebp + 0x90]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8ca
add ebp, 0x94
leave
ret

Function at 0x409d18
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x41b687
call fcn.0040d04e
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x14], 0xf
call fcn.00401423
push 0x1c
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040c850
add esp, 0xc
push str.igfxcfg.exe
lea ecx, [ebp - 0x2c]
call fcn.00401c86
push 0x10
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040c850
push 0x44
pop esi
push esi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.0040c850
mov eax, dword [ebp - 0x28]
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x84], esi
jae 0x409d8a
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409dbf
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
mov byte [ebp - 0x2d], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014cf
mov al, byte [ebp - 0x2d]
call fcn.0040d098
ret
Function at 0x40a1e4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x423720]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040a179
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040c850
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40a233
cmp dword [ebp - 0x1c], 5
jb 0x40a24b
jmp 0x40a247
cmp dword [ebp - 0x10], 1
jne 0x40a24b
cmp dword [ebp - 0x1c], 4
ja 0x40a247
jne 0x40a24b
cmp dword [ebp - 0x18], 0
jbe 0x40a24b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41cd2c
call fcn.00404977
test eax, eax
jge 0x40a26c
mov byte [0x424c00], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040c8ca
add ebp, 0x78
leave
ret

Function at 0x40a572
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x424d70], 0
push esi
jne 0x40a4e5
call fcn.0040a410
test eax, eax
je 0x40a528
mov eax, dword [0x424d70]
cmp eax, 1
jne 0x40a506
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a528
pop esi
ret
push eax
call dword [0x424d78]
test eax, eax
jne 0x40a570
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40a52c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x424d70]
call dword [0x424d78]
mov edi, eax
test edi, edi
je 0x40a553
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a56f
lea edi, [esi + 0xff0]
push esi
push dword [0x424d70]
call dword [0x424d74]
add esi, 0x10
cmp esi, edi
jb 0x40a559
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a4d2

Function at 0x40c8ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423720]
jne 0x40c8d4
repz ret
jmp fcn.0040fa4b
Function at 0x416964
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410547
xor ebx, ebx
cmp dword [0x42577c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x416a39
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4169a4
xor eax, eax
jmp 0x416afd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e834
push edi
call esi
cmp eax, ebx
je 0x41699d
push eax
call fcn.004104e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42577c], eax
call esi
push eax
call fcn.004104e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425780], eax
call esi
push eax
call fcn.004104e4
mov dword [0x425784], eax
lea eax, [ebp - 8]
push eax
call fcn.00411a9d
test eax, eax
pop ecx
pop ecx
je 0x416a07
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040caee
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x416a39
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004104e4
cmp eax, ebx
pop ecx
mov dword [0x42578c], eax
je 0x416a39
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004104e4
pop ecx
mov dword [0x425788], eax
mov eax, dword [0x425788]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x416ab2
cmp dword [0x42578c], esi
je 0x416ab2
push eax
call fcn.00410550
pop ecx
call eax
cmp eax, ebx
je 0x416a7f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42578c]
call fcn.00410550
pop ecx
call eax
test eax, eax
je 0x416a7f
test byte [ebp - 0x18], 1
jne 0x416ab2
lea eax, [ebp - 0xc]
push eax
call fcn.00411ad4
test eax, eax
pop ecx
je 0x416a9a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040caee
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x416aa9
or dword [ebp + 0x10], 0x200000
jmp 0x416ae3
or dword [ebp + 0x10], 0x40000
jmp 0x416ae3
mov eax, dword [0x425780]
cmp eax, esi
je 0x416ae3
push eax
call fcn.00410550
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416ae3
mov eax, dword [0x425784]
cmp eax, esi
je 0x416ae3
push dword [ebp - 4]
push eax
call fcn.00410550
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42577c]
call fcn.00410550
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x4182d8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4182dc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x34], eax
call fcn.00401200
add dword [ebp - 0x10], 0x23f
cmp dword [0xaf58e4], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x834]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov eax, dword [0x4182e4]
mov edi, dword [0x4182e0]
push 0x20
pop edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, edi
cmp dword [0xaf58e4], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xaf58e0]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xaf58e4], 0x3eb
mov dword [0xaf58e0], eax
mov eax, dword [0xaf5838]
cmove eax, dword [ebp - 0xc]
mov dword [0xaf5838], eax
mov eax, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x14], 0
mov dword [0xaf58dc], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 0x18], eax
mov eax, ebx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add eax, ebx
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x14], eax
cmp dword [0xaf58e4], 0xb03
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jne 0x401362
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x10], eax
dec edx
mov dword [ebp - 0x20], edx
jne 0x401277
mov edi, dword [ebp - 0x30]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c062
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
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.00407f6c
mov dword [ebp - 0x14], eax
cmp dword [0x4510d4], esi
jne 0x40c155
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c235
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c235
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c235
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4510d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4510d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4510dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4510e4], eax
test eax, eax
je 0x40c152
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4510e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c16d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c18f
push 4
pop eax
jmp 0x40c237
cmp dword [ebp - 0x14], esi
je 0x40c18f
push dword [0x4510d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c174
mov eax, dword [0x4510e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1ed
cmp dword [0x4510e4], edi
je 0x40c1ed
push eax
call ebx
push dword [0x4510e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1ed
test eax, eax
je 0x40c1ed
call ecx
test eax, eax
je 0x40c1e2
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 0x40c1e2
test byte [ebp - 8], 1
jne 0x40c1ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c21d
mov eax, dword [0x4510d8]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
call eax
mov esi, eax
test esi, esi
je 0x40c21a
mov eax, dword [0x4510dc]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4510d4]
call ebx
test eax, eax
je 0x40c235
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040a8
mov esp, ebp
pop ebp
ret