joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eaab7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x25c], ebx
test eax, eax
je 0x4eab5e
cmp word [eax], bx
je 0x4eab5e
push edi
push 0x103
lea edi, [esi + 0x54]
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4eaaf9
push 2
mov word [edi], ax
pop eax
jmp 0x4eaafc
xor eax, eax
inc eax
mov dword [esi + 0x25c], eax
pop edi
cmp dword [esi + 0x50], ebx
je 0x4eab14
push dword [esi + 0x50]
call fcn.004e1bea
pop ecx
mov dword [esi + 0x50], ebx
push 0x5c
push dword [esi + 0x4c]
call fcn.004f5617
pop ecx
pop ecx
test eax, eax
je 0x4eab3e
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x50], ecx
xor ecx, ecx
mov word [eax], cx
add eax, 2
push ebx
push eax
call fcn.004e230a
pop ecx
pop ecx
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.004eaa70
test eax, eax
setne bl
test eax, eax
je 0x4eab5a
cmp eax, 0xffffffff
je 0x4eab5a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4eab60
xor al, al
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4eb4f4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x40
pop eax
mov ecx, dword [esi]
lea edi, [esi + 0x18]
and ecx, 0x3f
mov byte [ecx + esi + 0x18], 0x80
inc ecx
sub eax, ecx
cmp eax, 8
jae 0x4eb533
push eax
lea eax, [esi + 0x18]
add eax, ecx
push 0
push eax
call fcn.004f5a90
push 0x40
push edi
push esi
call fcn.004eb6cd
add esp, 0x18
xor ecx, ecx
push 0x40
pop eax
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, ecx
push 0
push eax
call fcn.004f5a90
shl dword [esi], 3
mov eax, dword [esi]
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
mov al, byte [esi + 2]
mov byte [esi + 0x52], al
mov al, byte [esi + 3]
mov byte [esi + 0x53], al
mov al, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
mov al, byte [esi + 6]
push 0x40
mov byte [esi + 0x56], al
mov al, byte [esi + 7]
push edi
push esi
mov byte [esi + 0x57], al
call fcn.004eb6cd
mov ecx, dword [ebp + 8]
mov al, byte [esi + 8]
push 0x98
push 0
mov byte [ecx], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [ecx + 1], al
mov al, byte [esi + 0xa]
mov byte [ecx + 2], al
mov al, byte [esi + 0xb]
mov byte [ecx + 3], al
mov al, byte [esi + 0xc]
mov byte [ecx + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [ecx + 5], al
mov al, byte [esi + 0xe]
mov byte [ecx + 6], al
mov al, byte [esi + 0xf]
mov byte [ecx + 7], al
mov al, byte [esi + 0x10]
mov byte [ecx + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [ecx + 9], al
mov al, byte [esi + 0x12]
mov byte [ecx + 0xa], al
mov al, byte [esi + 0x13]
mov byte [ecx + 0xb], al
mov al, byte [esi + 0x14]
mov byte [ecx + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [ecx + 0xd], al
mov al, byte [esi + 0x16]
mov byte [ecx + 0xe], al
mov al, byte [esi + 0x17]
push esi
mov byte [ecx + 0xf], al
call fcn.004f5a90
add esp, 0x24
pop edi
pop esi
pop ebp
ret
Function at 0x4eb606
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x4ec217
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push eax
push str.Shell_TrayWnd
push eax
push eax
jmp 0x4ec268
test ebx, ebx
je 0x4ec274
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4ec25e
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x4ec274
push 0
push str.Shell_TrayWnd
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
jne 0x4ec238
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret

Function at 0x4eda34
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4edb1c
xor ebx, ebx
cmp word [esi], bx
je 0x4edb1c
push ebx
push 0x2000000
push 3
push ebx
xor eax, eax
inc eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x4edab8
cmp edi, 0xffffffff
je 0x4edab8
push 0x34
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4edaad
test byte [ebp - 0x38], 0x10
movzx eax, bl
push 1
pop ebx
cmovne eax, ebx
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4edb1e
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 esi, eax
cmp esi, 0xffffffff
je 0x4edb1c
test byte [ebp - 0x288], 0x10
je 0x4edafc
lea eax, [ebp - 0x25c]
push eax
call fcn.004ee067
pop ecx
test al, al
je 0x4edb10
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4edae2
jmp 0x4edb13
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4edab4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4edbae
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2c0
mov eax, 0x5131c3
call fcn.004f41e2
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
push 1
push 1
push ebx
push edi
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], esi
call fcn.004edd47
add esp, 0x10
test al, al
je 0x4edc0b
push 0
push ebx
push edi
call fcn.004e5466
add esp, 0xc
mov dword [ebp - 0x2c0], eax
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, esi
call fcn.004e26da
mov al, 1
jmp 0x4edd41
cmp dword [ebp + 0x10], 0
jg 0x4edc18
xor al, al
jmp 0x4edd41
xor ebx, ebx
push ebx
push 0x5329c4
push edi
call fcn.004e5466
add esp, 0xc
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2c0]
lea ecx, [ebp - 0x6c]
push eax
call fcn.004e24e8
push 0x250
lea eax, [ebp - 0x2bc]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x6c]
push eax
call fcn.0044612f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
test esi, esi
je 0x4edd37
cmp esi, 0xffffffff
je 0x4edd37
test byte [ebp - 0x2bc], 0x10
je 0x4edd1a
lea eax, [ebp - 0x290]
push eax
call fcn.004ee067
pop ecx
test al, al
jne 0x4edd1a
push 0
lea eax, [ebp - 0x290]
push eax
push edi
call fcn.004e5466
add esp, 0xc
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x2c4]
lea ecx, [ebp - 0x6c]
push eax
call fcn.004e26da
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x290]
push str..git
push eax
dec ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4edcf4
push str..svn
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4edcf6
xor ebx, ebx
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x6c]
push ebx
push dword [ebp - 0x2cc]
call fcn.0044612f
push eax
call fcn.004edbae
mov bl, al
add esp, 0x10
test bl, bl
jne 0x4edd30
lea eax, [ebp - 0x2bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4edc7f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x6c]
call fcn.004e25e0
mov al, bl
call fcn.004f418c
ret

