joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc43c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a22a0]
push ebx
push esi
push edi
test eax, eax
je 0x4cc5ac
add eax, 0xc9a
mov ebx, 0x118
push eax
push ebx
lea eax, [ebp - 0x440]
push eax
call fcn.00401a0b
push 0x524e5c
push ebx
lea eax, [ebp - 0x440]
push eax
call fcn.004019cd
xor ebx, ebx
cmp dword [0x5a22cc], 6
jb 0x4cc556
call fcn.004ea09e
test al, al
jne 0x4cc5ac
mov dword [ebp - 0x448], 0x26
mov esi, ebx
mov dword [ebp - 0x444], 0x2b
mov edi, ebx
lea eax, [ebp - 0x210]
push eax
xor eax, eax
test edi, edi
setne al
push eax
push ebx
push dword [ebp + esi*4 - 0x448]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4cc542
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4cc4e8
sub ecx, edx
sar ecx, 1
je 0x4cc542
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x212], ax
je 0x4cc527
mov word [ebp + ecx*2 - 0x210], ax
inc ecx
lea eax, [ecx + ecx]
cmp eax, 0x20c
jae 0x4cc5bd
xor edx, edx
mov word [ebp + eax - 0x210], dx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004e1d62
add esp, 0xc
test eax, eax
je 0x4cc594
inc edi
cmp edi, 1
jbe 0x4cc4bd
inc esi
cmp esi, 2
jb 0x4cc4bb
push str.ConEmuUpdate.flag
push 0x118
lea eax, [ebp - 0x440]
push eax
call fcn.004019cd
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4cc598
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, 1
jmp 0x4cc5ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
call fcn.004f4963
int3
Function at 0x4cde2c
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
push ebx
lea eax, [esi + 0x5a6]
push eax
push 0x1024
push str.Are_you_sure__stop_updates_checking_
call fcn.00421ef1
add esp, 0x14
cmp eax, 6
jne 0x4cdf04
push edi
mov ecx, esi
call fcn.004cd635
cmp dword [esi + 8], ebx
je 0x4cdea2
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x4cde87
mov ecx, esi
call fcn.004cd635
push 0x9c4
push dword [esi + 8]
call edi
test eax, eax
je 0x4cdea2
push 0x115
push 0x563e08
push 0x64
push dword [esi + 8]
call fcn.004e6709
add esp, 0x10
mov ecx, esi
call fcn.004cb67a
mov eax, dword [esi + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 0x1c8], ebx
test eax, eax
je 0x4cded5
cmp word [eax], bx
je 0x4cdec7
push eax
call edi
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4cded5
push eax
call fcn.004e1bea
pop ecx
mov dword [esi + 0x50], ebx
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4cdf03
mov ecx, eax
cmp word [eax], bx
je 0x4cdef5
mov edx, dword [esi + 0x28]
test edx, edx
je 0x4cdeef
cmp byte [edx + 0x38], bl
jne 0x4cdef5
push eax
call edi
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x4cdf03
push ecx
call fcn.004e1bea
pop ecx
mov dword [esi + 0x4c], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4ce65a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov al, byte [esi + 8]
test al, al
jne 0x4ce7f1
mov al, byte [esi + 9]
push ebx
push 2
pop ebx
test al, al
jne 0x4ce7e6
mov eax, dword [0x5a22a0]
push edi
add eax, 0xc9a
mov edi, 0x106
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.00401a0b
push 0x524e5c
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.004019cd
xor eax, eax
mov dword [ebp - 0x42c], eax
mov edi, eax
cmp edi, 1
mov ecx, edi
mov edx, 0x200
setne al
neg ecx
sbb cl, cl
and cl, al
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 0x420], ecx
cmp edi, 1
mov eax, 0x100
mov ecx, edi
cmove eax, edx
neg ecx
sbb ecx, ecx
and ecx, eax
xor eax, eax
or ecx, 0x20019
push ecx
push eax
push str.SOFTWAREConEmu
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ce7d0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x208
push eax
lea eax, [ebp - 0x210]
mov ecx, str.InstallDir
push eax
xor eax, eax
cmp byte [ebp - 0x420], 0
push eax
push eax
mov eax, str.InstallDir_x64
cmove eax, ecx
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ce7c4
cmp word [ebp - 0x210], ax
je 0x4ce7c4
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, word [ebp - 0x42c]
jne 0x4ce76c
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x212], 0x5c
je 0x4ce79f
push 0x524e5c
push 0x106
lea eax, [ebp - 0x210]
push eax
call fcn.004019cd
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4ce7c4
mov eax, dword [ebp - 0x420]
mov byte [esi + 9], 1
mov byte [esi + 0xa], al
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp edi, ebx
jbe 0x4ce6c4
mov al, byte [esi + 9]
pop edi
test al, al
jne 0x4ce7e6
mov byte [esi + 9], bl
mov al, bl
test al, al
movzx ecx, al
cmovne ebx, ecx
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret
Function at 0x4ce857
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x74
mov eax, 0x5123f4
call fcn.004f41e2
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi]
test eax, eax
je 0x4ce87d
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x4ce8a1
mov eax, dword [str.https:__conemu.github.io_version.ini]
movzx eax, word [eax]
test ax, ax
jne 0x4ce8a1
push str.Update.VerLocation_is_empty
push 0x80
push esi
call fcn.00401a0b
xor al, al
jmp 0x4ce9c8
mov al, byte [edi + 7]
cmp al, 1
je 0x4ce8b7
cmp al, 3
je 0x4ce8b7
cmp al, 2
je 0x4ce8b7
push str.Update.UseBuilds_is_not_specified
jmp 0x4ce88f
mov ecx, edi
call fcn.004ce65a
movzx eax, al
sub eax, 1
je 0x4ce9ed
sub eax, 1
je 0x4ce8d6
push str.Update.DownloadSetup_is_not_specified
jmp 0x4ce88f
mov ecx, edi
call fcn.004ce63f
xor ebx, ebx
mov dword [ebp - 0x78], eax
cmp word [eax], bx
jne 0x4ce8ee
push str.Update.ArcCmdLine_is_not_specified
jmp 0x4ce88f
lea ecx, [ebp - 0x74]
call fcn.004e25a1
push ebx
lea eax, [ebp - 0x74]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004e55bb
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.0044612f
push eax
call fcn.004e5a5b
mov dword [ebp - 0x78], eax
pop ecx
test eax, eax
je 0x4ce9d0
cmp word [eax], bx
je 0x4ce9d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.WinRar.exe
push eax
call edi
test eax, eax
je 0x4ce95b
push str.Rar.exe
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4ce95b
push str.UnRar.exe
push dword [ebp - 0x78]
call edi
test eax, eax
jne 0x4ce9be
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], ebx
push eax
push 0x20019
push ebx
push str.SoftwareWinRARExtractionProfile
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ce9b1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push str.UnpToSubfolders
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x7c]
xor edx, edx
push dword [ebp - 0x80]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x7c], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x7c], 0
je 0x4ce9be
push str.Update.ArcCmdLine:_Unwanted_option_n_HKCUSoftwareWinRARExtractionProfile__n_UnpToSubfolders_1
jmp 0x4ce9d5
lea ecx, [ebp - 0x74]
call fcn.004e25e0
mov al, 1
call fcn.004f418c
ret 4
push str.Update.ArcCmdLine_is_invalid
push 0x80
push esi
call fcn.00401a0b
lea ecx, [ebp - 0x74]
call fcn.004e25e0
jmp 0x4ce89a
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004ce7fe
cmp word [eax], 0
jne 0x4ce9c6
push str.Update.ExeCmdLine_is_not_specified
jmp 0x4ce88f
Function at 0x4cf171
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x50
mov eax, 0x512491
call fcn.004f41e2
mov esi, ecx
mov dword [ebp - 0x34], esi
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x1118c], 0
jne 0x4cf197
xor al, al
jmp 0x4cf2be
push dword [esi + 4]
lea ecx, [ebp - 0x5c]
xor ebx, ebx
call fcn.004d83c4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.004d840a
mov ecx, dword [0x5a22a0]
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.0040ef51
test eax, eax
js 0x4cf1d5
mov ecx, dword [ebp - 0x48]
call fcn.004de78b
mov edi, eax
jmp 0x4cf1d7
mov edi, ebx
test edi, edi
je 0x4cf2ac
mov ecx, edi
call fcn.00496ee8
test al, al
je 0x4cf2ac
mov ecx, edi
call fcn.00488c5d
test eax, eax
jne 0x4cf2ac
mov edi, 0x8000
cmp byte [esi + 0x7c], al
je 0x4cf21f
xor ecx, ecx
inc ecx
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x4cf219
mov byte [esi + 0x7c], bl
cmp byte [esi + 0x7c], 0
jne 0x4cf26d
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea esi, [ebp - 0x30]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
push 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x3c]
sub ecx, eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4cf2ac
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x79], 0
je 0x4cf274
xor eax, eax
lea ebx, [eax + 1]
jmp 0x4cf2ac
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
jne 0x4cf2ac
push 0x11
call esi
test di, ax
jne 0x4cf2ac
push 0x12
call esi
test di, ax
jne 0x4cf2ac
xor eax, eax
inc eax
push eax
call esi
push 1
test di, ax
movzx ebx, bl
pop ecx
cmove ebx, ecx
lea ecx, [ebp - 0x4c]
call fcn.004d84a5
lea ecx, [ebp - 0x5c]
call fcn.004d84a5
mov al, bl
call fcn.004f418c
ret
Function at 0x4d0967
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x4d0a18
cmp byte [esi + 0x45], 0
jne 0x4d0a18
push ebx
push edi
call fcn.004244be
test al, al
jne 0x4d09d4
cmp byte [esi + 0x65], al
jne 0x4d09ce
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
cmp dword [esi + 0x60], ebx
je 0x4d09b3
call edi
sub eax, dword [esi + 0x60]
cmp eax, 5
jb 0x4d09ce
call edi
push ebx
push ebx
push dword [esi + 0x34]
mov dword [esi + 0x60], eax
push dword [esi + 0x20]
mov word [esi + 0x64], 0x100
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4d0a16
mov byte [esi + 0x64], 1
jmp 0x4d0a16
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esi + 0x65], bl
cmp byte [ebp + 8], bl
je 0x4d0a16
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x4d0a16
push 0x92a
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret 4

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

