joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dd38b
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x254], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x24c
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x250]
push 0
push eax
mov dword [ebp - 0x264], esi
call fcn.004f3a90
add esp, 0xc
lea ecx, [ebp - 0x260]
push esi
call fcn.004c6681
call fcn.004c5a90
push eax
lea ecx, [ebp - 0x258]
call fcn.004c65c1
push 0x54f8dc
mov edi, 0x104
lea ecx, [ebp - 0x260]
push edi
call fcn.004c7772
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x260]
call fcn.004cd175
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4dd465
mov edi, dword [ebp - 0x258]
lea ecx, [edi - 0x10]
call fcn.004c77e2
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004c77e2
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
mov edi, 0x104
push esi
lea ecx, [ebp - 0x258]
call fcn.004c791f
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x258]
call fcn.004c7772
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.004cd175
push dword [ebp - 0x268]
lea ecx, [ebp - 0x25c]
call fcn.004c6681
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.004c7772
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.004cd175
test byte [ebp - 0x254], 0x10
mov edi, dword [ebp - 0x258]
mov esi, dword [ebp - 0x25c]
je 0x4dd561
lea eax, [ebp - 0x228]
push 0x5631a0
push eax
call fcn.004f3501
pop ecx
pop ecx
test eax, eax
je 0x4dd524
lea eax, [ebp - 0x228]
push 0x5631a4
push eax
call fcn.004f3501
pop ecx
pop ecx
test eax, eax
je 0x4dd524
mov eax, dword [ebp - 0x254]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x4dd52f
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
jmp 0x4dd56e
cmp dword [ebp + 0x10], 0
je 0x4dd56b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dd547
push esi
call fcn.004dd64b
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4dd56b
push dword [ebp + 0x10]
push esi
push edi
call fcn.004dd38b
add esp, 0xc
jmp 0x4dd56b
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esi - 0x10]
call fcn.004c77e2
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [ebp - 0x264]
test eax, eax
jne 0x4dd460
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4dd437
Function at 0x4dd59b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004c6681
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.004c6681
lea eax, [ebp - 8]
push eax
call fcn.004e20f3
mov edi, dword [ebp - 8]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4dd5d9
mov esi, dword [ebp - 4]
jmp 0x4dd631
push ebx
push edi
call fcn.004e1d44
pop ecx
pop ecx
test eax, eax
jne 0x4dd62c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4dd62c
lea eax, [ebp - 4]
push eax
call fcn.004e2166
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], ebx
je 0x4dd632
push esi
call fcn.004dd59b
pop ecx
test eax, eax
je 0x4dd632
push ebx
push edi
call fcn.004e1d44
pop ecx
pop ecx
test eax, eax
jne 0x4dd62f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4dd62f
jmp 0x4dd632
mov esi, dword [ebp - 4]
xor ebx, ebx
inc ebx
lea ecx, [edi - 0x10]
call fcn.004c77e2
lea ecx, [esi - 0x10]
call fcn.004c77e2
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ddfdd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
neg esi
mov dword [ebp - 0x410], ecx
push eax
sbb esi, esi
xor edi, edi
and esi, 0x100
mov eax, esi
or eax, 0xf003f
push eax
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4de098
jmp 0x4de04a
push dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.004ddfdd
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4de0a9
lea eax, [ebp - 0x418]
mov dword [ebp - 0x40c], 0x200
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4de02c
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
push dword [ebp - 0x410]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4de098
Function at 0x4de0e1
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
mov edx, dword [ebp - 0x10]
call fcn.004f3b66
mov esp, ebp
pop ebp
ret

Function at 0x4de70c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004c69bb
add eax, 0x10
mov dword [esp], 0x563188
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], eax
call fcn.004c67ff
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x4de79b
xor eax, eax
mov ecx, edi
push eax
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.004e3fbb
lea ecx, [esi - 0x10]
mov dword [edi], eax
call fcn.004c77e2
lea ecx, [ebp + 0x10]
call fcn.004e5179
lea ecx, [ebp + 0x10]
call fcn.004e5179
jmp 0x4de8d2
xor eax, eax
lea ecx, [ebp - 0x260]
push ebx
push eax
push eax
mov dword [ebp - 0x25c], eax
call fcn.004e3fbb
mov ebx, eax
mov dword [ebp - 0x260], ebx
test byte [ebp - 0x254], 0x10
je 0x4de86d
cmp dword [ebp + 0x20], 0
lea eax, [ebp - 0x228]
push eax
jne 0x4de7f9
lea ecx, [ebp - 0x258]
call fcn.004c6681
lea eax, [ebp - 0x258]
push eax
push ebx
lea ecx, [ebp - 0x260]
call fcn.004da790
mov ecx, dword [ebp - 0x258]
jmp 0x4de85f
lea ecx, [ebp - 0x268]
call fcn.004c6681
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x4de8e4
mov eax, dword [ecx]
lea edx, [ebp - 0x268]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x268]
mov bl, al
add ecx, 0xfffffff0
call fcn.004c77e2
test bl, bl
je 0x4de867
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x264]
call fcn.004c6681
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.004da790
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004c77e2
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4de7b9
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x260]
mov ecx, edi
push eax
call fcn.004dc14c
lea ecx, [ebp - 0x260]
call fcn.004e54b5
push dword [ebp - 0x260]
call fcn.004f2e36
pop ecx
lea ecx, [esi - 0x10]
call fcn.004c77e2
lea ecx, [ebp + 0x10]
call fcn.004e5179
lea ecx, [ebp + 0x10]
call fcn.004e5179
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
call fcn.00528dfa
int3
Function at 0x4dec75
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x57dc90]
push esi
xor esi, esi
test al, 1
jne 0x4decbf
or eax, 1
mov dword [0x57dc8c], 7
mov dword [0x57dc90], eax
xor eax, eax
push 0x54b241
mov dword [0x57dc88], esi
mov word [0x57dc78], ax
call fcn.004f2f66
pop ecx
cmp dword [0x57dc88], esi
je 0x4decd1
mov eax, 0x57dc78
jmp 0x4ded8d
push ebx
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004f3a90
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x57dc78
test eax, eax
je 0x4ded89
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004f3453
pop ecx
pop ecx
push esi
push esi
push esi
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x210]
push esi
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4ded89
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x54f6fc
push ebx
push eax
call fcn.004e3181
add esp, 0x10
cmp word [ebp - 0x20c], si
je 0x4ded7a
lea eax, [ebp - 0x20c]
push eax
call fcn.004f353f
pop ecx
mov esi, eax
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, edi
call fcn.00407440
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x4dee06
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x57dc64]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test al, 1
jne 0x4dee5c
or eax, 1
xor ebx, ebx
mov dword [0x57dc64], eax
mov edi, 0x57dc5c
inc ebx
call fcn.004c5a90
push eax
mov ecx, edi
call fcn.004c65c1
add edi, 4
dec ebx
jns 0x4dee3b
push 0x54b26c
call fcn.004f2f66
pop ecx
mov ecx, dword [ebp - 0x28]
xor eax, eax
test cl, cl
sete al
lea edi, [eax*4 + 0x57dc5c]
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
je 0x4dee82
push edi
mov ecx, esi
call fcn.004c66f6
xor eax, eax
inc eax
jmp 0x4def2c
xor ebx, ebx
mov byte [ebp - 0x20], 1
and dword [ebp - 0x24], ebx
xor eax, eax
test cl, cl
lea ecx, [ebp - 0x24]
push 1
sete al
push str.SoftwareBytedanceCapCut
add eax, 0x80000001
push eax
call fcn.004e1d89
test eax, eax
je 0x4deeb9
push esi
push str.installDir
lea ecx, [ebp - 0x24]
call fcn.004e21af
push dword [esi]
lea ecx, [ebp - 0x1c]
call fcn.004051c0
lea eax, [ebp - 0x1c]
push eax
call fcn.004e2128
mov dword [esp], str.CapCut.exe
call fcn.004f353f
pop ecx
push eax
push str.CapCut.exe
lea ecx, [ebp - 0x1c]
call fcn.0040d7d0
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x4def0f
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4def0f
xor ebx, ebx
mov ecx, edi
push esi
inc ebx
call fcn.004c66f6
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00406930
cmp dword [ebp - 0x24], 0
je 0x4def2a
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret

Function at 0x4df6a9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4df75c
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], esi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push eax
push edi
call fcn.004df76f
add esp, 0xc
test al, al
je 0x4df75c
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004f3a90
mov ecx, dword [ebp - 0x214]
mov edx, dword [ebp - 0x210]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x20c]
push edx
push str._d._d._d._d
push 0x104
push eax
call fcn.004fbcff
add esp, 0x28
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004c791f
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x4df76f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4df7f6
push esi
push edi
call fcn.004f3b58
pop ecx
mov esi, eax
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4df7ea
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x561a58
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4df7ea
cmp dword [ebp - 8], ebx
je 0x4df7ea
mov ecx, dword [ebp - 0xc]
mov bl, 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test esi, esi
je 0x4df7f5
push esi
call fcn.004f3b61
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4df89e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
test eax, eax
je 0x4df912
push str._cid
push eax
call fcn.004fc139
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4df912
add esi, 0xa
push 0x20
push esi
call fcn.004f3453
pop ecx
pop ecx
test eax, eax
jne 0x4df900
push esi
call fcn.004f353f
pop ecx
lea eax, [esi + eax*2]
sub eax, esi
mov ecx, ebx
sar eax, 1
push eax
push esi
call fcn.004c7948
jmp 0x4df9a4
push dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
call fcn.004c6681
push 0x561a58
lea ecx, [ebp - 0x7c]
call fcn.004c67ff
push str.ProductInfo.xml
lea ecx, [ebp - 0x7c]
call fcn.004c67ff
lea ecx, [ebp - 0x78]
call fcn.004d51de
mov esi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x78]
push esi
call fcn.004d55df
test eax, eax
je 0x4df994
push edi
push str.packetcid
lea ecx, [ebp - 0x78]
call fcn.004d56f9
test eax, eax
je 0x4df96f
push ebx
push 0x54f6d8
lea ecx, [ebp - 0x78]
call fcn.004d588a
push edi
push str.packet_scid
lea ecx, [ebp - 0x78]
call fcn.004d56f9
test eax, eax
je 0x4df994
push dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
push str.scid
call fcn.004d588a
lea ecx, [ebp - 0x78]
call fcn.004d0e19
lea ecx, [esi - 0x10]
call fcn.004c77e2
mov eax, dword [0x57dc48]
cmp dword [eax - 0xc], edi
je 0x4df9ba
push 0x57dc48
mov ecx, ebx
call fcn.004c66f6
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x4dfa88
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004df211
mov esi, dword [ebp - 0x84]
push 0x5f
push esi
call fcn.004f3577
add esp, 0x10
test eax, eax
je 0x4dfa80
sub eax, esi
sar eax, 1
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x4dfa80
call fcn.004c5a90
push eax
lea ecx, [ebp - 0x7c]
call fcn.004c65c1
mov ecx, dword [ebp - 0x80]
mov eax, dword [esi - 0xc]
inc ecx
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x84]
call fcn.004c741b
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004c66f6
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.004c77e2
push edi
push str..exe
lea ecx, [ebp - 0x7c]
call fcn.004de35c
push eax
push edi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004c741b
push eax
lea ecx, [ebp - 0x7c]
call fcn.004c66f6
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.004c77e2
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.004c66f6
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx - 0x10]
call fcn.004c77e2
lea ecx, [esi - 0x10]
call fcn.004c77e2
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x4dfac7
push str.mktpublic
call fcn.004f4050
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x4dfabf
lea eax, [esi + esi]
call fcn.004f4960
mov eax, esp
push 3
push esi
push str.mktpublic
push eax
call fcn.004c8e75
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c791f
lea esp, [ebp - 0x90]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x4e03c3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x22c]
push edi
xor edi, edi
push 0x228
push edi
push eax
mov dword [ebp - 0x230], edi
call fcn.004f3a90
add esp, 0xc
lea ecx, [ebp - 0x234]
push esi
call fcn.004c6681
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4e0516
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4e050f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x23c], eax
push ebx
mov ecx, dword [ebp - 0x228]
cmp ecx, eax
je 0x4e04ef
test ecx, ecx
je 0x4e04ef
cmp ecx, 4
je 0x4e04ef
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004dca78
push edi
push dword [eax]
call fcn.004fbf38
mov ecx, dword [ebp - 0x240]
mov ebx, eax
add esp, 0x14
neg ebx
sbb bl, bl
lea ecx, [ecx - 0x10]
call fcn.004c77e2
inc bl
je 0x4e04ef
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.004dca78
add esp, 0xc
push edi
push 0x80
push 3
push edi
push edi
push 0x10000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x238]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.004c77e2
cmp ebx, 0xffffffff
je 0x4e050b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4e050e
mov eax, dword [ebp - 0x23c]
jmp 0x4e0443
xor edi, edi
inc edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.004c77e2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret

Function at 0x4e0536
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x234], eax
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], esi
push esi
push eax
call fcn.004f3a90
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4e05ed
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4e05e6
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov ecx, dword [ebp - 0x228]
cmp ecx, ebx
je 0x4e05cf
test ecx, ecx
je 0x4e05cf
cmp ecx, 4
je 0x4e05cf
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004f5a84
pop ecx
pop ecx
test eax, eax
je 0x4e05e2
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4e05a4
jmp 0x4e05e5
xor esi, esi
inc esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f3b66
mov esp, ebp
pop ebp
ret
Function at 0x4e1d44
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0x3000010
push 1
push 0
push 3
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x4e1d77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4e1d82
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebx
pop ebp
ret

Function at 0x4e1eb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.004f3a90
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4e1efe
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret

Function at 0x4e1f6b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x57a120]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.004f3a90
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4e1fc6
cmp dword [ebp - 0x11c], 6
jb 0x4e1fc6
cmp dword [ebp - 0x118], 2
jb 0x4e1fc6
xor eax, eax
inc eax
jmp 0x4e1fc8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
mov esp, ebp
pop ebp
ret

Function at 0x4e21af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x4e2231
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x4e21e3
cmp dword [ebp - 8], 2
jne 0x4e2231
mov ecx, dword [ebp + 0xc]
call fcn.004c6dda
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.004c7772
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e2227
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.004cd175
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8