joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fbe4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47fc12
mov eax, ebx
call fcn.00480688
cmp dword [ebx + 0x3c], 0
je 0x47fc0b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47fc83
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x47fc75
cmp dword [ebx + 8], 0
je 0x47fc34
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x47fc46
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47fc75
cmp dword [ebx + 8], 0
je 0x47fc27
cmp eax, 3
je 0x47fc59
dec eax
jne 0x47fc27
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47fc27
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x47fc27
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x47fca1
cmp dword [ebx + 0x10], 0xcc
je 0x47fca1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047fcac
pop ebx
ret
Function at 0x499334
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404110
xor eax, eax
push ebp
push 0x499499
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, 0x4994b0
call fcn.00404248
test eax, eax
jne 0x499483
mov dl, 1
mov eax, dword [0x419958]
call fcn.0041f888
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.0041fdf4
mov ebx, eax
xor eax, eax
push ebp
push 0x49947c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0042be30
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0042be30
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx + 0x14]
mov edx, 0x8080
call fcn.0041b0a8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x17c]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040ff24
lea edx, [ebp - 0x17c]
mov eax, ebx
call fcn.0041b480
push 0x101
push 0x160
lea eax, [ebp - 0x16c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404120
push eax
call sub.shell32.dll_SHGetFileInfoA
push 3
push 0
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x16c]
push eax
push 0
push 0
mov eax, ebx
call fcn.0041b900
push eax
call sub.user32.dll_DrawIconEx
mov edx, 0x8080
mov eax, dword [ebp - 0xc]
call fcn.00420e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499483
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
call fcn.00402f90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4994a0
lea eax, [ebp - 8]
call fcn.00403cdc
ret

Function at 0x49d784
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x49d7bc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49d79a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49d7a9
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49d7b8
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x4a0bb8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a0dab
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a0d43
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x478278]
call fcn.0047837c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x470], ebx
mov eax, ebx
mov edx, 0x80000001
call fcn.0047841c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
xor ecx, ecx
mov edx, 0x4a0dc4
call fcn.00478560
test al, al
jne 0x4a0c98
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
mov edx, 0x4a0dc4
call fcn.00478484
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
mov ecx, 0x4a0de4
mov edx, 0x4a0dc4
call fcn.00478b38
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
mov ecx, 0x4a0e00
mov edx, 0x4a0dc4
call fcn.00478b38
lea edx, [ebp - 8]
mov eax, dword [0x4a8170]
mov eax, dword [eax]
call fcn.004507dc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
mov ecx, 0x4a0e2c
mov edx, 0x4a0e40
call fcn.00478944
jmp 0x4a0d39
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
mov ecx, 0x4a0de4
mov edx, 0x4a0dc4
call fcn.00478af4
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
call fcn.004424fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov dl, byte [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
call fcn.004424fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
cmp byte [eax + 0x2c], 0
je 0x4a0cf5
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a3f48
push 1
mov ecx, 0x4a0e00
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
mov edx, 0x4a0dc4
call fcn.00478af4
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x404]
call fcn.004424fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x404]
mov dl, byte [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
call fcn.004424fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a0d4d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov eax, dword [eax + 0x20c]
call fcn.00461c04
test eax, eax
jle 0x4a0d7e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x340]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
call fcn.0045f238
jmp 0x4a0d95
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x33c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
call fcn.0045f238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0db2
lea eax, [ebp - 8]
call fcn.00403cdc
ret
Function at 0x4a12a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a130b
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
lea eax, [ebp - 4]
mov ecx, 0x4a1320
mov edx, dword [ebx + 0x44c]
call fcn.00403fa8
mov eax, dword [ebp - 4]
call fcn.00404120
push eax
push 0x4a132c
mov eax, dword [0x4a8170]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.shell32.dll_ShellExecuteA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1312
lea eax, [ebp - 4]
call fcn.00403cdc
ret
Function at 0x4d7e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
lea eax, [esp + 0x50]
push edi
mov esi, ecx
push eax
mov edi, edx
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebp, eax
push esi
mov dword [esp + 0x28], ebp
call edi
mov ebx, eax
mov edi, dword [esp + 0x78]
push edi
call fcn.004d7c40
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub edx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
push edx
sub eax, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
call fcn.004d7d40
mov ebp, eax
push edi
call fcn.004d7d60
push edi
mov dword [esp + 0x7c], eax
call fcn.004d7d80
push 0
push edi
push ebp
push 4
push edi
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ebp, eax
push ebp
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
sub edx, edi
xor eax, eax
test edx, edx
jle 0x4d7f84
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov ebp, edx
mov dword [esp + 0x44], eax
add ecx, eax
sub ebp, edi
xor eax, eax
test ebp, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], ecx
jle 0x4d7f6c
mov edi, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x64]
lea ebp, [eax + edi]
lea eax, [esp + 0x54]
push edx
push eax
push ecx
mov dword [esp + 0x5c], ebp
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d7f56
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push ebx
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, edx
mov eax, ebp
sub ecx, edi
cmp eax, ecx
jl 0x4d7f0d
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov eax, ecx
mov ecx, dword [esp + 0x3c]
sub ecx, ebp
cmp eax, ecx
jl 0x4d7ef1
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
push 1
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x30]
push edx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
Function at 0x4d8c00
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
cmp word [esi], 3
jne 0x4d8c20
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
jmp 0x4d8c2e
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
mov edx, edi
call fcn.004d8a10
test eax, eax
jne 0x4d8c35
lea eax, [esi + 0x1c]
pop edi
pop esi
ret 8
Function at 0x4db0f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4db14a
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 4