Disassembly:
mov ecx, dword [0x5a22a0]
and dword [0x5a55a4], 0
mov byte [0x5a55a2], 0
mov ecx, dword [ecx + 0x3e84]
jmp fcn.004a07df
Function at 0x4d54dc
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x14
mov eax, 0x512a45
call fcn.004f41ae
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov esi, ebx
mov edi, ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
push 1
lea eax, [ebp - 0x18]
push eax
push dword [0x5a22a4]
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea ecx, [ebp - 0x20]
call fcn.004e4003
push 0xffffffffffffffff
push dword [0x5a55a8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.004e77a9
mov eax, dword [ebp + 0xc]
sub eax, 0x20
je 0x4d5544
sub eax, 0x1e0
je 0x4d5551
sub eax, 1
je 0x4d5544
sub eax, 1
je 0x4d5551
sub eax, 1
jne 0x4d5589
mov eax, dword [0x5a5520]
test eax, eax
je 0x4d556f
mov esi, eax
jmp 0x4d5585
push dword [0x5a5520]
call fcn.004d7cd6
pop ecx
test al, al
je 0x4d5568
mov eax, dword [0x5a5520]
jmp 0x4d554d
call fcn.004d7315
jmp 0x4d5589
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004d3cdb
mov esi, eax
add esp, 0xc
mov eax, dword [0x5a5520]
test esi, esi
jne 0x4d5593
call fcn.004d7315
mov eax, dword [0x5a5520]
cmp dword [ebp + 0xc], 0x20
jne 0x4d55f3
test esi, esi
je 0x4d55c8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4d55c8
cmp eax, 1
jne 0x4d55b6
mov eax, dword [0x5a22a0]
mov edi, dword [eax + 0x45c0]
jmp 0x4d55d3
cmp eax, 2
jne 0x4d55de
mov eax, dword [0x5a22a0]
mov edi, dword [eax + 0x45b8]
jmp 0x4d55d3
mov eax, dword [0x5a22a0]
mov edi, dword [eax + 0x45a8]
test edi, edi
je 0x4d55de
push edi
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x5a22a0]
xor ebx, ebx
cmp edi, dword [eax + 0x45a8]
setne bl
jmp 0x4d56d0
test esi, esi
je 0x4d56d0
cmp dword [esi + 0xc], 0
je 0x4d56d0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x10]
mov edi, edx
mov dword [ebp - 0x10], edx
sub ecx, 0x200
je 0x4d563f
sub ecx, 1
je 0x4d562e
sub ecx, 1
je 0x4d563f
sub ecx, 1
jne 0x4d5689
mov edi, 0x1f4
jmp 0x4d5696
push dword [ebp + 8]
mov dword [0x5a5520], esi
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x4d5686
test eax, eax
je 0x4d5689
cmp dword [esi + 0xc], 2
jne 0x4d565d
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x40]
add ecx, dword [esi + 0x30]
mov eax, dword [ebp - 0x14]
sub ecx, dword [esi + 0x28]
sub eax, dword [esi + 0x28]
jmp 0x4d566f
mov ecx, dword [esi + 0x34]
sub ecx, dword [esi + 0x3c]
add ecx, dword [esi + 0x2c]
mov eax, dword [ebp - 0x18]
sub ecx, dword [esi + 0x24]
sub eax, dword [esi + 0x24]
test ecx, ecx
jle 0x4d5689
test eax, eax
jle 0x4d5689
cmp eax, ecx
jge 0x4d5689
imul eax, eax, 0x3e8
cdq
idiv ecx
mov edi, eax
mov edx, dword [ebp - 0x10]
cmp edi, 1
jb 0x4d56b0
cmp edi, 0x3e7
ja 0x4d56b0
cmp edi, edx
je 0x4d56b0
mov dword [esi + 0x10], edi
mov ecx, dword [0x5a22a0]
push ebx
push ebx
lea ecx, [ecx + 0x180]
call fcn.0042e3bf
cmp dword [ebp + 0xc], 0x202
je 0x4d56cb
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4d56d0
call fcn.004d7315
lea ecx, [ebp - 0x20]
call fcn.004e7762
mov eax, ebx
call fcn.004f4177
ret
Function at 0x4d811a
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x5a5520], 0
je 0x4d8147
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4d813a
call fcn.004d7315
mov eax, dword [0x5a5520]
test eax, eax
je 0x4d8147
mov eax, dword [eax + 0xc]
ret
xor eax, eax
ret

