joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f220
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov esi, 2
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
jb 0x1004f34a
push ebx
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x1004f349
lea eax, [ebp - 0x9c]
push eax
push 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004f342
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x19
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1004f336
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1004f336
push dword [ebp - 0xa0]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1004f336
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
push edi
push 0x19
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1004f32f
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
cmp eax, 0x2000
jb 0x1004f32f
cmp eax, 0x3000
sbb esi, esi
add esi, 4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006daee
mov esp, ebp
pop ebp
ret 4

Function at 0x1004f4e0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1ff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
mov dword [ebp - 0x208], 0x200
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
jne 0x1004f576
lea eax, [ebp - 0x204]
cmp dword [esi + 8], eax
je 0x1004f54b
push eax
mov ecx, esi
call fcn.10046850
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004f576
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f555
sub ecx, edx
je 0x1004f576
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1006daee
mov esp, ebp
pop ebp
ret 4
Function at 0x1004f590
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004f5dc
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1004f5c7
push 0x2e
mov ecx, esi
call fcn.1003f790
mov edi, eax
cmp edi, 0xffffffff
je 0x1004f5c7
lea eax, [edi - 1]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.1003f540
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.1003f540
mov byte [ebp - 4], 1
xor edi, edi
lea esp, [esp]
push dword [ebp - 0x30]
mov ecx, esi
call fcn.1003ec60
mov byte [ebp - 4], 2
push ecx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.CStringBufferW.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.1003fba0
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, esi
call fcn.1003ef80
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1004f684
push ebx
call fcn.1006eaef
add esp, 4
push dword [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], vtable.CSeed.0
call fcn.1003ef80
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004f6d1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1004f6d1
inc edi
cmp edi, 9
jl 0x1004f630
or edi, 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], vtable.CStringBufferW.0
test eax, eax
je 0x1004f6e8
push eax
call fcn.1006eaef
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], vtable.CSeed.0
mov dword [ebp - 0x3c], vtable.CStringBufferW.0
test eax, eax
je 0x1004f71b
push eax
call fcn.1006eaef
add esp, 4
mov eax, edi
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 0x1004f9c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x124
mov esi, eax
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1004fa36
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
cmp dword [ebp - 0x128], edi
je 0x1004fa51
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x1004fa20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006daee
mov esp, ebp
pop ebp
ret

Function at 0x1004fe40
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
xor esi, esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.1000b620
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x1004fec0
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.1004ff70
mov edi, eax
test edi, edi
jne 0x1004fe8f
push 0x64
add esi, 0x64
call ebx
mov ecx, dword [ebp - 0xc]
push ecx
push dword [ecx]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.1000b2f0
push dword [ebp - 0xc]
call fcn.1006dae9
add esp, 4
test edi, edi
jne 0x1004feb5
cmp esi, 1
jbe 0x1004fe51
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100500d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006dae0
push esi
mov esi, eax
push 0
push esi
call fcn.10074d40
mov eax, dword [ebp + 8]
add esp, 0x10
push edi
push esi
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [esi], 0
mov edi, eax
je 0x10050130
mov ecx, dword [ebp + 0xc]
push esi
call fcn.1003ec60
push esi
call fcn.1006eaef
add esp, 4
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100505b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bba8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], 0
call fcn.10043870
cmp dword [0x100f2538], 6
jb 0x1005062e
mov eax, dword [0x100f2540]
test eax, eax
jne 0x10050620
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1004f220
mov dword [0x100f2540], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x40], str.runas
cmp dword [ecx], eax
jg 0x10050635
mov dword [ebp - 0x40], str.open
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1005068b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1005068b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100506a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push esi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test esi, esi
jne 0x100506be
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
cmp esi, ecx
jb 0x100506dc
test ecx, ecx
je 0x100506da
mov eax, esi
xor edx, edx
div ecx
sub ecx, edx
add ecx, esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10051e60
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bfe0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
call fcn.100512c0
test eax, eax
jne 0x10051ec6
mov eax, dword [ebp + 8]
mov dword [eax], vtable.CStringBufferW.0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.10051010
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10051fd3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10051fd3
jle 0x10051f12
lea edx, [eax - 1]
cmp edx, eax
sbb eax, eax
inc eax
jne 0x10051f08
movzx eax, word [ecx + edx*2]
cmp eax, 0x5c
je 0x10051f12
cmp eax, 0x2f
je 0x10051f12
push 0x5c
lea ecx, [ebp - 0x24]
call fcn.1003eea0
push str.ResourceFiles
lea ecx, [ebp - 0x24]
call fcn.1003ef80
mov dword [ebp - 0x14], vtable.CFileHandler.0
cmp dword [0x100f2570], 0
mov esi, dword [ebp - 0x18]
jne 0x10051f99
test esi, esi
je 0x10051f99
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10051f4e
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x10051f99
mov byte [ebp - 4], 5
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.1003ea90
lea ecx, [ebp - 0x24]
call fcn.10022960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.10022960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], vtable.CStringBufferW.0
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
test ecx, ecx
je 0x10052005
push ecx
call fcn.1006eaef
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10052070
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c04b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 4], 0x100b5728
lea eax, [edi + 0xc4]
mov dword [edi + 0xb8], vtable.CReferencedSeed.0
push eax
mov dword [edi + 0xc0], vtable.CCritical.0
call esi
lea eax, [edi + 0xe0]
mov dword [edi + 0xbc], 1
mov dword [edi + 0xb8], vtable.CSingletonSeed.0
push eax
mov dword [edi + 0xdc], vtable.CCritical.0
call esi
mov eax, dword [ebp + 8]
mov dword [edi + 0xfc], eax
mov dword [edi + 0x100], 0
mov dword [edi + 0xf8], 0
mov eax, dword [edi + 4]
mov dword [edi], vtable.CSingletonLogic.1.0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [eax + edi + 4], vtable.CSingletonLogic.0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0xb4]
mov dword [ecx + edi], eax
mov dword [edi + 8], vtable.CStringBufferW.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x18], vtable.CStringBufferW.0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
lea eax, [edi + 0x34]
push eax
mov dword [edi + 0x30], vtable.CCritical.0
call esi
mov dword [edi + 0x4c], vtable.CArrayPtr.0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0xa
mov dword [edi + 0x5c], 0
push 0x1f
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 4
call fcn.10046cc0
mov eax, dword [0x100f0b50]
mov dword [edi + 0xa0], vtable.CStringBufferW.0
mov dword [edi + 0xac], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xb0], 0
cmp eax, 0x15f8f
jge 0x10052207
inc eax
jmp 0x1005220c
mov eax, 0x11170
mov dword [0x100f0b50], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10052660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100859b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x30]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1005269c
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [0x100f27d8], 0
jne 0x1005271d
cmp dword [0x100f27ac], 0
jne 0x1005271d
cmp dword [edi + 0x28], 0
jne 0x1005271d
push str.Start
push str.CSingletonLogic::CreateSingletonLogicThread
push 0xe
call fcn.10041ef0
add esp, 0xc
lea esi, [edi + 0x2c]
push esi
push 0
push edi
push 0x10052880
push 0
push 0
call fcn.1006e348
push dword [esi]
mov dword [edi + 0x28], eax
push str.Thread_created___Thread_ID___d
push 0x57
push str.CSingletonLogic::CreateSingletonLogicThread
push 0x18
call fcn.10041fa0
add esp, 0x2c
push 0x10096f9c
push str.CSingletonLogic::CreateSingletonLogicThread
push 0xe
call fcn.10041ef0
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 0x28], ebx
setne bl
jmp 0x10052722
mov ebx, 1
lea ecx, [ebp - 0x10]
call fcn.10046c80
mov eax, ebx
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 0x10053041
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi - 0xb4]
lea ecx, [esi - 0xb4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [esi - 8]
test eax, eax
je 0x10052fad
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [esi - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi - 8], 0
mov eax, dword [esi - 0x90]
test eax, eax
je 0x1005301f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
xor edi, edi
push 0x1f4
push eax
call ebx
test eax, eax
mov eax, dword [esi - 0x90]
je 0x10052fdf
test eax, eax
je 0x10052ff4
inc edi
cmp edi, 0xa
jl 0x10052fc1
jmp 0x10052ff4
test eax, eax
je 0x10052ff4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi - 0x90], 0
mov eax, dword [esi - 0x90]
pop edi
pop ebx
test eax, eax
je 0x1005301f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi - 0x90], 0
pop esi
ret
sub ecx, dword [ecx - 4]
jmp 0x10052f70
Function at 0x10055da0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c7b7
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CQuery.0
mov dword [esi + 0x10], vtable.CStringBufferW.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], vtable.CStringBufferW.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x30], vtable.CStringBufferW.0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x5c], vtable.CStringBufferW.0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x6c], vtable.CStringBufferW.0
mov dword [esi + 0x78], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20]
push eax
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.10020c80
mov ebx, eax
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x3c]
cmp ecx, dword [ebx + 0xc]
je 0x10055ec6
test ecx, ecx
je 0x10055ea3
push ecx
call fcn.1006eaef
add esp, 4
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
push dword [ebx + 4]
lea ecx, [esi + 0x30]
push dword [ebx + 0xc]
call fcn.1003ea90
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], vtable.CStringBufferW.0
test eax, eax
je 0x10055edd
push eax
call fcn.1006eaef
add esp, 4
mov dword [esi + 0x44], 0
mov dword [esi + 0xc], 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
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 0x10056600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c8dc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CMyDialog.0
mov dword [esi + 0x4c], vtable.CMapPtr.0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
lea ecx, [esi + 0x68]
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CMapPtr.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
lea ebx, [esi + 0x84]
mov dword [ebx], vtable.CMapPtr.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov dword [ebp + 8], vtable.CCommandId.0
mov byte [ebp - 4], 3
mov eax, dword [0x100f0b50]
cmp eax, 0x15f8f
jge 0x10056707
inc eax
jmp 0x1005670c
mov eax, 0x11170
mov dword [esi + 0x28], eax
cmp eax, 0x15f8f
jge 0x10056719
inc eax
jmp 0x1005671e
mov eax, 0x11170
mov dword [0x100f0b50], eax
mov dword [esi + 0x2c], eax
mov eax, dword [ecx]
push 0x1f
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call dword [eax + 4]
mov eax, dword [esi + 0x4c]
push 0x1f
lea ecx, [esi + 0x4c]
call dword [eax + 4]
mov eax, dword [ebx]
push 0x1f
mov ecx, ebx
call dword [eax + 4]
mov dword [esi + 0xa0], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 1
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 4

Function at 0x10056e50
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10056e91
push 2
push 0
push 0
push dword [esi + 4]
mov dword [esi + 0x24], 0x10001
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 8
push dword [esi + 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
ret
Function at 0x10057b10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008cca3
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10057b5b
xor esi, esi
jmp 0x10057c8e
mov eax, dword [esi]
push dword [esi + 0x148]
mov ecx, esi
mov dword [esi + 4], edi
call dword [eax + 0x74]
mov eax, dword [ebp + 0xc]
push 0x20
mov dword [esi + 0x18], eax
call fcn.1006dafd
add esp, 4
test eax, eax
je 0x10057b8c
push ecx
push dword [esi + 4]
mov ecx, eax
call fcn.1006c970
jmp 0x10057b8e
xor eax, eax
mov dword [esi + 0x110], eax
test eax, eax
je 0x10057c13
lea eax, [ebp - 0xe8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0xec], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 1
mov dword [ecx], vtable.CStringBufferW.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
push dword [ebp + 0x18]
push dword [ebp + 0x20]
call fcn.1003ea90
mov byte [ebp - 4], 0
movq xmm0, qword [ebp - 0xe8]
mov ecx, dword [esi + 0x110]
sub esp, 0x10
mov eax, esp
push dword [esi + 4]
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0xe0]
movq qword [eax + 8], xmm0
call fcn.1006ca80
mov ecx, dword [esi + 4]
mov edx, esi
call fcn.10041320
push 0x1005ab00
push 0xfffffffffffffffc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 8], eax
cmp eax, 0x1005ab00
je 0x10057c3b
test eax, eax
jne 0x10057c43
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 8], eax
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd6]
push eax
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0xd8]
push 0x64
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x10057c89
lea eax, [ebp - 0xd8]
push eax
lea ecx, [esi + 0x8c]
call fcn.1003ec60
mov esi, 1
mov ecx, dword [ebp + 0x20]
mov dword [ebp + 0x14], vtable.CStringBufferW.0
test ecx, ecx
je 0x10057ca5
push ecx
call fcn.1006eaef
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 0x20

Function at 0x10059b40
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 1
mov esi, ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x10059b70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.m_iLastMouseDownTime:__d
push str.CChildButton::OnMouseLeftKeyDown
push 0xb
mov dword [esi + 0x14], eax
call fcn.10041ef0
add esp, 0x10
xor eax, eax
pop esi
ret 0x14