Function at 0x4db160
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x210]
push ebx
push ebp
mov ebp, edx
push edi
push ebp
mov edi, ecx
push 0
push eax
push edi
push 0x4e2240
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4db256
mov ecx, edi
call fcn.004d9260
test eax, eax
jne 0x4db1ae
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret 4
lea ecx, [esp + 0x10]
mov edx, 0x4e2238
push ecx
mov ecx, 0x80000000
call fcn.004db0f0
test eax, eax
jne 0x4db25e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x4e2224
push edx
call ebx
lea eax, [esp + 0x10]
lea edx, [esp + 0x10]
push eax
mov ecx, 0x80000000
call fcn.004db0f0
test eax, eax
jne 0x4db25e
push esi
lea ecx, [esp + 0x14]
push 0x4e221c
push ecx
call fcn.004e0170
mov esi, eax
add esp, 8
test esi, esi
jne 0x4db235
lea edx, [esp + 0x14]
push 0x4e2218
push edx
call fcn.004e0170
mov esi, eax
add esp, 8
test esi, esi
jne 0x4db235
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4db238
mov byte [esi], 0
push 0x4e20b4
push esi
call ebx
push edi
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
pop esi
jbe 0x4db25e
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret 4
Function at 0x4db940
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4e5d80]
push ebx
push ebp
push esi
mov esi, dword [ecx + 6]
push edi
mov edi, edx
mov edx, dword [ecx + 2]
xor edx, eax
mov eax, edx
mov dword [ecx + 2], edx
mov edx, dword [ecx + 0xa]
xor esi, eax
mov eax, dword [esp + 0x14]
xor esi, edx
add esi, eax
xor edx, edx
mov eax, esi
mov ebx, dword [ecx + 6]
mov ebp, dword [eax]
xor ebp, ebx
inc edx
mov dword [eax], ebp
mov ebx, dword [ecx + 0xa]
mov ebp, dword [eax + 4]
add eax, 4
xor ebp, ebx
inc edx
mov dword [eax], ebp
add eax, 4
cmp edx, 0x14
jl 0x4db969
mov ecx, dword [edi]
call fcn.004df440
mov dword [edi], 0
cmp word [0x4e5e10], 0
je 0x4db9ac
cmp word [0x4e229a], 0
je 0x4db9ac
call esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4dba10
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
lea eax, [esp + 0x110]
mov byte [0x4e5c44], 0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4dba43
mov byte [esp + 0x110], 0x63
mov byte [esp + 0x111], al
push edi
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4dba85
cmp byte [esp + edx + 0x114], 0x5c
je 0x4dba7d
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x4dba5b
jmp 0x4dba85
mov byte [esp + edx + 0x115], 0
lea ecx, [esp + 0x10]
push 0x104
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x22c]
push 0x104
lea eax, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4dbbde
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push 0xa
push ecx
push edx
call fcn.004dff4e
add esp, 0xc
xor eax, eax
mov dl, 0x38
mov cl, byte [esp + eax + 0x10]
cmp cl, 0x30
jl 0x4dbaef
cmp cl, 0x39
jg 0x4dbaef
mov byte [eax + 0x4e5c3c], cl
jmp 0x4dbaf5
mov byte [eax + 0x4e5c3c], dl
inc eax
cmp eax, 8
jl 0x4dbad9
mov edi, 0x4e5c3c
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x19]
mov dl, byte [esp + 0x1b]
xor al, 0x7f
xor dl, 0x7f
mov byte [0x4e5c3d], al
mov al, byte [esp + 0x17]
mov cl, byte [esp + 0x14]
xor al, 0x7f
xor dl, 0x7f
mov byte [0x4e5c3e], al
mov al, byte [esp + 0x16]
mov byte [0x4e5c3f], dl
mov dl, byte [0x4e5c3e]
xor al, 0x7f
xor dl, 0x7f
xor cl, 0x7f
mov byte [0x4e5c40], dl
mov dl, byte [0x4e5c3d]
xor al, 0x7f
xor cl, 0x7f
xor dl, 0x7f
cmp al, 0x30
mov byte [0x4e5c41], 0
mov byte [0x4e5c3c], al
mov byte [0x4e5c3e], cl
mov byte [0x4e5c3d], dl
pop esi
jne 0x4dbb96
mov byte [0x4e5c3c], 0x31
mov eax, 1
mov dl, 0x35
mov cl, byte [eax + 0x4e5c3c]
cmp cl, 0x30
jb 0x4dbbad
cmp cl, 0x39
jbe 0x4dbbb3
mov byte [eax + 0x4e5c3c], dl
inc eax
cmp eax, 5
jl 0x4dbb9d
mov edx, 0x4e2338
mov ecx, 0x4e5c3c
call fcn.004df8e0
xor ecx, ecx
mov dword [0x4e5c48], eax
test eax, eax
setne cl
mov eax, ecx
pop edi
add esp, 0x318
ret
mov edx, 0x4e2330
mov ecx, 0x4e2318
call fcn.004df450
xor eax, eax
pop edi
add esp, 0x318
ret
Function at 0x4dc580
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [0x4e5e14]
mov eax, 0x60000
test eax, ecx
jne 0x4dc5a8
mov edx, ecx
mov ecx, dword [0x4e5d80]
or edx, eax
xor ecx, eax
mov dword [0x4e5e14], edx
mov dword [0x4e5d80], ecx
lea eax, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push 0x4e2258
push 0x80000000
call esi
test eax, eax
je 0x4dc628
lea ecx, [esp + 4]
push ecx
push 0x4e2258
push 0x80000001
call esi
test eax, eax
jne 0x4dc5ec
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000001
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0x4e2258
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4dc5e4
push 0x4e2258
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000000
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000000
pop esi
pop ecx
ret
Function at 0x4dd050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
push 0x104
mov edi, edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4dd081
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x4dd0a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll__lopen]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push 0x1a3
push 0x4e23a0
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4dd10d
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
lea ecx, [edi - 0x104]
test ecx, ecx
jle 0x4dd13f
push 0x104
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
sub edi, 0x104
cmp edi, 0x104
jg 0x4dd117
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
push ebx
call ebp
lea edx, [esp + 0x118]
mov edi, dword [esp + 0x10]
push 0x200
push edx
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4dd1be
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
jne 0x4dd1f3
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
je 0x4dd1d2
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call ebp
push ebx
call ebp
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
Function at 0x4dd8e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [0x4e5c6c]
sub esp, 0xc
lea eax, [esp + 8]
push ebp
push esi
push eax
push 0x4e2268
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4dd90a
pop esi
mov ax, 2
pop ebp
add esp, 0xc
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x4dd92e
pop esi
mov ax, 3
pop ebp
add esp, 0xc
ret
mov eax, dword [0x4e5c6c]
lea edx, [esp + 8]
push edx
push ebp
push 0x4e2268
push eax
mov dword [esp + 0x18], 0xbb80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4dd980
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 3
pop esi
pop ebp
add esp, 0xc
ret
mov edx, dword [esp + 8]
push ebx
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
dec edx
push ecx
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.004df5d0
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add eax, 8
test ecx, ecx
mov dword [esp + 0x10], ecx
jle 0x4dd9ce
mov edi, dword [0x4e5c4c]
mov ecx, 3
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4dd9ce
mov ecx, dword [esp + 0x10]
add eax, 0xc
inc ebx
cmp ebx, ecx
jl 0x4dd9af
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push ebp
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push eax
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
cmp ebx, eax
pop ebx
je 0x4dda26
or byte [0x4e5c14], 0x20
pop esi
mov ax, 1
pop ebp
add esp, 0xc
ret
pop esi
xor ax, ax
pop ebp
add esp, 0xc
ret
Function at 0x4de310
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x4e5c4c]
push eax
push 0xa
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x4e5c78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4de3b3
mov eax, dword [0x4e5b08]
test ah, 0x30
jne 0x4de34d
test ah, 1
je 0x4de352
mov eax, 1
ret
test ah, 1
jne 0x4de37f
test ah, 0x10
mov cl, 8
je 0x4de361
test byte [0x4e5adc], cl
jne 0x4de37f
cmp byte [0x4e5bf3], 2
jne 0x4de3d5
movsx edx, word [0x4e5bf1]
mov eax, dword [0x4e5afc]
shl edx, 6
test byte [edx + eax + 0x28], cl
je 0x4de3d5
mov ecx, dword [0x4e5c78]
push 0xa
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [eax]
inc edx
mov ecx, edx
mov dword [eax], edx
cmp ecx, 2
jne 0x4de3ce
push eax
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
ret
mov edx, dword [0x4e5c78]
push 0xa
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [eax], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
ret