Function at 0x4edfd4
Capabilities:
Read .ini file

Disassembly:
push 0x60
mov eax, 0x50c923
call fcn.004f41e2
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4ee05f
xor ebx, ebx
cmp word [eax], bx
je 0x4ee05f
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.:Zone.Identifier
push eax
lea ecx, [ebp - 0x6c]
call fcn.004e2531
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], ebx
call fcn.0044612f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4ee053
cmp eax, 0xffffffff
je 0x4ee053
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0044612f
push eax
push 3
push str.ZoneId
push str.ZoneTransfer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
mov bl, 1
lea ecx, [ebp - 0x6c]
call fcn.004e25e0
mov al, bl
jmp 0x4ee061
xor al, al
call fcn.004f418c
ret
Function at 0x4ee21a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ee2da
xor ebx, ebx
cmp word [edi], bx
je 0x4ee2da
push 0x5c
pop esi
push esi
push edi
mov dword [ebp + 8], esi
call fcn.004f5617
push esi
push edi
mov dword [ebp - 4], eax
call fcn.004f6844
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ee299
cmp esi, dword [ebp - 4]
jne 0x4ee267
lea eax, [esi + 2]
xor esi, esi
cmp word [eax], bx
cmovne esi, eax
test esi, esi
je 0x4ee299
movzx eax, word [esi]
xor ecx, ecx
push 0x5c
mov word [esi], cx
pop ecx
mov dword [ebp + 8], eax
cmp ax, cx
jne 0x4ee284
cmp word [esi + 2], bx
jne 0x4ee2a4
push edi
call fcn.004eda34
pop ecx
test al, al
je 0x4ee2a4
mov eax, dword [ebp + 8]
mov word [esi], ax
mov al, 1
jmp 0x4ee2dc
push edi
call fcn.004eda34
pop ecx
test al, al
jne 0x4ee295
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4ee2b4
mov bl, 1
jmp 0x4ee2cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4ee2d6
cmp eax, 5
je 0x4ee2cc
push edi
call fcn.004ee21a
pop ecx
mov bl, al
test esi, esi
je 0x4ee2d6
mov eax, dword [ebp + 8]
mov word [esi], ax
mov al, bl
jmp 0x4ee2dc
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ee8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor ecx, ecx
cmp dword [ebp + 0x14], 0x4b0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov edi, ecx
mov dword [ebp - 0x18], ecx
jne 0x4ee8ff
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
test ebx, ebx
js 0x4ee8f2
add ebx, ebx
jmp 0x4ee94d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
add ebx, ebx
jmp 0x4ee94b
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jns 0x4ee921
push 0xfffffffffffffffe
pop esi
jmp 0x4eea16
push ebx
call fcn.004e1c0a
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
jne 0x4ee933
push 0xfffffffffffffffd
jmp 0x4ee91b
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
xor ecx, ecx
test ebx, ebx
js 0x4ee919
push ecx
push 0x80
push 2
push ecx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x4eea13
cmp edi, 0xffffffff
je 0x4eea13
cmp byte [ebp + 0x18], 0
je 0x4ee9ed
and dword [ebp - 0xc], esi
cmp dword [ebp + 0x14], 0x4b0
mov word [ebp - 8], 0xbbef
mov byte [ebp - 6], 0xbf
mov word [ebp - 4], 0xfeff
je 0x4ee9cd
cmp dword [ebp + 0x14], 0xfde9
jne 0x4ee9ed
push 0
lea eax, [ebp - 0xc]
push eax
push 3
pop esi
push esi
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ee9c6
cmp dword [ebp - 0xc], esi
je 0x4ee9ed
push 0xfffffffffffffffc
jmp 0x4ee91b
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ee9c6
cmp dword [ebp - 0xc], 2
jne 0x4ee9c6
push 2
pop esi
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4eea0c
cmp ebx, dword [ebp - 0x10]
jne 0x4eea0c
add esi, dword [ebp - 0x10]
jmp 0x4eea16
push 0xfffffffffffffffb
jmp 0x4ee91b
or esi, 0xffffffff
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x4eea25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
test edi, edi
je 0x4eea35
cmp edi, 0xffffffff
je 0x4eea35
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4eea43
push eax
call fcn.004e1bea
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4eed81
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
test edi, edi
je 0x4eeea2
test esi, esi
je 0x4eeea2
cmp word [edi], bx
je 0x4eeea2
test eax, eax
je 0x4eedf9
cmp word [eax], bx
je 0x4eedf9
lea ecx, [ebp - 0x214]
push ecx
push 0xf003f
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4eeea2
mov esi, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4eee89
mov edi, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4eee64
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
call fcn.004eed81
add esp, 0xc
test al, al
je 0x4eee64
inc edi
cmp edi, 0xff
jb 0x4eee14
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x21c]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
cmove ebx, edx
cmp dword [ebp - 0x214], 0
je 0x4eee9e
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x4eeea4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4eeeb3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
and dword [ebp - 0x218], 0
push ebx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x228], eax
or esi, 0xffffffff
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x20d], 1
call fcn.004e3cd3
mov cl, al
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x20e], cl
test cl, cl
mov dword [ebp - 0x224], eax
setne bl
inc ebx
cmp byte [ebp - 0x20d], 0
je 0x4ef05a
mov edi, 0x20019
test cl, cl
je 0x4eef3e
test eax, eax
mov edi, 0x20119
mov ecx, 0x20219
cmove edi, ecx
lea eax, [ebp - 0x214]
push eax
push edi
push 0
push dword [ebp - 0x228]
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ef03f
test esi, esi
push 0x208
cmovns eax, esi
mov esi, eax
xor eax, eax
push eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x21c]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
jmp 0x4ef00c
inc dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push edi
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4eeff1
mov eax, dword [ebp - 0x230]
inc esi
test eax, eax
je 0x4eefe5
push dword [ebp + 0x14]
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x218]
call eax
test al, al
je 0x4ef02c
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x220]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4eef9d
jmp 0x4ef033
mov byte [ebp - 0x20d], 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
mov cl, byte [ebp - 0x20e]
inc eax
mov dword [ebp - 0x224], eax
cmp eax, ebx
jl 0x4eef19
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4ef1c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ecx, edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
call fcn.004e2830
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test esi, esi
je 0x4ef28d
xor eax, eax
cmp word [esi], ax
je 0x4ef28d
cmp dword [ebp + 8], eax
jne 0x4ef265
push eax
push edi
push ebx
push esi
push SysReAllocString
call fcn.004ef1c2
add esp, 0x14
test eax, eax
jns 0x4ef25f
call fcn.004e3cd3
mov cl, al
mov edx, 0x100
xor eax, eax
mov byte [ebp + 0xf], cl
test cl, cl
cmovne eax, edx
push eax
push edi
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004ef1c2
add esp, 0x14
test eax, eax
jns 0x4ef25f
cmp byte [ebp + 0xf], 0
je 0x4ef25d
push 0x200
push edi
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004ef1c2
add esp, 0x14
test eax, eax
jg 0x4ef30a
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 4]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x4ef290
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4ef307
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push eax
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ef2f4
mov eax, dword [ebp - 8]
mov ecx, edi
shr eax, 1
add eax, 2
push eax
call fcn.004e2851
mov esi, eax
test esi, esi
je 0x4ef2f4
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
lea eax, [ebp - 8]
push eax
push esi
xor eax, eax
push eax
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ef2ed
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xc], eax
jmp 0x4ef2f4
mov ecx, edi
call fcn.004e2830
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ef307
cmp eax, dword [ebp + 8]
je 0x4ef307
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ef30f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
or esi, 0xffffffff
mov dword [ebp - 4], eax
xor edi, edi
test ecx, ecx
je 0x4ef353
cmp word [ecx], di
je 0x4ef353
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20006
push eax
push edi
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
test esi, esi
cmovne eax, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4ef39e
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4ef37f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4ef389
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ef39e
cmp eax, dword [ebp + 8]
je 0x4ef39e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4f3cbb
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x4f3cf0
push eax
push str.0x_08X
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.004e1e5a
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
jmp 0x4f3cf2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret

Function at 0x4f3d06
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push str.ConEmuHWND
call fcn.004f3cbb
pop ecx
pop ecx
test esi, esi
je 0x4f3d56
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push 0x521bcc
push 0x10
push eax
call fcn.004e1e5a
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
jmp 0x4f3d58
push 0
push str.ConEmuPID
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f4166
leave
ret
Function at 0x416153
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416192
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416192
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416192
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416192
cmp dword [ecx + 0x74], 0xe
jbe 0x416192
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42858d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42858d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx