joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472c54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x472eb4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x472cb7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0047271c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d740
cmp al, 1
jne 0x472cb7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00472a34
test al, al
je 0x472e43
cmp dword [ebp - 8], 0
jge 0x472cd5
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0047271c
mov eax, dword [ebp - 0x210]
call fcn.00404acc
cmp ebx, eax
jge 0x472d1f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0047271c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4c8798]
and eax, 0xff
bt dword [edx], eax
jae 0x472d1f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x472d33
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00472c30
cmp ebx, dword [ebp - 8]
je 0x472e35
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x472d5f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c7210]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x472e22
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c7210]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044efb0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c7210]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044efb0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472e29
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x472e96
cmp dword [ebp - 8], 0
jge 0x472e4e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0047271c
mov eax, dword [ebp - 0x218]
call fcn.00404acc
cmp eax, dword [ebp - 8]
jg 0x472e88
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0047271c
mov eax, dword [ebp - 0x21c]
call fcn.00404acc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00472c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472ebb
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404830
ret
Function at 0x4803d4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x480402
mov eax, ebx
call fcn.00480e88
cmp dword [ebx + 0x40], 0
je 0x4803fb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x480473
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x480465
cmp dword [ebx + 8], 0
je 0x480424
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x480436
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x480465
cmp dword [ebx + 8], 0
je 0x480417
cmp eax, 3
je 0x480449
dec eax
jne 0x480417
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x480417
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x480417
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x480491
cmp dword [ebx + 0x14], 0xcc
je 0x480491
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048049c
pop ebx
ret