Function at 0x4db8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x4db93f
xor ebx, ebx
mov dword [ebp - 0xd4], ebx
cmp dword [esi + 0xf8], ebx
je 0x4db93f
push edi
push dword [esi + 0x1f8]
push dword [esi + 0x1f4]
push dword [esi + 0x1ec]
push dword [esi + 0x1e8]
call fcn.004a0d5d
add esp, 0x14
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4db952
push ebx
push ebx
push ebx
push ebx
push str.Cant_create_file_
call fcn.00420ad9
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 4
mov ecx, dword [esi + 0xfc]
push 1
call fcn.0040f028
mov edx, eax
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xd4]
jne 0x4db966
sub ecx, ebx
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
sar ecx, 1
lea eax, [ebp - 0xd0]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push edi
call ebx
movsx eax, word [esi + 0x192]
push eax
movsx eax, word [esi + 0x190]
push eax
push dword [esi + 0x158]
lea eax, [ebp - 0xcc]
push dword [esi + 0x154]
push str._r_nSize:__ix_i___Cursor:__ix_i_r_n
push eax
call fcn.00409b7d
lea ecx, [ebp - 0xcc]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xd4]
jne 0x4db9ca
xor eax, eax
sub ecx, edx
push eax
sar ecx, 1
lea eax, [ebp - 0xd0]
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
call ebx
xor eax, eax
push eax
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [esi + 0x158]
imul eax, dword [esi + 0x154]
add eax, eax
push eax
push dword [esi + 0x28c]
push edi
call ebx
xor eax, eax
push eax
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [esi + 0x158]
imul eax, dword [esi + 0x154]
imul eax, eax, 0x18
push eax
push dword [esi + 0x294]
push edi
call ebx
xor eax, eax
push eax
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [esi + 0x158]
imul eax, dword [esi + 0x154]
add eax, eax
push eax
push dword [esi + 0x290]
push edi
call ebx
xor eax, eax
push eax
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [esi + 0x158]
imul eax, dword [esi + 0x154]
imul eax, eax, 0x18
push eax
push dword [esi + 0x298]
push edi
call ebx
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x4dba93
push edi
call fcn.004861f9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4db941
Function at 0x4e16f3
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
sub esi, edx
push edi
xor edi, edi
cmp edx, dword [ebp + 0xc]
cmova esi, eax
test esi, esi
je 0x4e1723
movzx eax, byte [edx]
xor eax, dword [ecx]
imul eax, eax, 0x1000193
inc edx
inc edi
mov dword [ecx], eax
cmp edi, esi
jne 0x4e170e
jmp 0x4e1725
mov eax, dword [ecx]
pop edi
pop esi
pop ebp
ret 8

Function at 0x4e2be6
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e2c39
xor eax, eax
cmp word [esi], ax
je 0x4e2c39
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea edi, [esi + eax*2]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ebx, [edi + eax*2]
call fcn.004e3945
pop ecx
test al, al
je 0x4e2c2c
xor eax, eax
xor ecx, ecx
cmp word [edi], cx
cmovne eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
lea esi, [ebx + 2]
cmp word [ebx + 2], ax
jne 0x4e2bfa
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4e2e74
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4e2f8b
xor ebx, ebx
cmp word [esi], bx
je 0x4e2f8b
push 0x250
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
or edx, 0xffffffff
mov dword [ebp - 0x28c], ecx
cmp ecx, edx
jne 0x4e2f44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4e2f40
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4e2f39
or edx, 0xffffffff
cmp esi, edx
je 0x4e2f39
push 0x34
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4e2f39
test byte [ebp - 0x38], 0x10
jne 0x4e2f39
mov bl, 1
test edi, edi
je 0x4e2f39
cmp dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
pop eax
cmovne ecx, eax
mov dword [edi], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4e2f8d
test byte [ebp - 0x288], 0x10
je 0x4e2f67
lea eax, [ebp - 0x288]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp - 0x28c]
test eax, eax
je 0x4e2f82
jmp 0x4e2f44
mov bl, 1
test edi, edi
je 0x4e2f82
cmp dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0x268]
push 0xffffffffffffffff
pop edx
cmovne eax, edx
mov dword [edi], eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4e2f40
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4e3275
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x104
jb 0x4e33a7
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e33a7
xor eax, eax
push ebx
mov word [esi], ax
call fcn.004e3cd3
movzx eax, al
xor ebx, ebx
cmp dword [ebp + 0x10], 2
mov dword [ebp + 8], eax
je 0x4e3309
cmp dword [ebp + 0x10], 3
je 0x4e3309
push edi
push esi
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4e3309
push esi
call fcn.004e5a5b
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4e3302
push str.ConEmuC.exe
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4e3302
push str.ConEmuC64.exe
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
je 0x4e3304
push ebx
push esi
call fcn.004e2e74
pop ecx
pop ecx
test al, al
jne 0x4e3309
jmp 0x4e3304
xor ebx, ebx
xor eax, eax
mov word [esi], ax
cmp word [esi], bx
jne 0x4e335d
lea ebx, [edi - 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, eax
test ecx, ecx
jle 0x4e3356
cmp ecx, ebx
jae 0x4e3356
cmp dword [ebp + 0x10], 2
jne 0x4e333b
cmp dword [ebp + 8], 0
je 0x4e333b
mov eax, 0x567af8
mov edx, str.SysWOW64cmd.exe
jmp 0x4e3345
mov eax, 0x567ab0
mov edx, str.System32cmd.exe
cmp word [esi + ecx*2 - 2], 0x5c
cmovne eax, edx
push eax
push edi
push esi
call fcn.004019cd
xor ebx, ebx
cmp word [esi], bx
je 0x4e337b
push ebx
push esi
call fcn.004e2e74
pop ecx
pop ecx
test al, al
jne 0x4e3373
xor eax, eax
mov word [esi], ax
mov eax, ebx
jmp 0x4e3376
movzx eax, word [esi]
test ax, ax
jne 0x4e33a2
lea eax, [ebp + 8]
push eax
push esi
push edi
push ebx
push 0x525554
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4e3396
cmp eax, edi
jb 0x4e33a2
push 0x525554
push edi
push esi
call fcn.00401a0b
mov eax, esi
pop ebx
jmp 0x4e33a9
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4e34b2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4e351e
xor eax, eax
cmp word [esi], ax
je 0x4e351e
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4e34ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x4e351e
push 2
push 3
call fcn.004e1c42
pop ecx
pop ecx
jmp 0x4e3520
lea ebx, [eax + 2]
push 2
push ebx
call fcn.004e1c42
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e351e
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4e3511
cmp eax, ebx
jb 0x4e351a
push edi
call fcn.004e1bea
pop ecx
xor edi, edi
mov eax, edi
jmp 0x4e3520
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret