joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487580
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
cmp word [eax + 0x30], 0
push esi
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0xc]
lea esi, [eax + 0x30]
mov dword [ebp - 8], ecx
je 0x4875dd
push ebx
push edi
nop
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
lea edi, [esi + eax*2 + 2]
push edi
call ebx
push 6
push str.ConEmu
push esi
lea ebx, [edi + eax*2 + 2]
call fcn.00441e90
add esp, 0xc
test eax, eax
je 0x4875d0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp word [ebx], 0
mov esi, ebx
jne 0x4875a0
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
push ecx
push eax
call fcn.004a05a0
mov edx, dword [ebp - 8]
push 0x34
push edx
call fcn.004248c0
add esp, 0x10
pop esi
test eax, eax
je 0x487603
mov dword [eax + 0x30], 1
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
je 0x48812c
cmp dword [esi + 4], 0
je 0x488254
mov ecx, dword [0x50b39c]
push 0x64
push 1
call fcn.00409230
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp + 8], 0
je 0x488138
mov byte [esi + 0x2c], 0
jmp 0x48814c
cmp dword [esi + 0x30], 0
je 0x48814c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x30]
cmp eax, 0x4b
jb 0x488102
call fcn.004a11c0
test al, al
jne 0x488102
push ebx
lea ecx, [ebp + 8]
call fcn.004a4720
lea ebx, [esi + 0x14]
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0
jne 0x488186
mov ecx, dword [0x50b39c]
push 0
push 0
call fcn.00409230
jmp 0x4881e0
push edi
mov ecx, dword [esi + 4]
cmp ecx, 1
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
jle 0x4881bb
dec ecx
imul ecx, dword [esi]
push ecx
lea ecx, [eax + 4]
push ecx
push eax
call fcn.004b0bb0
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
push edx
lea edx, [ecx + eax*4 - 4]
push 0
push edx
call fcn.004b03e0
add esp, 0x18
dec dword [esi + 4]
mov ecx, dword [0x50b39c]
push edi
call fcn.00406a30
test al, al
jne 0x4881d6
cmp dword [esi + 4], 0
jne 0x488187
jmp 0x4881df
push edi
lea ecx, [ebp + 8]
call fcn.004a47c0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 8]
call fcn.004a4800
pop ebx
test eax, eax
je 0x488238
mov byte [esi + 0x2d], 1
mov ecx, dword [0x50b39c]
call fcn.00405a30
lea ecx, [ebp + 8]
mov byte [ebp - 0x10], al
call fcn.004a4800
mov ecx, eax
call fcn.004a4a70
mov ecx, eax
call fcn.00486540
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x50b39c]
push eax
call fcn.00404e90
mov byte [esi + 0x2d], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], eax
cmp dword [esi + 4], 0
je 0x488245
mov ecx, esi
call fcn.00487fb0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4899d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0
push 0
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x1c]
push 0
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x489a66
mov edi, dword [ebp - 4]
test edi, edi
je 0x489a66
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
shr edi, 1
test eax, eax
je 0x489a1d
push eax
call fcn.00441300
add esp, 4
mov dword [esi], 0
lea eax, [edi + edi + 4]
push eax
call fcn.004412a0
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
mov dword [esi], eax
mov eax, dword [ebx + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
test al, al
jne 0x489a4e
xor edi, edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + edi*2], dx
mov ecx, dword [esi]
pop esi
mov word [ecx + edi*2 + 2], dx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4917a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xeac], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x4917c2
call edi
sub eax, dword [esi + 0xeb4]
cmp eax, 0x7d0
jbe 0x4917f5
cmp dword [esi + 0xebc], 0
jle 0x4917d8
pop edi
mov dword [esi + 0xeb0], 1
pop esi
ret
mov dword [esi + 0xeac], 1
mov ecx, dword [0x50b39c]
call fcn.00408db0
call edi
mov dword [esi + 0xeb4], eax
pop edi
pop esi
ret
Function at 0x4973f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, ecx
cmp byte [esi + 0x3a9], 0
je 0x4974a9
cmp dword [esi + 0x14], 0
je 0x4974a9
cmp dword [esi + 0x3ac], 0
jne 0x4974a9
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004b03e0
mov edx, dword [0x50b384]
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x100]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esi + 0x120], 0
jne 0x497478
cmp word [esi + 0x324], 0
jne 0x497478
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4974a9
xor edx, edx
push 0x80
lea ecx, [ebp - 0x100]
mov word [esi + 0x120], dx
push ecx
lea edx, [esi + 0x18]
xor eax, eax
push edx
mov word [esi + 0x324], ax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4975a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esi + 0x3ac], eax
test edi, edi
je 0x4975f4
cmp word [edi], 0
je 0x4975f4
push ebx
mov dword [esi + 0xc], 0x17
mov ecx, dword [0x50b39c]
push 0x40
call fcn.004059f0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push eax
lea ecx, [esi + 0x324]
push ecx
call ebx
push 0x100
push edi
lea edx, [esi + 0x120]
push edx
call ebx
pop ebx
jmp 0x49760d
xor eax, eax
xor ecx, ecx
mov dword [esi + 0xc], 7
mov word [esi + 0x120], ax
mov word [esi + 0x324], cx
cmp byte [esi + 0x3a9], 0
jne 0x497652
push 0x80
lea edx, [esi + 0x18]
mov byte [esi + 0x3b0], 0
mov dword [esi + 0x3b4], 0
mov eax, dword [0x50b384]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop edi
mov byte [esi + 0x3a9], 1
pop esi
pop ebp
ret 8
mov ecx, esi
call fcn.004973f0
pop edi
pop esi
pop ebp
ret 8
Function at 0x4977d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
cmp eax, 0x402
push ebx
push esi
push edi
mov edi, ecx
jg 0x49787e
je 0x497867
sub eax, 0x202
je 0x497892
sub eax, 3
jne 0x497a34
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [0x50b39c]
mov byte [ecx + 0x43b4], 1
mov edx, dword [0x50b384]
push edx
call fcn.004acc10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [0x50b39c]
add esp, 4
push 0
push eax
push ecx
mov ecx, dword [edx + 0x4230]
call fcn.00440e10
mov ecx, dword [ebp + 8]
mov eax, dword [0x50b39c]
push 0
push 0
push 0
push ecx
mov byte [eax + 0x43b4], 0
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x3b4], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
sub eax, 0x404
je 0x4979ca
sub eax, 1
jne 0x497a34
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x1220], 0
je 0x49793b
push 0
mov ebx, 8
call fcn.00442e20
mov edx, dword [0x50b384]
movzx esi, al
neg esi
sbb esi, esi
push edx
add esi, 6
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x497906
mov ecx, dword [0x50b39c]
push 0
call fcn.00405600
test al, al
jne 0x497906
mov eax, dword [0x50b3a0]
cmp byte [eax + 0x1235], 0
jne 0x497904
cmp byte [eax + 0x1220], 2
je 0x497904
mov ecx, dword [0x50b39c]
call fcn.00407300
cmp eax, 0x50
jb 0x497917
mov ebx, esi
mov ecx, dword [0x50b39c]
push ebx
call fcn.0041a8f0
jmp 0x49799b
cmp eax, 0xa
jb 0x497906
mov ecx, dword [0x50b39c]
push 0
call fcn.00405600
test al, al
jne 0x497906
mov eax, dword [0x50b384]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x49799b
cmp byte [ecx + 0x1127a], 0
je 0x49798d
mov ecx, dword [0x50b384]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49798d
mov ecx, dword [0x50b3a0]
push 0
call fcn.00442e20
push 0
test al, al
je 0x497974
mov ecx, 0x50dcf0
call fcn.00497660
jmp 0x49799b
mov edx, dword [0x50b384]
push 0xf020
push 0x112
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x49799b
push 0
push 0
mov ecx, 0x50dcf0
call fcn.004976e0
cmp dword [edi + 0x3ac], 1
jne 0x497a34
mov dword [edi + 0x3ac], 0
mov ecx, dword [0x50b39c]
push 2
call fcn.00408c90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [edi + 0x3b0], 0
jne 0x497a1c
mov esi, dword [edi + 0x3b4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
je 0x4979ee
call ebx
sub eax, esi
cmp eax, 0x7d0
ja 0x497a1c
cmp byte [edi + 0x3b0], 0
jne 0x497a34
test esi, esi
je 0x497a34
call ebx
sub eax, dword [edi + 0x3b4]
cmp eax, 0x7d0
jbe 0x497a34
mov byte [edi + 0x3b0], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 1
mov ecx, 0x50dcf0
mov dword [edi + 0x3ac], 0
call fcn.004976e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x497a40
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3a9], 0
jne 0x497595
push 0x80
lea eax, [esi + 0x18]
mov byte [esi + 0x3b0], 0
mov dword [esi + 0x3b4], 0
mov ecx, dword [0x50b384]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [esi + 0x3a9], 1
pop esi
ret
pop esi
jmp fcn.004973f0
cmp byte [ecx + 0x3a9], 0
je 0x497a55
mov byte [ecx + 0x3a9], 0
jmp 0x497550
ret

Function at 0x497a60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x50b3a0]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp byte [eax + 0x1127a], bl
je 0x497a7a
pop esi
pop ebx
jmp 0x497550
mov ecx, dword [0x50b384]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x497abc
cmp byte [esi + 0x3a9], bl
je 0x497abc
cmp dword [esi + 0x3ac], ebx
jne 0x497abc
push esi
push 2
mov byte [esi + 0x3b0], bl
mov dword [esi + 0x3b4], ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [esi + 0x3a9], bl
mov dword [esi + 0x3b8], ebx
pop esi
pop ebx
ret

Function at 0x497ac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x497ace
xor al, al
pop ebp
ret
test edx, edx
je 0x497af2
push esi
push edi
movzx esi, byte [ecx]
movzx edi, byte [eax]
xor esi, edi
mov edi, dword [eax]
shr edi, 8
xor edi, dword [esi*4 + 0x4ec878]
inc ecx
sub edx, 1
mov dword [eax], edi
jne 0x497ad4
pop edi
pop esi
mov al, 1
pop ebp
ret

Function at 0x498230
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x49825b
push eax
call edi
mov eax, dword [esi + 0x44]
test eax, eax
je 0x49825b
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x49827c
push eax
call edi
mov eax, dword [esi + 0x48]
test eax, eax
je 0x49827c
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x49829d
push eax
call edi
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x49829d
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x4c], 0
pop edi
pop esi
ret
Function at 0x498ce0
Capabilities:
Delete file
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0x1024
lea eax, [esi + 0x1f4]
push eax
push str.Are_you_sure__stop_updates_checking_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x498db8
mov eax, dword [esi + 8]
push edi
mov dword [esi + 0x6c], 1
test eax, eax
je 0x498d48
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
cmp eax, 0x102
jne 0x498d38
mov ecx, dword [esi + 8]
push 0x9c4
push ecx
mov dword [esi + 0x6c], 1
call edi
test eax, eax
je 0x498d48
mov edx, dword [esi + 8]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00498230
mov eax, dword [esi + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 0x70], 0
test eax, eax
je 0x498d83
cmp word [eax], 0
je 0x498d6c
push eax
call edi
mov eax, dword [esi + 0x54]
test eax, eax
je 0x498d83
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x54], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x498db7
cmp word [ecx], 0
je 0x498da0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x498d9d
cmp byte [eax + 0x30], 0
jne 0x498da0
push ecx
call edi
mov eax, dword [esi + 0x50]
test eax, eax
je 0x498db7
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x50], 0
pop edi
pop esi
ret
Function at 0x499100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
je 0x49914a
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push ecx
push edx
call eax
mov esi, eax
test esi, esi
jne 0x499181
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
push ecx
push str.DownloadFile__s__failed__code_u
mov ecx, edi
call fcn.00498100
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push 0
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x499181
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.ReadFile__s__failed__code_u
mov ecx, edi
call fcn.00498100
mov eax, esi
pop edi
pop esi
pop ebp
ret 0x18
Function at 0x49a7f0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50b39c]
sub esp, 0x444
push ebx
push esi
push edi
add eax, 0x3be
push eax
lea ecx, [ebp - 0x444]
push ecx
call fcn.00499440
add esp, 8
push 0x4c9860
push 0x118
lea edx, [ebp - 0x444]
push edx
call fcn.00401880
cmp dword [0x50b3c4], 6
jb 0x49a8e6
call fcn.004acfb0
test eax, eax
jne 0x49a943
mov dword [ebp - 8], 0x26
mov dword [ebp - 4], 0x2b
xor ebx, ebx
mov edi, dword [ebp + ebx*4 - 8]
xor esi, esi
lea esp, [esp]
xor ecx, ecx
test esi, esi
setne cl
lea eax, [ebp - 0x214]
push eax
push ecx
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x49a8d6
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49a887
sub eax, edx
sar eax, 1
je 0x49a8d6
cmp word [ebp + eax*2 - 0x216], 0x5c
je 0x49a8bb
mov edx, 0x5c
mov word [ebp + eax*2 - 0x214], dx
inc eax
xor ecx, ecx
mov word [ebp + eax*2 - 0x214], cx
push eax
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x444]
push eax
call fcn.004b1f7f
add esp, 0xc
test eax, eax
je 0x49a926
inc esi
cmp esi, 1
jbe 0x49a860
inc ebx
cmp ebx, 2
jb 0x49a856
push str.ConEmuUpdate.flag
push 0x118
lea ecx, [ebp - 0x444]
push ecx
call fcn.00401880
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x49a92f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49bb20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf743
push eax
mov dword fs:[0], esp
sub esp, 0x310
push esi
push edi
mov esi, ecx
xor edi, edi
cmp esi, edi
je 0x49bbc6
mov ecx, dword [esi + 8]
xor eax, eax
cmp ecx, edi
je 0x49bb59
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x70]
cmp ecx, edi
jle 0x49bb71
cmp ecx, 2
jle 0x49bb6a
cmp ecx, 4
jne 0x49bb71
cmp eax, edi
jne 0x49bb71
mov dword [esi + 0x70], edi
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x49bbc6
cmp eax, 5
jne 0x49bb9a
mov ecx, dword [0x50b39c]
call fcn.0040dad0
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], edi
je 0x49bcef
push edi
push edi
push 0x10
push str.Checking_for_updates_already_started
call fcn.00420020
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x50b3a0]
mov dword [ecx + 0x11a70], eax
mov ecx, esi
call fcn.0049a7f0
mov byte [esi + 0x68], al
mov dword [esi + 0x6c], edi
cmp dword [esi + 0x34], edi
jne 0x49bc13
push 0x38
call fcn.004412a0
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x49bc07
mov ecx, eax
call fcn.0049bd10
jmp 0x49bc09
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], eax
mov edx, dword [0x50b3a0]
mov ecx, dword [esi + 0x34]
add edx, 0x11a3c
push edx
call fcn.0049c100
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [esi + 0x30], eax
call fcn.00486620
mov ecx, dword [esi + 0x40]
push 0xffffffffffffffff
push 1
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.004ada90
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x49bc60
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x3c], edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004ae3a0
mov ecx, dword [esi + 0x34]
lea edx, [ebp - 0x11c]
push edx
call fcn.0049c4a0
test al, al
jne 0x49bcbc
lea eax, [ebp - 0x31c]
push str.Updates_are_not_enabled_in_ConEmu_settings_n
push eax
call fcn.00401ad0
add esp, 8
lea ecx, [ebp - 0x11c]
push ecx
push 0xff
lea edx, [ebp - 0x31c]
push edx
call fcn.00401880
push edi
push edi
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x31c]
push eax
jmp 0x49bce7
lea ecx, [esi + 4]
push ecx
push edi
push esi
push 0x49b9f0
push edi
push edi
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x49bcef
push edi
push edi
push edi
push edi
mov dword [esi], edi
push str.CreateThread_CheckThreadProc__failed
call fcn.004200b0
add esp, 0x14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x49c100
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.0049c060
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
je 0x49c126
cmp word [eax], 0
je 0x49c126
push eax
call fcn.00441380
add esp, 4
jmp 0x49c128
xor eax, eax
mov dword [esi], eax
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
mov cl, byte [edi + 5]
mov byte [esi + 5], cl
mov dl, byte [edi + 6]
mov byte [esi + 6], dl
mov al, byte [edi + 7]
cmp al, 1
jb 0x49c14b
cmp al, 3
movzx eax, al
jbe 0x49c150
mov eax, 2
mov byte [esi + 7], al
mov al, byte [edi + 0xa]
mov byte [esi + 0xa], al
mov ecx, dword [edi + 0xc]
push ecx
call fcn.00441380
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0x10]
push edx
call fcn.00441380
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
call fcn.00441380
mov dword [esi + 0x14], eax
mov cl, byte [edi + 8]
mov byte [esi + 8], cl
movzx edx, byte [edi + 9]
mov byte [esi + 9], dl
mov eax, dword [edi + 0x18]
push eax
call fcn.00441380
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
push ecx
call fcn.00441380
mov dword [esi + 0x1c], eax
mov edx, dword [edi + 0x20]
push edx
call fcn.00441380
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
push eax
call fcn.00441380
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x2c]
push ecx
call fcn.00441380
mov dword [esi + 0x2c], eax
movzx edx, byte [edi + 0x30]
mov byte [esi + 0x30], dl
mov eax, dword [edi + 0x28]
push eax
call fcn.00441380
add esp, 0x24
pop edi
mov dword [esi + 0x28], eax
pop esi
pop ebp
ret 4

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0
jne 0x49c244
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x34]
cmp eax, 0x36ee80
jb 0x49c261
mov ecx, dword [0x50b39c]
push 0
call fcn.00408c90
pop esi
ret
Function at 0x49c330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov al, byte [ecx + 8]
mov dword [ebp - 4], ecx
test al, al
jne 0x49c497
cmp byte [ecx + 9], al
jne 0x49c488
mov eax, dword [0x50b39c]
push ebx
push esi
push edi
add eax, 0x3be
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.0049c2d0
add esp, 8
push 0x4c9860
push 0x106
lea edx, [ebp - 0x424]
push edx
call fcn.00401880
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
jmp 0x49c390
test edi, edi
jne 0x49c398
xor eax, eax
jmp 0x49c3a9
mov eax, edi
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
or eax, 0x20019
mov esi, str.InstallDir
test edi, edi
je 0x49c3c1
cmp edi, 1
je 0x49c3c1
mov esi, str.InstallDir_x64
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push str.SOFTWAREConEmu
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x49c46c
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push esi
push ecx
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49c462
cmp word [ebp - 0x218], ax
je 0x49c462
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49c413
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x49c443
push 0x4c9860
push 0x106
lea edx, [ebp - 0x218]
push edx
call fcn.00401880
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49c462
mov edx, dword [ebp - 4]
mov byte [edx + 9], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp edi, 2
jbe 0x49c390
mov ecx, dword [ebp - 4]
cmp byte [ecx + 9], 0
pop edi
pop esi
pop ebx
jne 0x49c488
mov edx, ecx
mov byte [edx + 9], 2
mov al, byte [ecx + 9]
test al, al
movzx eax, al
jne 0x49c497
mov eax, 2
mov esp, ebp
pop ebp
ret