Function at 0x4abc74
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4abc99
cmp dword [esp + 4], 5
jb 0x4abc99
mov al, 1
jmp 0x4abc9b
xor eax, eax
add esp, 0x94
ret
Function at 0x436940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26000]
push edi
jmp 0x43695a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x436961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x436950
mov eax, 1
add ebx, ebx
jne 0x436973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436968
jne 0x436984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436968
xor ecx, ecx
sub eax, 3
jb 0x436998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x436a0a
mov ebp, eax
add ebx, ebx
jne 0x4369a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4369b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4369d4
inc ecx
add ebx, ebx
jne 0x4369c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4369b5
jne 0x4369d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4369b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4369f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4369e5
jmp 0x436956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4369f4
add edi, ecx
jmp 0x436956
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x436a12
cmp byte [edi], 0x12
jne 0x436a12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x436a17
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x436a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x471b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x47294]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x436a44
mov ecx, edi
jns 0x436a73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4729c]
or eax, eax
je 0x436a89
mov dword [ebx], eax
add ebx, 4
jmp 0x436a61
call dword [esi + 0x47298]
mov ebp, dword [esi + 0x472a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x436ac3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x401240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401259
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401294
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401290
lea ebx, [ebx]
cmp esi, eax
jae 0x401294
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401280
cmp esi, eax
jb 0x40129a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408130
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x640000
push 0
mov esi, eax
push 0x401
push esi
mov dword [edx], 0
call edi
push 0
push 1
push 0x404
push esi
call edi
push 0
push 0
push 0x402
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret

Function at 0x4084c0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4cf570], 0
je 0x4084d6
add dword [0x4cf574], 1
mov eax, 1
ret
push str.TTPFILE.DLL
mov dword [0x4cf574], 0
call fcn.0042e180
add esp, 4
test eax, eax
mov dword [0x4cf570], eax
jne 0x4084f7
ret
push esi
push edi
push 0x4d8d16
call sub.ttpfile.dll_Ordinal_11
push 0x4d83d8
call sub.ttpfile.dll_Ordinal_12
mov eax, dword [0x4cf570]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push eax
xor edi, edi
call esi
test eax, eax
mov dword [0x4cf520], eax
jne 0x40852b
lea edi, [eax + 1]
mov ecx, dword [0x4cf570]
push 2
push ecx
call esi
test eax, eax
mov dword [0x4cd4d8], eax
jne 0x408542
lea edi, [eax + 1]
mov edx, dword [0x4cf570]
push 3
push edx
call esi
test eax, eax
mov dword [0x4cf4ec], eax
jne 0x408559
lea edi, [eax + 1]
mov eax, dword [0x4cf570]
push 4
push eax
call esi
test eax, eax
mov dword [0x4cf530], eax
jne 0x40856f
lea edi, [eax + 1]
mov ecx, dword [0x4cf570]
push 5
push ecx
call esi
test eax, eax
mov dword [0x4cf514], eax
jne 0x408586
lea edi, [eax + 1]
mov edx, dword [0x4cf570]
push 6
push edx
call esi
test eax, eax
mov dword [0x4cf53c], eax
jne 0x40859d
lea edi, [eax + 1]
mov eax, dword [0x4cf570]
push 7
push eax
call esi
test eax, eax
mov dword [0x4cf528], eax
jne 0x4085b3
lea edi, [eax + 1]
mov ecx, dword [0x4cf570]
push 8
push ecx
call esi
test eax, eax
mov dword [0x4cf4f0], eax
jne 0x4085ca
lea edi, [eax + 1]
mov edx, dword [0x4cf570]
push 9
push edx
call esi
test eax, eax
mov dword [0x4cf52c], eax
jne 0x4085e1
lea edi, [eax + 1]
mov eax, dword [0x4cf570]
push 0xa
push eax
call esi
test eax, eax
mov dword [0x4cf4f4], eax
je 0x4085f8
test edi, edi
je 0x408614
mov ecx, dword [0x4cf570]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov dword [0x4cf570], 0
xor eax, eax
pop esi
ret
pop edi
mov dword [0x4cf574], 1
mov eax, 1
pop esi
ret
Function at 0x408fc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x4cbbe8]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [0x4cf540]
test eax, eax
push esi
mov esi, dword [esp + 0x410]
je 0x40906a
cmp dword [eax + 0x150], 0
je 0x40906a
push 0x4cf4f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x414]
mov edx, dword [0x4cf540]
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [edx + 0x154]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call esi
mov edx, dword [0x4cf540]
mov eax, dword [edx + 0x154]
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4a5840
push eax
call esi
push 0x4cf4f8
mov dword [0x4c12b8], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0046fa34
add esp, 0x408
ret
push 0x4d8d16
push str.ERROR
push 0x400
lea ecx, [esp + 0x14]
push ecx
push str.MSG_ERROR
call fcn.0042c140
push 0x4d8d16
push str.It_is_not_opened_by_the_log_file_yet.
push 0x400
push 0x4d8e1a
push str.MSG_COMMENT_LOG_OPEN_ERROR
call fcn.0042c140
add esp, 0x28
push 0x30
lea edx, [esp + 0xc]
push edx
push 0x4d8e1a
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x408]
pop esi
xor ecx, esp
call fcn.0046fa34
add esp, 0x408
ret
Function at 0x4090e0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc08
mov eax, dword [0x4cbbe8]
xor eax, esp
mov dword [esp + 0xc04], eax
mov eax, dword [0x4cf540]
cmp dword [eax + 0x150], 0
push ebx
push edi
mov edi, 0x2710
mov ebx, 1
je 0x409350
mov ecx, dword [eax + 0x29c]
test ecx, ecx
je 0x409350
cmp ecx, ebx
jne 0x409350
mov ecx, dword [eax + 0x15c]
cmp ecx, dword [eax + 0x2a0]
jle 0x409350
push esi
push 0x4cf4f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4cf540]
mov dword [edx + 0x15c], 0
mov esi, dword [0x4cf540]
call fcn.00408d50
mov eax, dword [0x4cf540]
mov eax, dword [eax + 0x2a4]
test eax, eax
jle 0x409172
mov edi, eax
cmp edi, 1
mov esi, ebx
jl 0x4091c6
lea esp, [esp]
mov ecx, dword [0x4cf540]
push esi
add ecx, 0x32
push ecx
push str._s._d
push 0xffffffffffffffff
lea edx, [esp + 0x820]
push 0x400
push edx
call fcn.0046f96e
lea eax, [esp + 0x828]
push 0
push eax
call fcn.004727ab
add esp, 0x20
test eax, eax
jne 0x4091c2
add esi, ebx
cmp esi, edi
jle 0x409180
jmp 0x4091c6
cmp esi, edi
jle 0x4091c8
mov esi, edi
add esi, 0xffffffff
js 0x409286
test esi, esi
jne 0x4091f8
mov ecx, dword [0x4cf540]
push 0xffffffffffffffff
add ecx, 0x32
push ecx
lea edx, [esp + 0x418]
push 0x400
push edx
call fcn.0046fb1a
add esp, 0x10
jmp 0x40921e
mov eax, dword [0x4cf540]
push esi
add eax, 0x32
push eax
push str._s._d
push 0xffffffffffffffff
lea ecx, [esp + 0x420]
push 0x400
push ecx
call fcn.0046f96e
add esp, 0x18
mov eax, dword [0x4cf540]
lea edx, [esi + 1]
push edx
add eax, 0x32
push eax
push str._s._d
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push 0x400
push ecx
call fcn.0046f96e
lea edx, [esp + 0x28]
push edx
call fcn.0047277c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x430]
push ecx
call fcn.0047274e
add esp, 0x24
test eax, eax
je 0x40927e
call fcn.00472680
mov edx, dword [eax]
push edx
push str.LogRotate
push str._s:_rename__d_n
call fcn.0042c2e0
add esp, 0xc
sub esi, ebx
jns 0x4091d1
cmp word [0x4d99cc], 0
pop esi
jne 0x409296
mov ebx, 3
mov eax, dword [0x4cf540]
push 0
push 0x80
push 2
push 0
push ebx
push 0x40000000
add eax, 0x32
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x4cf540]
push 0
push 0
push 1
push 0
mov dword [ecx + 0x154], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [0x4cf540]
mov dword [edx + 0x2b4], eax
mov ecx, dword [0x4cf540]
lea eax, [esp + 8]
push eax
push 0
push ecx
push 0x408dc0
push 0
push 0
call fcn.00472597
mov edx, dword [0x4cf540]
mov dword [edx + 0x2a8], eax
mov eax, dword [0x4cf540]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x2ac], ecx
mov eax, dword [0x4cf540]
add esp, 0x18
cmp dword [eax + 0x2b4], 0
je 0x409345
mov edx, dword [eax + 0x2b4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4cf540]
mov ecx, dword [eax + 0x2b4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4cf4f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc0c]
pop edi
pop ebx
xor ecx, esp
call fcn.0046fa34
add esp, 0xc08
ret
Function at 0x409c50
Capabilities:
Read file on windows

Disassembly:
push ecx
cmp dword [0x4cf57c], 0
je 0x409d99
test byte [0x4de53c], 2
jne 0x409d99
cmp dword [0x4cf534], 0
mov eax, dword [0x4cf544]
push edi
mov edi, dword [eax + 0x15c]
je 0x409cd0
mov eax, dword [0x4cf4e0]
mov ecx, dword [0x4cf4e4]
sub ecx, eax
push ecx
lea edx, [eax + 0x4cd4e0]
push edx
push 0x4da080
call sub.ttpcmn.dll_Ordinal_23
movzx eax, ax
movzx ecx, ax
mov eax, dword [0x4cf4e0]
add eax, ecx
xor edx, edx
cmp dword [0x4cf4e4], eax
mov dword [0x4cf4e0], eax
setne dl
mov eax, edx
test eax, eax
mov dword [0x4cf534], eax
jne 0x409d98
jmp 0x409cd0
mov eax, dword [0x4cf4e4]
cmp dword [0x4cf4e0], eax
push esi
jne 0x409d9b
mov edx, dword [0x4cf544]
mov eax, dword [edx + 0x154]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x2000
push 0x4cd4e0
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
test ax, ax
movzx ecx, ax
movzx esi, ax
mov dword [0x4cf4e0], 0
mov dword [0x4cf4e4], ecx
je 0x409d6c
push ecx
push 0x4cd4e0
push 0x4da080
call sub.ttpcmn.dll_Ordinal_23
mov ecx, dword [0x4cf4e0]
movzx eax, ax
movzx eax, ax
add ecx, eax
xor edx, edx
cmp dword [0x4cf4e4], ecx
mov dword [0x4cf4e0], ecx
setne dl
mov ecx, edx
mov edx, dword [0x4cf544]
add dword [edx + 0x15c], eax
test ecx, ecx
mov dword [0x4cf534], ecx
jne 0x409d9f
mov eax, dword [0x4cf544]
mov ecx, dword [eax + 0x15c]
mov dword [0x4cf538], ecx
mov ecx, dword [0x4cf57c]
call fcn.0040b810
test si, si
jne 0x409d97
push 2
call fcn.00409b90
add esp, 4
pop esi
pop edi
pop ecx
ret
xor esi, esi
jmp 0x409d6c
mov edx, dword [0x4cf544]
cmp dword [edx + 0x15c], edi
je 0x409d97
mov ecx, dword [0x4cf57c]
call fcn.0040b810
pop esi
pop edi
pop ecx
ret
Function at 0x40ee50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4cbbe8]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
push 0x4a6558
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.004723db
add esp, 0x10
cmp dword [0x4cff44], 0
jne 0x40eed3
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4cff44], eax
jne 0x40eec0
xor eax, eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046fa34
add esp, 0x108
ret
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cff40], eax
jmp 0x40eed8
mov eax, dword [0x4cff40]
test eax, eax
je 0x40eea9
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
push ecx
mov ecx, dword [esp + 0x110]
push edx
push ecx
push esi
call eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046fa34
add esp, 0x108
ret

Function at 0x40f840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4cbbe8]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
call fcn.0042ca80
test eax, eax
je 0x40f91d
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f91d
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push str.EnableLUA
push ecx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f8ba
cmp byte [esp + 0x1c], 1
jne 0x40f8ba
lea esi, [eax + 1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f91d
lea eax, [esp + 8]
push eax
push 0x88
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40f91d
mov eax, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40f90e
cmp dword [esp + 0xc], esi
jne 0x40f90e
mov esi, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40f935
xor eax, eax
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0046fa34
add esp, 0x11c
ret
mov ecx, dword [esp + 0x11c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0046fa34
add esp, 0x11c
ret
Function at 0x40fa20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 0x10]
push eax
xor edi, edi
lea ecx, [esp + 8]
push ecx
push edi
push 0x20019
push edi
push edi
push edi
push str.SoftwareLogMeTT
push reloc.ttpcmn.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40fad6
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
push eax
lea eax, [esp + 0x18]
push eax
push edi
push str.InstallPath
push ecx
call ebx
test eax, eax
jne 0x40fac6
mov edx, dword [esp + 0xc]
push esi
push edx
call fcn.0046f6e3
mov esi, eax
add esp, 4
test esi, esi
je 0x40fac5
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push edi
push str.InstallPath
push edx
call ebx
test eax, eax
jne 0x40fabc
push 0xffffffffffffffff
push esi
push 0x104
push 0x4cfe18
lea edi, [eax + 1]
call fcn.0046fb1a
add esp, 0x10
push esi
call fcn.0046f7a6
add esp, 4
pop esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop ebx
jne 0x40fb14
push 0xffffffffffffffff
push 0x4d78c0
push 0x104
push 0x4cfe18
call fcn.0046fb1a
push 0x104
push 0x4cfe18
call fcn.0042b140
push 0xffffffffffffffff
push str.LogMeTT.exe
push 0x104
push 0x4cfe18
call fcn.004723db
add esp, 0x28
push 0
push 0x4cfe18
call fcn.00472832
xor ecx, ecx
add esp, 8
cmp eax, 0xffffffff
setne cl
pop edi
mov eax, ecx
add esp, 0x10
ret

Function at 0x411b10
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x49f5ea
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4cbbe8]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [0x4d2998]
test eax, eax
mov dword [0x4c1c30], 2
jne 0x411b94
push 0x434
call fcn.0043f329
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x411b7d
mov ecx, eax
call fcn.0040d400
mov dword [0x4d29a8], eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
xor eax, eax
mov dword [0x4d29a8], eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d2998]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x415340
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4cbbe8]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
mov ebp, dword [esp + 0x428]
push esi
push edi
mov edi, dword [esp + 0x434]
push 0
push 0
push 0x14b
push 0x3f9
push ebp
mov esi, 1
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push str.Command_d
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push 0xd
push eax
call fcn.0046f96e
add esp, 0x14
push edi
push 0x401
lea ecx, [esp + 0x2c]
push ecx
push 0x4a5588
lea edx, [esp + 0x24]
push edx
push str.BroadcastCommands
call ebx
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4153c0
sub eax, edx
je 0x4153e5
lea eax, [esp + 0x24]
push eax
push 0
push 0x143
push 0x3f9
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
movzx ecx, word [0x4d9228]
add esi, 1
cmp esi, ecx
jg 0x415411
lea eax, [esp + 0x24]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x415400
sub eax, edx
jne 0x415386
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0x3ff
push 0xc5
push 0x3f9
push ebp
call esi
push 0
push 0
push 0x14e
push 0x3f9
push ebp
call esi
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046fa34
add esp, 0x41c
ret

Function at 0x4155f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
mov eax, dword [0x4cbbe8]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push 0
push 0
push 0x184
push edi
call ebp
call sub.ttpcmn.dll_Ordinal_89
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x415657
push esi
call sub.ttpcmn.dll_Ordinal_16
test eax, eax
je 0x415657
push 0x100
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0xc]
push edx
push 0xffffffffffffffff
push 0x181
push edi
call ebp
add esi, 1
cmp esi, ebx
jl 0x415626
mov ecx, dword [esp + 0x10c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046fa34
add esp, 0x104
ret